ABAP OBJECTS Programming Sample Project With Employee Class
ABAP OBJECTS Programming Sample Project With Employee Class
sapbrainsonline.com
Solution:
In the purchasing (MM module) you can process the purchase
requisitions. The purchase requisitions define primarily the need for
a material/service. List the first 100 purchase requisitions at the
plant ‘PL01’ (table EBAN). Then make it possible to change the
purchase requisition itself from the list by clicking twice on the row
or by using a push-button.
1 of 5 8/22/2016 10:08 PM
ABAP Interactive Reporting Sample Code about:reader?url=http://sapbrainsonline.com/abap-tutorial/codes/abap-int...
perform header_write.
* SELECTION
start-of-selection.
pur_req-numb = 1.
* SELECT ONLY THOSE FIELDS THAT WILL BE USED FROM
THE TABLE EBAN, AND ONLY
*THE FIRST100 RECORDS OF THE THE PLANT ‘PL01’
select banfn bnfpo bsart ekgrp matnr werks menge meins frgdt
estkz
pur_req-banfn = eban-banfn.
pur_req-matnr = eban-matnr.
pur_req-werks = eban-werks.
2 of 5 8/22/2016 10:08 PM
ABAP Interactive Reporting Sample Code about:reader?url=http://sapbrainsonline.com/abap-tutorial/codes/abap-int...
pur_req-ekgrp = eban-ekgrp.
pur_req-bnfpo = eban-bnfpo.
pur_req-bsart = eban-bsart.
pur_req-menge = eban-menge.
pur_req-meins = eban-meins.
pur_req-estkz = eban-estkz.
append pur_req.
pur_req-numb = pur_req-numb + 1.
endselect.
* CHECK WHETHER THE TABLE EBAN CONTAINS ANY
PURCHASE REQUISITIONS
if sy-subrc ne 0.
loop at pur_req.
3 of 5 8/22/2016 10:08 PM
ABAP Interactive Reporting Sample Code about:reader?url=http://sapbrainsonline.com/abap-tutorial/codes/abap-int...
/ text-002.
uline.
endform.
NOTES:
001
Numb.__Requisition__Item___Document_____Material_____________________Quantity_Unit_
4 of 5 8/22/2016 10:08 PM
ABAP Interactive Reporting Sample Code about:reader?url=http://sapbrainsonline.com/abap-tutorial/codes/abap-int...
002
_________Number_____Num______Type________________________________________Me
ZMJUD001 FUN-FACTORY
Purch. Gr.: 001 Purchase Requisition List As Of Date:
05/09/1997
Plant: D031 Page: 1
————————————————————————-
Numb. Requisition Item Document Material Quantity Unit
of
Number Num Type Measure
————————————————————————-
Judit Rakovits
5 of 5 8/22/2016 10:08 PM