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

Function module Not running in Background

Former Member
0 Likes
773

Hi Experts,

I have a small thing to ask.

I have an RFC enablede function module which i have created in CRM and I am calling that function module in My report in ECC.

I am running this report in Background but this function module is still running in CRM in Foreground mode.

the sample code of it is here

Here the destination we have provided as CRM222

CALL FUNCTION 'ZDATA_FOR_EXTWARTY'

in background task

destination destination

EXPORTING

P_COND = s_wrttyp-LOW

TABLES

IT_EQUNR = it_equnr

S_OPTION = s_wrttyp.

Will it be possible for you experts to let me correct this error i am going through../?

Thanks,

SA

4 REPLIES 4
Read only

Sm1tje
Active Contributor
0 Likes
571

I guess that your RFC user in the CRM system does not have the correct user type. In transaction SU01 it is probably set to Dialog User instead of communication user.

Read only

Former Member
0 Likes
571

One other possibility is that the user you are using to connect to the CRM system does not have the proper authorization to execute functions in that function group. Check ST22 in your CRM system for short dumps indicating that the user does not have the necessary authority.

With Z- function groups you have to specifically allow a user to execute any function module (RFC) in that group.

Hope that helps,

Michael

Read only

0 Likes
571

Hi Micky,

It was required for us to make the RFCUSER as the dialog, as its recommended by SAP and it ask for login and pwd. We did this becoz it was required to see the document from CRM to be visible in ECC and vice versa. So it difficult to change it to Communication type. Any futher idea if you have will be a gr8 guidance to me.

Hi Michael,

I have checked the CRM ST22, it says the TIME-OUT dump. As recomended by SAP it should be just 10 mins and cant be more, so after 10 mins it has given dump to us. I have found some statements like IN BACKGROUND in the function module, but that does not seem to work for me.

Any other suggestion wil be really helpful to me.

Thanks,

SA

Read only

Former Member
0 Likes
571

Thanks