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!n
Hi 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
Similar Messages
-
How to read Images associate with Purchase Requisitions and its Line Items
Hello,
My scenario: i need to read the Images associated with PR and its line items and pass them as Idoc FM.
Any idea where are these images stored in the SAP table or they just available till runtime
Regards,
AbhishekYou can have a look at the link here [GOS Contents|http://help-abap.zevolving.com/2009/02/generic-object-services-gos-toolbar-part-5-get-note-attachment-contents/]
Please note that in your case if its attachments only then pass la_relat-low = 'ATTA*'. if there is no filtering then pass 'NOTE', 'URL', 'ATTA' as required.
For the business object of PR pass BUS2105 and instance id pass the PR no.
The tables related to this are srrelroles,srgbinrel,sood etc. -
Posting an Idoc with Multiple Headers and Multiple Lines
Hi all,
I have a scenario like this fileXIIdoc
Invoice file comes in text file with multiple header and multiple lines like this
111 aaa 13214234 US (header)
09082010 ABC 9999 A (Line)
222 ccc 43454543 US (header)
09082010 XYZ 7777 B (Line)
09082010 PQR 8888 C (Line)
I need to post single Idoc with all the headers and lines
we are planning to use Custom Idoc,Is this possible by having the header segment as unbounded??
Regards
Edited by: Vamsi Krishna on Sep 8, 2010 8:05 PMhi,
lets go again.
you have to edit the custom IDoc and change the ocurrance on the header segment. also modify the details segment adding an addtional field that identify which header that this detail belong.
for this case you cannot change the occurrance in SAP PI because you wont identify what i have told you before. in PI apply to change the occurrance if you could send ONE Idoc Per Header.
now is better clear???
Let us know.
Thanks
Rodrigo P-. -
Two idocs with same idoc number in idx5
We are using an idoc to file scenario where idocs are bundled using bpm and posted to ftp. here the issue is we are getting two idocs with same idoc number in idx5. due to which the file in ftp is getting overwritten.
Could anyone suggest me what to do in this regard.Hi,
>>>check your sender system is sending same IDoc twice ?
if you send the same IDOC twice they both get different numbers as IDOC number is taken from the IDOC num range
unless you're able to send the same IDOC twice with the same IDOC num somehow
Regards,
Michal Krawczyk -
I am using Labview 7.1 and have been trying to capture data from 12 channels simutaneously sampled at 2MS/s each and streaming to disk for up to a minute or more. The hardware I am using is 2 x PXI 6133 S series boards with a MXI4 link to a Pentium D 2.8 Ghz machine with 2Gb ram. I have 2 sata drives set up in a raid 0 configuration which should give me hard disk write speed faster or equal to the MXI-4 transfer speed.
I have first started off by using the example code "multi device sync - analog input- cont acquisition" which has enabled me to sync the two boards and sample at the required speed.
To stream the data to disk, I have first merged the data from each board together to save it to one file. I have tried using the storage vi's but I end up with a Daqmx read error (trying to read data that is no longer available). I have played around with the read data size to the point that I either get a insufficient memory error, or I get the "trying to read data that is no longer available" error. I have also tried using the file IO blocks with some success and have found that I have been able to stream to disk only if I configure the daqmx read block to output the data in "raw 1D I16" format and plugging it into the file-write block. In doing this, I have noticed that using multiple channels on one daqmx read task, I will get all the channels in one 1D array rather than a 2D array organized by channels. This makes it messy to read at the end of this, and I also don't want to write another vi to separate the channels, due to the high chance of getting the data mixed or messed up if I happen to change the number of channels on a board
Is there a cleaner way of streaming this data to disk and keeping the channel data separated from each other?, and/or is there a better way to capture and handle the data I need?
I have attached the vi which I have got to consistantly work streaming to disk using the raw 1D I16 format.
Thanks in advance to anyone who can help.
Attachments:
multidevicesync_analoginput_streamtodisk.vi 197 KBHi,
i can suggest following
Refer to an example VI called as "High speed data logger.VI" in conjunction with "High Speed data logger reader.vi" in Labview examples. Alhrough the logger might be in Tradiditional Daq format, it can be quite easily converted to Daq Mx format to store data in Binary (I32 format) . I have used this for many of my applications and i have found that the data retrieved does not have any "messups".
Why not keep a seperate file for each card? This way, you do not have to load your application with extra process. You only have to acquire and save. After saving in Binbary format, you can retrive it offline, convert it to ascii format and merge the data files of various cards to get one consolidated ascii data file.
hope this helps
Regards
Dev -
Message Mapping-Generating Headers and corresponding Line items in 1 file
Hi,
I am working on JDBC to File scenario.
There is a staging table in SQL Server. XI polls the table every 20 secs and picks up all the data with flag = 0. After fetching the records it sets the flag to 1 so that the same data do not get fetched the next time.
The record have one Bill No and there can be more than 1 line items associated with that bill no.
The target structure is as follows:
Record 1
Bill No 0...unbounded
Line item 1
Line items 0...unbounded
Now the requirement is to generate a file with header and all the corresponding line items below it. That is one file can have many headers but all the line items should succeed its corresponding header.
I have written a UDF to generate the same.
For Bill No.:
Bill No -> RemoveContext -> Sort - > UDF -> SplitBy Value -> CollapseContext
UDF just removes the duplicate Bill No and generates the list.
Now the issue is if Bill No as per source is 8,4,1,3 then the ones getting generated in the target str is in the same order as it is in source that is 8,4,1,3. But I want this in the sorted order ie. 1,3,4,8. Althoug I have used Sort func, its not getting generated.
Please help.chk this:
BillNo-removeContext--sort--splitByValue(valuechange)---collapse Context---Record
BillNo-removeContext--sort--splitByValue(valuechange)---collapse Context---splitbyvalue(each Value)---BillNo(Target)
BillNo-removeContext---------------------------
-------------------------- SortByKey----------FormatByExample(2nd argument mapping below)---UDF2---Line Item
BillSerailNo(set its context to Row)--UDF1---removeContext--
BillNo-removeContext--sort--splitByValue(valuechange)----2nd argument mapping of "formatbyexample"
BillNo-removeContext---
--------SortByKey----FormatByExample(2nd argument)---UDF2--splitbyvalue(each value)-Bill Serial No
BillSerailNo(set its context to Row)----UDF1---removeContext-----
BillNo-removeContext--sort--splitByValue(valuechange)----2nd argument mapping of "formatByExample"
udf1: Input will be var1
Execution type: all values of a context
String a="";
for(int i=0;i<var1.length;i++)
a = a + var1<i>+ ";";
int b= a.length();
result.addValue(a.substring(0,b-1));
UDF2: input will be var1
Execution type: all values of a context
for(int b=0;b<var1.length;b++)
String [] a = var1<b>.split(";");
for(int i=0;i<a.length;i++)
result.addValue(a<i>);
Input:
<MT_Source>
<ROW>
<Bill_No>8</Bill_No>
<LineItems>
<BillSerailNo>second</BillSerailNo>
<LineItems>
<LineItems>
<BillSerailNo>second1</BillSerailNo>
</LineItems>
</Row>
<ROW>
<Bill_No>5</Bill_No>
<LineItems>
<BillSerailNo>First</BillSerailNo>
<LineItems>
<LineItems>
<BillSerailNo>First1</BillSerailNo>
</LineItems>
</Row>
<ROW>
<Bill_No>8</Bill_No>
<LineItems>
<BillSerailNo>Third</BillSerailNo>
<LineItems>
<LineItems>
<BillSerailNo>Third1</BillSerailNo>
</LineItems>
</Row>
<MT_Source>
Target:
<MT_Target>
<Record>
<Bill_No>5</Bill_No>
<LineItems>
<BillSerailNo>First</BillSerailNo>
<LineItems>
<LineItems>
<BillSerailNo>First1</BillSerailNo>
</LineItems>
</Record>
<Record>
<Bill_No>8</Bill_No>
<LineItems>
<BillSerailNo>second</BillSerailNo>
<LineItems>
<LineItems>
<BillSerailNo>second1</BillSerailNo>
</LineItems>
<LineItems>
<BillSerailNo>Third</BillSerailNo>
<LineItems>
<LineItems>
<BillSerailNo>Third1</BillSerailNo>
</LineItems>
</Record>
<MT_1> -
Integrtion Scenario using BPM with two sender and multiple receiver
integrtion Scenario using BPM with two sender and multiple receiver
How many Application Components are required?Hi Vinod,
1) In integration repository you can have one or many software components it depends on your landscape orchestration
2) In integration direcory you need at least one service for bpm and one or many for each system in your bpm
also each connection between systems and bpm must have receiver determination and so on.
Advice: Please treat BPM as a separate system.
best,
Wojciech -
What if I download music from my friends computer with his account and there's a song that shows up in my music library but I can't play it because it didn't finish downloading. What can I do to finish downloading it ?
You're right, it would have been covered under warranty. But because of the user damage, chances are there's a 200-something dollar fee . If you explain to them that it had a defect previously, they might replace it for you at no charge. **MIGHT**. But they would have to believe that it had a defect previously.
-
I am trying to free up some room on my touch and am unable to delete any songs or books from the listing. With iTumes open and my touch listed I open the touch. I then select the items I want to delete from the touch and press the delete button. Nothing happens. I have also tried to right click on the item, but a delete option is not listed. What do I need to do to get rid of some books?
Open itunes, connect ipod, go to each tab, select what you want to be on the ipod, sync
-
Does anyone have a recommended network, hardware and software configuration guide for a Portal installation running with multiple gateways load balanced (ie one URL) that talk to multiple servers?
David,
We've used Resonate (software) to load balance the gateways. It allows
you to group all the gateways under 1 virtual URL and load balance the
incoming connections over each gateway depending on the rules that you
define in Resonate. Look in the SUN portal whitepapers there is one that
talks about it specifically.
As far as load balancing the calls to the portals, the gateways will
automatically load balance across all the portals that they know about
using a simple round-robin rotation. You may be able to use Resonate in
front of the portals but you may need to activate persistance within
Resonate to ensure that the user always ends up on the portal that he
established his initial connection on (if you want that), check with Sun
on this one.
David Broeren wrote:
Recommended configuration for load balanced Portal with load balancer,
multiple gateways and multiple servers.
Does anyone have a recommended network, hardware and software
configuration guide for a Portal installation running with multiple
gateways load balanced (ie one URL) that talk to multiple servers?
Try our New Web Based Forum at http://softwareforum.sun.com
Includes Access to our Product Knowledge Base! -
LOV with auto suggest and multiple check boxes
Is it possible to implement LOV with auto suggest and multiple check boxes using ADF faces components?. Any alternative implementation/pointers are appreciated.
Regards,
SuryaHi,
build it yourself as a task flow opened in a popup. see: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/69-custom-lov-with-btf-276178.pdf
Frank -
When printing from Preview, the document prints with large print and many lines added and pages added. Why does this happen?
Thank you!!! That was the problem--scale was set at 200% (don't know why)--when I reduced it to 100% it printed perfectly.
Thanks again for helping me resolve this problem. -
Planning for product using multiple bom and multiple recipe involving SOP
Hi friends,
The problem. Currently we have maintained single BOM and single recipe (The BOM and Recipe used for MRP) for long term planning run. The FMCG sector of Client requested to have multiple BOMs and multiple recipes in the long term planning run. I.e. The planning is done quarterly and they wanted to use different BOMs and Different recipes for each quarter. But since the existing system has configured to use a single BOM and a single recipe we have a problem to use the long term planning run with the current setups.The problem we have is in this 001 planning scenario.
appreciate if you can help me how to accommodate multiple BOMs and recepis in the long term planning run.
thanks and regards
omHI Mr. Ready,
We create PIR though a submit Job and in this case how to mention the production version while creating PIRs . Also if I am creating PIR through MD61 how to record the version.
Please advice.
Thanks and Regards,
Om -
Partial-credit scoring in multiple response and multiple hot-spot questions
Hello everyone,
I'm calling on your generosity in the spirit of the holidays to help out a noob. I would like to create matching, multiple-response and multiple-hot spot questions where the user receives credit based on the number of correct answers within the question. For example, in a matching question where there are four items; if the user gets 2 out of the four items matched correctly, I would like for him to receive 2 out of 4 points.
I understand that Captivate doesn't support partial-credit scoring of this type, but a few posts have implied that it can be done with variables. Is there anyone who can walk me through this process, or send me to a link that will walk me through it? (I've scoured these forums and tried the Cp tutorials, to no avail.) And if it's not asking too much, please make it understandable to someone who has very little experience with variables.
Thanks, and Merry Christmas.
JR
(Running CP 5 on Windows Vista)Hello,
I did publish an article more specific on partial scoring, perhaps this could help you:
Partial scores and customized feedback
And since you are asking for more basic information, on my blog I point to some other articles to explain the meaning of variables with/without advanced actions. Feel free to have a look (there are more postings about advanced actions and links to articles over there):
Curious about variables ?
Unleash the power of variables with advanced actions
Lilybiri -
Diff between Multiple Threading and Multiple instance.
Hi ,
what is the main diff between Multiple Threading and Multiple instance?
Please give me the answerSatti4Java wrote:
Hi ,
what is the main diff between Multiple Threading and Multiple instance?The main difference (not "diff") is that the first one ends with the word "Threading" and the second one ends with the word "instance".
Really. Seriously. Now if you had some industry standard phrases you were comparing, there might be a useful discussion. But those are just words strung together. If that's a homework question, I recommend you find a different teacher. -
Oracle HR restrictions based on multiple assignments and multiple GRE's.
In oracle HR, with multiple assignments and multiple GRE. How can we restrict to having 1 assignment per GRE. I do not want more than 1 assignments per GRE. Has anyone done this before?
Hi,
If the requirement is to prevent the creation of multiple assignments, you can achieve that by personalizing the assignment form.
Thanks
Satheesh
Maybe you are looking for
-
Just installed Final Cut Express 4 but doesn't open
Hey I'm a dummy but....Just installed Final Cut Express 4 but doesn't open tells me I don't have the AGP graphics card,my ATI Radeon X1600?Do some imac 1.83 Intel Core Duo come with out it?I'm freek'n stuck!!Any help would be Greatly appreciated!!
-
Moving objects around the page
I want to design a 'spider-gram' using objects in Pages but I find I can't drag the circle and position it in the centre of the page. What am I doing wrong?
-
Mac book pro (late 2013) has a lag when sculpting and rotating models in Zbrush, but only when using my Wacom-capture tablet (if I use a mouse or trackpad its fine no lag). Also Premiere Pro CS5 playback is almost like watching footage in slow m
-
Bug? Filters not displaying in Canvas?
Trying to put a Colour Corrector on a piece of video to get rid of a green-ish background but keep the colours in the foreground. I drag the Colour Corrector onto the clip in the Sequence or get it into the viewer after having selected the clip, and
-
Apple computer and video file Compatibility
I have encountered a problem playing videos purchased starting a few months ago. It appears that poor play back is a result of my CPU being less than a 1.0 GHz, a newly stated minimum requirement, I think came with iTunes 7. It appears to me that the