cancel
Showing results for 
Search instead for 
Did you mean: 

How to ignore pegging from a process order in APO?

Former Member
0 Kudos

Hi! Experts,

I have an requirement in APO 4.0 that I need to make process orders not relevant for pegging i.e. since the process order gets automatically pegged to the newly created demand elements. I need to ignore pegging for some specific supply elements (process orders).

I have found the BAdI /SAPAPO/RRP_PLANNING which gets called when a Heuristic Run is done from a Product View. Also, I have found internally that if the PEG_ID of a Process Order is removed programmatically a new Plan Order gets created of the same quantity. However, the old Process Order still remains pegged with the Demand Element & the newly Plan Order does not get pegged to the Demand element.

Please help me with this issue as I am new to APO ABAP.

Also, please revert with your valuable suggestions or in case you require any further information on the same.

Thanks in Advance

Regards,

Mistry Wasim

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Mistry Wasim,

You can try running heuristic SAP_PP_011 which is for Delete Fixed Pegging Relationships

for certain specific products for the suitable order categories.

This heuristic uses the algorithm /SAPAPO/HEU_PEG_FIX_DELETE_NEW

Here you can configure your horizon and categories for pegging for both

requirements and receipts.

Regards

R. Senthil Mareeswaran.

nitin_thatte
Contributor
0 Kudos

In the product master

go to demand tab

go to pegging tab

there is a check box 'deactivate dynamic pegging'. Tick this check box. It should solve your problem.

Regards,

Nitin

Former Member
0 Kudos

Hi! Nitin,

Thanks for your quick response.

But I need to ignore pegging for some specific Supply Elements like Process Order (Released) other then that I want the dynamic pegging to be there for Plan Orders.

I mean to say, that if the Process Order(R) gets 'Not Relevant to Pegging' (one of the column in Product View) system will automatically create Plan Order to make the sum as zero for the Demand.

Also, using the above mentioned BAdI I succeeded to some extend like if I remove the process order line item from internal table CT_IONODES in method PEGID_GET_IO a corresponding new Plan Order gets created but still the major issue to ignore pegging of Process Order remains as I can see the same in the 'Context' for the Demand.

I hope this would provide you with more inputs on the requirement.

Regards,

Mistry Wasim

nitin_thatte
Contributor
0 Kudos

If you want to only exclude the process order (Released) category from netting, you can do so by activating BAdI SAPAPO_RRP_PLANNING and method AFTER_NETTING.

In this you should write the code to collect all quantities of released Process Orders and add this quantity to the quantity generated by original netting logic.

We have done it to exclude stocks from netting.

Regards,

Nitin

Former Member
0 Kudos

Hi! Nitin,

I would be glad if you can give in information on want exactly you did to remove pegging in the BAdI method AFTER_NETTING because I tried to do the same as you mentioned in the last reply but enable to achieve it also I found that now even the new Plan Order also does not get generated as I told you before which was getting created in case of method PEGID_GET_IO.

Please if you can provide me with the detailed logic what exactly you did for the same.

Regards,

Mistry Wasim

nitin_thatte
Contributor
0 Kudos

we did not remove pegging.

What you want is as follows

Requirement = 100

Stock =10

Process order released = 30

Normally this process order will get pegged with requirement and Net Planned order will get created for 60

You want the pegging not to be considered and planned order to be created for 90.

If this is so, the method suggested by me will work. Here you won't remove pegging but achieve same result by adding the process Order quantity to the net quantity.

Regards,

I may not have exact logic in which it was done.

Nitin