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

Re: Individual Getter für Set Attributes

$
0
0

Hi guys,

 

solved the problem by myself. For everybody interested, here the solution:

  1. Create a settype callback class name by the pattern ZL_PRD_<Settype-Name>_CN, inheriting from CL_PRDGENSE_SLSETOV_CN01
  2. Redefine the method GET_S_STRUCT there and insert the following code:

 

DATA lv_invididual_getter TYPE seocpdname.

   super->get_s_struct(
     EXPORTING
       attribute_path = attribute_path
       component      = component
       iterator       = iterator
     RECEIVING
       value          = value
          ).

   CLEAR lv_invididual_getter.
   lv_invididual_getter = |GET_{ gs_settype-frgtype_id }_{ component }|.

   TRY.
       CALL METHOD me->(lv_invididual_getter) CHANGING value = value.
     CATCH cx_root.
   ENDTRY.


Now create for each attribute getter a method with the pattern GET_<Settype-ID>_<Attribute-Name>. Hand over the value from GET_S_STRUCT to the getter methods and chance them there.


Hope this helps!


Best regards

Markus


Viewing all articles
Browse latest Browse all 2801

Trending Articles



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