Combining occurences of different segments at same level

Hi All,
I have two different segments(VOL1 & VOL2) at same level on source side.
Say first segment repeats two times and second segment repeat three times.
I need to produce a single queue having combined occurences of  these two segments which has five occurences in a single queue.
Please provide inputs how to achieve this.
Thanks,
Marz

Hi,
This is not possible without using UDF. What you can do is to use a mapping like this:
All UDF's must be of Context type, the simplified version would be:
VOL1 --> removeContext --> UDF1 --> concat: / --> UDF2 --> Target
VOL2 --> removeContext --> UDF1 -
> /
UDF1 is a UDF that concats all values of VOL1 or VOL2, while UDF2 is a UDF that splits the combined values of VOL1 and VOL2 that has undergone the transformation
For UDF1, you can use this code: input argument is a
StringBuffer e = new StringBuffer();
String b = null;
for (int i=0;i<a.length;i+){e = e.append("/"a<i>);}
b = e.toString();
b = b.substring(1,b.length());
result.addValue(b);
For UDF2, you can use this code: input argument is input
String b[] = input[0].split("/");
for (int a=0;a<b.length;a++){result.addValue(b[a]);}
Hope this helps,

Similar Messages

  • Different segment in same document for leading and non-leading ledger

    Hi,
    Is it possible to have different segments derived in the same document for Leading and Non-leading ledgers.
    Is there an exit where we can substitute the segment originally derived so as to update only in one particular ledger
    Please suggest.

    Thanks Alex for your response.
    But would it be possible to update the segment only in one ledger, the other one carrying the default values coming from profit center?

  • How to Use different icons for JTree in the same level

    Hi guys, i come cross a problem with JTree. The module need a JTree which need to represent items in the same level using different icons. For example:
    [Icon for Root]Root
    |
    |_____________[Icon for Table] TABLES
    |
    |_____________[Icon for Index] INDEXS
    |
    |_____________[Icon for Views] VIEWS
    As i know, the default behavior for JTree is using the same icon for all leaves and
    the same icon for all node that has children. How can i achieve that?
    Thansk a lot!

    subclass DefaultTreeCellRenderer. if you overwrite the method below, then you can set the icon to whatever you want....!
        public Component getTreeCellRendererComponent(JTree tree, Object value,
                                    boolean sel,
                                    boolean expanded,
                                    boolean leaf, int row,
                                    boolean hasFocus) {
         String         stringValue = tree.convertValueToText(value, sel,
                               expanded, leaf, row, hasFocus);
            this.tree = tree;
         this.hasFocus = hasFocus;
         setText(stringValue);
         if(sel)
             setForeground(getTextSelectionColor());
         else
             setForeground(getTextNonSelectionColor());
         // There needs to be a way to specify disabled icons.
         if (!tree.isEnabled()) {
             setEnabled(false);
             if (leaf) {
              setDisabledIcon(getLeafIcon());
             } else if (expanded) {
              setDisabledIcon(getOpenIcon());
             } else {
              setDisabledIcon(getClosedIcon());
         else {
             setEnabled(true);
             if (leaf) {
              setIcon(getLeafIcon());
             } else if (expanded) {
              setIcon(getOpenIcon());
             } else {
              setIcon(getClosedIcon());
            setComponentOrientation(tree.getComponentOrientation());
         selected = sel;
         return this;
        }

  • Photo Elements 12, Mac OS X 10.9.5, Trying to combine two images side by side, same height.  Get this message: "Panorama could not be created as some images could not be automatically aligned". Tried with several different images, same height each combo

    Photo Elements 12, Mac OS X 10.9.5, Trying to combine two images side by side, same height.  Get this message: "Panorama could not be created as some images could not be automatically aligned". Tried with several different images, same height each combo

    One does not "see" the images when selecting;  You just select two file names, click OK, PhotoShop does the rest, and comes back with same message.

  • Message mapping Segments concatenations at same level

    There are n number of segments repeating at the same level. We need to concatenate the all these fields and map it to the target field description.Right now only one segment text is displaying in the description field at target .

    Hi,
    you could use a UDF of type context with input param a:
    String returnValue = "";
    for (int index = 0; index < a.length; index++) {
    returnValue += a\[index\];
    result.addValue(returnValue);
    Regards
    Patrick

  • MM DELFOR IDoc segments are all at same level - no sub-segments.

    Greetings.
    I am trying for the first time to set up outbound releases (830) and JIT's (862) for MM Scheduling Agreements.  I want to make it as standard as possible and only use User Exits if necessary, so I am using Output Types LPH1 and LPJ1.
    In WE20, if I use Message Type DELFOR for LPH1 with Process Code ME14, the resulting IDoc is "flat" - i.e., all the segments are there, but they are all at the same level (0), so SAP stops processing with a syntax error saying that the segments which should be under their parent segments are missing.  I tried both DELFOR01 and DELFOR02 for the Basic Type.
    I discovered that I can us DELINS and make this work, so this is not an emergency.  But can someone tell me how to make DELFOR work?
    Thank you in advance.

    Hello Vikrama, thank you for your response.
    DELFOR is also a Message Type, which allows DELFOR01 and DELFOR02 as choices for the Basic Type in the IDoc Type block of the first Outbound parameter window in WE20.
    The description for DELFOR is "Delivery schedule for component supplier", which seems more appropriate than "Delivery schedule/JIT schedule" which is the description for DELINS.
    I think it would be more clear if you could use DELFOR when all you want is forecast schedules, and both DELFOR and DELJIT if you want both forecasts and JIT's.
    Thanks again,
    Dave

  • Different chart for each level hierarchy in report designer

    Is there a way to display a different chart for each level of the hierarchy in a report designer? I want a different chart for each level. That is, if there are 5 nodes in level 4, I want 5 different nodes. Is there a way to do this? I tried to insert the chart inside a cell in each level, but it shows the same chart for all nodes instead of a different chart for each node.

    Has any one tried using a context sensitive chart?  According to this, it seems like this should be possible, but I am having no luck.
    http://help.sap.com/saphelp_nw70/helpdata/en/47/a99a0a5fdb0985e10000000a42189c/frameset.htm

  • Different cpuspeednw on two different hosts with same cpu config. Why?

    Hi,
    there are two hosts.
    They are different, but have same CPU configuration (I guess it from the output below).
    Host1: Solaris 10, 4 cpu, 4 core in each cpu.
    psrinfo -v
    Status of virtual processor 0 as of: 03/04/2010 08:57:45
    on-line since 12/25/2009 11:03:23.
    The i386 processor operates at 2133 MHz,
    and has an i387 compatible floating point processor.
    Status of virtual processor 15 as of: 03/04/2010 08:57:45
    on-line since 12/25/2009 11:03:25.
    The i386 processor operates at 2133 MHz,
    and has an i387 compatible floating point processor.
    Host2: CentOS 5.3. Also 4 cpu, 4 cores in each spu
    cat /proc/cpuinfo
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 15
    model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
    stepping : 11
    cpu MHz : 2133.413[b]
    cache size : 2048 KB
    physical id : 0
    siblings : 4
    core id : 0
    cpu cores : 4
    apicid : 0
    fpu : yes
    fpu_exception : yes
    cpuid level : 10
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca c
    mov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constan
    t_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
    bogomips : 4270.09
    clflush size : 64
    cache_alignment : 64
    address sizes : 40 bits physical, 48 bits virtual
    processor : 15
    vendor_id : GenuineIntel
    cpu family : 6
    model : 15
    model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
    stepping : 11
    cpu MHz : [b]2133.413
    cache size : 2048 KB
    physical id : 6
    siblings : 4
    core id : 3
    cpu cores : 4
    apicid : 27
    fpu : yes
    fpu_exception : yes
    cpuid level : 10
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
    bogomips : 4266.82
    clflush size : 64
    cache_alignment : 64
    address sizes : 40 bits physical, 48 bits virtual
    QUESTION:
    Host1 (Solaris) has cpuspeednw = 700
    Host2 (CentOS) has cpuspeednw = 1700
    WHY?
    What should I do to find out why this is happening?
    Edited by: user10944480 on Mar 14, 2010 7:22 AM
    Edited by: user10944480 on Mar 14, 2010 7:24 AM

    user10944480 wrote:
    QUESTION:
    Host1 (Solaris) has cpuspeednw = 700
    Host2 (CentOS) has cpuspeednw = 1700
    WHY?
    What should I do to find out why this is happening?
    The CPUSPEEDNW is measured in "millions of Oracle operations per second" - but we don't know what "operation" Oracle is using for measuring. Since you have two difference operating systems, it's possible that the "operation" that Oracle uses is one that makes use of the "OSD" (operating system dependant) code and has a very different code path on the two machines that results in a very different speed of completion.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    There is a +"Preview"+ tab at the top of the text entry panel. Use this to check what your message will look like before you post the message. If it looks a complete mess you're unlikely to get a response. (Click on the +"Plain text"+ tab if you want to edit the text to tidy it up.)
    +"Science is more than a body of knowledge; it is a way of thinking"+
    +Carl Sagan+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Different View for same document library on a Wiki Page

    Hi,
    I am developing a Provided hosted app which have a functionality to create a document library with two Views. Also we need to show this document library in a wiki page with two different views.
    I am using CSOM (C#). I am able to create the document library and the two views programmatically. But when I add the document library in the wiki page the default view (All Documents) is shown for both the web parts. There is an hidden view created with
    the WebPartDefinition from the xml provided through code. 
    Through CSOM we are able make a View as default with the link below.
    http://sharepoint.stackexchange.com/questions/90433/add-document-library-xsltlistviewwebpart-using-csom-or-web-services
    In my case both the webparts will get the same view, where I need different view for same document library in a wiki page.
    Also I tried to update the web parts with the following code.
    string viewString = @"<View Name='{0}' MobileView='TRUE' Type='HTML' Url='/SitePages/Home.aspx' Level='1' BaseViewID='1' ContentTypeID='0x' ImageUrl='/_layouts/15/images/dlicon.png?rev=23' >
    <Query><Where><Eq><FieldRef Name='KeyDocument'/><Value Type='Boolean'>1</Value></Eq></Where></Query>
    <ViewFields><FieldRef Name='FileLeafRef'/><FieldRef Name='DocumentOwner'/><FieldRef Name='Modified'/>
    <FieldRef Name='_UIVersionString'/><FieldRef Name='Editor'/></ViewFields>
    <RowLimit Paged='TRUE'>30</RowLimit><JSLink>clienttemplates.js</JSLink><XslLink Default='TRUE'>main.xsl</XslLink>
    <Toolbar Type='Standard'/></View>";
    WebPartDefinition wpd = wpfound.FirstOrDefault();
    string formattedstring = String.Format(viewString, wpd.Id);
    wpd.WebPart.Properties["XmlDefinition"] = formattedstring;
    wpd.SaveWebPartChanges();
    web.Context.ExecuteQuery();
    I created two views (viewString) as shown above.
    The above code did not throw error, but it did not update the web part.
    Please advise how to move forward.

    Hi Samir,
    When we click outside of the list view webpart on a webpart page (or allitems.aspx page) with containing multiple webparts, the list view webpart will lose the focus, and the selected items will be deselected, this is by design.
    You can look at the following article with using the approach/workaround of Javascript to prevent the specified list view webpart from losing focus.
    http://sharepoint.stackexchange.com/questions/44360/list-view-loses-focus-when-additional-webpart-added-to-page
    //Set focus on our list web part
    var webPart = document.getElementById('WebPartWPQ1');
    WpClick({target: webPart});
    //Prevent it from losing focus
    SP.Ribbon.WebPartComponent.$3_1.deselectWebPartAndZone = function() { };
    Thanks
    Daniel Yang
    TechNet Community Support

  • Div not at same level as logo image

    I imagine I am missing something basic on this the end of my
    first leg of my css journey.
    I have added a new div into my page call "whatwedo" which is
    in the header div and meant to be at the same level as the logo on
    the righthand side (where it is floated correctly I believe).
    Why is it not in the right place, what am I missing?Thanks
    for any pointers
    .whatwedo { float: right; width: 200px; font-weight: bold; }
    http://216.219.94.105/david1.htm
    Thanks

    Updated: 2015-07-16Hello!
    Your idea has been submitted a while ago but unfortunately hasn't gathered enough kudos (25 per year). In order to keep an overview of the active ideas in this forum, we will close this idea for now. However this does not mean that your idea has been declined by Spotify.
    If you still feel strongly about your request, we encourage you to post your idea in a little different form again! Maybe now is the right time to receive the support of our community for your suggestion! ;)
    Do you have any further questions on how the idea exchange is managed? Just click here!

  • Several nested loop at the same level in an execution plan

    Hi, I am using 11gR2, and I've seen a execution plan in the trace of my SQL query (also shown in pl/sql explain plan) with 4 nested loops all at the same level, what does this mean?
    i.e.
    - SELECT STATEMENT, GOAL = FIRST_ROWS
    + NESTED LOOPS
    + NESTED LOOPS
    + NESTED LOOPS
    + NESTED LOOPS
    each NESTED LOOP can be expanded to 2 further actions, which make sense to me. e.g.
    + NESTED LOOPS
    + TABLE ACCESS BY INDEX ROWID
    + TABLE ACCESS BY INDEX ROWID
    THANKS
    Ye

    >
    why there are 4 Nested Loops
    what is the final result set for the SELECT statement come from (any one of the 4)
    the query run so slow in 11R2
    >
    So far you are the only one who knows what the query and execution plan are because you haven't posted them
    >
    Then you need to post the query, tell us what indexes are on the join columns and post the complete plan.
    >
    We can't even begin to explain why Oracle might have chosen the plan it did if we can't see the query and plan you want explained.
    And if we only see the plan we might be able to tell you what Oracle is doing but without knowing what indexes might be on the join columns and the filter criteria columns we can't tell you why Oracle chose the plan it chose.
    And the excerpt of the plan you did provide is incomplete. You removed the indenting possibly because you did not enclose it in 'code' tags (see the FAQ).
    >
    - SELECT STATEMENT, GOAL = FIRST_ROWS
    + NESTED LOOPS
    + NESTED LOOPS
    + NESTED LOOPS
    + NESTED LOOPS
    >
    There can't be four nested loops like that at the top level since the top level will be combining the result sets from it's children. A nested loop will have two children; like the last part you showed:
    >
    + NESTED LOOPS
    + TABLE ACCESS BY INDEX ROWID
    + TABLE ACCESS BY INDEX ROWID
    >
    The two 'TABLE ACCESS ...' will be indented on a normal plan.
    Without the query and plan there isn't much we can tell you.

  • Combined delivery with different delivery dates:

    Combined delivery with different delivery dates:
    We are experiencing a problem when doing combined delivery from multiple orders of the same ship to party.
    All the requirements are being met (for the order combination) accept the Delivery dates.
    Sometimes an order Qty is confirmed on the 1at of a month , then the second order qty is confirmed on the 15th of the month.  But when we want to make the combined delivery , the delivery dates differ and the user has to go into the individual order ans changes the dates.
    Is there a way to make the combination, the system not taking in account the delivery dates? Because we have huge no. of orders to combine. Please guide.
    Regards,
    Mansur.

    Dear Mansur,
    I think there is no any solution exaclty map with your problem in standard SAP.
    Better you control based on the MRP type, not sure. And also check with availability check and tranfer of requirments.
    Thnx,
    Pratik

  • How to make audio of many clips the same level?

    I have a sequence containing many interview clips which all seem to be at different sound levels. Is there any easy way to make all of these the same level? The only way I know how to adjust the level is using the volume level control under audio effects for a particular clip.
    Also i'm wondering whether there is a way to filter out background noise?
    Many Thanks

    If the mic was a different distance etc then you'll never be able to make them all sound exactly the same tone.  But For the background noise I'd really recommend the effects inside premiere I've already mentioned I have found that 90 percent of the time I don't ever need to use audition for interview type edits. I'm able to get by using a denioser and highpass to remove "most background" noises. However I don't film outside very often most of my background noise problems are usaully from too much gain or AC noise. So your scenario might be different than mine for this reason.
    The benifit of the compressor is that it can make your audio stay exactly within whatever range you want without having to keyframe stuff. With the clips you have desribed you'll want to use a different dynamics filter for each group. So put each group on it's own audio track. So group one that you have desribed would go on track 1 since all those clips have similar range etc. Basically with group 1 I wouldn't compress it at all. I'd leave it alone except for lowering it's audio by -2 on the audio track 1. That way all the clips in the first group will be lowered by 2db if you put them all on track 1. You won't have to worry about it's slightly too high peaks as long as you set a dynamics effect with nothing enabled on it besides the limiter on the master track and have the limiter set to -6 since you said that's what you need your max peak to be. If you do this then everything in group one will be handled as far as levels go. (as far as db goes anyways) However if you want to have other things in the project to be higher than -6 then just simply put the -6 limiter turned on track 1 then instead of the master track.
    Then for the second group I wouldn't touch them at all I'd put them on track 2 and just let the limter on the master track keep it's peaks from going to high since it's basically already where you want it. Then if the clips have a hissing noise or something you can add a denoiser and set the reduction to -10 and adjust from there.
    Then for your final set you are desribing -22 to -12 for these I'd put them on track 3 and use a dynamics filter and keep everything disabled except for the compressor itself. For this I'd start with my ratio at 2 and put my threshold at -20 and set my makeup gain at 9 or so. Then from there if it looks like it's way to loud then try lowering the gain and if it looks like its lows are too quite then add the gain back but if it appears to be to loud then simply raise your ratio or lower the threeshold a bit. But I think the settings I have listed will get your to your desired range.
    For the clips that are hitting -0 a lot if they are distorting then you really can't fix distortion but if they are hitting 0 and aren't distorting then you can just simply lower the volume for these you don't need to add any gain since they are already too loud anyways so if you just lower them by like -6 it should get them right within the range you mentioned.
    As far as background noise such as hissing you'll really want to just use Premiere's denoiser effect. Start off by setting the reduction to like -10 and adjust from there. Then for cars passing etc try out a highpass filter and set it to 120 to start and move up there if needed. It will take the bass out of the peoples voices but it won't sound bad unless you start going over 160-170 range it also depends on if the person has a deep voice to begin with or not too though.

  • Need all audio at same level

    I have edited 13 basketball games for a highlight video. I have 3 sound tracks in each video:track 1 is audio from the game, track 2 is audio with effects clips -primarily digital juice swipes, etc. and track 3 is a song to rev up the action. I have a hard time keeping the volume of track 3-every game has a different song- at the same level through out the project. I can't figure out if I can do this in soundbooth-doesn't seem to want to import all of my audio tracks-i read posts here, but don't have "normalize" as an option under the stereo setting of audio effects...is there a way to do this besides "by ear"?

    Actually, I think I just figured this out. Sorry to waste your time.

  • How do you combine videos from different cameras

    Hi there,
    I would like to be able to combine video clips taken of the same event with different cameras in such a way that they all share the same audio.
    I have recorded my daughter's entire theater play with a camera in the back of the hall connected directly to the theater's audio equipment. Thus, I have the entire audio in high quality in one huge clip. Then I and a couple of other parents have recorded the play with a number of additional cameras. I would now like to put together a project with video clips from the other cameras using the audio of the first. Obviously, the timing is critical here.
    How can I replace part of just the video of a clip with the video of another clip without affecting the audio and making sure that the part that I replace is of the exact same length as the part I insert? How can I then finetune the location of the replacing part so that it fits to the audio?
    Thank you very much for any help you can provide.
    Best regards,
    Marcus

    Hi AppleMan,
    this is also a very helpful hint, thanks!
    This has been quite an experience and wasn't as easy as I had hoped. May I add two additional hints in the hopes that someone else will find them useful:
    * When taping an event with several cameras make sure that all cameras are set to the same time. This makes iMovie sort them in roughly the right order and makes it much easier to find the clips you want.
    * When trying to overlay one short clip over another longer one (using the audio of the longer clip) it is helpful to have several extra frames on the left and right of the clip. With the "Trim" menu item one can then more precisely determine exactly which part of the clip to insert. With the Shift-Arrow Keys one can then easily shift the entire clip by individual frames without changing the length of the clip.
    Best regards,
    Marcus

Maybe you are looking for

  • Data not loading from R/3 to BW

    Hello I am a new user in SAP BW, but i am quite familiar with it now. I am trying to load or extract data from the SAP r/3 system to the BW system. When i check the value of my extractor in rsa3 , i can see the records. But when i try to load into th

  • Unable to import IDOC metadata from 4.6C based R/3 system

    As part of a project we are trying to import IDOC interface definition into XI3.0 from our 4.6C based R/3 System. I have gone through the pre-requisites mentioned at http://help.sap.com/saphelp_nw04/helpdata/en/2b/a48f3c685bc358e10000000a11405a/frame

  • Collection of IDOC's and creating file

    Hi, I am working on one scenario collection of IDOC's for 10  minutes and creating file. When my IDOC's are created in r/3 and reaching in an order and reaching the same order in XI as well,but creating of file for those idocs is not happening in the

  • AD FS Device Registration CNAME records

    I researched all over but couldn't find an answer, I am hoping someone can help me or lead me to a solution/answer. I have two (2) AD FS farm in the same Active Directory domain. I will call them sts.contoso.com and sts-test.contoso.com. I need to se

  • Netweaver 7.4 with Oracle

    Hi All, I'm currently trying an installation of NW 7.4 running an Oracle DB on a Linux virtual machine. I have scanned through the SMP looking for proper installation guides and software, but it seems like in can only be done if NW uses Sybase, HANA