cancel
Showing results for 
Search instead for 
Did you mean: 

Calling abap rfc FM from jsp programming

Former Member
0 Kudos

hi friends,

    I am having a requirement to call abap function module from jsp page. can any one help me please?

thanks

Medoyi C

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member193379
Active Contributor
0 Kudos

Hi Medoyi,

Please follow the below steps

1. Are you using NWDS or any other IDE? Create your Web Project.

2. In any of the case download JCO3.0 jar files and add to these librarries to you IDE.

3. Create a connection class in write a code here and you should have host, port and userid/password of the ECC system from where you are calling your RFC.

4. After making a connection then write a code to pass import parameters and execute.

5. After execution of RFC you will get export parameter, table or structure.

6. Display this data now as a respose.

Please reply back if any more information is required.

Thanks,

Hamendra

Former Member
0 Kudos

Hi Hamendra Kumar,

thanks for replaying.

I am using netbeans IDE.

I tried the method you suggested and it works inside simple java class but when I use this method in jsp page while creating .jcoDestination file exception happends.

I have no Idea whats wrong.

Have you tried that in jsp page?

if you know the solution it will be helpful

thanks

Medoyi C

former_member193379
Active Contributor
0 Kudos

Hi Medoyi,

Don't write this inside a jsp. Create a seprate class or Servlet for the same.

Thanks,

Hamendra

Former Member
0 Kudos

Hi Hamendra,

I am also in the same ship where Medoyi is travelling. Can you please provide me the snippet of Servlet and Jsp to do so?