Skip to Content
0
Former Member
Jun 03, 2010 at 09:10 AM

select endselect collect

125 Views

 data: wa_lqua like line of t_lqua.
if t_main[] is not initial.
  SELECT matnr charg lgnum verme einme ausme FROM lqua INTO wa_lqua
  FOR ALL ENTRIES IN t_main
  WHERE matnr = t_main-idnrk AND
        charg = t_main-charg AND
        lgnum = p_lgnum
        AND lgtyp = 'PMI'.
  collect wa_lqua into t_lqua.
  endselect.
endif.

Will this code function correctly ?.I am asking because i cant test in DEV as i have no case.

verme,einme,ausme are quantities will they be added for every unique matnr,charg,lgnum ?