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

RFC Function module is not working in program while Background

Former Member
0 Likes
2,440

Hi All,

we have a one program in BI system which is calling RFC function module. it is executing the program in foreground very well. Same program we have executed in background , it is not working at all. Thiis RFC function module exists in R/3 4.6c system.

10 REPLIES 10
Read only

Former Member
0 Likes
1,613

Hello Raju,

Transactional call of a remote-capable function module specified in func using the RFC interface. You can use the addition DESTINATION to specify an individual destination in dest. If the destination has not been specified, the destination NONE is used implicitly. Character-type data objects are expected for func and dest.

When the transactional call is made, the name of the called function, together with the destination and the actual parameters given in parameter list, are registered for the current SAP LUW in the database tables ARFCSSTATE and ARFCSDATA of the current SAP system under a unique transaction ID (abbreviated as TID, stored in a structure of type ARFCTID from the ABAP Dictionary, view using transaction SM58). Following this registration, the program making the call is continued by way of the statement CALL FUNCTION.

When executing the COMMIT WORK statement, the function modules registered for the current SAP LUW are started in the sequence in which they were registered. The statement ROLLBACK WORKdeletes all previous registrations of the current SAP LUW.

If the specified destination is not available for COMMIT WORK, an executable called RSARFCSE is started in the background. This attempts to start the functional modules registered for an SAP LUW in their destination, every 15 minutes up to a total of 30 times. You can make changes to these parameters using transaction SM59. If the destination does not become available within the given time, this is noted in the database table ARFCSDATA as a CPICERR entry. By default, this entry in database table ARFCSSTATE is deleted after 8 days.

Thanks and Regards,

SAP Shori

Read only

rainer_hbenthal
Active Contributor
0 Likes
1,613

>

>executed in background , it is not working at all.

This is not an error message.

Read only

Former Member
0 Likes
1,613

I used the syntax 1) call function zfunct destination r-3 . it is working fine when i used in foreground.same program executed in background, not working . 2) i used another syntax.call function zfunct in background task destination r-3. same results. Is there any procedure exists to call the program in background when we use RFC function module in program.

Read only

0 Likes
1,613

Hi Raju,

Were you able to resolve this issue? Could you please help as me too facing the same issue?

Friends,

Do you have any ideas?

Thanks much.

Read only

0 Likes
1,613

Have you got the COMMIT WORK after the RFC call in the program. When running in background you will need this explict commit.

Read only

0 Likes
1,613

Thanks Paul.

No, I havent mentioned COMMIT WORK explictly. Coz at our Q systems the same code is working like charm.

Do you suggest me to go ahead and try?

Read only

0 Likes
1,613

I know for me, it would not work in background without the commit, but would work in foreground.

if it is working in background in your Q systems then there must be another issue, but I am suprised it will work without the commit.

Read only

0 Likes
1,613

Its strange, the issue is not working at P but working at Q.

Also, as far as RFC configuration is concerned, we have checked at both the systems and they are in sync.

Let me include the commit and will update you soon.

Thanks much for your time.

Read only

0 Likes
1,613

Still the same.

No luck with COMMIT.

Read only

0 Likes
1,613

Hi Raju,

if you don't want a solution then feelf free to continue not giving essential details all together.

Your Z function is no released BAPI function. So please give the name and parameters of the BAPI call that does not work.

Or avoid the forum and help yourself.

Have a nice weekend.

Clemens