Create multiple IDocs
Hi experts,
I have a scenario where XI has to read the following flat file.
FI010 delivery start ( 1..1)
FI020 Section start (1..n)
FI030 paymentrecord ( 1..n )
FI040 Name adresse record FI041 Meddelelsesrecord
FI080 Sektion end
FI020 Sektion start
FI080 Sektion end
FI090 delivery start
For each FI020 section XI has to create an Idoc.
In the message mapping i can create only one idoc.
How can i split this source message into multiple messages ( dependant on FI020 section records ) so that message mapping is done for each message and mulitple IDocs are created???
Can i split the source message using file adapter?
can i use BPM transformation to do this??
Looking forward to share your ideas.......
thanks in advance
Suneel
Message was edited by: Suneel
Hi,
I was reading thru the thread..
I request a help.
I have a scenario where i have a outbound idoc (Zartmas04)
Against a material it can have multiple plant information.
It is required I update 6 tables of anotehr application if the incoming messages have all the mandatory fields..Else i have to consolidate all the error (Material Plant Comination) and send a Mail
Let me know how can i achieve this
Thanks
John
Similar Messages
-
How to create multiple idocs based on complex condition
HI Users,
my scenario is jms(xml file) to idoc. for each file have multiple records for each record i need to create multiple idocs.
source structure:
<lineitem>
<student sid="cid">456</student>
<hreference>
<reference rtype="number">123</reference>
</hreference>
<hreference>
<reference rtype="number">789</reference>
</hreference>
<hreference>
<reference rtype="char">147</reference>
</hreference>
now condition is One input message must create only one output message for each unique rtype="number" and sid="cid" combination.
for example
1. rtype="number" and sid="cid" the value combination means 123456 for this one idoc
2. rtype="number" and sid="cid" the value combination means 789456 for this one idoc
--> the below file shows with out sid="cid"
<lineitem>
<student sid="abc">456</student>
<hreference>
<reference rtype="number">123</reference>
</hreference>
<hreference>
<reference rtype="number">789</reference>
</hreference>
<hreference>
<reference rtype="number">147</reference>
</hreference>
in this case we have to consider only rtype="number" so here we need to create 3 idocs.
Could anyone help me in this regard.
Thanks in advanceHi Swathip,
Change the occurence of the IDoc to "unbounded", so that multiple IDocs can get create
Try with below logic
If (SID = "CID")
Then
If(rtype = "number")
concat(student,reference ) ---> removeContext ---> Idoc
Else
rtype ---> removeContext ---> Idoc
If combination of unique student and reference can occur more than once in the XML, use sort command and splitByValue (Value Change)
Edited by: chandra shekhar on Jul 3, 2011 12:53 PM -
Create multiple idoc with multiple receivers based on value mapping table
Hi,
Scenario:
Step1 : sender sends a finance doc iin the form of an idoc. This idoc will have multiple line items based on profit center. Do determine the value of receiving comp code(header field) n receiving system(logical sys name) value mapping table has to be used.
Solution so far: I can put an rfc lookup for fetching receiving comp code from mapping table with i/p paraameter as profit center . And split the incoming idoc based on comp code value by using split by value. Now I need your advise 2 take this further.
Issue 1 : say the incoming idoc has 4 line seg wid 4 diff profit center
Profit center. Rec comp code. Recv sys
P1. C1. R1
P2. C2. R1
PS. C2. R1
P3. C3. R2
Nw using this info, I want 3 diff idocs to be created for each unique comp code.
Idoc 1 : for C1 wid one line item + 1 for reconsilation ( to be generated additionally)
Idoc2 : for C2 wid 2 line items + 1 for reconsilation
Idoc 3: for C3 wid 1 line item + 1 for reconsilation
Idoc 1 and idoc 2 shud be sent to R1.
Idoc 3 shud be sent to R2.
Kindly advise on thisHi experts,
U all r pretty close, but let me put this more clearly.
Step1: create multiple idocs based on unique comp code - I'm able to do this using rfc lookup n split by value. So I get 3 idocs each for c1, c2 n c3.
Nw as per the values from value mapping table.
Idoc for c1 contains 1 line seg.
Idoc for c2 contains 2 line segs.
N idoc for c3 contains 1 line seg.
steps2 n 3, where I do not have a confirmed solution yet n need ur advise.
Step 2 : for each idoc generated I need 2 create n additional segment, mapping 4 which will be based on the values in the original segments for that idoc.
In d above scenario, idoc for c1 contains 1 line seg, nw I want 2 add one more seg to it. The amount and pisting key values in this segment wud be calculated based on the values of the amount and posting key belonging to the original segment in this idoc.
Similarly for idoc for c2 there are 2 segs, nw I need one more, means 3 in allm
Hence for idoc for c3, 1 orig already present + 1 more. = total 2.
Nw I need ur advise on how 2 generate this additional seg in each idocm
Step 3: when all dese 3 idocs are generated, ( in this case itz 3, in real time it can be n), I need to find their respective receivers using rfc lookup n then based on the receiver send 2 resp recvng systm
Nw how do I do this?
Please explain with examples if possible 4 bettr understanding.
u2020ђąu03B7kўu03C3u03C5 in advance. -
How to create multiple Idocs in SAP R3 ?
I have been asked question on Idocs from MNC company.
How to create multiple idocs in R3 ? Please let me know.hi ,
if you want to create in multiple IDOCS in XI , take XSD of IDOC and chnage the occurance to 1 to UNBOUNDED, you can genarate multiple IDOCS.
Regards,
Raj -
Multiple document numbers not created while creating multiple idocs.
Hi Experts,
we have developed one the interface file to idoc, whenever invoice number change it will create a multiple idocs.
but i am facing some issue with context handling, can you suggest the suitable mapping / UDF for the below issue.
Our customized idoc structure has header and line items and both are in not same level-its parent child structure.
in our sample file there are three different invoice number and as per the requirement its creating three idocs and corresponding headers but not line item details.
all line item details creating in 1st idoc itself and 2nd and 3rd idoc has only header items no line items. but tried fix with graphical mapping context handling for this problem but not resolved. please advise.
Regards,
Krushi.hi Hareesh,
thank you for your quick response.
after the File Adapter FCC, below is the inbound payload, first four feilds we mapped to header and rest for line items.
<SettlementDetails>
<row>
<PaymentType>CHECK</PaymentType>
<Filler></Filler>
<Currency>IN</Currency>
<Filler1></Filler1>
<Invoice>100410-133MT5-MH</Invoice>
<Filler2></Filler2>
<SettlementMethod>4</SettlementMethod>
<Filler3></Filler3>
<PreferredTradingPartnerIdentifier>MT</PreferredTradingPartnerIdentifier>
<Filler4></Filler4>
<FinalPayAmount>12.00</FinalPayAmount>
<Filler5></Filler5>
<ProductIDUnformatted>55111064001</ProductIDUnformatted>
<Filler6></Filler6>
<Filler7></Filler7>
<Filler8></Filler8>
<PaytoPreferredTradingPartnerIdentifier>MT</PaytoPreferredTradingPartnerIdentifier>
<ClaimType>ORIG</ClaimType>
<CMSRecordID>FFSU</CMSRecordID>
</row>
</SettlementDetails>
multiple settlement details will be there.
regards,
krushi. -
Creating multiple idocs in ABAP mapping
Hi,
my scenario is source message (JDBC) to target message (idoc).
There can be multiple idocs (unbounded).
I am using ABAP mapping to create the Idoc XML structure. For this i use function module IDX_IDOC_TO_XML.
The idoc is getting created but the problem occurs in case of generating multiple idoc instances.
I changed the idoc occurence to unbounded & used the new idoc external definition in the interface mapping.
I also call the IDX_IDOC_TO_XML & create the output stream factory in a loop (per idoc ).
However only 1 idoc gets generated every time.
Can someone suggest how to create the multiple idocs.
Regards
PrasenjitHi Prasenjit,
In order to generate multiple idoc first of all you need to change the target structure with multiple occurence...that you have already done...
Now while generating XML in abap mapping you have to make sure you have element idoc(with its content) repeating for your "N" number of idocs...
can you please copy paste your final xml generated...
Nilesh -
Dear Experts,
I need to create few Idocs - for MBGMCR - in WE19.
Can you please suggest is there any shortcut to to similate multiple idocs at a time.
I saw the option of using file as a template in WE19. But donot know how to use it.
Can some one pls help me?
Regards,
ShashidharFor the file option, you need to define a file port in WE21 then format a file in your IDOC format and drop it in that location. You then specify the file location in WE19. When I need to run a bunch of IDOCs, I use LSMW with WE19. LSMW can do just about anything. It depends on your requirements I guess.
-
Message output(IDoc) from MIGO creates multiple idocs repeats for each line
Hi Experts,
We want to send one idoc message thru MIGO output message control upon posting at HEADER level regardless of how many line items are there on the Purchase Order.
Using MIGO we are doing a 101 goods receipt on a PO with 3 line items and we are getting 3 idocs created with the same information form the message output control(basically it is at item level).
I don't know if this is how standard SAP designed the MM message output control.
From MIGO or MB03 there is no option to display the messages at the header level because you have to go thru the line item details to see the messages
I have also tried the collective slip option on MIGO and it did not work(help suggests that it will combine everything in one output)
Can you please let me know if there is a config or development that needs to made on controling the message output at the header level from MIGO.
Thanks for all your help
ShrajHi Sri hari Raju.
Did you solve this problem?
Can you tell me how?
Thanks -
Creating Multiple IDOCs and Line Items based on Posting date from file
Hi All,
My scenario is File to IDOC(MBGMCR01)...
Need your suggestions and help on how to go with this...
Source file structure is
DC61|2009-03-15|000000000001200051|00000005.00|200|0001|1234|
DC61|2009-03-15|000000000001200363|00000001.00|300|0001|1234|
DC61|2009-03-15|000000000001200334|00000002.00|400|0001|1234|
DC61|2009-03-16|000000000001201145|00000001.00|200|0001|1234|
DC61|2009-03-16|000000000001201086|00000002.00|100|0001|1234|
DC61|2009-03-17|000000000001200051|00000003.00|200|0001|1234|
DC61|2009-03-17|000000000001200052|00000003.00|200|0001|1234|
DC61|2009-03-17|000000000001200053|00000003.00|200|0001|1234|
DC61|2009-03-18|000000000001200056|00000003.00|200|0001|1234|
And target IDOC(MBGMCR01) is
IDOC (0u202699999)
E1BP2017_GM_ITEM_CREATE(0u2026999999)
Date
For Each new Posting date(column 2) of the source a new idoc to be created and the corresponding records of each posting date to be added to E1BP2017_GM_ITEM_CREATE
The out put for the above should be like this
IDOC(2009-03-15)
E1BP2017_GM_ITEM_CREATE=2009-03-15
E1BP2017_GM_ITEM_CREATE=2009-03-15
E1BP2017_GM_ITEM_CREATE=2009-03-15
IDOC(2009-03-16)
E1BP2017_GM_ITEM_CREATE=2009-03-16
E1BP2017_GM_ITEM_CREATE=2009-03-16
IDOC(2009-03-17)
E1BP2017_GM_ITEM_CREATE =2009-03-17
E1BP2017_GM_ITEM_CREATE=2009-03-17
E1BP2017_GM_ITEM_CREATE=2009-03-17
IDOC(2009-03-18)
E1BP2017_GM_ITEM_CREATE=2009-03-18
Will be thank ful if any one gives a hint....
Thanks and regards,
SridharI rather meant a picture of your mapping - anyways. Hope this is correct:
Your souce structure:
<MT_IAR>
<IAR_Recordset>
<IAR_Details>
<Inv_adj_date>
</IAR_Details>
<IAR_Details>
<Inv_adj_date>
</IAR_Details>
Than mapping should be like this:
<Inv_adj_date> ==> SplitbyValue ==> IDOC
Please confirm this doesn't work. -
JDBC to Idoc mapping - create multiple Idocs from 1 JDBC input
I am importing data using JDBC and I want to put the data in an IDoc on a SAP system. my data is about 100,000 rows, but my Idoc (ZIDOC) is defined as 1-35,000 for the segments. I have followed Ossnote 814393, and also set up my Interface Mapping to use my JDBC source and the Idoc as the target. In my Message Mapping, i use the source as my JDBC Message Type, and the target is my External Definition Idoc (changed to be 1 to unbounded).
My incoming JDBC mapping is:
JDBCinput (1:1)
-row (0...Unbounded)
-part (1:1)
-unit (1:1)
-type (1:1)
my outgoing Idoc (from external definition) is:
ZIDOC (1:1)
-IDOC (1...Unbounded)
-Begin (required)
-EDI_DC40 (1:1)
-Zsegment (1...35,000)
-part (1:1)
-unit (1:1)
-type (1:1)
I currently map JDBCinput = ZIDOC and IDOC, row = Zsegment, and the rest of the rows match.
When I use this mapping, my first 35,000 rows from my JDBC input gets mapped to ZIDOC with 35,000 segments, but the remaining 65,00 rows from my JDBC input just seem to be lost, as only this one ZIDOC is created. I would expect to see 3 Idocs created, 2 with 35,000 segments each, and the 3rd Idoc created with 30,000 segments.
Does anyone know what I need to change to get this mapping to work and create the extra needed Idocs? Can this be done with out using a BPM?
Any guidance?
Thanks
JakeHI,
Just try out with context change and check if it works
In this type of case, it is easy to use Java mapping so that you can generate target structures as you like.
Hope this helps,
Regards,
moorthy -
Multiple Idocs creation based on source conditions
Dear All,
I have to create multiple idocs from the source idoc based on the line litems ie if my source Idocs has 5 line items so 5 different idocs to be generated at target.
I am able to process upto this stage.
Now my requirement is that target Idocs is to be generated based on different plants available in the source idoc line items. I need to trigger a single idoc for the line items having same plant.
S.No Line Item No Plant
1 00010 8200
2. 00020 7800
3. 00030 7800
4. 00040 8200
5. 00050 2100
So, for the above case total 3 Idocs needs to be generated at the target.
Kindly suggest me how the mapping is to be done which can filter out the plants at line items and creates the no of target idocs.
Regards,
NJjust a samll pointer...
you can use
plant>sort>splitbyvalue(valuechange)->collapse context ..
this will create the plant Queue as
2100
7800
8200
now u can generate number of idocs based on this
Edited by: Tarang Shah on Mar 30, 2009 3:02 PM -
How to genereate multiple IDOCs from multiple rows in a single flat file
HI,
I am working on a scenario where I need to genereate a IDOC per one row in a flat file.
I created DT of following strcuture:
DT_TYPE
--DETAILS -
0..Unbound
F1------0..Unbound
F2------0..Unbound
F3------0..Unbound
IDOC is
ZIDOC
IDOC----1..1
-BEGIN-Required
-SEGMENT1---1..1
-SEGEMENT2-1..1
-SEGMENT3-1..999
To create multiple IDOCs if there are multiple rows in a flat file in MM i choosed occurances as 0..unbound in Signiture tab
Source structure:
Messages------1...1
-Message1--1....1
DT_TYPE------0..Unbound
DETAILS -
0..Unbound
F1------0..Unbound
F2------0..Unbound
F3------0..Unbound
Target Strcuture:
Messages----1....1
-Message--1....1
ZIDOC----1....1
IDOC------1..1
BEGIN---Required
SEGMENT1-----1..1
SEGEMENT2---1..1
SEGMENT3---1..999
I am unable to generate two IDOCs if there are two rows:
Am I missing some thing?
Thanks
RajeevHI,
I am working on a scenario where I need to genereate a IDOC per one row in a flat file.
I created DT of following strcuture:
DT_TYPE
--DETAILS -
0..Unbound
F1------0..Unbound
F2------0..Unbound
F3------0..Unbound
IDOC is
ZIDOC
IDOC----1..1
-BEGIN-Required
-SEGMENT1---1..1
-SEGEMENT2-1..1
-SEGMENT3-1..999
To create multiple IDOCs if there are multiple rows in a flat file in MM i choosed occurances as 0..unbound in Signiture tab
Source structure:
Messages------1...1
-Message1--1....1
DT_TYPE------0..Unbound
DETAILS -
0..Unbound
F1------0..Unbound
F2------0..Unbound
F3------0..Unbound
Target Strcuture:
Messages----1....1
-Message--1....1
ZIDOC----0....unbound
IDOC------1..1
BEGIN---Required
SEGMENT1-----1..1
SEGEMENT2---1..1
SEGMENT3---1..999
I am unable to generate two IDOCs if there are two rows:
Am I missing some thing?
It isnt possible with out BPM?
Thanks
Rajeev -
Creation multiple idocs on creation of a Purchase order
Hi all,
I am having a requirement wherein if I create/change any purchase order with multiple Items in one system, I need to create multiple sales orders in the receiving system with each item. That is, the sending system should send multiple ORDERS idocs to the receiving system with each item as one IDoc and need to create a Sales order for each item in the receiving system.
I am able to configure the systems in such a way that if I create a Purchase order with multiple items, it is sending one ORDERS idoc with multiple and henceforth, creating only one Sales order in the receipient system. But, not able to acheive the scenario I have mentioned above, i.e., creating multiple IDocs with one item each for the same purchase order.
So, Can anybody know how to handle this scenario? Also, can you please let me know whether is there any standard procedure for handling this scenario?Hi Adithya,
I too facing the same kind of requirement, can u please let me know how you achieved sending multiple idocs.
Thanks,
Kashif -
File to multiple Idocs using external definitions.
Hi all,
I have to create multiple idocs based on one field from source side.
Inorder to do this..I have decided to change the occurance of Idoc from 1 to 1..unbounded , in the xsd i have downloaded from standard Idoc.
which i have a plan to map to the filed , based on that i need to create new Idoc.
I have tried importing the modified xsd into external definition. but how i should relate it to standard idoc which I have mapped earlier?.
Thanks,
venu.HI Venu,
<i>
I have tried importing the modified xsd into external definition. but how i should relate it to standard idoc which I have mapped earlier?.</i>
After changing the Idoc occurence , you have imported the xsd into external definition. So this will act as as new message type for you in the mapping.
You can not use old mapping here.
Regards,
Moorthy -
Mapping from File to IDoc with multiple Idocs and multiple line items?
Hi All,
Need some help with mapping, requirement as below: I have a flat file with multiple records, need to create multiple idocs per each separate order in flat file with as many line items.
Order_1 field-1 field-2 field-3 field-4
Order_1 field-1 field-2 field-3 field-4
Order_2 field-1 field-2 field-3 field-4
Order_2 field-1 field-2 field-3 field-4
Order_3 field-1 field-2 field-3 field-4
Order_3 field-1 field-2 field-3 field-4
I have imported IDoc changed to 1:Unbounded, able to create multiple Idocs based on separate order from flat file.
Order_No - removeContexts - splitByValue(ValueChanged) - collapseContexts - exists - creatIf - IDOC
Now I am having hard time creating a line item segment E1EDP01. I want to have Idoc created below way:
IDoc-1 (Order_1)
E1EDP01
E1EDP01
IDoc-2 (Order_2)
E1EDP01
E1EDP01
IDoc-3 (Order_3)
E1EDP01
E1EDP01
I am getting multiple IDocs created. Please help me to create mutlieple line items under each Idoc. Please be speficic about the node funtions to be used, because I tried many times with different combinations, didn't work.
Regards,
N@v!nHi Navin,
Create your source structure like below
<Order>1 to unbounded
<Order_No>
<field1>
<field2>
<field3>
<field4>
</oder>
to create mutiple IDocs based on order number,use below logic
Order_No-->removecontexts--->sort--->splitbyvalue(Valuechange)--->collapsecontext-->Idoc
use below logic for E1EDPO1,
Order----->removecontexts------>
formatByexample------>E1EDP01
Order_No-->removecontexts--->sort--->splitbyvalue(Valuechange)-------->
try above logic and let me know if you any issues.
Regards,
Raj
Maybe you are looking for
-
How to repeat the column header on each page of the report?
Can any of you please suggest me on how to repeat the column titles on a table if the table extends over several pages: I tried the below action present in Re: How to make the column title needs to be on each page? It worked fine for the pdf format w
-
I'm not having any luck trying to figure out how to store some XML data into an AI file using the SDK. I was wondering if anyone had any suggestions on how to accomplish what I am trying to do:<br /><br />My plugin is notified when the file is being
-
Hi all, How can I add a check box in a interactive report???
-
How do I read a web page and extract text information from it with LabVIEW?
Hello, I want to read a webpage (not Labview), extract the text from the page and then sort out the text to get the information I want. It would be like reading a weather webpage and wanting to extract the current temperature from the webpage usign l
-
FW400 HD and focusrite interface conflicts
I have a iomega FW400 external HD and focusrite saffire pro 24 DSP interface. Both of these unit operate on their own fine. But if they are both connected either daisy chain or via the FW800 and FW400 ports of the rear on my iMac (same bus I know), t