cancel
Showing results for 
Search instead for 
Did you mean: 

MessageTransformBean - SimplePlain2XML - Allow White Space

Former Member
0 Kudos

Hi,

Is there a way to configure the MessageTransformBean so it will not trim the white space?

If we send a white space for a field the result in the XML is:

<SN_TAXE_FED/>

I need

<SN_TAXE_FED> </SN_TAXE_FED>

Config:

SimplePlain2XML Transform.Class com.sap.aii.messaging.adapter.Conversion

SimplePlain2XML Transform.ContentType text/xml;charset=utf-8

SimplePlain2XML xml.DT_MCM_Products.fieldNames RECORD_ID, MODE, NO_PROD_VEN, GR_DESC_FRC_CMP, GR_DESC_ANG_CMP, QTE_EMB, FORMAT, SN_TAXE_FED, SN_TAX_PROV, NO_FURN_REG, NOM_FURN, CATEGORIE, DESC_CRVNU_FURN, DISTRIBUTION, NO_UPC, ACT_M, DATE_DESUET_M, DATE_RELISTE_M, UNITE_CMD_M, ACT_Q, DT_DESUET_Q, DT_RELISTE_Q, UNITE_CMQ_Q, ACT_Q, FLAG, DATE_CREATION, DATE_INVALIDITE, FILLER

SimplePlain2XML xml.conversionType SimplePlain2XML

SimplePlain2XML xml.documentName MT_MCMProducts

SimplePlain2XML xml.documentNamespace urn:pi.sap.metro.ca:planographie:ikb

SimplePlain2XML xml.fieldFixedLengths 9,1,7,35,35,3,8,1,1,5,60,4,25,1,13,1,6,6,1,1,6,6,1,2,1,10,10,21

SimplePlain2XML xml.fieldNames RECORD_ID, MODE, NO_PROD_VEN, GR_DESC_FRC_CMP, GR_DESC_ANG_CMP, QTE_EMB, FORMAT, SN_TAXE_FED, SN_TAX_PROV, NO_FURN_REG, NOM_FURN, CATEGORIE, DESC_CRVNU_FURN, DISTRIBUTION, NO_UPC, ACT_M, DATE_DESUET_M, DATE_RELISTE_M, UNITE_CMD_M, ACT_Q, DT_DESUET_Q, DT_RELISTE_Q, UNITE_CMQ_Q, ACT_Q, FLAG, DATE_CREATION, DATE_INVALIDITE, FILLER

SimplePlain2XML xml.keyFieldType CaseSensitiveString

SimplePlain2XML xml.processFieldNames fromConfiguration

SimplePlain2XML xml.recordsetName DT_MCM_T03394

SimplePlain2XML xml.recordsetStructure DT_MCM_T03394, *

Thanks,

Martin Lavoie-Rousseau

Accepted Solutions (1)

Accepted Solutions (1)

former_member182004
Contributor
0 Kudos

Hi Martin,

try with this parameter:

*.keepIncompleteFields

You can refer to this help for further details:

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

These parameters also apply for that transformation Bean

Juan.

Answers (1)

Answers (1)

RKothari
Contributor
0 Kudos

Hi Martin,

Try using <FieldName>.fieldContentFormatting parameter with Value nothing.

Regards,

Rahul

Former Member
0 Kudos

I found that in the DataType, if you go to a field, in the Details column, you can specify a behavior for the whitespaces.

whiteSpace = perserve | replace | collapse

Former Member
0 Kudos

By using two properties, one in the Communication Channel and one in the DataType I was able to achive this. Keeping the whitespace.

CC:

xml.fieldContentFormatting = nothing

DataType (in the details column)

whiteSpace = perserve

Edited by: Martin Lavoie Rousseau on Oct 18, 2010 7:40 PM