11-23-2016 9:08 AM
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.
11-23-2016 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
11-23-2016 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
11-23-2016 11:16 AM