Idoc to file -- Records based on the segment repitition. Urgent..Pls.!!

Hi Experts,
Iam doing a Idoc to file scenario.
Based on the sales organization(VKORG),i need to create the multiple records in the file.
For example :
E1MARAM 0..Unbounded
|
|E1MARMM 0..Unbounded
|
E1MARMM
|
E1MARMM
|
E1MARMM
|
E1MVKEM 0..Unbounded
|
E1MVKEM
When E1MVKEM-VKORG = Z200 then i need to create a file with 4 records (for 4 E1MARMM segments 4 records will be created)
When one more E1MVKEM-VKORG = Z201 present then we need to create 4 more records for Z201 in the same file.
So now i will be getting a single file with 8 records.
Each E1MVKEM segment will be having only one VKORG value.
I tried with <b>oneasmany</b> function,but its creating only for VKORG=Z200 with 4 values but its not providing the values for VKORG=Z201.
Please suggest me what to do.. I need to write UDF's or can i achieve without using them.??
PS: we are not using BPM in our scenario.
Thank You.
Regards
Seema.

Hi Prabhu,
I need to display the records in the file for each sales organisation (MVKEM-VKORG) .
MARAM is the parent node and MARMM,MVKEM are child nodes.
MARAM                                                  
         MARMM                                              
         MARMM                                              
         MARMM                                              
         MVKEM                                                               
         MVKEM                    
Consider that first MVKEM has VKORG = Z200 then 3 records has to display in file (for 3 MARMM segments 3 records has to display)
Simillarly consider second MVKEM has VKORG = Z201 then 3 more records has to display in file. ( same as above for 3 MARMM segments = 3 records in file)
So for the above structure i will be getting a total of 6 Records in my output file.
Iam trying with different Node functions but it is taking only for first VKORG and not taking the second one.so iam getting only 3 records in my file.
Please help me in cracking this.
Regards
Seema.

