Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

field symbol read problem

Former Member
0 Likes
706

hi masters,

i have a statement like this.

MODIFY (p_table) FROM TABLE <ntab>.

now i have values in <NTAB> so how can i read this can anyone tel me pls?

thank you,

pasala.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
672

Hello Frn ,

read the given bewlo link ...it will help you to solve your problem .

http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb387a358411d1829f0000e829fbfe/content.htm

Thanks and Regards...

Priyank Dixit

Edited by: priyank dixit on Feb 5, 2010 8:39 AM

5 REPLIES 5
Read only

Former Member
0 Likes
673

Hello Frn ,

read the given bewlo link ...it will help you to solve your problem .

http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb387a358411d1829f0000e829fbfe/content.htm

Thanks and Regards...

Priyank Dixit

Edited by: priyank dixit on Feb 5, 2010 8:39 AM

Read only

Former Member
0 Likes
672

Hi pasalabasker,

this code will help you.


FIELD-SYMBOLS <lt_any> TYPE ANY TABLE.
FIELD-SYMBOLS <ls_any> TYPE ANY.

DATA:
  lr_data TYPE REF TO data,
  ls_mara TYPE mara,
  lt_mara TYPE STANDARD TABLE OF mara.

SELECT *
  FROM mara
  INTO TABLE lt_mara
  UP TO 10 ROWS.


ASSIGN ('LT_MARA') TO <lt_any>.

CREATE DATA lr_data LIKE LINE OF <lt_any>.

ASSIGN lr_data->* TO <ls_any>.

LOOP AT <lt_any> ASSIGNING <ls_any>.
  MOVE-CORRESPONDING <ls_any> TO ls_mara.
  WRITE: ls_mara-matnr, /.
ENDLOOP.

regards Marcel

Read only

0 Likes
672

hi Marcel,

thank you am almost their.

loop at <ntab> ASSIGNING <wa_ntab>.

MOVE-CORRESPONDING <wa_ntab> to lr_data.

ENDLOOP.

i have looped and lr_data should be like my <NTAB> when i see the declaration of <NTAB> it is declared as like this

field symbol : <ntab> TYPE STANDARD TABLE.

so how can i make the lr_data like <NTAB>.

your input is really appriciated.

Read only

0 Likes
672

CREATE DATA lr_data LIKE LINE OF <ntab>.
Read only

Former Member
0 Likes
672

answered and thank you all.