In MNS204 I have to run a specific print file on either serviceID M3_IDM_CSV or M3_IDM_XML.
Is there a way the report can be provided in both CSV and PDF at the same time, not having to switch the serviceID in MNS204 for CSV and PDF layout?
Hi Terje,
You create a Service in MNS216 with communication type 6 (IDM double interfaces). The standard one is called M3_IDM_COM. Then you use this in MNS204 instead. It means that you can use both CSV and XML.Then you define on the printout in CMS005/E that the interface to use should be 1 - Override is allowed. (If you use 0 - Always XML or 3 - Always CSV, printout will always use the selected interface).Once you have done this, you can select on the record in MNS205 which interface that should be used by selecting the value in File Type (PDF = XML, Excel = CSV). There is an option for both Excel and PDF, I haven't tested this but as I understand you should then get both versions. If it doesn't work you can always create two records in MNS205, one for each type.If you use the confirmation for the print, you can make the file type Editable so that the user can select which type to use when the printout is issued if they want the possibility to select different for each run.
Thanks DaHen, great info.
It works, except for the MNS205 setting = 3 ("Excel and PDF". But that is solved by creating 2 records/sequences in MNS205 and setting the interface to "CSV" for the sequence that provides Filetype=2.
I think this may be the problem with using setting = 3 ("Excel and PDF"). The filetype has to be set to either CSV or XML but looks like PDF needs XML while Excel needs CSV. Therefore, two sequences is needed. The is probably a way to fix this, but it works for me.
Thank you for your help!
Do you see any problems with running SerivceID=M3_IDM_COM as default in MNS204 instead of M3_IDM_XML?
No, not really. If you want the flexibility while having a simple setup in MNS204 I don't se any problems with it.