Skip to Content

May I use all existing OO classes CL_DEMO_OUTPUT

He guys,

I’m pretty much confused right now (probably cause I’m new to OO)

So far, I thought I can use all CL* Classes in my programs, can’t I?

If not, how can I distinguish among them for example cl_salv_table is OK but others are not?

What is this restriction “not for productive use” on CL_DEMO_OUTPUT about?

https://blogs.sap.com/2016/05/10/cldemooutput-part-2-of-2-a-look-behind/

Can I at least copy this class, because it is very handy and use it in production?

Best regards

Marion

Add a comment
10|10000 characters needed characters exceeded

  • Its not about can or can't but should or shouldn't. Many class, program, function module are written but not release yet (mean SAP could delete it anytime and won't responsible for bugs occurred because of non-release development). for sometimes, it just program that SAP employees use to demo or do somethings useful to them...so use it at your own risk.

  • He guys,

    thank you so far, but I think I should be more precise.

    1) Can I use in general all SAP CL* classes in my programs (maybe except CL_DEMO_OUTPUT because somebody said so)

    Best regards

    Marion

  • For me it is like the FM not release for development. We use a lot of this FM not released without creating big problem

    The issue is, SAP could change or remove this code without any replacement ...

    It occurs between ECC 6.0 --> ECC 6.0 Ehp8 (things have disapears)

    personnaly I really like CL_DEMO_OUTPUT

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Oct 29, 2019 at 07:33 PM

    You can use only objects released by SAP. But the issue is to identify what is released, and it's not easy. Function modules have a "released for customers", but not classes. In general, BAPIs can be used, but a few ones (many?) are not released, so you should not use them.

    For all objects which are not function modules, the only solution is to rely on the documentation: documented objects can be used (CL_SALV_TABLE for instance). Objects which are described in SAP notes as "customers should not use them", should not be used.

    Of course, sometimes, it's very difficult to not use some objects which are not released. So, just be aware that you might experience issues in future patches or releases (anyway, some released objects are sometimes deprecated in new versions and you must adapt your code).

    NB: CL_DEMO_OUTPUT is a really simple program, so I don't think SAP would blame you to copy it. That would be a nice initiative to create a github project by the way ;-).

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 29, 2019 at 04:19 PM
    -1

    He guys,

    thank you so far, but I think I should be more precise.

    1) Can I use in general all SAP CL* classes in my programs (maybe except CL_DEMO_OUTPUT because somebody said so)

    Best regards

    Marion

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 29, 2019 at 10:51 AM
    -2

    Hello Marion Kling,

    The reason that we cannot use this is, they cannot handle large amount of data which is always the case in Production. That is the reason it is explicitly mentioned as not suitable for Production usage.

    Probably you can know more about the same in the below two blogs:

    DEMO_1

    DEMO_2

    Regards!

    Add a comment
    10|10000 characters needed characters exceeded

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.