Skip to Content
0
Feb 17, 2009 at 07:19 PM

Read in Field symbols

12 Views

All,

I have field symbols that createby way of dynamic internal table. i need to check for a field value

    i_ref_descr ?= cl_abap_typedescr=>describe_by_data( i_yfe075_2 ).
    i_details[] = i_ref_descr->components[].
    i_ref_descr1 ?= cl_abap_tabledescr=>describe_by_data( <wa_status_t> ).
    i_details1[] = i_ref_descr1->components[].
    loop at i_yfe075_2.
      " Here <i_status> contains the fields FIELDNAME & TABNAME , i need to check for <i_status>
      " records whether exist or not for values of i_yfe075_2-fieldname & i_yfe075_2-tabname
      if sy-subrc ne 0.
        move-corresponding i_yfe075_2 to <wa_status_t>.
        append <wa_status_t> to <i_status>.
      endif.
    endloop.

Any info?

PS : Please remember i don't want to loop to and check for record