cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI explorer functions with java

Former Member
0 Kudos

I am a newbie in SAP.

I have tested out some sample JCO programs. Then worked fine.

Now I want to go for some more.

Is it possible to implement applications like BAPI explorer with JCo ?

Basically I want to be able to list all the BAPIs with JCo ?

I have tried "RFC_FUNCTION_SEARCH" with "*" entry for all input values and

the output was null.

How do I list all the BAPIs with JCo (Java Program)

Thanks !!!!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I was asking so obvious question with simple answer.

I have figured it out and it worked great. It's been a week since I started JCo program.

Anyway my problem was RFC_FUNCTION_SEARCH returns output in a table.

So I had to look up the table for result message.

Now I am asking another ? I have searched the forum already and couldn't find the answer.

How do I create the hierarchical view of BAPI with JCo ?

Basically I want to implement something like BAPI explorer (tree navigator) with Java.

Former Member
0 Kudos

hi,

I have one question...

How to access the function module of bapi through bapi Class using jco ?

thanks

Former Member
0 Kudos

JCo download package has all the examples you need.

To be able to invoke BAPI function from java,

you have to use it's rfc function module name assigned.

(You can check it out with BAPI explorer of object's detail screen(right pane)

If you want to invoke something from Java, that function has to be "remotely

enabled" module - SE37 to confirm)

However, getting output is different for each function since the result

message structure is various. (just like input parameters)