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

BAPI in CALL DIALOG

Former Member
0 Likes
1,085

How can I make a BAPI work in a CALL DIALOG ?

Since a call dialog opens in the same SAP LUW The Bapi

BAPI_OUTB_DELIVERY_CHANGE does not work, Neither does using WS_DELVIERY_CHANGE.

Please suggest an alternative

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
813

Have you tried calling the function with the option 'STARTING NEW TASK '.

How can I make a BAPI work in a CALL DIALOG ?

Since a call dialog opens in the same SAP LUW The Bapi

BAPI_OUTB_DELIVERY_CHANGE does not work, Neither does using WS_DELVIERY_CHANGE.

Please suggest an alternative

Thanks

5 REPLIES 5
Read only

Former Member
0 Likes
813

You can do a COMMIT: try to use BAPI_TRANSACTION_COMMIT

Read only

Former Member
0 Likes
813

No, A 'BAPI_COMMIT' will not work because as long as one is in a 'CALL DIALOG' one is in the same SAP LUW and only when one starts a new SAP LUW does an SAP commit ( changes are saved) take place.

thanks for the reply though but my problem is still unsolved.

Read only

Former Member
0 Likes
814

Have you tried calling the function with the option 'STARTING NEW TASK '.

Read only

0 Likes
813

Thank You Srinivas Adavi

No, I haven't tried that

will do that and let you know.

Read only

Former Member
0 Likes
813

Thank You, Srinivas Adavi for the suggestion

it has worked for the FM WS_DELIVERY_UPDATE,

Surprisingly BAPI_OUTB_CHANGE_DELIVERY with the addidtion "STARTING NEW TASK" does not work

But still it solves my problem.

Thanks Again