Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: Update ztable in BADI implementation

$
0
0

Hi Maren,

 

It is not a good practice to use commit statement in Order_save badi.

 

Solution is:

 

  1. Create a FM 'ZUPDATE_CUSTOM_TABLE' call this in to your custom implementation of Order_save badi.
  2. Create Subroutine 'CALL_ON_COMMIT' in above FM.
  3. Update your custom table in subroutine (Do not use Commit statement)
  4. Call the subroutine into FM like this
    • PERFORM call_on_commit on commit.
  5. and pass the data according to  your requirement.

 

 

 

FUNCTION ZUPDATE_CUSTOM_TABLE.

*"----------------------------------------------------------------------

*"*"Local Interface:

*"  IMPORTING

*"     REFERENCE(GUID) TYPE  CRMT_OBJECT_GUID

*"----------------------------------------------------------------------

 

   PERFORM call_on_commit on commit.

 

ENDFUNCTION.


 

FORM call_on_commit.

 

   Update your custom table here.

 

ENDFORM.



Regards,

Ankit


Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>