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: 

ME_PROCESS_REQ_CUST method CHECK call twice

Former Member
0 Kudos

Dear Guru's

I have searched low and high in SCN for a solution to my problem with method CHECK in badi ME_PROCESS_REQ_CUST called twice.

There are many threads, but none seems to solve my isuue.

How Do I make sure that me error message is only displayed once in the error log?

I tried to set a flag, but that is cleared with the second pass of the method.

Anyone have solved this?

Thanks in advance,

Tom

3 REPLIES 3

meenakshi_raina
Employee
Employee
0 Kudos

Did you try - Import/export using memory ID ?

This may help you. Try to set the value using this.

Regards

Meenakshi

Former Member
0 Kudos

Hi Thomas,

did you solve this issue? If not, this is my proposal:

Evaluate the ABAP callstack, it shows differences between the first call and subsequent calls.

Please see attachment for details.

Best regards

Udo

raymond_giuseppi
Active Contributor
0 Kudos

Usually I use some code similar to following sample to remove my previous message in PR/PO BAdI:


  mmpur_context mmcnt_context_badi.

  if data-id is initial.

    mmpur_remove_msg_by_context data-id mmcnt_context_badi.

  endif.

(where data is structure get from... get_data for current object, header/item/account)

Regards,

Raymond