Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9236

Re: For all entries sorting problem

$
0
0

Hi,

 

You are getting given output in shown format because row, pernr is key field.

If you want the output in desired format then create 1 more internal table ITBA3 with three field-row, pernr, test_column.

 

sort it_test_table by pernr.

Loop on it_pernr into wa_pernr.

wa_itab3-row = wa_pernr-row.

wa_itab3-pernr = wa_pernr-pernr.

read table it_test_table into wa_test with key pernr =  wa_pernr-pernr.

if sy-subrc eq 0.

wa_itab3-test_column = wa_test-test_column.

endif.

 

if wa_itab3 is not initial.

append wa_itab3 to it_tab3.

endif.

 

clear:wa_itab3, wa_pernr, wa_test.

endloop.

Now your it_tab3 is desired output.

 

If you have any query, let me know.

 

Regards,

Sudeesh Soni


Viewing all articles
Browse latest Browse all 9236

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>