Skip to Content
avatar image
-2
Former Member

Change Class content from a report

Dear friends,

The requirement is to replace some content "ABC" with "XYZ" in all classes (or even from a list of classes taken from user input.

Is it possible to do this programatically from a report?

Thanks!
Rohan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jun 28, 2017 at 09:01 AM

    What is "class content"? If it is source code why don't you simply read SAP's documentation and especially all the warnings there. Since it seems that you are not too experienced with that stuff, I'd say: Hands off!

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 28, 2017 at 10:25 AM

    I would go further and instead of modifying this value direct in code, modify the method to read from a table or something like that and then you would not need to change this in the code afterwards.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Matthew Billingham

      I know, I know. This is for a poc we're working on, where we're trying to switch frameworks. Just an option that must eventually be struck off, but not before knowing the possibilities.

  • Jun 28, 2017 at 09:05 AM

    Hello,

    That seems a desperate solution but it's doable.

    Please, have a look at this thread :

    https://archive.sap.com/discussions/thread/90787

    Whatever solution you will choose, you should really consider changing "XYZ" by a call to a static method / class constant instead of a raw value.

    Best regards

    Add comment
    10|10000 characters needed characters exceeded