Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

field symbols

hi i need a small clarification.

i declared field symbols as below.

field-symbols <fs_sample> type any.

data:it_vbak type hashed table of vbak with unique key vbeln.

data:it_obj type ref to data.

create object it_obj type it_vbak(or some type).

assign it_obj ->* <fs_sample>.

loop at it_vbak into <fs_sample>.

do some operation on field symbol for vbeln.

modify table it_vbak from <fs_sampe> transporting vbeln.

endloop.

here the subrc is getting as 4.

when remove the code

create object it_obj type it_vbak(or some type).

assign it_obj ->* <fs_sample>.

and change the assigninment like below

loop at it_vbak assigning <fs_sample>.

do some operation on field symbol for vbeln.

modify table it_vbak from <fs_sampe> transporting vbeln.

endloop.

it is working fine.

what is the difference b/w these two and y it is not getting updated in first case.please let me know.......

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question