Skip to Content
0
Former Member
Jul 22, 2016 at 04:15 AM

How to Retrieve MM90 logs in the report program

1414 Views

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