Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9024

Re: Edit single row in list UIBB

$
0
0

hi jitin ,

I HAVE GET_COMPONENTS METHOD IN CL_ABAP_STRUCTDESCR WHICH WILL GIVE PROPERTIES OF FIELDS IN INTERNAL TABLE BUT I DON'T HAVE ANY THING LIKE THAT IN CL_ABAP_TABLEDESCR. WHEN I USE

 

   eo_field_catalog ?=  cl_abap_tabledescr=>DESCRIBE_BY_DATA( lt_mara ) .


NOW HOW TO GET THE FIELD PROPERTIES OF EACH FIELD THERE IS NO METHOD LIKE

GET_COMPONENTS IN  CL_ABAP_TABLEDESCR.  THEN I TRIED BELOW BUT IT IS THROWING SOME ERROR.

 

class ZCL_FPM_LIST_GUIBB_EXE1 definition

   public

   final

   create public .

 

public section.

 

   interfaces IF_FPM_GUIBB .

   interfaces IF_FPM_GUIBB_LIST .

   types :begin of ty_mara,

          matrn type matnr,

          matrn_ro_ref type char1,

          maktx type maktx,

          maktx_ro_ref type char1,

         end of ty_mara.

   data:lt_mara type TABLE OF ty_mara.


CODE IN GET_DEFINITION:


data:

         lo_structdescr type REF TO cl_abap_structdescr,

        ls_field_description type fpmgb_s_listfield_descr,

        ls_action_definition type fpmgb_s_actiondef,

        lt_comp type abap_component_tab,

        ls_comp type abap_componentdescr.

 

  lo_structdescr ?= cl_abap_typedescr=>DESCRIBE_BY_DATA( lt_mara ).

 

CALL METHOD CL_ABAP_TABLEDESCR=>CREATE

   EXPORTING

     P_LINE_TYPE  = lo_structdescr.

 

 

lo_structdescr ?= cl_abap_typedescr=>DESCRIBE_BY_DATA( lt_mara ). WHILE EXICUTING THIS LINE I AM GETTING ERROR

 

ERROR: Dynamic type conflict when assigning references (termination: RABAX_STATE)

 

BUT IF I USE DESCRIBE_BY_NAME INSTEAD OF DESCRIBE_BY_DATA EVERYTHING WORKS FINE BUT I CANNOT USE DESCRIBE_BY_NAME FOR LOCALLY DECLARED TYPES.

                

  


Viewing all articles
Browse latest Browse all 9024

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>