Skip to Content
-1

How to get value of class attribute

Hi All,

How can i get value of class attribute?

{O:1695*\CLASS=CL_SCMG_SP_CASE_NOTES_BACKEND}-GT_NEW_TEXTS

i try like this:

but not assing.

Can you help me please?

          field-symbols: <var> type text_lh."any
          data: class_name(30) type c,
                class_var(30)  type c,
                class_ref(100) type c.
          class_name = 'CL_SCMG_SP_CASE_NOTES_BACKEND'.
          class_var  = 'GT_NEW_TEXTS'.


          concatenate class_name '=>' class_var into class_ref.
          assign (class_ref) to <var>.
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 25, 2017 at 12:56 PM

    If you'd like to get GT_NEW_TEXTS then you would need to use one of existing methods from interface IF_SCMG_SP_CASE_NOTES_BACKEND or you can create a sub-class which inherits from CL_SCMG_SP_CASE_NOTES_BACKEND and then you can create a method to read/update of GT_NEW_TEXTS.

    That's all without knowing the place where you'd like to fetch it.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 25, 2017 at 12:08 PM
    Add comment
    10|10000 characters needed characters exceeded