cancel
Showing results for 
Search instead for 
Did you mean: 

Capture the PR details in Internal table while releasing the PM Order

0 Kudos
147

Hi

We have requirement where User wants to capture the all PR details in Enhancement tab of work order, so that when ever there is changes in the PR amount version will get capture in Z-table.
We have written the code under the Function "CO_ZV_ORDER_POST " using Enhancement Spot.

But the issue we are facing now is that it is picking only 1 operation and 1 component under(SAPLCOIH)AFVGD and (SAPLCOBC)RESBD) which contains the required data.

When the PM Work Order contain multiple operation and non stock component, it is not working as expected.

We have tried to use the user exit as well but PR number data is not available when exit is called.

Kindly help with correct internal which can be used or another place where PR number is available during Release of Order and before commit transaction execute.

raymond_giuseppi
Active Contributor
0 Kudos

Did you look at method IN_UPDATE of BAdI WORKORDER_UPDATE (which receives parameter tables it_operation and it_component, and previous values of those tables)

There is also a method BEFORE_UPDATE (but check first in debug if PR number are already defined)

Accepted Solutions (0)

Answers (1)

Answers (1)

peter_atkin
Active Contributor
0 Kudos

Rahul,

Try using the WORKORDER_UPDATE BADI - it has more import parameters.

You can also use the IBAPI* function modules.

PeteA