Application Development 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: 

Calling function module in background task

Former Member
0 Kudos
2,921

Hello,

There is one function module which is called in background task. Is there any chance that background task is not created and function module is not executed. That function module is supposed to send some outbound message. The FM is called in one user exit. I don't have any idea as why it is called as background task. The probem is that this message is not getting send sometimes.(sometimes it gets send ). Because of this I am not able to make any conclusion.

Please respond if anyone has come across such scenario before.

Thanks in advance,

Minal

7 REPLIES 7

former_member212005
Active Contributor
0 Kudos
323

Check the below link...it might be helpfull

It should be executed....check it with different data as to what might fail

http://help.sap.com/saphelp_nw04/helpdata/EN/8f/53b67ad30be445b0ccc968d69bc6ff/content.htm

http://help.sap.com/abapdocu/en/ABAPCALL_FUNCTION_BACKGROUND_TASK.htm

Former Member
0 Kudos
323

Hi,

Please check the program which is calling that FM in backgroud.. If it retuns some error it will process it...

former_member555112
Active Contributor
0 Kudos
323

Hi Minal,

If it is called in background task; it will be processed when commit work happens.

Incase there is some problem with commit; this FM might not be called.

Regards,

Ankur Parab

former_member212005
Active Contributor
0 Kudos
323

Also...check the below thread it might be useful..

Former Member
0 Kudos
323

Hi ,

PLease check whether it is giving any dump when it is executing.

Please let me know if you need any more help.

thanks and regards ,

Rajeshwar .

Former Member
0 Kudos
323

Thanks for your reply...

Commit work is working fine..

Is there any other scenario where it can fail? Is there any way to find out that creation of background task is failed?

Actually, when I am executing that transaction then it is working fine. But when user's are trying then sometimes it is working and sometimes it is not...

Former Member
0 Kudos
323

Hi ,

try to check whether you and the users are having the same roles ,if some are able to run it and some are not then i think it is due to some authorization missing.ask them to check it with SU53 tcode.

Let me know if you still need any more help.

thanks and regards,

rajeshwar.