on ‎2013 Apr 26 3:32 AM
Hi experts,
I implement BADI ME_PROCESS_PO and make some check in method IF_EX_ME_PROCESS_PO~PROCESS_ACCOUNT.
In this method I give an error message using:
mmpur_message 'E' '/FMFMS/FM' '041' '' '' '' ''.
But when I save the error PO it can also be saved.
will you please kindly tell me how to solve the problem?
Best regards,
Tracy
Request clarification before answering.
Try a code like
mmpur_metafield mmmfd_cost_ctr.
mmpur_message_forced 'E' 'ZFSM' '425' ls_accounting-kostl ' ' ' ' ' '.
im_account->invalidate( ).
Regards,
Raymond
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Tracy ,
That POs are saved as HELD Purchase Orders , if you need to restrict creation of HELD POs you need to implement ME_HOLD_PO BADI.
Check the below thread ,
http://scn.sap.com/message/10471722
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tracy,
May be you need to have a hard error which will actually stop the processing thereby preventing the error PO from getting saved.
Thanks
Vinay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To add custom error message into PO screen:
mmpur_message_forced 'E' '<msgid>' '<msgno>' lv_msgv1 lv_msgv2 lv_msgv3 lv_msgv4.
To stop PO from saving:
IF sy-ucomm EQ 'MESAVE'.
"Prompt data incomplete dialog screen with 'Hold' button
MESSAGE e000(mepo).
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 36 | |
| 27 | |
| 21 | |
| 4 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.