on 01-25-2008 12:35 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.