Hi Raghavendra,
Yes, we can get PSA reqeust Id in transformation at run time, here the code.
DATA: t_requid TYPE rsbkrequid,
t_requid30 TYPE rsrequid,
t_t_psa TYPE rsds_t_rsdsseg,
t_logsys TYPE rsslogsys,
t_datasource TYPE rsoltpsourcer.
CALL METHOD p_r_request->get_requid RECEIVING r_requid = t_requid. (10 length ID)
CALL METHOD p_r_request->get_requid30 RECEIVING r_requid30 = t_requid30.(30 Length ID)
CALL METHOD p_r_request->get_t_psa RECEIVING r_t_psa = t_t_psa. (PSA name)
CALL METHOD p_r_request->get_logsys RECEIVING r_logsys = t_logsys.(source system name)
CALL METHOD p_r_request->get_datasource RECEIVING r_datasource = t_datasource. (datasource name)
Now, t_requid and t_requid30 id will be available at run time.
By using IF CONDITION you can write logic accordingly.
Hope, it will help for you.
Thank you,
Nanda