Is this can only be done through Java mapping?

Hi Friends,
my scenario is jdbc to idoc.
Am able to create multiple idocs basing upon delivery_date. But here my requirement is -- there are qty, slnumber, vaxinum are having different values. And all these should also be generated in the same Idoc.
INPUT
delivery_date         ------      qty   -------- slnumber        -------- vaxinum
19/02/2006            ------  10      ----------   457854        --------- 10001
19/02/2006            ------  20      ----------   457855        --------- 10001
19/02/2006            ------  30      ----------   457854        --------- 10001
19/02/2004            ------  20      ----------   457854        --------- 10001
19/02/2004            ------  20      ----------   457854        --------- 10001
19/02/2005            ------  20      ----------   457854        --------- 10001
OUTPUT
Three Idoc's to be created -- am able to create it basing upon delivery_date.
But for 19/02/2006 this Idoc number there are different qty and different slnumber. So, I want to be created multiple segments in the same IDoc.
Thanks.
S.
Edited by: Swarna on Sep 21, 2011 1:29 PM

Hi Swarna,
       Please try with the below logic.
DeliveryDate-->removecontext->sort->splitbyvaluechange->collapsecontext---IDOC
concatsortUDFSegment
coacat:
Input1-OutputofFormatByExample1sort
Input2-OutputofFormatByExample2sort
FormatByExample1:
input1:outputofsortbykey2
input2:DeliverNo-removecontext-sort--splitbyvaluechange
FormatByExample2:
input1:outputofsortbykey1
input2:DeliverNo-removecontext-sort--splitbyvaluechange
sortbykey1:
input1:DeliveryNo--removeContext
input2:SlNumber--removecontext
sortbykey2:
input1:DeliveryNo--removeContext
input2:qty--removecontext
*ExecutionType of UDF is all values of context*
public void UDF(String[] var1, ResultList result, Container container) throws StreamTransformationException{
          ArrayList aList = new ArrayList();
     for(int i=0;i<var1.length;i++){
          if(aList.contains(var1<i>))
               continue;
          else{
               aList.add(var1<i>);
               result.addValue(var1<i>);
Thanks
Priyanka

Similar Messages

  • HT1420 I've had two laptops die within the last seven months. Last time I had to deauthorize all five and re-up; now I need to do it again but I understand it can only be done once every 12 months.  Is there any other way to just deauthorize the ones that

    I've had two lapstops die within the last seven months.  Last time I had to "deauthorize" all five computers, then re-up, since I couldn't deauthorize from the dead laptop.  Now I need to go through it all again, but I understand that this can only be done once every 12 months. What else can I do?  Can I get into the account and just deauhorize the dead computer?

    You can try contacting Apple and explain that you have been using Windows PCs that last only a few months before failing. Perhaps they will make an exception to the 12 month wait.

  • Can only access emails through OWA after migration from exchange 2007 to 2013

    can only access emails through OWA after migration from exchange 2007 to 2013, in other words unable to access mails through outlook or from other Applications services.
    needed RCA ... plz help..

    Hi,
    From your description, you can send and receive messages only when you use OWA after migration from Exchange 2007 to Exchange 2013. If I have misunderstood your concern, please let me know.
    In your case, I recommend you create a new test mailbox in your Exchange 2013 and check if you can send and receive messages on Outlook. If yes, it is recommended to create a new profile to solve this issue.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • TS2634 I can only get sound through my ipad with the head phones.

    I can only get sound through my ipad with the head phones. I haven't had this problem before. I upgraded about a week ago, but this is the first time the sound has been an issue. When I turn up the volume it shows that it is the volume for the headphones but I can't figure out how to adjust the volume for everything. I have rebooted.

    Also try this if above doesn't work.
    1. Plug and unplug my headphone jack into the iPad four times.
    2. On the fourth time leave the headphone jack connected and rotate the plug clockwise, then remove and try your sound.

  • Can it be done through powershell?

    we just increase drive C space on more than 30 Windows 2008 R2 VM servers.  We do not want to manaully log onto
    each server to do scan disk and extend the volume.
    Can it be done through powershell?
    thank you for your help.

    enter-pssession servername
    diskpart /s  diskpartscriptfile.txt 
    or upgrade all your servers to  2012
    Dan
    This would require touching each server. Invoke-Command is a much better choice for this scenario, as it can handle each machine in one go.
    EDIT: We still don't know if the OP has remoting enabled. I've yet to get an answer to that question.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)
    correct, I was giving an example. Try one server like that to see if it works and then start with the scripted solution.  
    Dan

  • BAM Senser actions can only be edited through Structure Pane

    Hi
    When i tried to create a BAM sensor action in BPEL i have got the following error.
    " BAM Senser actions can only be edited through Structure Pane "
    Could you please tell me how do i define a BAM Sensor action (in detail)
    Your help in this regard is highly appreciated.
    thanks
    Laj Abraham

    Hi Sid
    First download the latest version of Jdeveloper (10.1.3.3).
    Set up the BAM connectivity.
    Create an Activity sensor from Structure pane (located in the Bottom/left corner of Jdev)
    Create a Bam Sensor action and assign to the activity sensor.BAM sesnso action wizard will take you to a new window where you have to define your bam object and the activity you wanted to do (like INSERT/UPDATE/DELETE etc).
    After that you will have to map your variable with the BAM object.
    Then Press OK.
    Please make sure the version of Jdevloper.It should be 10.1.3.3.
    Please let me know if you need further assistance.
    Thanks
    Laj

  • HT201401 I have an iPhone 4S, callers are unable to hear me when using the headset.  I can only be heard through speaker or bluetooth.  Please help.

    I can not be heard through my headset during call.  I can only be heard through speaker or bluetooth.  Any ideas on how to fix this?

    Try a different headset, see if that works if not possibly with the connection on the device

  • Hello! How can i setup and what to enable that my secretary has my shared calendar on her Iphone and that she can edit it? We are on Exchange 2010, Outlook 2010, Iphone 4s. Can it be done through some app? Thank you!

    Hello! How can i setup and what to enable that my secretary has my shared calendar on her Iphone and that she can edit it? We are on Exchange 2010, Outlook 2010, Iphone 4s. Can it be done through some app? Thank you! I'm trying to avoid creating my exchange activesync account on her Iphone and then sync only my calendar.

    Thank you for your time. I'm trying to avoid that because she can then simply turn on mail syncronization and then she could read my mail. Another reason is our password policy, that enforces changing our windows logon password every 90 days. Of course changing windows logon passwords demands changing exchange account logon info (password) on Iphone. I have read somwhere that there was an app but it was removed from app store. Any other suggestions would be appreciated.

  • TS3988 I changed my Apple ID to my new email address successfully for the iTunes and App store but it won't work for iCloud and it won't recognize my password. I read that this can't be done. How am I supposed to get into iCloud?

    I changed my Apple ID to my new email address successfully for the iTunes and App store but it won't work for iCloud and it won't recognize my password. I read that this can't be done. How am I supposed to get into iCloud? I plan on getting rid of my old email address which is my old Apple ID so how is that going to work?

    Same question Wish someone had replied!
    I changed my Apple ID to my new email and now cannot find any way to access icloud. Unfortunately I had allowed icloud to hijack my airbook files, so of course I am afraid I will lose them tomorrow when I exchange my iphone for a new one and cannot keep an icloud account i cannot access. What a poor sync system! Really atypical for apple!

  • I need to know how to force a https redirect in Adobe Muse if this can't be done please tell me so I don't waste any more time... please

    I need to know how to force a https redirect in Adobe Muse if this can't be done please tell me so I don't waste any more time... please

    Protocol usage and redirects are a server-side thing. This has nothing to do with designing the web page and thus nothing with Muse, either.
    Mylenium

  • IMovie was removed from my macbook pro after I downloaded OS X Yosemite, I had it before and have used it, but now I can only get it through the app store

    iMovie was removed from my macbook pro after I downloaded OS X Yosemite, I had it before and have used it, but now I can only get it through the app store. I can't pay for it so I would really appreciate the help.

    Look in your applications folder for the installer - Install OS X Yosemite. Delete it. Then go back to the App Store purchases tab and see if you can download it. You might have to re-index Spotlight.
    Spotlight – Re-index

  • My iphone 4s is not charging using wall charger. I can only charge it through my laptop and a desktop. I tried so many chargers already but it is still the same. Can somebody help me please...

    My iphone 4s is not charging using wall charger. I can only charge it through my laptop and a desktop. I tried so many chargers already but it is still the same. Can somebody help me please...
    My current ios is 6.1.3
    I tried so many chargers thinking that my wall charger is defective. But still my phone is not charging. Its always through laptop and desktop only that i can do charging...help me please....
    Thank you

    Hello Regina0117
    If you already try other chargers and still not working, the best advise is for you to contact apple support, if you still in warranty they will change it for you for free.
    Start you case here:
    http://www.apple.com/support/contact/
    And contact apple support
    Cheers, Lima

  • It can be done in C++, can it be done in Java?

    Hi
    In C++, the following code will change a to 2.
    int a = 1;
    int *b = &a;
        *b = 2;How can this be done in Java?
    My reason is that I implemented SortedSet so that it creates and maintains a binary tree (Assignment pre-requisite).
    If the subSet method is called, it returns a portion of the Tree!
    How can i get it to return this portion so that any changes which are made to this subSet are automatically reflected in the original Tree? (Just trying to be a geek and get extra brownie points)
    Thanx
    Tecknick

    public class MyInt {
    public int sss;
    public MyInt myInt = null; // only reference
    public MyInt( ){
    } // default constructor
    } // class MyInt ends here..
    // here now..
    public MyInt a = new MyInt( );
    a.myInt = a; // very Clever
    a.sss = 1; // Your ---------------> int a = 1;
    public MyInt b = a.myInt; // your
    ------------------> *b = &a;
    b.sss = 2; // Your -----------------> *b = 2;
    What is the point of the member field myInt here? The example code gives the effect of just using MyInt myInt = this; and not setting the value in the client code. Why would you ever need to explicitely give an object a reference to itself? You would get exactly the same results (and clearer code) if it wasn't present:
    public class MyInt {
      public int value;
      public MyInt(int value) {
        this.value = value;
      public static void main(String[] argv) {
        MyInt a = new MyInt(1);
        a.value = 1;
        MyInt b = a;
        b.value = 2; //Since a == b, a.value is now equal to 2 as well.
    }Notice that this is now the same idea as was posted by rabbit3000 earlier - it just doesn't use accessor methods (up to you if you decide you want to) - all it is, is a mutable version ot java.lang.Integer. I couldn't see a good reason for a default constructor, so I took that out too.

  • Can only log in through safe mode yosemite. When i try to log in normally it wont work??

    13.3 Mac book Pro 2014 model 1 month old!
    I can log in through safe mode but not the normal way.
    The bar only goes about a quarter of the way then stops. Just upgraded to Yosemite last night

    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    For this step, the title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter "BOOT_TIME" (without the quotes.)
    Each message in the log begins with the date and time when it was entered. Select the BOOT_TIME log message that corresponds to the last boot time when you had the problem. Now clear the search box to reveal all messages. Select the ones logged after the boot, during the time something abnormal was happening. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    For example, if the problem is a slow startup taking three minutes, post the messages timestamped within three minutes   after the boot time, not before. Please include the BOOT_TIME message at the beginning of the log extract—not at the end.
    If there are long runs of repeated messages, please post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A crash report has a name that begins with the name of the crashed process and ends in ".crash". A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent of each. The contents of the report will appear on the right. Use copy and paste to post the entirecontents—the text, not a screenshot.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    If you don't see any reports listed, but you know there was a crash or panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • HT1444 Hotmail has been converted to Outlook and now my 10.6.8 version of Snow Leopard doesn't seem to be compatible with Outlook. I can only access Outlook through the mobile option. I have downloaded the latest update for SL but that doesn't seem to hav

    Since Hotmail was converted to Outlook I can only access through the Mobile option.  I keep getting a message suggesting I upgrade to the latest version of Safari.  I tried downloading the most recent upgrade that I could find but the problem is still not solved.  How do I fix this very annoying situation?

    No problem here on 10.6.8 and Safari 5.1.9 - is that the version of Safari you have? If not you can download it here:
    http://support.apple.com/kb/DL1569
    or you could try Firefox - make sure you have the latest version of that (21.0)

Maybe you are looking for

  • Opening PDF's in preview

    Hello, I have multiple PDF's open in Mac Preview, and I need to shut down my computer. Is there any way for Preview to re-open all of the files I was previously looking at when I turn my computer back on? I can see the "Open Recent" option under the

  • Transfer videos to N8

    Hey, how do i transfer videos to N8. I tried using the PC suit but it failed with message stating required codecs are missing. Also, what video formats does the N8 support? Lastly, will I be able to watch live streaming videos online? I always get a

  • SID's of MD object not reflected in Attribute SID table

    Hello Experts, I happened to delete the SID table of a display attribute of a MD characteristic and then re-loaded the master data. The SID's for the MD object is being created, but no SID's exist for the display attribute. I have a query having the

  • Lockbox spool deleted after print

    Hi All, We have a issue where the user has mistakenly selected delete after print option while processing the lockbox job in background. And while printing the lockbox spoolm printer was jammed and it did not print the lockbox spool correctly (unable

  • Anyone get iZotope Vinyl UB to work with the following...?

    Anyone get iZotope Vinyl UB to work with the following...? I keep getting an error -1 when I try to load it in Logic pro. I tried emailing iZotope about this but never got any response. Any help would be appreciated. I'm running: 50gb HD space availa