Skip to Content
avatar image
Former Member

[ABAP] Check Transport Request

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 23, 2016 at 10:42 AM

    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

    Add comment
    10|10000 characters needed characters exceeded