Skip to Content

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

field symbols

I have a code thar recover a table and modify some fields and modify the table, but when i use the assign instruction it gives me an error, can anybody help me please?

Thanks in advance,

regards

data: fld(50) value '((SAPLMEPO)pot[])'.

field-symbols: <fs1> type table.

data: wa_ekpo like ekpo.

assign (fld) to <fs1>.

loop at <fs1> into wa_ekpo.

wa_ekpo-mtart = 'ZSRV'.

clear: wa_ekpo-bstae,

wa_ekpo-kzabs.

modify <fs1> from wa_ekpo index sy-tabix.

endloop.

Tags:
replied

Hi Carl,

Are you sure, if this "((SAPLMEPO)pot[])" is an internal table?

During run time, the assign statement is trying to transfer this data to the field symbol.

If ((SAPLMEPO)pot[]) doesn't exist, then it will give an error.

Regards,

Ravi

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question