Error calling RFC Enable Function Module...

We are trying to execute a SAP R/3 Function Module [b]RSPO_DOWNLOAD_SPOOLJOB /b from a dataflow. When it is executed throws an error stating:
for couple of times and finally throws ACESS Violation error and quits.

Warning: RFC call error for function <RSPO_DOWNLOAD_SPOOLJOB>. It may be due to disconnection from SAP. The new SAP connection will be established.

Any help would be highly appreciated.

Regards.


SantoshNirmala :india: (BOB member since 2006-03-15)

Finally, it has nothing to do with the access issues as the error states.
It seems that the FM RSPO_DOWNLOAD_SPOOJOB is asking for the SPOOL related parameters along with the required ones unlike it does not ask if we execute it in SAP Logon.
Need to work around for that like writing a wrapper around FM to mask the parameters which are not required.


SantoshNirmala :india: (BOB member since 2006-03-15)

Hi, I am facing the same issue and would like to know how, in detail, you write the wrapper to workaround this.

At the same time, anyone out there know how to workaround this in the function call in dataflow itself? If possible, I want to prevent writing a wrapper.

Thanks.


gisade (BOB member since 2010-03-11)

There is a work around by developing a ABAP Report which in turn calls the Functio Module with the required parameters for execution only leaving the unnceccessary ones.
As of we haven’t got any other lead in this direction, will keep you posted if we find any updates or please update us accordingly.


SantoshNirmala :india: (BOB member since 2006-03-15)

Hi Santosh,

I am playing around a solution to this without having to write a wrapper. This involves writing a custom ABAP program that can mask out these parameters but you have to pass in the function name. (some sort of a dynamic function call)

I am looking at function rspo_download_spooljob in SAP. Would u show me the wrapper that you have written and I can explain to you what i mean.


gisade (BOB member since 2010-03-11)

I dont have any updates as we have kept the requirement to write a wrapper on hold.


SantoshNirmala :india: (BOB member since 2006-03-15)