2022 Nov 08 4:40 PM
Hi, I have created a set that contains multiple KSCHLs. However I was having problem with my code below regarding lx_komv. I want to populate the lx_komv if the t_komv-kschl is equal to the kschl inside the lr_kschl.
DATA(lo_utility) = NEW zcl_abaputility( ).
IF lo_utility IS BOUND.
"Get Condition Type
lo_utility->get_set(
EXPORTING
im_setname = lc_kschlset
IMPORTING
ex_set = DATA(lr_kschl)
).
ENDIF.
*I want to populate the lx_komv if the t_komv-kschl is equal to the kschl inside the lr_kschl.
lx_komv = t_komv[ kschl = lr_kschl-kschl
kposn = lx_gendata-itm_number ].