Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

How can i send an error message at EXIT_SAPMM06E_013 ?

$
0
0

Hi

 

I'm making some validations to Vendor and Partner Functions (table control in 'Partners' Strip) in Creting/Changing Purchase Orders (ME21N/ME22N). 

 

I know the suitable user exit is EXIT_SAPMM06E_012 for making validation before saving, but this exit does not has (receive) the table with Partner Functions so i could validate them.

 

Then I use the Exit _013, wich executes when saving the PO, because this exit has the captured Partners table (XEKPA).

 

But, when i make the validations and try to send a error mesage,  the system shows other message type info (window) like 'The requested object is locked by another transaction' and then another like 'System error (error in method PO_POST)'.

 

I think this it's because the exit _013 is better suitable to make customer updates and not validations, that it's because just passing by MESSAGE Ennn(cc) command makes the methods catch my error and send other errors and close the transaction.

 

Does somebody can help me ??

 

How can i send error messages in exit _013 ??

Or is this incorrect ??

 

Or in wich User Exit can i validate the Partner Functions ??

 

I really will aprettiate if somebody can help me, because i'm delayed with my development !!

 

Regards


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>