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

Re: dynamic creation of structure

$
0
0

FIELD-SYMBOLS : <fs_it> TYPE STANDARD TABLE,    "Dynamic intenal table

                                <fs_wa>,                             "Dynamic work area

                                <fs_fvalue>  TYPE any.         "Component in work area


ASSIGN wa_structure->*    TO <fs_wa>.           "Dynamic work area

ASSIGN li_table->*            TO <fs_it>.              "Dynamic Internal Table


To fill data into work area...

ASSIGN COMPONENT 'BUKRS' OF STRUCTURE <fs_wa> TO <fs_fvalue>.

<fs_fvalue> = '1000'. "Company code

 

Append work area to itab.

APPEND <FS_WA> TO <FS_IT>.

 

Read table

READ TABLE <fs_it> INTO <fs_wa_1> WITH KEY ('BUKRS') = '1000'.


Viewing all articles
Browse latest Browse all 9063

Trending Articles



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