on 07-30-2007 6:32 AM
Hi,
In my scenario i have the input file like below
HEADER;EMPNO;EMPNAME;TARGETSYSTEM
ITEMHEADER;DESG;LEVEL
HEADER;EMPNO;EMPNAME;TARGETSYSTEM
ITEMHEADER;DESG;LEVEL
HEADER;EMPNO;EMPNAME;TARGETSYSTEM
ITEMHEADER;DESG;LEVEL
Here TARGETSYSTEM values are SAPG1,SAPG2 and SAPG3
for each one HEADER and ITEMHEADER i have to create one idoc in the respective receiver system based on the TARGETSYSTEM value.
Based on the TARGETSYSTEM value, idocs should be created in to the respective system.
But problem is :
Its creating 3 idocs in first system, same 3 idocs in second system and same 3 idocs in third system also.
But i want to create one idoc in 1st system and second idoc in 2nd system and third idoc in 3rd system based on the TARGETSYSTEM value.
please help me, how to solve this problem
Thanks & Regards,
Vijji
Hi Vijaya laksmi,
I have seen ur question.
appriciate for doing file to muliple idocs first
without BPM, u can do this scenario ok
but while doing this scenario, u have to do idoc with max occurence ie first, after importing idoc, u have to export to xml file and change occurence inplace of "min occurence " write " min. occurence and Max. occurnce=" and then import this in External definition then u can use this in scenario for multiple idoc. Here don't require more interface mappings ok. u can do this only with one interface mapping. while generating idoc, at the time u have to save and send as multiple idocs how many u have to send to receiver systems just give the no how many idocs.
Even though you won't get it i will send file to multiple idoc scenario ok
all the best
regards
Peera
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj,
I have gone thru the scenario. It is possible by using Context Object. Here u need to define various systems without connectivity between the receivers by click the options in the below bar option "New Condition". So that every system will have its own condition and receive the data from source.
Ram Narender
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijaya,
Use a file with content conversion.
This will allow you to split the file even before the mapping step.
use the parameter "recordset per message" =1 and define the record set like this
HEADER;EMPNO;EMPNAME;TARGETSYSTEM
ITEMHEADER;DESG;LEVEL
Now you can use context objects and use the field of the target system.
This will create a message for each Idoc for each system....
Good luck.
Nimrod.G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay laxmi,
Can you try with <b>COPYVALUE</b> function.May be it is usefull for reslove the issue.
Regards,
Ramesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check these blogs,
Convert any flat file to any Idoc-Java Mapping
/people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping
File to Multiple IDocs (XSLT Mapping)
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
Any thing resolved.
Cheers
*RAJ*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Viji,
There is a work around for BPM in this case. But it could only be more performant heavy than using a BPM.
The work around I could see here is
Use 35 Business Systemms/services (one each for a target) and each receiver will have its own interface mapping.
But the better option would be to use a BPM and the steps in BPM
1. Receive (Asynch)-Input File
2. Transformation (Split into N number of IDOCS - Use multi mapping)
3. Send (Asynch) - Use condition here in Rxr determination.
Let me know if you need more inputs on this.
Regards,
Jai Shankar
Hi,
Did u try defining context object for target system then do condition based receiver determination >?
<b>Cheers,
*RAJ*</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Better use a BPM with a switch step. condition TARGETSYSTEM = sapg1 go to branch receiver One same with others.
<b>Cheers,
*RAJ*</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use variable substitution for each target system from input file.
Correct me if i'am wrong.i am working on a scenario where from one input XML file ,i have to generate multiple files dynamically.i am using variable substitution in Recr CC for filename (header field in the input file).here you can give target dir name also.
Try this if it is helpful.
Regards,
Srinivas
Hi,
Are you using 1:N mapping >?
Are you using BPM >?
<b>Cheers,
*RAJ*</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.