Similar Messages

  • How to create a record based on the name of a file in the file-system?

    Hi,
    With a lot of pictures I want to have a database to gather some information about these pictures.
    First question is how to generate a record based on a file in the file system?
    e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
    now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
    any suggestions?
    any reaction will be appreciated.
    Leo

    Link to Create directory
    http://www.adp-gmbh.ch/ora/sql/create_directory.html
    You can create a list of files in the directory and read the list files from that directory.
    [UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
    [Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
    SS

  • Sending multiple attachments in EMail adapter based on the segments:

    Hi,
    The scenario is from IDOC-Mail and the requirement is will we be able to send multiple files in the Email based on the segments ?
    Just assume that you have to create one file with the IDoc header data,
    and in addition to that one file per segment.
    Is this requirement possible?Please help .
    Thanks & Regards,
    Rajesh
    Edited by: rajeshkpnnaidu on Dec 16, 2010 8:33 AM

    Hi,
    In this case IDoc-file-mail, if we create multiple files based on the each IDoc segments,how we can combine all the files(created in local directory) which are related to 1 single IDoc  and send all of them in a single mail.
    Ex: if there are 20 files in local folder with 2 different IDoc segments then how we can filter based on each IDoc.
    Hope i am clear with my above description.
    Please help?
    BR,
    Praveen

  • When saving a file in [.jpg] format, i am asked to choose a quality from 1 to 100. what changes in the file created based on the quality parameter chosen?

    when saving a file in [.jpg] format, i am asked to choose a quality from 1 to 100. what changes in the file created based on the quality parameter chosen?. i would like to know what changes, so in the future i can set my camera to a setting that will give me the highest quality to begin with,allowing me to make crops and still preserve the quality.
    thank you
    dovid

    It's the level of compression. Lower number, more aggressive compression, more visual artifacts.
    Aside from that you should never use jpeg as a working format. The compression is destructive and cumulative, and the file deteriorates every time you resave it.
    Use TIFF or PSD, and if you need jpeg save out a copy as a single final step.

  • Retrive Records based on the content in a Clob Feild

    Retrive Records based on the content in a Clob Feild
    I have a Table NoteFile which contains a Clob Feild NoteFileContent
    and is refrenced by PK DocID
    i need to Match DocID with other Tables Document and folderdocument
    My Query is as Below
    SELECT Doc.Pap_Doc_ID, Doc.Pap_Doc_Name , NF.NoteFileContent
    From NoteFile NF , Document Doc, folderdocument FD
    Where Doc.Pap_Doc_ID = FD.FoldDoc_ID and FD.FoldDoc_ParentID <> 3 and
    NF.DocID = DOC.Pap_Doc_ID And NF.NoteFileContent Like '%a%'
    The above query throws
    ORA-00600: internal error code, arguments: [504], [0x7ADEBE00], [2], [1],
    [cache buffers chains], [723], [0], [0x7ADEBE00]

    Hi,
    We can resize it.Always give the height and weight in
    percentage format. and turn off the horizontal n vertical scroll
    policy in u r main application.
    Hopes it helps you...

  • Select records based on the closest given time

    Dear SQL gurus,
    I have a table T1:
    Name Null? Type
    ID NOT NULL NUMBER(5)
    MOMENT NOT NULL DATE [DD.MM.YYYY HH24:MI]
    MEASUREMENT NOT NULL NUMBER(8,3)
    Example (ID, MOMENT, MEASUREMENT)
    -- START OF EXAMPLE --
    9380 18.11.2000 03:45 17.6
    9380 18.11.2000 04:30 17.3
    9380 18.11.2000 05:45 16.8
    9380 18.11.2000 06:15 16.8
    9380 18.11.2000 07:00 16.2
    9380 18.11.2000 07:30 16.2
    9380 18.11.2000 08:15 16
    9380 18.11.2000 08:45 15.7
    9380 18.11.2000 09:30 15.4
    9380 18.11.2000 10:00 15.4
    9380 18.11.2000 11:15 15.4
    9380 18.11.2000 11:45 15.4
    9380 18.11.2000 12:30 15.4
    9380 18.11.2000 13:00 15.4
    9380 18.11.2000 13:45 15.4
    --- END OF EXAMPLE --
    How to select records based on the:
    - time period specified by the day only [DD.MM.YYYY] - CONDITION 1
    - with values for 6AM only, and if not available, with values closest to 6AM - CONDITION 2
    (if the time gap in MOMENT field is too big, lets say > 5h then choose the average between the value before 6AM (ex. 4:15AM) and the value after the 6AM (ex. 9:45AM))
    CONDITION 1 (something like): moment between '01.01.2005' and '31.12.2004' - this is OK
    CONDITION 2: I do not know how to formulate, especially if 6AM value is not availabe, and I have to find the closest available value, or get the avergae from the two adjacent values.
    Maybe cursor magic??? Thanks a lot for your help.
    Rado

    About condition two, would the following select be of use to you? Picking the first record could be achived by rownum, analytic function, etc.
    WITH t1 AS (SELECT 9380 id, TO_DATE('18.11.2000 03:45', 'dd.mm.yyyy hh24:mi') moment,  17.6 measurement
                  FROM dual
                 UNION 
                SELECT 9380 id, TO_DATE('18.11.2000 04:30', 'dd.mm.yyyy hh24:mi') moment,  17.3 measurement
                  FROM dual
                 UNION
                SELECT 9380 id, TO_DATE('18.11.2000 05:45', 'dd.mm.yyyy hh24:mi') moment,  16.8 measurement
                  FROM dual
                 UNION
                SELECT 9380 id, TO_DATE('18.11.2000 06:15', 'dd.mm.yyyy hh24:mi') moment,  16.8 measurement
                  FROM dual
    SELECT id, moment, measurement, diff
      FROM (SELECT id, moment, measurement,
                   moment - TO_DATE(TO_CHAR(moment, 'dd.mm.yyyy ') || '06:00', 'dd.mm.yyyy hh24:mi') diff
              FROM t1
    ORDER BY abs(diff) asc, SIGN(diff) desc;
      C.

  • SQL Query to retrieve the All records based on the Max Dates.

    Hello all,
    I am trying to retrieve the newest record based on the date field (  nextDate  ).
    Currently there are only 4 records in the MC_Maintenance table and two in the Machine table.
    Machine table
    MC_id             EquipID          
    1                      0227
    MC_id             EquipID
    2                     0228
    MC_Maintenance table
    Maint_id           MC_id             Next_maint                  
    1                      2                      08/25/2010     
    2                      2                      07/01/2010
    3                      1                      06/11/2010
    4                      1                      07/11/2010
    What I  am trying to accomplish is,
    list the two machines from the Machine table with the MAX(Next_maint) controlling the MC_Maintenance output list
    These are the records that I would like to Display.
    Maint_id           MC_id             Next_maint                  
    1                      2                      08/25/2010
    4                      1                      07/11/2010                 
    Below is the SQL Query
    SELECT
           MC.MC_ID as ID,
            MC.complete_Date as completed,
            MC.next_maint as nextDate,
            MC.maint_notes as Notes,
            MC.facility as Facility,
            M.EquipId,
            M.name as name,
            M.SerialNumber as SN,
            M.dept as dept,
            M.Freq as freq
            From  MC_Maintenance MC, Machine M
            where  MC.MC_ID =  M.MC_ID
    '           USING MAX(nextDate )
    Any ideas would help.
    TJ

    I would have thought that was a simple group by problem?
    SELECT M.EquipID, MC.MC_ID, Max(MC.next_maint)
    FROM MC_Maintenance MC INNER JOIN Machine M ON MC.MC_ID = M.MC_ID
    GROUP BY M.EquipID, MC.MC_ID

  • Web GUI new feature - creating a new record based on the current record

    Vincent,
    We need new feature in Web GUI:
    creating a new record based on the current record with data
    from Moscow with money

    It is already enabled, in the next release.
    If you joint TAB program, the march preview build contains it. User can select 1 or multiple users and make a copy.

  • Idoc to File -- Records will depend on repetition of particular segment.

    Hi Experts,
    Iam doing a Idoc to file scenario.
    Based on the sales organization(VKORG),i need to create the multiple records in the file.
    For example :
    E1MARAM  0..Unbounded
         |
         |E1MARMM   0..Unbounded
         |
         E1MARMM
         |
         E1MARMM
         |
         E1MARMM
         |
    <b> E1MVKEM   0..Unbounded
         |
         E1MVKEM</b>           
    When E1MVKEM-VKORG = Z200 then i need to create a file with 4 records (for 4 E1MARAM segments 4 records will be created)
    When one more E1MVKEM-VKORG  = Z201 present then we need to create 4 more records for Z201 in the same file.
    So now i will be getting a single file with 8 records.
    Please suggest me how to approach these kind of scenario.
    PS: we are not using BPM in our scenario.
    Thank You.
    Regards
    Seema.

    Hey seema,
    This can be achieved using node function <b>createif</b>.
    Refer this link which help you doing the same
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/3033f96c79674f90e3ab8d101a595b/frameset.htm
    and also refer stefan's blog
    /people/stefan.grube/blog/2006/01/09/the-use-of-suppress-in-the-xi-30-graphical-mapping-tool
    Hope it helps you
    Regards,
    Ramesh P

  • SSIS - Loop through files from a file path based on the value in the variable

    Experts,
    I have a requirement where I'll be loading multiple files in to a SQL server table and archive the files when loaded. However, the challenge is , the file path should be dynamic based on the value of a variable (say, @ProductName).
    For example: If I am running the package for variable @ProductName="Product", the file path would be "\\....\Src\Product", in that case the ForEachLoop will loop through all the files in that folder, load them to the table and Archive
    the files to the "\\....\Src\Product\Archive" folder.
    Similarly, if the @ProductName="Product_NCP", the foreachloop container should loop through files in the "\\....\Src\Product_NCP" folder, load them to the table and archive them to the ""\\....\Src\Product_NCP\Archive"
    folder.
    Any suggestions? I should be able to run the package manually just by passing the "@Product" value, create Archive folder if it doesn't exist, load the data and archive the files.

    Yes
    1. Have a variable inside SSIS to get folder path. Set path based on your rule using an expression
    like
    (@[User::ProductName] == "Product" ? "\\....\Src\Product" : (@[User::ProductName] == "Product_NCP" ? \\....\Src\Product_NCP:..))
    similary archive
    (@[User::ProductName] == "Product" ? "\\....\Src\Product\Archive" : (@[User::ProductName] == "Product_NCP" ? "\\....\Src\Product_NCP\Archive" :..))
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Creation of a new record based on the value of a picklist

    Hi,
    My requirement is whenever i select a picklist value in Opportunity record type based on the value selected a new opprtunity record should get created and get assigned to a role or A User otherwise a lead should get created and should be assigned to a Role or A User.
    Can I achieve this in OnDemand?
    Kindly help. This is urgent..
    Thanks in Advance.

    Can I achieve this in OnDemand?I think you can better try one of the Oracle CRM On Demand forums @ http://forums.oracle.com/forums/category.jspa?categoryID=162
    instead of the Oracle SQL and PL/SQL forum.
    This is urgent..The forums are relying on volunteers and it is weekend for most of us now.
    If it is really that urgent, call Oracle Support.

  • How to search xml file data based on the given keyword from html form

    hi,
    i'm new to XML. I have this problem regarding searching within a XML file.
    the
    idea is that my search will be based on the keyword entered
    in
    by the user from a HTML form. the keyword is then used to search all
    the
    question nodes and the choice nodes within a XML file. once the match
    is
    found, i will have to display the results.
    But i don't know how to do so - especially the part of searching xml file.
    Can
    anyone help me in this? Your help is much appreciated.
    Edited by: Moti_Lal.D on Apr 4, 2008 7:28 AM

    yeah.. what i was trying to do is
    i have one xml fine. then i have to read all the tag values say
    <book>
    <title>Java</title>
    <author>agarwal</author>
    <price>200</price>
    </book>
    <book>
    <title>Xml</title>
    <author>saxmann</author>
    <price>300</price>
    </book>
    i can read the tag values like this
    File file = new File("dom.xml");
    try {
    DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    Document doc = builder.parse(file);
    NodeList nodes = doc.getElementsByTagName"book");
    for (int i = 0; i < nodes.getLength(); i++) {
    Element element = (Element) nodes.item(i);
    NodeList title = element.getElementsByTagName("title");
    Element line = (Element) title.item(0);
    what i want is i may give any xml file
    like File file = new File("xxx.xml");
    (it may be one level/two level/3level tagged one)
    then the i should read all the tag values and store them in some array. Then when i enter some character from keyboard (say "a") then it has to show all the tag values starts with "a" and display them.
    i guess u understand my problem.

  • Update links in file created based on the template page

    Hello everyone:
    a) I have problems when update links in files crated based on
    a template page.
    I read Dreamwaver (DW) help menu. Seems to me Dreamwaver is
    smart enough to update links based on correct file structure.
    I created a template file based on a sample page. Template
    file saved to the template folder. Then I crated few pages based on
    the template. I checked links in new files and found that link
    structures are based on template folder, not based on files current
    folder position.
    Please give me some suggestions on how to correct this
    problem. If you know some good online tutorial or documentations
    please share with me.
    b) Can DW template update Navigation bar links correctly
    based on relative document path?
    I have Navbars imported from Fireworks into DW. Files crated
    based on template are not updating pop-up menu links correctly. I
    manually updated every links. It is time consuming and

    > I created a template file based on a sample page.
    Template file saved to
    > the
    > template folder. Then I crated few pages based on the
    template. I checked
    > links
    > in new files and found that link structures are based on
    template folder,
    > not
    > based on files current folder position.
    This means that you are entering the links manually, not
    using the Property
    inspector and browsing to the target file. You should do it
    this way until
    you understand how templates work. All links in a template
    file should
    (usually) be one of three kinds -
    1. Document relative BASED ON THE TEMPLATE, e.g.,
    <a href="../whatever....
    2. Root relative, e.g.,
    <a href="/whatever....
    3. Absolute, e.g.,
    <a href=''
    http://www.example.com/whatever....
    Anything else will always result in the Template folder being
    placed in the
    path for the link when you create a child page.
    > b) Can DW template update Navigation bar links correctly
    based on relative
    > document path?
    Yes, of course.
    > I have Navbars imported from Fireworks into DW.
    This could easily be one of your problems. Those menus are
    definitely
    broken and should never be used.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "sjmacro" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hello everyone:
    >
    > a) I have problems when update links in files crated
    based on a template
    > page.
    >
    > I read Dreamwaver (DW) help menu. Seems to me Dreamwaver
    is smart enough
    > to
    > update links based on correct file structure.
    >
    > I created a template file based on a sample page.
    Template file saved to
    > the
    > template folder. Then I crated few pages based on the
    template. I checked
    > links
    > in new files and found that link structures are based on
    template folder,
    > not
    > based on files current folder position.
    >
    > Please give me some suggestions on how to correct this
    problem. If you
    > know
    > some good online tutorial or documentations please share
    with me.
    >
    > b) Can DW template update Navigation bar links correctly
    based on relative
    > document path?
    > I have Navbars imported from Fireworks into DW. Files
    crated based on
    > template are not updating pop-up menu links correctly. I
    manually updated
    > every
    > links. It is time consuming and
    >
    >

  • Inbound Extended Idoc, need to populate data into the segments

    Hi Experts,
    I am assigned with an assignment, where
    IDOC: WGSREQ02
    Create a FM with the following Parameters:
    Export u2013 IDOC Number
    Tables:
                 i.      E1WGRK1
                 ii.      ZRACEHD
                 iii.      E1WGRP1
                 iv.      ZRACE01
    Get the data and populate the IDOC and generate an IDOC. pretty much new to idocs.
    Please help me in coming out of this assignment. I would be very thank full to you if send me the sample code
    thanks in advance.
    Ram.
    Moderator Message: Please understand that these are not Training Forums. Here you cannot ask for your work to be done by others.
    Edited by: kishan P on Sep 2, 2010 12:23 PM

    Hi Experts,
    I am assigned with an assignment, where
    IDOC: WGSREQ02
    Create a FM with the following Parameters:
    Export u2013 IDOC Number
    Tables:
                 i.      E1WGRK1
                 ii.      ZRACEHD
                 iii.      E1WGRP1
                 iv.      ZRACE01
    Get the data and populate the IDOC and generate an IDOC. pretty much new to idocs.
    Please help me in coming out of this assignment. I would be very thank full to you if send me the sample code
    thanks in advance.
    Ram.
    Moderator Message: Please understand that these are not Training Forums. Here you cannot ask for your work to be done by others.
    Edited by: kishan P on Sep 2, 2010 12:23 PM

  • Query range must return one record based on the amount passed.

    Hi,
    Need to return the correct line_number based on the amout that falls within that range.
    Example;- if current amount value is 100 then line_number should return 1.
    if current amount value is 420 then line_number should return 4.
    Line_Num Amount
    *1 149.99*
    2 300
    3 400
    *4 500*
    5 9999999.99
    I need this in a query to resolve this, not PL/SQL.
    Thanks in advance.

    select min(line_num) from yourtable where amount >= &input_amount

