Skip to Content
avatar image
Former Member

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

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_imputation&_ID_KOSTL…

- 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_KOSTL=NO7403_99&ID_AUFNR=&ID_PSPNR=&ID_SWENR=&ID_SNKSL=&ID_SEMPSL=&ID_BUKRS=7403&ID_DABRZ=&ID_EINDT=05.12.2014&ID_SAKTO=6228100000

- 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

script11.png (61.2 kB)
&&.png (64.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 16, 2015 at 08:30 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded