Skip to Content
author's profile photo Former Member
Former Member

How to prevent update to custom table (rapid application)?

Hi Experts,

I have a question regarding update to custom table (rapid application).

Currently there's code to prevent update to the custom table in method EH_ONSAVE (when save button is clicked - error is displayed and changes will not be saved).

The issue is when Back button is clicked, pop up is shown asking whether to save the changes (standard CRM behavior). Changes is saved when Yes is clicked. ORDER_SAVE badi is not useful in this case, does anyone know how to stop it from saving?

Thanks,

Jacinth.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jan 08, 2014 at 07:42 AM

    Hi Jacinth,

    Please take a look at the following blog:Table Enhancements for AET Views

    The BADI for an AET table and a Rapid application is the same, you can also check my blog which doesn't fullfit your requeriment but has a nice collection of links AXT Rapid Applications Currency/Quantity fields

    Cheers!

    Luis

    Add a comment
    10|10000 characters needed characters exceeded

    • Another approach can be, using AET instead of rapid application to extend the one order model (let's say CRMD_ORDERADM_H or CRMD_ORDERADM_I) and then use the BADI ORDER_SAVE getting the infromation from CRM_ORDER_READ - et_extension2 and raising the exception DO_NOT_SAVE.

      Without knowing your requirement I would went for this approach as rapid application doesn't support RAW types so it will be hard/not supported to embed your view to the standard component.

      Cheers!

      Luis

  • Posted on Jan 08, 2014 at 05:57 AM

    Hi,

    Data loss popup will be raised in class CL_CRM_UI_FRAME_APP_CONTROLLER method LAUNCH_DATALOSS_DIALOG

    Process for yes_no_cancel will be done in class CL_CRM_UI_CORE_APPL_CONTROLLER method PROCESS_DATALOSS.

    Check this class methods you will get some idea. You should enhance these classes for your requirement. This methods will be called for all data loss popup cases.

    Regards,

    Deepika.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Deepika,

      Thanks for your reply. I tried debugging these 2 classes, but couldn't see any custom class that triggers it. could you please provide more info how can i enhance this class? and where is this enhanced method can be called?

      Appreciate your help,

      Jacinth.

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.