Maybe you are looking for

  • New GL, profit center update

    New GL is working for this GL entry Credit cash A/C 900100 1000 Debit expense 500100 1000 CTR A PTR A After document splitting, system is showing Credit cash A/C 900100 1000 CTR A PTR A Debit expense 500100 1000 CTR A PTR A GL Entry Credit cash A/C 9

  • Supplier site - Pay group

    Hello All, I have a scenario where I have an existing supplier with any specific pay group (say 'XYZ') at the supplier level. Now when I create/add a new site for this vendor, under invoice management --> Payments (tab) the pay group is not defaultin

  • IMac slow

    Since I changed the video card after a failure, my iMac (24" early 2008) is running slow and it can't dowload properly (very slow and stop before ending). Can't even download the last Apple update. There is no problem with internet connection and I c

  • Deemed exportsales and back to back order sales

    HI,                   In one company interview I have been asked by the interviewr that have you worked on special sales process deemed export and back to bac order sales can any body explain what is this how will do you configure in SAP yours Digita

  • Keynote 2.1 will not install on an ipod4...need a remote!

    I have Keynote Remote on my Ipod4, which will not allow me to update to ios7. The remote still works with a Keynote 6.2 presentation ON MY IPAD3, thank heavens (did a presentation last night). I only do presentations now with ipads, not laptops.... .