cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Proxy Sender is trimming trailing spaces

Former Member
0 Kudos

Hi !

We have a scenario ABAP Proxy -> XI -> File. Data is sent via abap proxy from R/3 with some trailing spaces in its field values. When we check the received values in SXMB_MONI, exporting the XML data to a file in the local PC and using a text editor, we confirm that the trailing spaces were removed.

Any ideas to avoid this ?

Thanks,

Matias.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks!

Former Member
0 Kudos

Hi,

When you send the message from ABAP Proxy, fill the field with spaces between this Quote Characters ` `.

Enjoy,

Former Member
0 Kudos

Hi Hudson!

Thanks.

I tried your method, enclosing the content of the abap proxy field with backticks (`), but is the same.

Regards,

Matias.

Former Member
0 Kudos

Instead of passing as string,..define it as char of defined length and test it....

Former Member
0 Kudos

Hi Guru !

Thanks..

The input data type that is coming from the abap proxy call is an external definition that has defined this element:

<xsd:element name="DATOS">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="item" type="BPCHAR2000" minOccurs="0" maxOccurs="unbounded" />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

and then, it includes the BPCHAR2000 type definition:

<xsd:complexType name="BPCHAR2000">

<xsd:sequence>

<xsd:element name="DATA" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="2000" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

Inside the ABAP posting program, we are not using strings, only chars.

Any clues?

Thanks,

Matias.

Former Member
0 Kudos

It seems that XML string does not maintain spaces infront n back of the string as said in the following thread..

[content deleted]

One thing you can do is you can add spaces in the mapping of XI as in the following thread

Hope this helps