2007 Oct 01 11:54 PM
Hi experts,
I am new to BAPI.
Can anyone tell me " How to catch error in BAPI ".
Thanks,
Shipra
2007 Oct 02 12:00 AM
Hi,
In the BAPI return internal table you have to check for the Error or ABort message types..
Ex..
Check for error or abort messages
LOOP AT T_RETURN WHERE TYPE = 'E' OR TYPE = 'A'.
EXIT.
ENDLOOP.
IF SY-SUBRC = 0.
WRITE: / 'Exception occured'.
ELSE.
WRITE: / 'Update is successful'.
ENDIF.
Thanks
Naren
Hi,
In the BAPI return internal table you have to check for the Error or ABort message types..
Ex..
Check for error or abort messages
LOOP AT T_RETURN WHERE TYPE = 'E' OR TYPE = 'A'.
EXIT.
ENDLOOP.
IF SY-SUBRC = 0.
WRITE: / 'Exception occured'.
ELSE.
WRITE: / 'Update is successful'.
ENDIF.
Thanks
Naren
2007 Oct 02 12:00 AM
Hi,
In the BAPI return internal table you have to check for the Error or ABort message types..
Ex..
Check for error or abort messages
LOOP AT T_RETURN WHERE TYPE = 'E' OR TYPE = 'A'.
EXIT.
ENDLOOP.
IF SY-SUBRC = 0.
WRITE: / 'Exception occured'.
ELSE.
WRITE: / 'Update is successful'.
ENDIF.
Thanks
Naren
2007 Oct 02 12:39 AM
Hi Shipra,
Refer below link
http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/content.htm
Regards,
Atish
2007 Oct 02 8:11 AM
In Return parameter you will error details..
their type, med ID, etc...see its structure in debugging and definitely u ll get more idea..
regards
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |