Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error during transport request import - how to get it's text at runtime?

Former Member
0 Kudos
113

Good day to you, Ladies and Gentlemen!

Would be glad if someone can give me an advice.

Suppose we are importing a transport request to a system. And an error occurred during import.

In my program I want to display why the transport failed. How can I get the error message text with description of what is wrong? The same we can see at the transport log?

1 REPLY 1

former_member209703
Active Contributor
0 Kudos
69

Hi

If you mean reading the Transport Log of a request you can use this FM



data: lines type table of TRLOG.

CALL FUNCTION 'TR_READ_LOG'
 EXPORTING
   IV_LOG_TYPE             = 'FILE'
   IV_LOGNAME_FILE         = '/usr/sap/trans_UE6/log/E7DG900147.UE6'
  TABLES
    et_lines                =  lines
 EXCEPTIONS
   INVALID_INPUT           = 1
   ACCESS_ERROR            = 2
   OTHERS                  = 3
          .

You just have to figure out which directory is you system using to store the Transport Logs. Also note that in this case UE6 it would be the logical name of your system and E7DG900147 the transport request number.