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: 

Planned Ord. to Production Order User Exit (PPCO0005)

Former Member
0 Kudos

Hi Guys,

I am trying to change the Storage location field on the GOODS RECEIPT tab in transaction CO40. I get there using MD04 and change a planned order to a production order.

The user-exit that sap recommends (PPCO0005) works fine to change the storage location for the components of the production order. It does NOT change the actual storage location of the production order.

The storage location of the actual production order is found under the GOODS RECEIPT tab of the production order. Any thoughts on what could be done to change the actual storage location of the production order. Is there any other user-exit that comes to mind?

Also, I changed the storage location in the PLAF table for the planned order in user-exit PPCO0005. This works when the production order is displayed again. It does not display the changed location the FIRST time the order comes up. Any ideas on how to make the screen field change it value. The screen field is AFPOD-LGORT.

Regards,

Salil

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You might consider calling CO_BI_AFPO_GET to retrieve the AFPOD structure and then call CO_BI_AFPO_UPD to update it. Don't think this is necessarily recommended by SAP, but it might work.

6 REPLIES 6

Former Member
0 Kudos

You might consider calling CO_BI_AFPO_GET to retrieve the AFPOD structure and then call CO_BI_AFPO_UPD to update it. Don't think this is necessarily recommended by SAP, but it might work.

0 Kudos

Thanks Dave. I ended up creating an enhancement option to change the screen field AFPOD-LGORT to what I wanted. I used a implicit enhancment using the enhancement builder.

0 Kudos

Hi salild1,

what enhancement option name u use to put your code? I am having the same problem like you.

Thanks.

0 Kudos

Hi Julius,

I used an implicit enhancement in include LCOSDF36 under the form TRANSFER_DATA_PLANNED_ORDER. The enhancement builder allows you to change standard SAP code without creating a project via CMOD.

If you are on ECC versions of SAP you could use it. Go to include LCOSDF36 and switch 'on' the builder via the menu path.

If you are on older versions of SAP, you will have to locate a user-exit for PP. There are several of them available. You could also search right here on SDN.

Let me know if you have any other questions.

Kindly,

Salil

0 Kudos

Hi Salil,

Thanks for your answer. When I create the Production Order using t-code CO01, after I fill in all the data, when I save it.. Somehow it didnt trigger the form u mentioned to me before. I already put break-point inside the enhancement.

'If you are on ECC versions of SAP you could use it. Go to include LCOSDF36 and switch 'on' the builder via the menu path.' <- what do you mean by switch 'on' the builder via the menu path?

Can you give me the sample code you are using, including which enhancement you are using. Thanks alot.

Regards,

Julius

Edited by: Julius Tanuy on May 20, 2009 11:28 PM

0 Kudos

Julius,

Was the issue solved?

-Salil