Skip to Content
0
Jun 21, 2007 at 06:55 AM

how do i get the fieldname of a component within a dynamic table ?

14 Views

Hi friends,

i have a question regarding the following bit of code i have:

DO.
      ASSIGN COMPONENT sy-index OF STRUCTURE <dyn_wa> TO <dyn_field>.
      IF sy-subrc <> 0.
         ...
      ELSE.
         ...
      ENDIF.
ENDDO.

I get the content of the field assigned to <dyn_field> but how do i get the name of the component ( in this case the fieldname ) ?.

Regards, i will give points immediately and generously for sure!

Clemens