Application Development and Automation 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: 
Read only

data validation in internal tables

Former Member
0 Likes
289

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....

1 REPLY 1
Read only

Former Member
0 Likes
252

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 ?