on 06-04-2009 9:30 AM
Hi experts,
I'm using a Badi ME_PROCESS_REQ_CUST method PROCESS_ACCOUNT. When one check is true I show an error message at item level, but is possible posting (save) the document.
I would need something similar to Method PROCESS_ACCOUNT->INVALIDATE from Badi ME_PROCESS_PO_CUST.
Any sugestion?
Thanks in advance.
Regards,
David.
Hi David,
Did you finally solve this issue? I have the same problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Are you able to still save the doucment even though you are getting the error..
Could not et you properly, You can always use method CHECK to stop saving PO.
Thanks & Regards
KK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I use the Method PROCESS_ACCOUNT.
Previously when I obtained an error I launched the error message with this class
CALL METHOD cl_message_mm=>create
EXPORTING
im_msgid = id
im_msgty = msgty
im_msgno = NUMBER
im_msgv1 = MESSAGE_V1
im_msgv2 = MESSAGE_V2
im_msgv3 = MESSAGE_V3
im_msgv4 = MESSAGE_V4
im_force_collect = mmpur_yes
EXCEPTIONS
OTHERS = 0.
The error message is shown at item level, but save the document is possible.
Now when I obtain an error I follow the same steps, but I call the method Check.
IF NOT lv_error IS INITIAL.
CALL METHOD if_ex_me_process_req_cust~check
EXPORTING IM_HEADER = ob_header
im_hold = space
CHANGING ch_failed = lv_error.
ENDIF.
The variable CH_FAILED is changed to 'X', but it's not work fine.
Thanks,
David.
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.