on 07-16-2009 1:37 PM
Hi,
My scenario is IDOC->File and the IDOC has some optional fields mapped to the file but the file is a CSV separated by ";".
I want to generate a ";;" on the file a field doesn't appear to the IDOC. The solution that I have to this is use the "EXIST" function in message mapping for source field and if it doesn't exist I map an empty constant to target message. But I want to know if there is a better solution because I've got a lot of fields to map in this way and my solution doesn't looks very "elegant"
Edited by: Marshal on Jul 16, 2009 3:08 PM
As I know to get correct csv file you have to use empty fields in rows, so you will not avoid it. The only improvement i see may be using MapDefault function.
Regards,
Radek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just used mapWithdefault...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey
This needs to be handled in message mapping itself.
in past i have used mapWithDefault for all the fields which may or may not exist on sender side but can give issues in File content conversion on receiver side if they don't exist.
Thanks
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.