Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reversing Load cofirmation

Former Member
0 Likes
752

Hi All,

I am using FM OIGI_LOADING_CREATE to create a load confirmation. This is succesfully working as expected.

Once this is successful, i update the shipment details using FM OIGI_CHANGE_SHIPMENT_RFC.

Now the requirement is that if the shipment update fails i need to reverse/rollback the load confirmation.

Any pointers how to do this will be awarded.

Regards,

Sandeep

Hi All,

I am using FM OIGI_LOADING_CREATE to create a load confirmation. This is succesfully working as expected.

Once this is successful, i update the shipment details using FM OIGI_CHANGE_SHIPMENT_RFC.

Now the requirement is that if the shipment update fails i need to reverse/rollback the load confirmation.

Any pointers how to do this will be awarded.

Regards,

Sandeep

2 REPLIES 2
Read only

Former Member
0 Likes
593

hi may b this would give u some help.

All subroutines called with PERFORM ... ON COMMIT are processed in the LUW concluded by the COMMIT WORK command. All V1 update requests specified in CALL FUNCTION ... IN UPDATE TASK are also executed in one LUW. When all V1 update requests have been successfully concluded, the V2 update requests (update with start delayed ) are processed, each in one LUW. Parallel to this, the function modules specified in CALL FUNCTION ... IN BACKGROUND TASK are each executed in one LUW per destination.

COMMIT WORK commands processed within CALL DIALOG processing do all of the following:

- A database commit on all database connections (see above),

- Close all open database cursors on all database connections

- Reset the time slice counter

- Call the function modules registered in CALL DIALOG processing using CALL FUNCTION IN BACKGROUND TASK

However, subroutines and function modules called with PERFORM ... ON COMMIT or CALL FUNCTION ... IN UPDATE TASK in CALL DIALOG processing are not executed in the calling transaction until a COMMIT WORK occurs.

regards,

santhosh

Read only

Former Member
0 Likes
593

Hello Sandeep,

I am using the OIGI_LOADING_CREATE funtion, but it's unclear what parameters are to be filled to make the function confirm a load. Can this function be used to update a load? I have made an ALV-list where I can modify the load volume. but when I use this function to update, it creates another load line in the tables... I would appreciate any input...

regards Ballo