cancel
Showing results for 
Search instead for 
Did you mean: 

JSP - Need RFC

Former Member
0 Kudos

Hi Experts,

In my NWDS, I have created an Enterprise Application project and Web module project. I have included two JSP pages called u2018first.jspu2019 and u2018second.jsp.u2019. When I navigate from main.jsp to result.jsp I need to call RFC with input values which are given by first.jsp page.

1. How to call the RFC?

I have searched for this in SDN some people suggests do these configurations in u2018Config.xmlu2019 file but in my project there is no config.xml file.

2. Do I need to create this file or is it already exists?

Please suggest me on thisu2026

Thanks in Advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You need to use the SAP Java Connector (SAP Jco). Take a look at this thread for more information : [How to invoke a RFC with JCo|;.

Regards,

Pierre

Former Member
0 Kudos

Hi Vivek & Pierre,

Thanks for your reply. I have created the JCO connection and called the RFC by referring this link

http://help.sap.com/saphelp_nw04/Helpdata/EN/b6/55e3952a902447847066a0df27b0d6/content.htm

but I am getting the following error

"myproxy.messagespecifier can not resolved or is not a field" Please help me to solve this...

Thanks in advance

Former Member
0 Kudos

hello there,

Try to execute the BAPI directly from R3 using SE37 and check result. Do you please the necessary DLLs required for the JCO call

Regards,

Vivek Nidhi

Former Member
0 Kudos

Can anyone tell me the answer for my second question in my initial post?

I have searched for this in SDN some people suggests do these configurations in u2018Config.xmlu2019 file but in my project there is no config.xml file.

2. Do I need to create this file or is it already exists?

Former Member
0 Kudos

Hi stars,

By default portalapp.xml file will be created. but you need to create config.xml file.

Regards,

Sunaina Reddy T

Former Member
0 Kudos

Hi Sunaina,

Thanks for your reply. I have created JCO connection for custom J2EE project using this link

http://help.sap.com/saphelp_nw04/Helpdata/EN/b6/55e3952a902447847066a0df27b0d6/content.htm

. I have a doubt, What are all steps to create JCO connection for B2C custom application? Do I have to follow the same steps mentioned on that link?

Former Member
0 Kudos

Helllo all,

I have created jco connection my jsp page. while executing the page I am getting the following exception.

java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [no sapjcorfc in java.library.path]. java.library.path [C:\j2sdk1.4.2_17-x64\jre\bin\server;C:\j2sdk1.4.2_17-x64\jre\bin;C:\j2sdk1.4.2_17-x64\bin;C:\usr\sap\DEV\DVEBMGS00\j2ee\os_libs;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\Dell\SysMgt\RAC5;C:\Program Files (x86)\Dell\SysMgt\oma\bin;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\j2sdk1.4.2_17-x64\bin;;C:\usr\sap\DEV\SYS\exe\uc\NTAMD64]Exception id: [002219BF3D70006E000001360000162000047438733F53CD]

Can anyone tell me the reason and solution for this exception? Please help me on this...

Thanks.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello there,

For JSP you need to make use of JCO. The specific jar files for this can be download from http://service.sap.com/connectors.

The best material on JCO coding is

http://www.winfobase.de/lehre/lv_materialien.nsf/intern01/FB09D79A41930E34C125709F0046180C/$FILE/Tip...

Please let me know if you need any specific help

Regards,

Vivek