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: 

[ABAP] Check Transport Request

Former Member
0 Kudos

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 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

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

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

Perfect!

Thanks a lot.

Rachid.