‎2006 Oct 20 9:41 AM
Hi,
I am trying to map 2 internal table for my final output.
but the values are differnt one contains storage location and other doesnt contain. How can we get output for all records. If i remove the logrt in loop stmt it is giving wrong values.
the table getting populating from Mseg and mkpf inner join. in that mseg dont storage location for many records. please help me
LOOP AT it_pulls INTO wa_pulls WHERE matnr = wa_rep_tab-matnr AND
werks = wa_rep_tab-werks AND
lgort = wa_rep_tab-lgort.
CLEAR wa_ptype.
READ TABLE it_ptype INTO wa_ptype WITH KEY bwart = wa_pulls-bwart.
IF wa_ptype-shkzg EQ 'H'.
wa_rep_tab-pulls = wa_rep_tab-pulls + ( wa_pulls-menge * -1 ).
ELSE.
wa_rep_tab-pulls = wa_rep_tab-pulls + wa_pulls-menge .
ENDIF.
ENDLOOP.
i AM modifying the final later few steps here....
‎2006 Oct 20 9:54 AM
Hello,
Can you please give some sample data in it_pull and wa_rep_tab, where you feel it is not working. As it is difficult to make out from your code and problem which table has the stloc and which does not ?