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: 

Function module to read transport log into internal table

Former Member
0 Kudos

Hi,

I have a need to read the detailed transport log into internal table. Any direction to solve this task is appreciated.

5 REPLIES 5

Former Member
0 Kudos

Check table E070

former_member181966
Active Contributor
0 Kudos

Try Fm

TMS_UI_SHOW_TRANSPORT_LOGS

LXE_LOG_FILL_R3_TRANSPORT

<b>Table

TMSALOG </b>

Hope this’ll give you idea!!

<b>P.S award the points.</b>

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

0 Kudos

No need for a function module, transport logs are files on the application server. You can use DATASET to read the files.



report zrich_0001 .

data: ds type localfile value '/usr/sap/trans/log/TSTE909704.TST'.

data: itab type table of string with header line.


start-of-selection.

  open dataset ds for input in text mode.
  if sy-subrc = 0.
    do.
      read dataset ds into itab.
      if sy-subrc <> 0.
        exit.
      endif.
      append itab.
    enddo.
  endif.
  close dataset ds.


  loop at itab.
    write:/ itab.
  endloop.


Welcome to SDN! Please remember to award points for helpful answers and to mark you post as solved when solved completely. THanks.

Regards,

Rich Heilman

nishanthbhandar
Contributor
0 Kudos

Try these fucntion modules in conjunction ..

RS_TREE_GET_MARKED_NODES

TRINT_TDR_USER_COMMAND

RS_WORKING_AREA_ACTIVE_CHECK

RS_TREE_EXPAND

<i><b>Please reward helpful answers</b></i>

Cheers

Nishanth

ferry_lianto
Active Contributor
0 Kudos

Hi Showry,

Please check this standard program <b>RSTMSTPL</b>.

Hope this will help.

Regards,

Ferry Lianto