Skip to Content

Downgrade of code - How to?

Hello all!

It's a quite strange situation i'm dealing with: we have a new customer with a really old release where we'd like to move a package of ours to implement our model and some stuff.

The pacakge relies here and there on "new" releases of classes like cl_abap_tabledescr and cl_abap_structdescr, but I'm struggling to adapt it because everything is totally missing (methods) or different (declarations and attributes).

Apart the most impellent and urgent issue (how to fix these two classes), how do you usually approach such kind of situation?
There is any good hint, thumb rule or best practice I should attend and I'm totally missing?

Thanks!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Feb 26, 2019 at 10:14 AM

    What are you using the RTTS classes for? If it's to create dynamic tables, then you can use the ALV approach. First though, encapsulate all your RTTS calls into a separate method or methods. Then you only have to change that bit.

    If it's more complex, then you'll need to use GENERATE SUBROUTINE POOL yourself.

    If it's just too much horrible work, I'd seriously consider saying - thanks for the offer, but no. Come back to me after you've upgraded. I work for a company that produces software for others - if you're not on 731, we don't sell it to you. (I pushed for 752, but the boss, being a meanie, said no. ;-) ).

    Add a comment
    10|10000 characters needed characters exceeded

    • Encapsulate the incompatible stuff as much as possible in your source development system. Write test programs (obv. no chance for ABAP Unit Test!) that test that the results in the changed area are the same in the non-downgraded version as in the downgraded.

      Explain it will take a lot of time to downgrade and debug. Charge a fortune.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.