cancel
Showing results for 
Search instead for 
Did you mean: 

How to read new changes before save in CRM Order

safeer_shah2
Participant
0 Kudos

Hi,

Is there a way to read new changes or updates in the CRM order before save?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Safeer,

You can read the latest changes in buffer through FM: CRM_ORDER_READ.

This FM will give the result of DB Data + Changed Data.

To compare with the data in database you can query the tables or use DB FMs to find out the changes if required.

This FM can be called from ORDER_SAVE badi PREPARE method which gets called before save.

Hope this helps.


Regards,

Naresh

safeer_shah2
Participant
0 Kudos

Thanks Naresh,

can you please tell me which DB FM i need to  use  for comparing updated data and saved data?

Former Member
0 Kudos

Hi Safeer,

Below are the FMs which can be used but be careful while using them as they alter the buffer as well.

CRM_ORDERADM_H_READ_DB

CRM_ORDERADM_I_READ_DB

Also with object name you can use CRM_ORDER_OBJECT_GET_DB.

Regards,

Naresh

Answers (0)