03-30-2012 10:49 AM
Dear Friends,
I have a requirement , I have to execute BAPI in background but my requirment is something differnt , Let me
specify , I have created a BAPI in which I am passing the data from SAP to java and Vice versa,
so in that case my BAPI is taking a lot of time to execute , then for that if I am running BAPI in background using
report program my requirement is not full filled, Hope you have got me .
Please suggest
Regards,
Rihan
SAP-abaper
03-30-2012 10:57 AM
Try using call function in background task.... in your report.
http://help.sap.com/saphelp_nw04/helpdata/en/8f/53b67ad30be445b0ccc968d69bc6ff/content.htm
03-30-2012 10:58 AM
Hi ,
After calling your Bapi in the report call thi bapi BAPI_TRANSACTION_COMMIT.
So by the wait status parameter will execute your program shortly and you can some values for this wait parameter.
If your Bapi fails then you should have to call the following bapi
BAPI_TRANSACTION_ROLLBACK.
That would Rollback your Bapi again. Changes Will not be done.
Hope will help.
Thanks,
Pradeep.
10-23-2014 7:57 AM
Hi Rihan,
So far, you received good suggestions.
One more thing.
How do you pass your data? Should be 'pass by value' not 'pass by reference'.
Hope this will help.
Regards,
Wiel