cancel
Showing results for 
Search instead for 
Did you mean: 

Not fetching data from Custom BAPI

Former Member
0 Kudos

HI gurus,

I am new to JCO Please help me...

I am trying to connect SAP through JCO, I have created a CUSTOM BAPI which shows the entries in the table. But when I trigger the custom BAPI in my Java program I am getting an error " No results found".. I can see the entries in the created custom BAPI's.

Import parameter in the custom bapi is Cus_No_from, Cus_No_To and CUS_NAME..

Export parameter is RETURN

TABLES is an internal table I_CUST..

I am trying to get the values stored in I_CUST in my java program

Help me..

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Please post actual code sample to remove the clairvoyance requirement.

Former Member
0 Kudos

Hi Ilan

Thanks for the reply.

The code is simple

select * from ZCUSTOM into table I_CUST WHERE cus_no between CUST_NO_FROM and CUST_NO_TO.

where Zcustom is a custom table and CUST_NO_FROM and CUST_NO_TO are import parameters..

I_CUST is also mentioned in TABLE parameters.

The data I am trying to fetch in JAVA is in I_CUST table, which is an internal table

(Custom BAPI is successfully generated in SWO1 and I am able to see the entries in I_CUST).

Please let me know if any details are required.

Former Member
0 Kudos

Hi.

I meant the Java code. You already said the ABAP was working correctly. (I assume you remote enabled it.)

Are you logging errors? (Even System.out to the console is good enough)

Are you stepping through the java code with a debugger. (Even jdb is good enough)

But you need to share the code that is not working! (Not the code that is

--

ilAn

Former Member
0 Kudos

Hi Ilan

Thanks for the suggestions.

The problem is rectified. There was a silly mistake by not giving the correct input in my JAVA code.

Regards

Murali Bhat