0 pts.
 Internal table to field symbols
ERP
I have following piece of code. ( Field-symbol <data> which is a workarea of <it_disptab> ) now I want to transfer the data of i_wbs of selectively fields to <data>, how do i do that? In the following code, system stores garbage value if the datatype of field of <data> is curr. The structure of <data> and i_wbs is not same. Data : begin of i_wbs occurs 0, Pspnr like prps-pspnr, Posid like prps-posid, Wtges like coep-wtges, End of i_wbs. LOOP AT i_wbs. MOVE i_wbs TO <data>. APPEND <data> TO <it_disptab>. ENDLOOP. Best Regards Sangom ...

Software/Hardware used:
ASKED: May 19, 2005  11:27 PM
UPDATED: May 20, 2005  3:29 AM

Answer Wiki:
Hi, that would be a simple way to code it, I guess: *** data: lt_table type table of struc. field-symbols: <wa> type struc. loop at lt_table assigning <wa>. write: <wa>-field1, <wa>-field2. endloop. ***
Last Wiki Answer Submitted:  May 20, 2005  3:29 am  by  MyITMCS   0 pts.
All Answer Wiki Contributors:  MyITMCS   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _