2011 Oct 14 3:58 PM
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?
2011 Oct 14 4:40 PM
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.