Hi guys,
solved the problem by myself. For everybody interested, here the solution:
- Create a settype callback class name by the pattern ZL_PRD_<Settype-Name>_CN, inheriting from CL_PRDGENSE_SLSETOV_CN01
- 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