Transformation ID during runtime
I'm trying to get the transformation ID of the transformation the DTP currently is processing. For better understanding an example:
I have a target DSO KTARGET and a source DSO KSOURCE. Both are linked in the following way KSOURCE -> TRFN1 -> INFOSOURCE -> TRFN2 -> KTARGET.
Using following source code I get both transformation IDs during runtime:
l_r_rsbk_dtp = cl_rsbk_dtp=>factory( l_v_logdpid ).
" Get object reference to active version
l_r_rsbk_dtp_a ?= l_r_rsbk_dtp->get_obj_ref_objvers( rs_c_objvers-active ).
l_t_tf = l_r_rsbk_dtp_a->if_rsbk_dtp_display~GET_T_TRANSFORMATION( ).
However, l_t_ft will contain two entries for both transformations that are contained in the DTP. How can I determine if my program is currently in transformation 1 or in transformation 2?
Thanks in advance,