Application Development and Automation 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: 
Read only

Code?

Former Member
0 Likes
397

Hi,

Iam working one user exit COPA0005 function module EXIT_SAPLKEII_002.

Data would be looked up from the following tables and parameters:

CE100 : Operating Concern table for generated line items.

T_ITEM : Available table used for transfer parameter.

I_ERKRS : Import parameter in function module.

Conditions is :

1. Check if operating concern (I_ERKRS) is 0001 than go to step 2 else go to step

4.

2. Read CE100 table and verify value for Item Category (CE100-PSTYV).

3. If Item Category(CE100-PSTYV) is TAS Than change Warehouse cost value

field(CE100-VV504) value to 0.00 irrespective of its current value.

else don’t change value of warhouse cost value field(CE100-VV504) .

4. exit from function module.

This logic should be implemented for all line items in each billing document. E.g. if 5 line items are generated into COPA for one billing document step 1-4 need to be execute 5 times. Number of line items can be determined from T_ITEM table.

Any body helping the code?

Thanks & Regads

sudhakar

1 REPLY 1
Read only

Sougata
Active Contributor
0 Likes
359

COPA0005 is well documented. Did you go through it? This should be quite simple to implement.

Cheers,

Sougata.