09-19-2016 3:22 AM
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~!
09-19-2016 9:59 AM
You could look for a fiel like COPA_AWTYP in I_COPA_ITEM or even analyze the call stack (SYSTEM_CALLSTACK)
Regards,
Raymond
09-19-2016 9:59 AM
You could look for a fiel like COPA_AWTYP in I_COPA_ITEM or even analyze the call stack (SYSTEM_CALLSTACK)
Regards,
Raymond
09-19-2016 10:41 AM
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.
09-19-2016 12:09 PM
You could look at cost element (KSTAR, table CSKA), primary should be FI andsecondary CO?