cancel
Showing results for 
Search instead for 
Did you mean: 

If then else

Former Member
0 Kudos

Hi,

i try to mak graphical mapping.And i should use if then else function.The scenerio should be as follows:

if the value1 > 7 then

value1 = value2

else

not create row

i draw the following:

value1----


>

greater----


> IF -


> then value1 = value2

Constant(7)----


>

else----


>?

if the value lesser than 7,When testing i want to be in Result nothing.How should i continiue for else?Can you help me please?

Accepted Solutions (1)

Accepted Solutions (1)

anupam_ghosh2
Active Contributor
0 Kudos

Hi Nurhan,

you can use if-without-else instead of if-else.

This is available in boolean functions catagory in graphical mapping.

This should solve your problem. If the error still persists then probably your target structure has minimum field occurence zero.

Then use creatif node function to create the target field.

regards

Anupam

Edited by: anupamsap on Jun 7, 2011 2:27 PM

Answers (2)

Answers (2)

former_member463616
Contributor
0 Kudos

Hi,

I hope that you have to use createIf node function.

value1 --> greater --> createIf -->Target node

Constant(7)

rajasekhar_reddy14
Active Contributor
0 Kudos

no need to use else condition, just try with if then condition satiffies taget will have value elase supress.

Former Member
0 Kudos

i tried without else.Then i get that error:

Cannot create target element /ns1:MT_OZET_SATIS/OZET_SATIS[2]/ZPOSSIPNO. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD com.sap.aii.mappingtool.tf7.

rajasekhar_reddy14
Active Contributor
0 Kudos

in this case your target element occurance min 1 , you can send some constant values(blank) in else condition,

but you need to confirm if condition staifies what you wnat to do.

if you dont required any value then change occurace of the field to min 0 to unbouded or 1.

Regards,

Raj