Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to check common values of a table range(KOMV) and local custom range?

walkerist
Participant
0 Kudos
152

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 ].
0 REPLIES 0