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

Conversion Error in IDOC : Unicode to Non-Unicode System

Former Member
0 Likes
2,048

EBP system (Unicode) posting goods movement to 4.6C (non-Unicode) using message type MBGMCR ( Function module - IDOC_INPUT_MBGMCR).

**In Non-Unicode System***

Idoc INBOUND error : Status 51

An error has occurred assigning data (E1BP2017_GM_ITEM_CREATE ).

I found in debugging value assigned from EDIDD ( E1BP2017_GM_ITEM_CREATE = IDOC_DATA-SDATA ) for field AMOUNT_LC is "0000 0.00"

system catch exception with CONVERSION_ERRORS

**Unicode System**

Value for Amount_lc is 0.00

Can anybody help me how to solve above issue?

regards,

1 ACCEPTED SOLUTION
Read only

Former Member
1,620

Hi,

I think the source field is of type currency and the target field of Idoc segment is text type or vice-vers..

Just check this out and convert the source field type to the type of Idoc segment field.

Thanks.

7 REPLIES 7
Read only

Former Member
1,621

Hi,

I think the source field is of type currency and the target field of Idoc segment is text type or vice-vers..

Just check this out and convert the source field type to the type of Idoc segment field.

Thanks.

Read only

0 Likes
1,620

thanks for your reply.

all standard SAP objects involved.

additional explanation for my problem :-

Data transfered in FM- 'IDOC_INPUT_MBGMCR' is from EDIDD ie IDOC_DATA-SDATA which is long char.

E1BP2017_GM_ITEM_CREATE = IDOC_DATA-SDATA.

this is where DEC field is assigned wrong value.

have any other clue

cheers,

Read only

0 Likes
1,620

You can do something like this..

TABLES E1BP2017_GM_ITEM_CREATE .

E1BP2017_GM_ITEM_CREATE-AMOUNT_LC = <field value> .

MOVE E1BP2017_GM_ITEM_CREATE TO IDOC_DATA-SDATA .

can u tell me what is the type and value of the variable whose value you are assigning to AMOUNT_LC .

Reward points to all the helpful answers.

Thanks.

Read only

0 Likes
1,620

have a look at the function module I mentioned. also mentioned the field type.

all objects are SAP standard objects.

is there any oss note for above issue?

any other clue.

regards,

Message was edited by:

S A

Read only

Former Member
0 Likes
1,620

Please refer the SAP Note No.832679. It will solve your problem

Read only

0 Likes
1,620

thanks for your reply.

there is nothing to write in file and so no OPEN dataset is required. If I misunderstood please explain further.

or any other clue

cheers,

Read only

Former Member
0 Likes
1,620

Result is successful with changing the log on language in RFC setting to EN instead of ZH.

I can not understand why...Is it something to do with code page?

thanks,