Application Development 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: 

Which user exit can be used to update component before Production Order saving?

Former Member
0 Kudos

Hi, I need check component data and set value to field "Unloading Point"(RESB-ABLAD) before Production Order saving in CO01/CO02/CO08/CO40/CO41 and so on.

I have tried user exit PPCO0001, but system only call use exit PPCO0001(Line 733 in FM CO_BT_ORDER_POST) after post Production Order(around line 477 in FM CO_BT_ORDER_POST), so use exit PPCO0001 is not useable for ths requirement.

For other user exits as PPCO00XX, the import and export parameter is not enough for component data update.

Do we have a good user exit for this requirement?

I also saw some ENHANCEMENT-POINT in FM CO_BT_ORDER_POST. Is this the only way to update component before Production Order saving?

7 REPLIES 7

former_member15255
Active Participant
0 Kudos

Hello liu

Try to make use of enhancement PPCO0007 (Exit when saving production order). This enhancement holds a structure which does not have the field mentioned in your query i.e. RESB-ABLAD(Unloading Point). But through method of stack programming you can achieve this goal of updating some value to unloading point.

Regards

Suresh Nair

frederic_r
Participant
0 Kudos

Hi,

you can use BADI  WORKORDER_UPDATE with Methode AT_SAVE

0 Kudos

Hi,

Please check - "WORKORDER_UPDATE" with method "AT_SAVE"

Regards,

RP Jaiswal

0 Kudos

Hello

BADi mentioned is correct, but method to be used is  IN_UPDATE.

Regards

Suresh Nair

0 Kudos

Hi, method IN_UPDATE will not be call when we saving Production Order, only BEFORE_UPDATE will be call. And BEFORE_UPDATE does't have any exception to raise.

However, the table parameters of BEFORE_UPDATE are all only Importing, not Changing, so we can not cange data here! For this reason, BADI WORKORDER_UPDATE is not useable for this requirement anymore.

Do we have a solution to change data before Production Order saving?

Former Member
0 Kudos

This message was moderated.

hubert_heitzer
Contributor
0 Kudos

Hi liu bin,

sry I cannot help you, but I have one question:

How do you set the value of RESB-ABLAD?

Are your reservation created automatically?

Maybe you can help me with my problem in

Regards,

Hubert