cancel
Showing results for 
Search instead for 
Did you mean: 

Issue about message mapping in XI

Former Member
0 Kudos

Hi,

I faced a mapping issue.

Mapping check the decimal pont position in the total string.

suppose value from ABAp side is 9.55

if length is 5.

then XI will give the value is 00955 ( i applied the right justified condition )

This is OK...

But in mapping when no value is coming from ABAP side,that time XI give error.

How do i create this mapping...????????

Regards,

sanghaitra

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Add an If condition to check if there is a value for the element. If element is empty or length = 0, use constant zero value.

Regards,

Jenny

Former Member
0 Kudos

ya..

but total mapping is ther...

in which position i apply these condition??

Former Member
0 Kudos

Hi Sanghaitra,

Put it on the first part. Do the following logic for your target element:

1. from the source element, use trim function to remove spaces

2. check the length of the Element using IfThenElse function. If length Equals 0, Then use Constant 0. Else, use source element

3. Add mapwithDefault - 0

4. Use formatNumber function to format the value in your desired output.

I have exactly the same scenario and it is working. Hope this helps.

Regards,

Jenny

Edited by: JennyAmi on Sep 8, 2011 9:00 AM

former_member854360
Active Contributor
0 Kudos

Hi,

Try to use MapwithDefault function.

Former Member
0 Kudos

use "mapwith default" function in ur mapping..

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

This is OK...

But in mapping when no value is coming from ABAP side,that time XI give error.

Assuming that the value is null or suppressed, you can use the node function mapWithDefault for your mapping e.g


source -> mapWithDefault:00000 -> target

If the value is a space or blank, you can use this logic


              constant:00000 -> \
source -> trim -> equalsS ----> ifThenElse -> target
       constant: -> / source -> /

Hope this helps,

Mark

Edited by: Mark Dihiansan on Sep 8, 2011 8:08 AM