Quantcast
Viewing all articles
Browse latest Browse all 2740

Re: Table Comprehensions with Corresponding and Modifying

Hi Michael,

 

i think you can solve this with an auxillary let binding and the base addition of corresponding.

 

Like this:

 

lt_target =VALUE#(FOR wa IN lt_source
                            INDEXINTO index
                            LET base =VALUE t_struct2( field3 = index )
                            IN(CORRESPONDING#(BASE( base ) wa ) ) ).

cl_demo_output=>display( lt_target ).

 

results in:

 

Image may be NSFW.
Clik here to view.
2015-09-12 12_47_30-DVE(1)_010 Output.png

 

Regards Christian


Viewing all articles
Browse latest Browse all 2740


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