cancel
Showing results for 
Search instead for 
Did you mean: 

Function working - but not correctly

Former Member
0 Kudos

Hello.

I am using a function(BAPI) that gets a company name. A really simple function call. Pass in a company code, get the company name.

Well while it works, the return is incorrect. The return says the company does not exist. It is reading my input parameter correctly as the return message contains it. The BAPI works, there is no question about it and the company does exist. Again no question about it.

So in some capacity the .NET connector is just not working right. I have no idea where to look or beign to figure this one out. If I use the JAVA connector the call works just fine.

So any ideas on where to begin?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

reiner_hille-doering
Active Contributor
0 Kudos

Sometimes you have to fill number strings with "0"s to the specified length (can be found in the Length custom attribute). E.g. you pass "00000001" instead of "1".

Answers (1)

Answers (1)

Former Member
0 Kudos

Perfect answer. It would have been helpful if the SAP developer told me about the field length; but I looked it up and it works perfect now.

Thank you.