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

Re: Merge the rows in Internal Table

$
0
0

Yes. You check if each one of of the four fields YB01-YB04 is set to X. If yes, then you modify the only row in the table IT using the field symbol.

 

so you should have something like this inside the loop.

 

               read table temp with key user = <fs>-user 

                                                          yb01 = 'X'. 

               if sy-subrc is initial. 

                    <fs>-yb01 = 'X'. 

               endif.

 

               read table temp with key user = <fs>-user 

                                                          yb02 = 'X'. 

               if sy-subrc is initial. 

                    <fs>-yb02 = 'X'. 

               endif.


               read table temp with key user = <fs>-user 

                                                          yb03 = 'X'. 

               if sy-subrc is initial. 

                    <fs>-yb03 = 'X'. 

               endif.


               read table temp with key user = <fs>-user 

                                                          yb04 = 'X'. 

               if sy-subrc is initial. 

                    <fs>-yb04 = 'X'. 

               endif.


V.


Viewing all articles
Browse latest Browse all 3585

Trending Articles



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