IDoc Split to different IDocs!!!!!!!!URJENT
Hi
Is there any possibility to split the IDoc ?
We have a scenario like - Header without any data - Segments with the data - trailer segment with the details of the segment count and parent idoc details.
We received one Inbound IDoc with 20000 segments.
While processing the IDoc, because of the huge data it is going to dump with low memory issue.
Is there any possiblity to split the segments into seperate idocs...in WE19 we can cut down the segments and create seperate idoc but count is very high we are not able to identify the numbers count.
Is there any other way we can process the IDoc splitting into different IDocs.
VVR
FICO Consultant
Hi Vuppala,
CAn you please help how u split the IDOC.
I have ARTMAS IDOC and as there is huge data i need to split it.
Can you please help
Thanks,
Akriti
Similar Messages
-
One IDOC split to multiple IDOC's
Scenario is in ECC 6.0 and SAP PI 7.0 .
SAP is sending Custom IDOC to PI 7 and PI 7 is sending that to receiver system.
The custom IDOC sometimes contains more than 250 segments and receiver system is not able to process IDOC's with more than 250 segments. Receiver system is having this limitation.
QNS :
(1) What are options to restrict IDOC's creation to 250 segments in SAP
OR
(2) Can it be taken care at SAP PI 7.0 end. Like 1 doc is coming to PI with more than 250 segments and Can PI break this into multiple idoc's of max 250 segment length so that no data loss is there.
Your suggestions are needed for both options.
Thanks in advance..Try out this mapping-
You need use 1:n mapping by making the occurance of target MT to unbounded.
Idoc -> Index(context,increment1)-> Division by n(250)->floor->SplitByValue->collapseContext->TargetMT
Segment ->Index(context,increment1)-> Division by n(250)->floor->SplitByValue->Target Segment
Iam not sure on how to build this logic in SAP.But the effective way is to implement this restriction in SAP before IDoc reaching PI. -
Message Split -- File to Idoc Scenario - ( Without BPM )
I have multiple records coming to XI in a File and I have to create Multiple Idocs to R/3.
Due to Complexity of mapping I'm splitting Maaping step into 2 message Mappings.
A-->B
B-->C
In the 2nd Mapping step I'm doing message Split meaning for each Source record I'm creating multiple Idocs ( To be precise each record on the source becomes 4 idocs in the Target.
2nd Mapping step is as follows
Source 1..1
Sourcerecord 0.. Unbounded
field1 0..1
field2 0..1
filed3 0..1
Target
Message 1
Idoc 1.. Unbounded
Idoc Structure..
Message 2
Idoc 1.. Unbounded
Message 3
Idoc 1.. Unbounded
Message 4
Idoc 1.. Unbounded
So based on some criteria each record of Source will be mapped to 4 Messages ( 1 each under each Message )
Is it possible to do this without BPM?. Iam sending all these Idocs to same R/3 System.
Thanks for any help..RKHi,
See the blog
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
<i>Basicly we have 2 ways of handling such scenarios:
- we can use a block step and send multiple IDOCs from our BPM
- we can also do a little trick and send multiple IDOCs from the XI without a BPM
The first approach is a standard XI approach. It involves the use of a BPM
so the speed of this transfer many not be very good in case you'd like to send
hundreds or thousands of IDOCs in just one call.
The second approach uses a little trick that was mentioned several times
on the XI Froum by a number of XI developers but is still not very clear to the XI newbies.
It allows us to send multiple IDOCs without the use of a BPM. Most probably this will be your choice
if you'd like to use such 1:N (IDOCs) scenarios effectively.</i>
Please see the bwlow threads also..
IDOC Splitting
File To IDOC Thru XI
Multi-Mappings in BPM (XI 3.0)
Please let me know , your prob..is solcev or not..
Regards
Chilla.. -
hi,
my scenrio is flie to idoc.
i recevie the file and i want to split the message coming from the file to different idoc based on a field(e.g doc. number).
i am using BPM..plz suggest me the steps type that is necessary for this process...
thanks....please have the steps in bpm as
1. Receive step ( message received form the file content conversion )
2. Transformation step with I:N mapping with AP and AR as target message types
3. A fork without end condition
4. A Block in each of the branches of folk
5. A Send step in each of the blocks
/people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
File->different type of mesages->split->IDOCs
also we can achieve this with XSLT see the below link may be useful..
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping -
Creating Multiple different IDocs without BPM
Hi all,
I have a scenario in where I have a input structure and have to create multiple different IDocs (the types of the IDocs are also different)
For example,
Input XML will create 5 IDocs of type A, 3 IDocs of type B, 1 IDocs of type C, no IDocs for type D and 10 IDocs for type E.
Is this possible without BPM? This will be a complex Mapping. In BPM I am sure for every type to create one send step would be easy. But would it be more efficient?
Thanks.>
Chris027 wrote:
> This looks promising, i'll try it.
something from the blog might be useful for you:
Messages that result from the split in a mapping-based message split are sent using one AE. So only adapters running on
the AE are supported. In particular, this means that target IDOC message splits are not supported since the IDOC adapter is not
part of the AE. -
How can I split an Orders05 iDoc into multiple iDocs?
Hello,
Can one of you experts please tell me how I can split an ORDERS05 iDoc into multiple iDocs based upon Delivery addresses?
For example, if the iDoc contains 3 different Delivery Addresses then I need to split it into 3 iDocs.
It has been suggested to me that I can Create a custom function module. In this custom fm split the idoc into 3 based on the delivery address and create it using the FM MASTER_IDOC_DISTRIBUTE.
Problem is I don't know how to do this. Any help is greatly appreciated. Thanks.
DanHi Dan Avis
Write a Custom Z program .
1 get order05 idoc number....
2 get the segment details...(Based on you condition...)
3 In a loop send the data to the FM MASTER_IDOC_DISTRIBUTE (Based on you condition...)
4 IDOC will generated,,,every loop and
5 Change the status of original idoc .
or
Create Function module and use the FM as process code to create 3 idocs...and processs...new generated idoc and block original idocs...
Call me if you have questions @ 302 290 5677
Thanks
Ramesh -
Hi All,
I have a scenario with BPM where i need to receive two different idoc. In this when I trigger from SAP one by one IDOC1 and IDOC2 it is executing properly but in case if I use transaction WE14 it is getting stucked in the loop step in BPM and it is not coming out. Actually the condition of the loop is infinite but designed a block in such a way this it receive IDOC2 we need to receive IDOC1. I used the same way in standard pattern in software component SAP BASIS in which http://sap.com/xi/XI/System/Patterns in that Integration process BpmPatternCollectMessage.
Please help me out how to solve this problem
Regards,
DhilHi jai,
I am triggering the IDOC by using WE14 by giving multiple idocs. Here if totally there 10 idocs, the 10th idoc will be IDOC2 and the rest are IDOC1. Yes i am using the option trigger immediately only.. please comment
Regards,
Senthil. -
1:N mapping - One EDI document (ST-SE) to be split into multiple idocs
Hello Experts,
I am working on a scenario where the source is an EDI 204 document. Now in this document, the L11 segment has a count of the total number of items in the source EDI document.
ISA
ST
L111110BC <------- 2 is the number of OIDs that can appear
OID*1
LADCAS3****BL84985197CGZZAM000521*122
LAD******CCCC12345678COCO12345678PMPM123456
OID*2
OID*910
OID*911
OID*1110
SE148744
IEA
Now both the OIDs are in a single ST-SE EDI document. The requirement is that if the number of OID segments exceed 910 in a single document, then the output needs to be split with one idoc containing 910 items (OID, LAD, LAD...). The next set of 910 OIDs (from OID*911 onwards)need to be output into a new idoc.
The header part for both the idocs would be the same. Only the detail part would differ for the next set of OID, LAD segments.
I do not intend to use BPM. I want to achieve this using using graphical mapping.
Awaiting your replies.
Thank you
VincentHi Vincent,
1:n Multi mapping can be used for that. Please refer to the following link for how to implement a message split using multi mapping.
http://help.sap.com/saphelp_nw04/helpdata/en/26/9e97b0f525d743882936c2d6f375c7/frameset.htm
Honestly speaking, I have never tried using that myself. But after seeing your post I am now keen to develope a similar interface. Will let you know if I am successful.
Regards,
Suddha -
How to send two different IDocs to SAP without BPM
Hi Experts,
I am working on jms to IDoc scneario,my requirement is to convert one JMS messge in to 2 IDocs(DELVRY,MATMAS) to ECC , i searched in SDN to achieve this requirement without BPM, i found one blog,but its saying its not possible to use multi mapping scenarios with out BPM in IDoc
what is the best approch to achieve my requirement without BPM.
Regards,
Jamesis it true that multi mapping not going to support IDoc scenarios??
Yes it is true that IDOC does not support multi-mapping....this can be proved if you look into the help section which shows the list of adapters supporting multimapping....IDOC is missing from that list....do not get confused between Idoc Multimapping and IDOC Bundling.....IDOC bundling means bundling IDOCs of same type...however you are looking for IDOCs of different types.
Regards,
Abhishek. -
BPM could be trigger for two different IDocs
Hi Gurus!!
Can I configure a BPM to be triggered by one of two different IDocs? I explain my scenario to clarify the question.
I have a requirement to do several actions with the IDoc Types MATMAS05 (Material) and CLFMAS02 (Material Characteristics).
To do these actions I use BPM, but I have several scenarios: receive MATMAS05 and CLFMAS02, receive only MATMAS05 or receive only CLFMAS02.
I need to configure the BPM to be triggered by MATMAS05 or CLFMAS02, somebody could guide me, please?
I have read something about a receiver determination step on the BPM.
Thanks and regards,
Manuel.Hi All,
I am also facing same problem. I want to create material using IDOC and characteristics value. Don't know how to proceed.
Can any body explain in detail if possible with example code.
Thanks and full points in advance. -
Hi All,
I am getting a file from Legacy. I want to send this to SAP. So I have imported my IDOC into XI. Now in my IDOC I have three segements. In the second segment I have three fields. This three fields are mapped from File. Now if any one of the fields in this three changes then I have to post it is a new IDOC. Can anybody tell me how to proceed for this?
korobeeKorobee,
If I understand this correctly you want to create multiple IDocs of the same type when the file contains different values in a specific field.
First of all you need to enable the mapping of multiple IDocs in you message. In order to do so, get the dtd/xsd for the IDoc (from transactio we60 in SAP R/3 or http://ifr.sap.com) and change the maxoccurs attribute of the IDOC node to unbounded. Import this dtd/xsd in the Repository and use this in the message mapping. Leave the interface mapping as it is. Note that the IDoc adapter does support multiple IDOC segments, it's just the imported IDoc that doesn't show it.
In your message mapping you can now create multiple IDocs by mapping the IDOC node as follows, where ff1 is the field from the flat file with the changing value:
ff1 (Context 'root') -> SplitByValue (On Changed value) -> CollapseContext -> IDOC.
Hope this helps,
Koen -
IDOC - IDOC scenario with different message types
Dear Experts
I will like to have your expert opinion in the following question:
I have an IDOC -> IDOC scenario. Wherein at the destination system I have a message type which does not exist at the source system.
Also the IDOC type at destination system does not exist at the source system.
Let say, I will be creating custom message type at source system (Z****) and will also be creating the custom IDOC type (z****) with the same structure, definition as the destination.
Now my question is, even if there will be different message types and different IDOC types but with the same structure (the segment level definition
and field attribute remains the same at both the system). The difference lies with the names. And I have proper mapping though process code.
Will I be able to receive the IDOC correctly at destination?
Thanks & Best RegardsHi All
I figured out the answer myself now.
You got to have same name for message type. All of you said this and this is rite.
Coming to IDOC type, I did not really got clear idea on this from this discussion.
But after working on a scenario, I learnt that, you can have different names for IDOCs, but provided that, whichever IDOC type the source system is sending, the same type must exist in your destination as well. Otherwise, system wont process your IDOC. But from mapping point of view, its upto individual how do thay handle mapping inside inbound process code for different idoc types / strucutes.
Lesson learnt by me, ideally try to keep same name for both logical message and idoc type at both source and destination. If possible try to keep the structure level also the same. This is my view, learnt it the hard way.
Cheers
Shane -
Same message type and two different IDOCS need to be triggered
Hi,
I have two idocs with same message type,the partner profile is same.
Please tell if there is any way to handle this situation without changing the message type.
Please do the needful.
Thanks,
NiveditaHi
We can have same message type for different idoc types.
ex:MATMAS.MATMAS01
MATMAS.MATMAS02
MATMAS.MATMAS03
In the above example MATMAS is the same message type for different idoc types.
Thanks -
IDoc sent by different party looks different
Hi,
We have a scenario where we receive IDocs from different party.
If I check in SXI_MONITOR,the structure of inbound message(IDoc) looks different:
It looks like a normal file with XML tags,without any colours and expand/collapse structure like we have in Internet Explorer .
It has all the XML tags in one single line without CR/LF.
I hope I am able to explain it in a proper way.
Can anybody please let me know what is difference in this IDoc XML?
Thanks.
Best Regards,
ShwetaHi Ravi,
I don't have access to their system,so I can't check this IDoc in their system.
But I checked the IDoc XML for the IDoc created by this IDoc in our system by running the Function Module and it looks fine even though it is same in Payload of Message Mapping response in SXI_MONITOR.
Thanks.
Best Regards,
Shweta -
IDoc Split with out BPM using SplitByValue at the LineItem Level
I have an Invoice idoc contains line item and identifier changes into groups, let's say A & B
Using Message Mapping, Will i be able to Split into 2 IDOCs and combine A into one IDOC and B into Another IDOC and send it across to ECC with out using BPM?
Btw the header is commom for both the IDOCs
Source
<Header>
<headertext>headername</headertext>
<lineItem>
<item1>A</item1>
<item2>B</item2>
<item3>A</item3>
<item3>B</item4>
</item>
</lineitem>
</header>
Target
IDOC 1
<Header>
<headertext>headername</headertext>
<lineItem>
<item1>A</item1>
<item2>A</item2>
</item>
</lineitem>
</header>
IDOC 2
<Header>
<headertext>headername</headertext>
<lineItem>
<item1>B</item1>
<item2>B</item2>
</item>
</lineitem>
</header>
Any inputs are appreciatedI actually gave wrong information on the source structure, I am trying to execute scenario with the given examples, meanwhile any help is appreciated
<Header>
<Date>20100112</Date>
<Amount>10</Amount>
<No>20</No>
</Header>
<InvoiceItem>
<Line1>10</Line1>
<Line2>10</Line2>
<Amount>10</Amount>
<ActionIndicator>I</ActionIndicator>
</InvoiceItem>
<InvoiceItem>
<Line1>20</Line1>
<Line2>20</Line2>
<Amount>20</Amount>
<ActionIndicator>C</ActionIndicator>
</InvoiceItem>
<InvoiceItem>
<Line1>30</Line1>
<Line2>30</Line2>
<Amount>30</Amount>
<ActionIndicator>I</ActionIndicator>
</InvoiceItem>
<InvoiceItem>
<Line1>40</Line1>
<Line2>40</Line2>
<Amount>40</Amount>
<ActionIndicator>C</ActionIndicator>
</InvoiceItem>
Target 1
<Header>
<Date>20100112</Date>
<Amount>10</Amount>
<tNo>20</No>
<ActionIndicator>I</ActionIndicator>
</Header>
<InvoiceItem>
<Line1>10</Line1>
<Line2>10</Line2>
<Amount>10</Amount>
</InvoiceItem>
<InvoiceItem>
<Line1>30</Line1>
<Line2>30</Line2>
<Amount>30</Amount>
</InvoiceItem>
Target 2
<Header>
<Date>20100112</Date>
<Amount>10</Amount>
<tNo>20</No>
<ActionIndicator>I</ActionIndicator>
</Header>
<InvoiceItem>
<Line1>20</Line1>
<Line2>20</Line2>
<Amount>20</Amount>
</InvoiceItem>
<InvoiceItem>
<Line1>40</Line1>
<Line2>40</Line2>
<Amount>40</Amount>
</InvoiceItem>
I know the part of Splitting IDOC, which was executing correctly, with the external data type changes. Please advice
Maybe you are looking for
-
What cable do I need to connect my ipod classic to my tv?
I am wondering if anyone can help me? I have an ipod classic 160gb, hoping to watch some of the movies/tv episodes I have on there on my tv. I realise that only apple's own brand cables work with the ipod classic, but which one do I use? I have a pre
-
Library files keep appearing on the Desktop!!!!
Hello For some weird reason the iTunes Library (Damaged),iTunes Library (Damaged) Extras, itunes music & Album Artwork keeps appearing in my desktop :/ I deleted them but whenever I open itunes they appear again!! I went to preference >> advance and
-
Report Generation Toolkit and App Builder question..
Hello, I am in process of modifying my test code for writing my data to Excel. When I first developed the tests I did not have the Report Toolkit of Excel so I built the ActiveX VIs I needed. Now since I have upgraded to 7.1.1 with the MSOffice Toolk
-
Not able to print chart from second page onwards..
I'm trying to print chart in xml publisher report. Requirement is to print chart for each employee one next page. I'm able to print chart using preview, but not in concurrent program output. Rest of the details are printed without any issue. Can some
-
I have a problem with iCloud., I have a problem with iCloud.
My imac has software version 10.9. Whenever I do something related with icloud I get a message asking for my password. OK I know the password for my apple ID but that is different to the icloud email and password. I changed email provider a while ag