How to derive Update Mode & Request ID in the Transformation
In Implementation or Support projects we all will have requirement where we might need to derive the Update mode in the Transformation.
Below is the code which would give the update mode.
DATA: LV_UMODE TYPE RSUPDMODE.
CALL METHOD P_R_REQUEST->GET_UPDMODE
R_UPDMODE = LV_UMODE.
LV_MODE now will hold F or D based on the Which DTP we execute.
Finding the Request ID of the Current load, we can use below code.
DATA: N_REQUID TYPE RSBKREQUID.
CALL METHOD P_R_REQUEST->GET_REQUID
R_REQUID = N_REQUID.
N_REQUID will store the Request ID
Hope it helps.