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

User Exit for COPA Characteristic Validation

Former Member
0 Likes
1,949

Hi,

During document posting via FB01/F-02, I need to validate characteristic in profit segment. Currently I'm using user exit ZXKNTU02, It is working fine. But I heard that it is not good to use that user exit as some standard tcode is also triggering that user exit.

I looked at user exit ZXKKEU05 but this one is getting triggered during PBO, this is not good because I need to issue an error message if the validation fails...

Hi,

During document posting via FB01/F-02, I need to validate characteristic in profit segment. Currently I'm using user exit ZXKNTU02, It is working fine. But I heard that it is not good to use that user exit as some standard tcode is also triggering that user exit.

I looked at user exit ZXKKEU05 but this one is getting triggered during PBO, this is not good because I need to issue an error message if the validation fails...

2 REPLIES 2
Read only

cnsuresh_babu
Explorer
0 Likes
1,006

Hello Marc,

I have a similar requirement for validating the characterstics to stop posting a COPA document based if certain charactersic has values like a pattern 151500*.

This is irrespective of FI or CO transactions.

Can you let know how this is done and where to include this exit ?

Rgds,

Suresh

Read only

0 Likes
1,006

Hi Suresh,

You can use this EXIT_SAPLKEDRCOPA_001. The structure for the COPA characteristic values is (SAPLKEDR)<COPA_ITEM>

Regards,

Marc