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: 

COPA0005

Former Member
0 Kudos
1,226

Hi,

We have a requirement to modify the Division for CO-PA line item.

In the current Intercompany sales process, when I create a sales order and save it I am able to see the corresponidng CO-PA line items in KE24 using sale order number as a Reference document number.

I used the enhancement component COPA0005(EXIT_SAPLKEII_001) and added the code to determine the correct Division for Co-PA line item from Ztable.

I want to test this user exit for Sales and Distribution data coming to CO-PA. So I created sales order and when I save the sales order the program is not stopping at the stop point I put in user exit code.

I have created the project in CMOD and assign the enhancement COPA0005 to it and activated it.

Can anyone tell me if I am using the correct enhancement component? If yes,how to stop the program at the user exit code in debugging mode?

Thanks

Bhasker

1 ACCEPTED SOLUTION

Former Member
0 Kudos
377

Hi Bhasker,

I'm afraid that you have to change your plan.

COPA0005 is triggered during transfer from accounting document to COPA document, so if you directly post from SD it will never be executed.

I'm not aware of enhancements placed during transfer SD - COPA, but maybe someone in this forum knows more.

2 REPLIES 2

Former Member
0 Kudos
378

Hi Bhasker,

I'm afraid that you have to change your plan.

COPA0005 is triggered during transfer from accounting document to COPA document, so if you directly post from SD it will never be executed.

I'm not aware of enhancements placed during transfer SD - COPA, but maybe someone in this forum knows more.

0 Kudos
377

Hi Paolo,

Thanks for your reply,

My requirement is not only for Sales Orders, but also for Puchase Orders

I need to derive the Division from PO and modify it for CO-PA line item.

So I need a user exit which should be triggered whenever a Intercompany Sales Order or Puchase Orders is created.

Thanks

Bhasker