Hi all,
I am calling the BAPI-'BAPI_MATERIAL_MAINTAINDATA_RT'. If it successfully executes with no errors , then FM 'BAPI_Transaction_COMMIT' is executed and in MM90 the log can be seen. But, when the BAPI executes with errors, I need to show the exact error message in the program. MM90 logs are not generated unless 'BAPI_TRANSACTION_COMMIT' is called.
for eg :
CALL 'BAPI_MATERIAL_MAINTAINDATA_RT'
........
IMPORTING
ls_return = ls_ret
........ .
IF ls_ret-type NE 'E'.
CALL 'BAPI_TRANSACTION_COMMIT'.
ELSE.
<????????>
ENDIF.
Is there any FM to retrieve the MM90 logs and how to use them in the program, if any ?
Thanks