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

Can we execute BAPI in background?

Former Member
0 Likes
2,570

Hi All,

I have a report in which i have used BAPI . I need to execute that report in background via a variant.

Is it possible to run a BAPI in background ?

Please suggest ?

Thanks,

Srinivas

4 REPLIES 4
Read only

Former Member
0 Likes
1,112

Hii srnivas it is possible yo execute a bapi in bacground.

if you want to know how to execeute a bapi in background you can search on scn you can get various exapmles for the same.

regards,

Shweta

Read only

Former Member
0 Likes
1,112

Hello Srinivas,

BAPI is not standalone entity it has to be called by some other entity for e.g. report, function module, object method etc.

So, it is not possible to run BAPI in background. Workaround to this problem is to create report calling BAPI and then schedule

that report in background.

For more information on JOB scheduling see following link:

https://wiki.sdn.sap.com/wiki/display/Snippets/HowtocreateandreleaseaJob

Thanks,

Augustin.

Read only

Former Member
0 Likes
1,112

Hi Srinivas,

Yes one can schedule a report which uses a BAPI in background!,

I had a requirement to delete components from a work order and for this i used one bapi maintain,

through which i delete the components, but time n again there will be number os orders created by several users and the req is to delete the orders based on some conditions.

So i scheduled my program in background for every min,

which is solving my purpose...!!!!

Read only

Former Member
0 Likes
1,112

Thanks all.