Skip to Content
-6

I saw this piece of code involving ASSIGN COMPONENT in a program and don't know what it does?

It looks like this:

ASSIGN COMPONENT something-field1 of STRUCTURE struct_example to <field_sym>

What exactly is this statement doing and assigning to the <field_sym>?

Is it implying that 'something' is related to 'struct_example' in some way?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • 2 days ago

    Ask your support to repair the F1 key on your keyboard.

    Add comment
    10|10000 characters needed characters exceeded

    • Raymond,

      F1 keys are like automobile turn signals: just because they exist doesn't mean the driver will ever use them.

  • Try reading the ABAP help on the statement.

    Add comment
    10|10000 characters needed characters exceeded

  • 3 days ago

    its assign component name ( which is value in something-field1 ) of structure struc_example to field symbol, that what supposed tobe...

    Add comment
    10|10000 characters needed characters exceeded