cancel
Showing results for 
Search instead for 
Did you mean: 

IF_GENIL_APPL_INTLAY~ON_AFTER_COMMIT

former_member188843
Participant
0 Kudos

Hi All,

Anyway once a time implemented IF_GENIL_APPL_INTLAY~ON_AFTER_COMMIT?

I need do something here in my implementation but here i only get a sender. But i want to know which object was saved. How can i get it?

Accepted Solutions (1)

Accepted Solutions (1)

ashik_k2
Contributor
0 Kudos

Hello,

This method is used Usually to release database locks .

Regards,

Ashik

former_member188843
Participant
0 Kudos

yes. i want to do it so. but how can i get he saved object from in this method? i need get it then release the lock.

ashik_k2
Contributor
0 Kudos

Hello Joshua,

I believe you cannot directly get the saved objects .

This event handler can be used to initialize the object. Since for on_after_commit an object is

not passed, you may have to remember the particular objects, which have been saved.

You can take a look at below class for your reference.

CL_CRM_BUIL=>IF_GENIL_APPL_INTLAY~ON_AFTER_COMMIT.

Here the saved objects are remembered in gt_save_object_list in class CL_CRM_BUIL                   IF_GENIL_APPL_ALTERNATIVE_DSIL~SAVE_OBJECTS and below call is done in CL_CRM_BUIL=>IF_GENIL_APPL_INTLAY~ON_AFTER_COMMIT.

CALL METHOD me->if_genil_appl_alternative_dsil~init_objects

     CHANGING

       ct_object_list = gt_save_object_list.


REFRESH gt_save_object_list.

   CALL METHOD cl_crm_buil_services=>reset_locks.


Hope it helps,


Regards,

Ashik

Answers (0)