Skip to Content
0
May 15, 2018 at 02:58 PM

How to read the terminal name from SM20 via a BAPI

299 Views

Hi

I'm reading the SM20 data from SAP by using the FM "BAPI_SYSTEM_MTE_GETMLHIS".

From there I can get tables MSG_LINE_DATA, XMI_MSG_RAW and XMI_MSG_EXT.

When reading that I can see the SM20 date and timestamp, transaction, user, etc.

By I cannot see the terminal name. I see the terminal when looking at SM20 in the SAPGUI but I don't know how to read it from BAPI.

Do anyone know if there is a FM or BAPI that I can use to get that?