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

FM in BACKGROUND TASK AS SEPARATE UNIT

Former Member
0 Likes
3,266

Hi !

I am currently calling a Function Module with the addition of 'BACKGROUND TASK AS SEPARATE UNIT' inside a BADI Implementation. Inside the FM is a call to a BAPI. However, when the system passes through this, it appears that the BAPI does not do the update. When I call the FM without these additions, the BAPI successfully does the update.

I also tried adding a BAPI commit after the BAPI call but it still does not work. When calling the FM normally, it works even without the BAPI commit.

Do I need to consider other things when using the addition 'BACKGROUND TASK AS SEPARATE UNIT' ?

Thank you.

Hi !

I am currently calling a Function Module with the addition of 'BACKGROUND TASK AS SEPARATE UNIT' inside a BADI Implementation. Inside the FM is a call to a BAPI. However, when the system passes through this, it appears that the BAPI does not do the update. When I call the FM without these additions, the BAPI successfully does the update.

I also tried adding a BAPI commit after the BAPI call but it still does not work. When calling the FM normally, it works even without the BAPI commit.

Do I need to consider other things when using the addition 'BACKGROUND TASK AS SEPARATE UNIT' ?

Thank you.

2 REPLIES 2
Read only

Former Member
0 Likes
1,912

Hi DWade,

try to use the key word SET UPDATE TASK LOCAL in your FM before updating.

hope it works.

Regards!

Read only

0 Likes
1,912

Thanks for the post. Unfortunately, it did not work for my FM .