on 06-19-2007 9:58 AM
Hi well my client wants to have read a file from FTP and each row of this file should fill a single IDoc.
The source looks like:
@C0B21061115054001775
@G0B11061115054001676
@E0B11061115054002005
...
Actually i have no idea how to say XI to read one line, make an IDoc out of it and read the next line. In my understanding XI is not able to do this!
Am i wrong? does someone has a solution on this?!
br Jens
this will be handled in your mapping
you can also ref: /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change to see how you can put up with multiple IDOCs !!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, well thx for ur hints!! Never read of it before!
One question left: Can i only change the occurence and add the changed XSD to the mapping and everything works fine as like in typicall file2IDoc Scenario?!
Or do i have to build everything new because of having to use the external definition?!
br Jens
Hi,
>>>>Can i only change the occurence and add the changed XSD to the mapping and everything works fine as like in typicall file2IDoc Scenario?!
exactly
that's the beauty of this approach
you only need to change it in the mapping
(in interface mapping you leave standard IDOC - not external definition - as per my blog)
>>>>Hi, well thx for ur hints!! Never read of it before!
that's why you need my book:
<a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
hm, there is my problem.
Source looks like:
MTRecord
-RecordSet
-- DetailsStructure
--- Data1
--- Data2
--- etc.
Traget IDoc-xsd:
ZIDOC01
- IDOC
-- EDI_DC40
-- ZIDOC01
--- Data1
--- etc.
I map RecordSet to IDoc
and DetailsStructure to ZIDOC01 (second listed!), and Data1 to Data1 etc.
So what is wrong? I am receiving error like: target-element ZIDOC01/IDOC can't be created. But the mapping seems to be right to me!
sorry for this....
thx Jens
Ok, no FCC question but back to the old topic.
I am not getting single IDoc but single Segments in my IDoc. But i wanna have single IDoc per row in source file!
Another problem: the LS-Name is written from SLD into SenderPartner-Field, but i need another name specified from the client!
There a discussion came up about the approach of using partners in WE20.
1. for every incoming file from single system one entry in WE20 or
2. having one entry for incoming and one for outgoing, managing the IDocs via Incoming and Outgoing Parameters.
What are ur suggestions?!
br Jens
hi Jens,
you can do it like this:
1. read the whole file
2. in mapping map each line to one IDOC (with trick from my blog):
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
this way each line will create one IDOC for sure
approach also described in my book:
<a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
so it's pretty easy and standard I'd say
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.