on 09-27-2010 3:03 PM
Hi Experts,
My Scenario is : Idoc to File We are using PI 7.1..
Requirement is when i trigger an Idoc, at the target end at one location some fields of Idoc needs to be dropped as an .txt file and some fields of idoc needs to be dropped as an XML file in the other location of same FTP server.
Eg: If Idoc has 40 fields, in the txt file first 30 fields and in the XML file lat 30 fields needs to be dropped there is no condition checked for dropping the files, when an idoc triggers the contents of IDocs needs to be passed to both text and as well as XML file.
The file names for the both should be dynamically configured.
In ESR: --> Idoc needs to be imported, one data type for text file and another data type for xml file. so 2 data types & 2 message types, 2 services interfaces, one message mapping ( Need to use Multi Mapping), one Operation mapping.
In ID: --> My doubts: How many receiver communication channels are required? As we are using multi mapping i think we need to use only one reciver comm channel ( Correct me if i am wrong).
what are the other configurations required here the receiver system is one so one reciever determination and one interface determination.
Note: File names for both the files ( Text and XML) needs to be dynamically configured.
Suggest me whcih one should be used either Variable substitution or Dynamic UDF..
Your valuable inputs are appreciated..
Thanks,
--Kishore.
Hi,
There is one more approach, but you have to define 2 message mappings & hence 2 interface mappings for it.
First mapping for text file and the other would be for xml file.
In interface determination, mention both the interface mappings without any condition.
And yes, you will require 2 communication channel & so 2 receiver agreements as the target files are text and xml.
-Supriya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>As we are using multi mapping i think we need to use only one reciver comm channel ( Correct me if i am wrong).
as you're planning to use IDOC adapter, you know that you cannot use it with multi mapping right ?
not unless you have PI 7.3
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mike,
as you're planning to use IDOC adapter, you know that you cannot use it with multi mapping right ?
Since it is FILE adapter at receiving end (and IDOC as sender) we should be able to perform multi-mapping (1:n). If I am not wrong the restriction is applicable only for receiving adapters....that they should be on JAVA stack....corrections are most welcome
Regards,
Abhishek.
Hi Mike & Abhi,
At the target end we are using File Adapter and it basically relies on Java Stack, Since we are using multimapping with out checking any condition both the files needs to be dropped at the target directory,
so as the receiver system is one do we need more than one receiver determination i think it is not required ..
how many Interface determinations are required. (If we use the both message types in single service interface, i belive with one interface determination can we achive this.. else anyone will execute)
Correct me if i am wrong
Thanks,
--Kishore
Example 1 in this document is similar to you requirement:
And yes you will need only one Receiver and Interface Determination.
Regards,
Abhishek.
Hi Kishore,
You need to configure two different communication channels i.e one for .txt and other for XML(you need to have PI 7.3).
For the Filename: I wish to go ahead for Dynamic UDF.
Check below blog:
/people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.