Skip to Content
0
Former Member
Jan 18, 2016 at 03:49 AM

Moving data from Field-symbol to String

2511 Views

Hello Guru's,

I build my logic with dynamic internal table concept.

In ordered to save data in Application server. I want to convert/Move

data from field symbol (<FS> TYPE ANY ) to string type.

My Dynamic table declarations are as below:

-----------------------------------------------------------------

FIELD-SYMBOLS:

<FS_IT_OUTPUT> TYPE STANDARD TABLE,

<FS_WA_OUTPUT> TYPE ANY,

<FS1> ,

<FS2> ." TYPE any TABLE.



Sample code:


LOOP AT <FS_IT_OUTPUT> ASSIGNING <FS_WA_OUTPUT>.


"Here i want to move field symbol work area to any String

" so that i can save that data into Application server.

****************************************************

* Logic which i followed and failed are commented.

* ASSIGN COMPONENT WA_COMP_FLD-NAME OF STRUCTURE <FS_WA_OUTPUT1> TO <FS1>.

* ASSIGN <FS_WA_OUTPUT1> TO <FS1>.

* MOVE <FS1> TO LW_RAW.

* LW_RAW = <FS1>.

* CLEAR LW_RAW.

* LW_RAW = <FS_WA_OUTPUT1>.

* TRANSFER LW_RAW TO P_TARGET_FNAME .

"NO END OF LINE.

****************************************************

ENDLOOP. "LOOP AT <FS_IT_OUTPUT1> INTO <FS_WA_OUTPUT1>.




Please advise and do the needful.


Thanks in Advance.


Regards,

Sankarbabu