Skip to Content
0
Former Member
Jul 15, 2008 at 03:23 PM

help in field symbols

28 Views

Hi,

i do dynamic select and i wont use dynamic work area

that i can update table how i can do that?

i try like this but i have error .

Regards

e.g.

FIELD-SYMBOLS: <l_act> TYPE ANY.



SELECT (field_selection)
  FROM datab
  INTO TABLE <dyn_actual>
  AND dim0calmonth IN g_months_act.

   IF  a_flag = 'X'.
    CREATE DATA dy_line LIKE LINE OF  it_acl.
    ASSIGN dy_line->* TO <l_act>.
  ELSE.
    CREATE DATA dy_line LIKE LINE OF a_type.
    ASSIGN dy_line->* TO <l_act>.
  ENDIF.


  LOOP AT <dyn_actual> ASSIGNING <l_act>.

    <l_act>-change_fld =  ( <l_act>-kyf0hdcnt_last02 / <l_act>-kyf0hdcnt_last02 ) * 100.
  ENDLOOP.

the erorr i get :

The data object "<L_ACT>" has no structure and therefore no component called "KYF0HDCNT_LAST02". called "KYF0HDCNT_LAST02".

i have field KYF0HDCNT_LAST02 in <dyn_actual> .