Internal table to field symbols

0 pts.
Tags:
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 ...
ASKED: May 19, 2005  11:27 PM
UPDATED: May 20, 2005  3:29 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

***

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following