cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI return empty element.

Former Member
0 Kudos

Guys,

I have created one scenario SOAP -> BAPI (sync).

BAPI

ZMMF_GET_COMPANY

My BAPI have 10 elements and 9 return with values.

But i have 1 element with name "text1" and one return empty value always.

When i execute the BAPI using tcode se37, "text1" return value, for exemplo "test test test".

But when i execute in RFCAdapter, "text1" return empty value.

Can anybody helpme me?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Have a modified your BAPI after imported into XI?

If so then import it once again and then try.....

Is all other values are coming properly in XML.

once verify your input request as well.

Gaurav Jain

Former Member
0 Kudos

I not modify the BAPI after import.

This BAPI was create a long time ago (2006 i guess).

The BAPI values coming as response.

the element is type "String" and have length 50, but always coming empty.

But when i executing in se37 transaction, the element return value.

Can you help me?

Former Member
0 Kudos

Hey

I had the same issue with a standard BAPI some time ago.

The way BAPI is triggered in SE37 is different from the way BAPI is triggered when a request is send from XI.

suppose you want to fetch business partner data based upon business partner number,now this partner number has been configured to be of length 10 in BAPI,now suppose you execute the BAPI via SE37 and give the partner number of only 6 digits then 4 zeros will be padded and the partner number will be made of all 10 digits,but if you send a partner number of 6 digits from XI then no padding is done hence no records are pulled up(since partner number must be 10 digits and you have only 6).

Please try to test this and make sure you are giving correct values.

Thanx

Aamir

Former Member
0 Kudos

One of the way is to test with actual used parameter values of the request and the response can be viewed in the ABAP debugger. Note 668256 describes the procedures for ABAP remote debugging.

Try this...

You can even refer to Note 206068 - Error when calling a BAPI from the Business Connector.

Question 3 in this is helpful for you.

Gaurav Jain

Edited by: Gaurav Jain on May 21, 2008 5:12 PM

Former Member
0 Kudos

Guys,

I solved the error.

Actually the problem was in BAPI.

The BAPI to make one consult in SQL with reference in language of user logged.

My user in PI have the language = "EN" (England), but BAPI only return value when user language = "PT" (Portuguese).

I changed the user language for PT and solved the problem.

Tanks everybody.