cancel
Showing results for 
Search instead for 
Did you mean: 

EDIFACT has a space missing

Former Member
0 Kudos

Hi all..

If in my XI mapping output, I have a empty node then in the BIC mapping output i want a <SPACE> to come.

For example if XI mapping is like this:

<A1>200</A1>

<A2/>

Then i want the BIC output to be like

200: ' where ' is the segment delimeter

instead it is coming like 200'

any idea how to change the properties so that we get the desired output?

Accepted Solutions (0)

Answers (2)

Answers (2)

prateek
Active Contributor
0 Kudos

This would be some trial exercise with certain option present in BIC when you open your mapping.

1. setIgnoreWhitespaces - check that it is turned off for your mapping.

2. SetSourceTrim - you may try turning it off

3. SetDestinationTrim - try turning it off too.

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek

I tried setting point 2 and point 3 but didn't get the desired result.

Are you sure it works?

As for the point 1 setIgnoreWhitespaces, I do not see any such setting in my BIC mappping.

Can you guide me exactly where to look?

former_member181962
Active Contributor
0 Kudos

Hi Alok,

In the XI Mapping (NOT BIC mapping) you can use mapWithDefault function to defualt a space instead of keeping it empty.

Then I think the BIC mapping will insert the space in the EDIFACT file.

Regards,

ravi kanth talagana

Former Member
0 Kudos

Hi Ravi

Sorry to say but that doesn't work.

If its only space coming PI , BIC trims it.

former_member187339
Active Contributor
0 Kudos

Hi itisha,

>>If its only space coming PI , BIC trims it.

Yes that is mapping done in BIC.

it is mapped so that if the input node is empty or doesn't exist then don't put any : in output

is there any problem with 200:' ?

Regards

Suraj

former_member181962
Active Contributor
0 Kudos

Hi Alok,

I think there is a setting somewhere in the BIC Mapping designer tool wherein, you can specify not to trim spaces.

I do not remember the exact place where you do the setting, but you can check where you give the segment delimiter and element delimiter values.

Regards,

Ravi

Former Member
0 Kudos

Hi,

You are right BIC mapping trims the content by default

for e.g check the condition used for mapping from source to target

if existsourceField("LIST.S_ISA.D_I04:value") && trim(LIST.S_ISA.D_I04:value) != "" 
   copy LIST.S_ISA.D_I04:value to ISA:I04;
else
   copy "" to ISA:I04;
endif

in order to populate the space value you need to change your BIC mapping accordingly.. i.e removal of trim value ..soon..

HTH

Rajesh

Former Member
0 Kudos

Hi Rajesh

How to change the mapping?

How to check the source code?can i modify it?

Former Member
0 Kudos

Hi,

You can modify the source code..

but before that you need clear understanding of all the fields for which spaces need to be handled..

In order to do it involves the long process...

You need to use BIC mapping Tool for the same..and create a copy of the standard mappings and modify as required ...

deploy the same to XI/PI server..

you need to do lot of modifications for this..

All the best and gud luck

Rajesh