07-12-2006 1:12 PM
Hi ABAP Guru's
I want to Capture MIGO warning and errors while checking
or posting MIGO into my internal tables and Z-table for a control report .
Is there any BAPI of FM available for the same.
Please share your knowledge.
Thanx
07-12-2006 1:16 PM
Hi Amol,
Try with the BAPI BAPI_MESSAGE_GETDETAIL
If useful reward points.
Regards,
Vasanth
07-12-2006 1:17 PM
Hello,
Can you please tell me whether you want to display warning and error messages in your report.
Because all those messages can be captured at runtime of MIGO. In your report you are doing some BDC's to POST or any BAPI's .
Best Regards,
Krishna
07-12-2006 1:17 PM
If you are using BDC, you cauld use addition:
... MESSAGES INTO itab
If you are using BAPI, you can use RETURN table, messages will be stored inside.
To construct message text you can use FM MESSAGE_PREPARE.
Regards.
07-12-2006 1:17 PM
The RETURN tables parameter will have the messages ready for you in the bapi: BAPI_GOODSMVT_CREATE.
Regards,
ravi
07-12-2006 3:57 PM
Hi,
I am using BDC to save migo.
I have tried " MESSAGES INTO itab "
It is capturing the messages of status bar
but I want to capturing the warnings and the error msg
which comes on check or posting time.
07-12-2006 4:02 PM
Hey,
If you are using MESSAGES INTO itab, itan should contain all the messages issued during the transaction i.e. messages of type I,W,S,E.
After collecitng the messages in ITAB you need to build the message text from the message id, number and the message variables using the function MESSAGE_TEXT_BUILD.
-Kiran
*Please mark useful answers