Skip to Content
0
Former Member
Feb 27, 2007 at 02:08 PM

Fields Lengths (Mapping)

32 Views

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? Where should be the problem? In mapping or should be a function module problem?

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

BR