Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in receiving structure in Java when try to call SAP BAPI

Former Member
0 Likes
448

Hi SAP Guru's,

I created a BAPI to create price using FM RV_CONDITION_COPY. I tested it using tcode BAPI in SAP and it is working fine. But when we try to call from extrenal system(Java) character length of each field is changing when they receive the structure at thier end. For example I define field KSCHL as 4 char but when they receive it is chnaging it to 8 character. And because of this shifting none of the record going through.

Does anybody face this problem? If yes please share the solution with me. At this point I am not sure error is at what end.

Regards and thanks in advance for any help,

Seema

4 REPLIES 4
Read only

Former Member
0 Likes
426

Hi seema,

How are you connecting to SAP from Java ?

probably this is some kind of unicode issue.

- Kalyan

Read only

0 Likes
426

Hi Kalyan,

Using Java connector (JCo).

Regards,

Seema

Read only

0 Likes
426

Hi ,

If it is related to unicode then any idea how to resolve it.

Regards,

Seema

Read only

0 Likes
426

Hi Seema,

Please post your code .

Starting from where you are connecting to the SAP system to where you are calling the BAPI

Probably I would be able to help

- kalyan