Skip to Content

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

Assign problem

Hello everybody,

im having a problem using the assign statement.

This is what i need:

I have a structure at runtime called "S_TEST". This structure has 3 fields. A, B and C. A has the value 10, B is 20 and C is 30.

Now i have a internal table called "it_test". Which holds all the fieldname of structure "S_TEXT".

- A

- B

- C

What i need now is, when i loop over "it_test" to get the corresponding value of each fieldnames.

regards,

Markus

Tags:
Former Member
replied
LOOP AT it_test.
  CONCATENATE 'S_TEXT-' it_test-fieldname INTO v_itab_field.
  CONDENSE v_itab_field NO-GAPS.
  TRANSLATE v_itab_field TO UPPER CASE.
  ASSIGN (v_field_name) TO <fs>.
  ... do something....
ENDLOOP.
0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question