Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MD_PEGGING

Former Member
0 Likes
1,247

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
955

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.

4 REPLIES 4
Read only

Former Member
0 Likes
956

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.

Read only

Former Member
0 Likes
955

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.

Read only

0 Likes
955

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.

Read only

0 Likes
955

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.