2005 Nov 11 1:28 PM
Hi all,
how to send message from BADI's method
(I am using BADI ME_PROCESS_PO_CUST method CHECK.)
Robert
Message was edited by: Robert Bouchard
Hi all,
how to send message from BADI's method
(I am using BADI ME_PROCESS_PO_CUST method CHECK.)
Robert
Message was edited by: Robert Bouchard
2005 Nov 11 3:55 PM
Hi ,
First write a include like :
INCLUDE mm_messages_mac.
check whether the field is valid
SELECT SINGLE * FROM tbsg INTO ls_tbsg WHERE bsgru EQ ls_customer-badi_bsgru.
IF NOT sy-subrc IS INITIAL.
mmpur_metafield mmmfd_cust_01.
mmpur_message_forced 'E' 'ME' '083' text-004 '' '' ''.
Check sample code.
This will work.
2005 Nov 11 4:07 PM
HI Lanka
And wich type for structure "ls_customer" ?
Message was edited by: Robert Bouchard
2005 Nov 11 5:00 PM
Hi Robert,
use this:
data : ls_customer TYPE mepo_badi_exampl.
It is working for me.
Please let me know your problem is resolved.
Message was edited by: Lanka Murthy
2005 Nov 11 3:59 PM
Hi Robert,
this BAdI does not have any RETURN parameters.. so one option could be trying to dispaly the message directly with the MESSAGE statement.. try ur luck,
Suresh Datti
2005 Nov 11 4:16 PM
2005 Nov 11 4:33 PM
see the documentation of the method check.
In this documentation there is a link to
Metafield and Error Handling
I hope this will help you
Sometimes the statment message doesn't work in BADI.
You have to use BDT /BTE or try with Metafield and Error Handling
bye
Message was edited by: Enzo Porcasi
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |