Skip to Content
0
Former Member
Apr 23, 2009 at 03:07 PM

assign a value to field-symbols component

36 Views

Hello Experts,

I am facing a problem which it is almost unsolveable to me. I need some help.

In the below shown code I am trying to assign field symbols component

a value. But have problem with it. Please see after the line IF sy-subrc = 0

in the below shown code.

Thx in advance

Reagrds

Sw++

FIELD-SYMBOLS: <outtab> TYPE STANDARD  TABLE,
                            <l_line>   TYPE ANY,
                            <l_line_>  TYPE ANY,
                            <fs_out>   TYPE ANY.

  FIELD-SYMBOLS: <lt_ss> TYPE table,
  <test> TYPE ANY,
  <test_> TYPE ANY.

IF <outtab> IS ASSIGNED.
    SELECT * FROM zmc_cat INTO TABLE it_zmc_cat .
    LOOP AT <outtab> ASSIGNING <l_line_>.
      ASSIGN COMPONENT 2 OF STRUCTURE <l_line_> TO <test_>.
      READ TABLE it_zmc_cat INTO wa_zmc_cat WITH KEY description = <test_>.
      IF sy-subrc = 0.

     * Right here I want to assign to <l_line_> ' s first component this value "wa_zmc_cat -org_sign."

      ENDIF.
    ENDLOOP.
  ENDIF.