cancel
Showing results for 
Search instead for 
Did you mean: 

Preserve white space in reciver File adapter

Naama
Participant
0 Kudos

Hi all,

I need to read a file that has a field seperator,

when the XI transforms the file into XML it delete the spaces in the field,

is there a way to tell the adpter to preserve those white spaces?

Thanks,

Naama.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

in a Sender Adapter use the parameter:

NameA.fieldContentFormatting

○ Specify nothing to ensure that the value remains unaltered.

http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm

In a Receiver Adapter it should work with:

NameA.fieldFixedLengths

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm

Regards

Patrick

Edited by: Patrick Koehnen on Jan 15, 2009 12:35 PM

Answers (2)

Answers (2)

former_member190389
Active Contributor
0 Kudos

Hi,

Please use

NameA.fieldContentFormatting

○ Enter trim to remove all the leading and subsequent blanks for a value found. This is the default.

○ Specify nothing to ensure that the value remains unaltered.

Shabarish_Nair
Active Contributor
0 Kudos

is it the file sender adapter or file receiver adapter?

if file sender then use the option mentioned in the earlier post, else if it the receiver file adapter note that if in your mapping you have set N number of whitespaces etc, it will be preserved automatically by the receiver file adapter.