‎2008 Jan 14 9:20 AM
Hi all,
I'm not able to view the Pegging details using the FM MD_PEGGING using the Material # and Plant details.
Is there any table containing these details?
Thanks in advance
Ramana
‎2008 Jan 14 9:28 AM
Hi,
Try the table PLAF.
You can find further information on the necessary Customizing activities in the SAP IMG under Logistics -> Project System ->Costs ->Automatic and Periodic Allocations ->Pegging.
Regards,
Renjith Michael.
‎2008 Jan 14 9:28 AM
Hi,
Try the table PLAF.
You can find further information on the necessary Customizing activities in the SAP IMG under Logistics -> Project System ->Costs ->Automatic and Periodic Allocations ->Pegging.
Regards,
Renjith Michael.
‎2008 Jan 14 9:38 AM
Apart from MATNR and PLANT you've to pass Purchase Req. Number as well to get Pegging details.. I'm sending you some sample code to pegging details which I'm using...may be you'll get some idea...
CALL FUNCTION 'MD_PEGGING'
EXPORTING
edelet = '0000'
edelkz = 'BA'
edelnr = req_num "Requisition number
edelps = '000010'
eplscn = 000
ematnr = material
ewerks = plant
eberid = ' '
eplwrk = ' '
eplaab = '02'
eplanr = ' '
everto = ' '
display_only = ' '
edelvr = ' '
edat00 = d_date
TABLES
itab = peg_tab
EXCEPTIONS
error = 1
no_requirements_found = 2
order_not_found = 3
OTHERS = 4.
‎2008 May 23 6:43 AM
Hi,
I got a similar requirement. In my production order outbound idoc(LOIPRO01) I have extended with some custom fields. In that one of the custom filed is there by named BackOrder with length char(1).
By using Function Module MD_PEGGING and if the Pegging Source is a Sales Order, I need to send the Flag as 'X' to Backorder filed.
I can give input Material Number and Plant fields. Apart from this,from where I can get the values for
edelkz,edelnr,edelps,eplaab etc.
Thanks in advance.
Regards,
Ranjith.
‎2008 May 23 7:23 AM
Hi,
I got a similar requirement. In my production order outbound idoc(LOIPRO01) I have extended with some custom fields. In that one of the custom filed is there by named BackOrder with length char(1).
By using Function Module MD_PEGGING and if the Pegging Source is a Sales Order, I need to send the Flag as 'X' to Backorder filed.
I can give input Material Number and Plant fields. Apart from this,from where I can get the values for
edelkz,edelnr,edelps,eplaab etc.
Thanks in advance.
Regards,
Ranjith.