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

Length fields

Former Member
0 Likes
629

Hi,

My cenario is: POS calls RFC enabled function module from SAP trough EAI.

So a function module Z* is called. When this function is Tested in SAP with transaction SE37 everything seems to be fine. There are one table returned and all the data is in correct fields.

But, when this function is called trough EAI data is misaligned accordingly to difference of field lengths. For example ITEMS_OUT (used in my FM) table fields DOC_NUMBER in xml has 20 characters in function module 10, and so on.

Do you have any idea?

Thanks

BR

4 REPLIES 4
Read only

Former Member
0 Likes
594

check the order of the fields

and let us know your requirement properly

Read only

Former Member
0 Likes
594

For example:

In xml file i get this:

HEADERS_OUT>

- <item>

<DOC_NUMBER>00000007030040000000</DOC_NUMBER>

<SOLD_TO>Test client Sales</SOLD_TO>

<NAME1 />

<NET_VAL_HD>0.000000000</NET_VAL_HD>

<TAX_AMOUNT>0.000000000</TAX_AMOUNT>

<BR_VAL_HD>0.000000000</BR_VAL_HD>

<_FILLER />

<CURRENCY />

</item>

</HEADERS_OUT>

Regarding the DOC_NUMBER for example. In my RFC i have '0000000703', SOLD_TO = 0040000000; NAME1 = Test client Sales, and in xml is totally misaligned.

Thanks.

Read only

0 Likes
594

Hi,

I believe the transformation is not proper (XI mapping or EAI Mapping). Please map proper it won't happen.

Regards

Bhupal Reddy

Read only

Former Member
0 Likes
594

Ok,

So you think that this is not a problem related to ABAP things, FM problems.

Probably it's a problem from EAI side right?

Thanks