cancel
Showing results for 
Search instead for 
Did you mean: 

"Default" value setting for field in a XI DataType

laxman_molugu
Participant
0 Kudos

I am wondering how to use the "Default" value settings for a field in XI DataType. In the Integration Repository I defined a DataType, field as Text1 type= xsd:string there is an option for entering a Default value for this field Text1. I am thinking that this default value will be populated when the source field is empty. But when I tried with empty source field this default value is not populating.

Please let me know if any one succeeded with this feature.

thanks,

laxman

Accepted Solutions (0)

Answers (1)

Answers (1)

moorthy
Active Contributor
0 Kudos

HI Laxman,

Did you see this part of SAP help-

<i>Default values are not relevant for mapping programs (in particular in message mappings, where they are ignored).</i>

Also check this SAP help-

http://help.sap.com/saphelp_nw2004s/helpdata/en/24/6ca54c596a97478b1255898a0542d0/content.htm

You can use Constant value in Mapping, and use node functions to check for the existence of the field/nodes and do the rest accoridngly..

Hope this helps,

Regards,

Moorthy

Former Member
0 Kudos

Hi,

You can use standard function 'mapWithDefault' for the same.

More of it here:

http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm

Regards

Vijaya