Skip to Content
0
Former Member
Oct 11, 2005 at 08:43 AM

Assign Component ...

119 Views

Hi All,

With ASSIGN COMPONENT it's possible to do a 'horizontal' read from a structure. I'm looking for a solution to put back (the changed) value in the 'source' field.

Example :

LOOP AT itab.

DO x TIMES.

ASSIGN COMPONENT sy-index OF STRUCTURE wa_structure TO <f1>.

IF sy-subrc ne 0. continue. ENDIF.

new_value = <f1> + 1.

  • how to get this changed value back in original source field (wa_structure-field_x)

...

ENDDO.

ENDLOOP.

Thanks,

Rob Makelaar

The Netherlands