2007 Aug 29 3:29 PM
Hi Guys,
What is the syntax for displaying only error messages for BAPIRET2_T
CALL FUNCTION 'xxxxxxxxx'
EXPORTING
..................
IMPORTING
ET_RETURN = itab_bapiret2_t.
LOOP AT itab_bapiret2_t
INTO wa_bapiret2_t.
WRITE 😕 gw_bapiret2-MESSAGE. "This displays all the messages
ENDLOOP.
Thanks in Advance
2007 Aug 29 3:46 PM
CALL FUNCTION 'xxxxxxxxx'
EXPORTING
..................
IMPORTING
ET_RETURN = itab_bapiret2_t.
LOOP AT itab_bapiret2_t
INTO wa_bapiret2_t where type eq 'E'.
WRITE 😕 gw_bapiret2-MESSAGE. "This displays Error Messages
ENDLOOP.
Hi Guys,
What is the syntax for displaying only error messages for BAPIRET2_T
CALL FUNCTION 'xxxxxxxxx'
EXPORTING
..................
IMPORTING
ET_RETURN = itab_bapiret2_t.
LOOP AT itab_bapiret2_t
INTO wa_bapiret2_t.
WRITE 😕 gw_bapiret2-MESSAGE. "This displays all the messages
ENDLOOP.
Thanks in Advance
2007 Aug 29 3:32 PM
Hi Madhu,
Use the following
Read table itab_bapiret2_t into wa_bapiret2_t with key
TYPE = ' E '.
if sy-subrc EQ 0.
write:/ wa_bapiret2-Message.
Endif.
Reward points if helpful.
David.
2007 Aug 29 3:35 PM
If you are expecting multiple error messages then
LOOP AT itab_bapiret2_t
INTO wa_bapiret2_t where Type = ' E '.
WRITE 😕 gw_bapiret2-MESSAGE. "This displays all the messages
ENDLOOP.
Reward points if helpful.
David.
2007 Aug 29 3:34 PM
Hi,
You have to filter by message type = 'E'.
Something like:
LOOP AT itab_bapiret2_t WHERE type = 'E'.
INTO wa_bapiret2_t.
WRITE :/ gw_bapiret2-MESSAGE. "This displays all the messages
ENDLOOP.Hope it helps.
Regards,
Carlos Constantino
2007 Aug 29 3:46 PM
CALL FUNCTION 'xxxxxxxxx'
EXPORTING
..................
IMPORTING
ET_RETURN = itab_bapiret2_t.
LOOP AT itab_bapiret2_t
INTO wa_bapiret2_t where type eq 'E'.
WRITE 😕 gw_bapiret2-MESSAGE. "This displays Error Messages
ENDLOOP.