on 07-10-2008 12:50 PM
Hi,
In my IDOC to FILE scenario, I am creating a CSV file from the incoming IDOC. I have a few optional fields in the incoming IDOC so if these fields have no value, then there are no XML tags in the incming XML file in Adapter engine for these fields.
In effect, when I create my CSV, these fields are missing. I want my CSV to have space/blank value between 2 commas for such fields.
Example:
So if idoc segment has 4 fields and field no 2 is optional(and blank in this case), I want my output file like
field1-value , , field3-value, field4-value.
I am sure this should be possible to do in FCC or field mapping, but I do not know the command. Appreciate your help.
Thanks
Shirin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
field2-value>exists()->ifthenelse->field2-value->Field2-Value
(true) (if-part)
field2-value>exists()->ifthenelse-> (Constant)->Field2-Value
(false) (else-part)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sharin,
In the mapping check if the optional field exist...
1. if so map the field itself
2. if not map a blank constant, this assures that the optionl field is always created in the target structure...
the same FCC can be used...
Thanks
SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use MappWithDefault Function to mapp the , , with the target field
Regards
Seshagiri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.