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: 

Distinguishing Module while trigger an enhancement in CO-PA Derivation

Former Member
0 Kudos

Hi~ Experts.

I have a question about CO-PA Derivation Enhancement in function module EXIT_SAPLKEDRCOPA_001 Include ZXKKEU11.

My customer want to use FI validation for checking customer field which  entered in Profit Segment when direct posting from FI. but i could not get  the customer value which entered in profit segment at FI-validation. so i have to check it from CO-PA Derivation using  enhancement. but if i do this way it will be checked all processing whether it from FI direct posting or CO allocation .so i need to distinguish it in CO-PA derivation enhancement whether it from FI OR CO Module.

so is there have any approach to define  which module is it came from ?

I'd like to distinguish which module is it coming from like FI or CO or SD module except t-code .

Thanks for your help.

Best regards~!

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

You could look for a fiel like COPA_AWTYP in  I_COPA_ITEM or even analyze the call stack (SYSTEM_CALLSTACK)

Regards,

Raymond

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos

You could look for a fiel like COPA_AWTYP in  I_COPA_ITEM or even analyze the call stack (SYSTEM_CALLSTACK)

Regards,

Raymond

0 Kudos

Thanks very much for your reply, but when i was debuging, i could not see any value in COPA_AWTYP in I_COPA_ITEM and i called (system_callstack) function trying to find another valuable  value. but unfortunately i can't find appropriate value yet,So is there have any other approach

to resolve this?

thank you again~!

Best Regards.

Henry Shi.

0 Kudos

You could look at cost element (KSTAR, table CSKA), primary should be FI andsecondary CO?