cancel
Showing results for 
Search instead for 
Did you mean: 

Sender FCC - avoid blank field on output xml

Former Member
0 Kudos

I have a incoming text field with 10 fields. For the optional fields, in the output XML structure these fields will exist with blank values.

like <ADDR-2 />

<ADDR-3 /> .

My problem is, i use this XML as input for second interface to create an idoc. The idoc has empty segments created for this blank fields. how to avoid these ?

i would rather have the blank field not appear in my XML structure. I used fcc parameter "missingLastfields = ignore" - doesnt seem to work.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can check the nodes in mapping if they are empty.

Also make sure to have the IDOC segment occurance as 0..1 or 0..unbounded.

It will remove the white spaces and will not create the empty segments,.

Thanks

Swarup

Former Member
0 Kudos

Hi,

For this what u can do is u have to check every element value and compare that values with the null value if the input value is null then dont generate that XML tag or supress that XML tag otherwise generate that XML tag.

Thnx

Chirag

Former Member
0 Kudos

Guys,

My issue is only with the first interface. where in there is no actual mapping in IR.I have used FCC to internally convert the txt file in to an xml structure to be used by the second interface.

For emply field in txt, i want this FCC to ignore the fields in output.

Former Member
0 Kudos

Hi,

Your explanation is creating the confusion.

You are talking about total 2 interfaces, but I think it is the interface of

Flat File - (Use FCC)-> XI -


> IDOC.

This will be treat as only one interface and File will be sender and IDOC will be receiver.

You cannot avoid the blank spaces as such with FCC, but you could manipulate it in message mapping.

Here you just pass the values as it is but make sure to have the occurance as 0 - 1 or 0 - Unbounded.

Thanks

Swarup

Former Member
0 Kudos

Hi Ramchan,

Since you are once again taking this xml file as an input for your second interface, this values should not be a problem while mapping to a idoc.

or else in the first mapping try to put a createif before this field mapping so that it will not at all create.

Regards,

---Satish

Former Member
0 Kudos

I use only FCC for the first interface.

Like i said, empty field in xml structure causes blank segments generated in the final idoc.

-Ram