cancel
Showing results for 
Search instead for 
Did you mean: 

[Screen Personas] How to call the WebRFC when SMW0 and sap/bc/wrfc are active?

Former Member
0 Kudos

Hello everyone,

I am encountering problems about calling the WebRFC in Screen Personas. When excuting the script, I got the following message: "Calling the WebRFC failed".

I read all the existing posts concerning this problem. I went to the transaction SMW0 to release my function module and I verified that sap/bc/wrfc is active.

- My generic URL is:

http://fr-erpd11.knet.intra:8000/sap/bc/webrfc?_FUNCTION=Z_MM_0531_WEBRFC_GET_BUDGET&_ID_KNTTP=type_...

- When replacing my variables by figures and codes, the running is OK and I got satisfying results.

http://fr-erpd11.knet.intra:8000/sap/bc/webrfc?_FUNCTION=Z_MM_0531_WEBRFC_GET_BUDGET&ID_KNTTP=K&ID_K...

- The script used to call the WebRFC is:

- My module is as following:

- I am using IE.

What can I do to make Screen Personas run the script and get to the results?

If you need more information, do not hesistate!

Thanks in advance for all your help,

Looking forward to hearing your propositions,

Jean-Baptiste

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I can see two things that might be wrong. First, when you substitute your parameters in the URL you need to surround them in braces, so "ID_KNTTP={type_imputation}" not "ID_KNTTP=type_imputation".

Secondly in your ABAP function, and when you call it with substituted examples, you use matching parameter names, but in the "generic" URL the parameter names appear to have an "_" prepended.

So, in summary, where you currently have "_ID_KNTTP=type_imputation" you should have "ID_KNTTP={type_imputation}".

Does that makes sense?

Steve.