cancel
Showing results for 
Search instead for 
Did you mean: 

simple question on data type default value for attribute

Former Member
0 Kudos

Hello All,

It's hard to get a simple question like this nowadays. so, please excuse me

I am developing a data type in PO 7.4 ESR in the swing tool. My data type has around 200 elements and attributes.

I have to assign constant value for each attribute. I tried to put constant value as default value for each attribute but while testing the mapping, the target structure is having empty value for each attribute (source and target mapping structure are almost same). Then what is the purpose of default value?

how do I tackle this easily?

thx

mike

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Michael,

If you are referring to giving default values in datatype. go through the below links which states that

"Default values are not relevant for mapping programs (in particular in message mappings, where they are ignored)."

XSD Editor (SAP Library - Enabling Application-to-Application Processes)

Regards,

Sudhasree

Former Member
0 Kudos

thank you sudha

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

Hi Michael,

You can use the Constant standard function (Constant category): Standard Functions in PI 7.0 - Process Integration - SCN Wiki

About the function that you are using now, is mapWithDefault?, this function eeplaces empty contexts in the inbound queue with a default value (Standard Functions (SAP Library - SAP Exchange Infrastructure))

Regards.