Skip to Content
0

[ABAP] Check Transport Request

Nov 23, 2016 at 09:08 AM

137

avatar image

Hi Guys,

I would like to check in ABAP, the status of a Transport Request, specially if the importation has been executed to the next target (RC status (red, green, yellow icons...)).

Thank you in advance.

Best regards.

Rachid.

1-vol.jpg (135.6 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Raymond Giuseppi
Nov 23, 2016 at 10:42 AM
0

try FM TR_READ_GLOBAL_INFO_OF_REQUEST.

* Include
TYPE-POOLS: ctslg.
* Local data
DATA: es_cofile TYPE ctslg_cofile,
      system TYPE ctslg_system,
      step TYPE ctslg_step,
      action TYPE ctslg_action.
* Get transport requeststatus
CALL FUNCTION 'TR_READ_GLOBAL_INFO_OF_REQUEST'
  EXPORTING
    iv_trkorr = p_record-trkorr
  IMPORTING
    es_cofile = es_cofile.
* Loop at returned deep structure
LOOP AT es_cofile-systems INTO system. " System
  LOOP AT system-steps INTO step. " step (e.g. ddic import tp executoin of report)
    LOOP AT step-actions INTO action. " for every import execution
    ENDLOOP.
  ENDLOOP.
ENDLOOP.

Every structure returned (system, step or action) carries a return code (rc)

Regards,
Raymond

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Perfect!

Thanks a lot.

Rachid.

0