One xml file 2 header urgent

Hi iam working on file to RFC scenario. i need to create purchase requisition. my xml file contains 2 header and corresponding line items and i need to create 2 purchase requisitions. please tell me how to go about it
Thanks
Shankar

Hi ..
All that u need to do in the receiver side duplicate the header items and map accordingly...
if the occurence is one to that rfc u need to change the occurence by exporting the wsdl file and then import then u can duplicate the header..
for more clarification refer this blog
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
if any more doubts reply..
Regards
viajy kumar

Similar Messages

  • 2 or more Sales Quotatons in one XML file

    Hi,
    i wanted to know if i can tranfer 2 or more sales quotations to SB1 using only one XML file or do i have to split so that every sales quotation will have a seperate XML file?
    Thanks, udi

    The person just opened some additional window using Window > New window. Perhaps to have different Views of the file and not having to scroll all the time.
    You can easily fix it by just closing the windows. It does no harm to the file. When you save with only one window open, next time you open will also be one window.

  • How do I import one xml file into 3 separate tables in db?

    I need to utilize xslt to import one xml file into 3 separate tables: account, accountAddress, streetAddress
    *Notice the missing values in middleName, accountType
    sample xml
    <account>
    <firstName>Joe</firstName>
    <middleName></middleName>
    <lastName>Torre</lastName>
    <accountAddress>
    <streetAddress>
    <addressLine>myAddressLine1</addressLine>
    <addressLine>myAddressLine2</addressLine>
    </streetAddress>
    <city>myCity</city>
    <state>myState</state>
    <postalCode>mypostalCode</postalCode>
    </accountAddress>
    <accountId>A001</accountId>
    <accountType></accountType>
    <account>
    I need the following 3 results in 3 separate xml files in order for me to upload into my 3 tables.
    Result #1
    <rowset>
    <row>
    <firstName>Joe</firstName>
    <lastName>Torre</lastName>
    <accountId>A001</accountId>
    <row>
    <rowset>
    Result #2
    <rowset>
    <row>
    <addressId>1</address>
    <city>myCity</city>
    <state>myState</state>
    <postalCode>myPostalCode</postalCode>
    <row>
    <rowset>
    Result #3
    <rowset>
    <row>
    <addressId>1</addressId>
    <addressLineSeq>1</addressLineSeq>
    <addressLine>myAddressLine1</addressLine>
    <row>
    <row>
    <addressId>1</addressId>
    <addressLineSeq>2</addressLineSeq>
    <addressLine>myAddressLine2</addressLine>
    <row>
    <rowset>

    Use XSU to store in multiple tables.
    "XSU can only store data in a single table. You can store XML across tables, however, by using the Oracle XSLT processor to transform a document into multiple documents and inserting them separately. You can also define views over multiple tables and perform insertions into the views. If a view is non-updatable (because of complex joins), then you can use INSTEAD OF triggers over the views to perform the inserts."
    http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14252/adx_j_xsu.htm#i1007013

  • Problems with mapping after bundling messages into one XML-file

    Hi all,
    Case 1: one DebMas IDoc ==> XI ==> one XML-file : no problems with mapping.
    Case 2: several DebMas IDoc's ==> XI ==> one XML-file : problems with mapping.
    Explanation:
    Incoming DebMas IDoc's:
    Businesspartner 1 : no Customer Master Partner Functions (E1KNVPM).
    Businesspartner 2 : Customer Master Partner Functions (E1KNVPM).
    Businesspartner 3 : Customer Master Partner Functions (E1KNVPM).
    Businesspartner 4 : Customer Master Partner Functions (E1KNVPM).
    After bundling into one XML-file:
    Businesspartner 1 : no Customer Master Partner Functions (E1KNVPM).
    Businesspartner 2 : no Customer Master Partner Functions (E1KNVPM) !!!!
    Businesspartner 3 : Customer Master Partner Functions of Bp 2 (E1KNVPM) !!!!.
    Businesspartner 4 : Customer Master Partner Functions of Bp 3 (E1KNVPM) !!!!.
    All the payloads of the IDoc's are correct.
    In the message mapping we use a Container for the Partner Functions (shown as below)
    Is this a serious bug in the mapping of SAP XI ?
    Does anyone knows how to solve this serious problem.
    E1KNVVM -
    > Partner_Container
    E1KNVPM -
    > Partner
       PARVW -
    > ParnerRole
       KUNN2   -
    > PartnerNumber
    Regards,
    Theo Pijlman

    Hi,
    Example:
    Input idoc has field F1 with occurence 0..unbnd
    My input values for field F1 is
    1
    none
    2
    3
    Say, I have a mapping, F1---->TargetF1
    In the target only 3 TargetF1s will be created for the values 1,2,3 and nothing will be created for the field F1 with no value.
    To overcome this, use collapse contexts.
    F1->collapsecontexts>TargetF1
    This way, the TargetF1 fields created will have the following values:
    1
    blank
    2
    3
    Collapse contexts makes sure that a target is created, even if there is a context change specified at the source.
    Hope this is clear.
    Regards,
    Smitha.

  • Loading multiple tables from one xml-file

    I've got one xml-file containing information which should be loaded into multiple database tables. How can I do that?

    Please use XSLT to tranform to XML file with XSU recognized format and separated for different table input.
    You may refer to Example in book "Building Oracle XML Applications".
    null

  • SDDM 3.3.EA2 one xml file for each table?

    Dear Philip!
    We'd like to have xml-files for all of our tables. To be more precise one xml file for each table so we can check it in in our configuration management system (CCC Harvest)
    Is it possible to write such a transformation script and, I really believe that can be done, can you please point us in the right direction, how to do that?
    Thanks in advance
    Guenter

    Hi Gunter,
    if you want each table to be stored in separate XML file then you needn't to do anything. Each table is stored in separate file in design directory structure - foreign keys are not included, each FK is stored in separate file.
    The ID of the table is used as file name. Each table has presentation in each physical model so you'll find file with same name (table ID) in each physical model.
    Please elaborate on that if you want something else.
    Philip

  • How to include one xml file into another

    Dear Sir/Madam!
    Could you do me a favour and help me to solve the problem like this:
    I have one xml file wich describe the common thins of the GUI, and the another will be generated depending on the point the user has selected.
    I would be very pleased for any helpful assistance.

    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml"/>
    <xsl:template match="/">
    <xsl:variable name="xml1" select="document('xml1.xml')"/>
    <xsl:variable name="xml2" select="document('xml2.xml')"/>
    <xsl:copy-of select="$xml1"/>
    <xsl:copy-of select="$xml2"/>
    </xsl:template>
    </xsl:stylesheet>

  • I need one XML File containing one Idoc fields Say Orders01

    hiall,
    i need one XML File containing one Idoc fields Say Orders01
    bye
    satish

    hi,
    <?xml version="1.0" encoding="iso-8859-1"?>
    <ORDERS02>
      <IDOC BEGIN="1">
        <EDI_DC40 SEGMENT="1">
          <TABNAM>EDI_DC40</TABNAM>
          <MANDT>800</MANDT>
          <DOCNUM>0000000000213213</DOCNUM>
          <DOCREL>46B</DOCREL>
          <STATUS>30</STATUS>
          <DOCTYP>ORDERS02</DOCTYP>
          <DIRECT>1</DIRECT>
          <RCVPOR>A000000032</RCVPOR>
          <RCVPRT>LS</RCVPRT>
          <RCVPRN>sell</RCVPRN>
          <RCVSAD/>
          <RCVLAD/>
          <STD/>
          <STDVRS/>
          <STDMES/>
          <MESCOD/>
          <MESFCT/>
          <OUTMOD>4</OUTMOD>
          <TEST/>
          <SNDPOR>SAPSID</SNDPOR>
          <SNDPRT>KU</SNDPRT>
          <SNDPRN>23334</SNDPRN>
          <SNDSAD/>
          <SNDLAD/>
          <REFINT/>
          <REFGRP/>
          <REFMES/>
          <ARCKEY/>
          <CREDAT>20061019</CREDAT>
          <CRETIM>205734</CRETIM>
          <MESTYP>ORDERS</MESTYP>
          <IDOCTYP>ORDERS02</IDOCTYP>
          <CIMTYP/>
          <RCVPFC/>
          <SNDPFC/>
          <SERIAL></SERIAL>
          <EXPRSS/>
        </EDI_DC40>
        <E1EDK01 SEGMENT="1">
          <KZABS>X</KZABS>
          <CURCY>USD</CURCY>
          <WKURS>1.000</WKURS>
          <ZTERM>ZZZZ</ZTERM>
          <BSART>EC</BSART>
          <BELNR>300024455</BELNR>
          <RECIPNT_NO>misssa</RECIPNT_NO>
        </E1EDK01>
        <E1EDK14 SEGMENT="1">
          <QUALF>014</QUALF>
          <ORGID>1000</ORGID>
        </E1EDK14>
        <E1EDK14 SEGMENT="1">
          <QUALF>009</QUALF>
          <ORGID>001</ORGID>
        </E1EDK14>
        <E1EDK14 SEGMENT="1">
          <QUALF>011</QUALF>
          <ORGID>1000</ORGID>
        </E1EDK14>
        <E1EDK03 SEGMENT="1">
          <IDDAT>012</IDDAT>
          <DATUM>20061019</DATUM>
        </E1EDK03>
        <E1EDKA1 SEGMENT="1">
          <PARVW>LF</PARVW>
          <PARTN>000002344</PARTN>
          <TELF1></TELF1>
          <BNAME></BNAME>
        </E1EDKA1>
        <E1EDKA1 SEGMENT="1">
          <PARVW>WE</PARVW>
          <LIFNR>1000</LIFNR>
          <NAME1></NAME1>
          <STRAS></STRAS>
          <ORT01></ORT01>
          <PSTLZ>4444</PSTLZ>
          <LAND1>EN</LAND1>
          <TELF1></TELF1>
          <SPRAS>D</SPRAS>
          <ORT02></ORT02>
          <REGIO>02</REGIO>
        </E1EDKA1>
        <E1EDK02 SEGMENT="1">
          <QUALF>001</QUALF>
          <BELNR>600060324</BELNR>
          <DATUM>20061019</DATUM>
          <UZEIT>205736</UZEIT>
        </E1EDK02>
        <E1EDK17 SEGMENT="1">
          <QUALF>001</QUALF>
          <LKOND>EXW</LKOND>
          <LKTEXT>london</LKTEXT>
        </E1EDK17>
        <E1EDK18 SEGMENT="1">
          <QUALF>001</QUALF>
          <TAGE>12</TAGE>
          <PRZNT>4.000</PRZNT>
        </E1EDK18>
        <E1EDK18 SEGMENT="1">
          <QUALF>002</QUALF>
          <TAGE>30</TAGE>
          <PRZNT>2.000</PRZNT>
        </E1EDK18>
        <E1EDK18 SEGMENT="1">
          <QUALF>003</QUALF>
          <TAGE>45</TAGE>
        </E1EDK18>
        <E1EDP01 SEGMENT="1">
          <POSEX>00010</POSEX>
          <PSTYP>0</PSTYP>
          <KZABS>X</KZABS>
          <MENGE>1.000</MENGE>
          <MENEE>EA</MENEE>
          <BMNG2>1.000</BMNG2>
          <PMENE>EA</PMENE>
          <VPREI>3</VPREI>
          <PEINH>1</PEINH>
          <NETWR>3</NETWR>
          <MATKL>001</MATKL>
          <BPUMN>1</BPUMN>
          <BPUMZ>1</BPUMZ>
          <E1EDP20 SEGMENT="1">
            <WMENG>1.000</WMENG>
            <EDATU>19</EDATU>
          </E1EDP20>
          <E1EDP19 SEGMENT="1">
            <QUALF>002</QUALF>
            <IDTNR>100</IDTNR>
          </E1EDP19>
          <E1EDP19 SEGMENT="1">
            <QUALF>001</QUALF>
            <KTEXT>some text</KTEXT>
          </E1EDP19>
        </E1EDP01>
        <E1EDS01 SEGMENT="1">
          <SUMID>002</SUMID>
          <SUMME>3</SUMME>
          <SUNIT>USD</SUNIT>
        </E1EDS01>
      </IDOC>
    </ORDERS02>
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Sending Idocs from SAP-R/3 to XI, bundle and map them to one XML-file

    Hi All,
    We need to send IDoc's (DEBMAS06) from R/3 to XI and  bundle and map them to a single xml-file. Please help us with your suggestions on how to proceed using a simple solution (probably need of BPM).
    Regards,
    Theo

    Hi Theo,
    there is an example in SAP Library: <a href="http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm">Collecting and Bundling Messages - One Interface</a>. Plz post us your detailed quetions.
    Regards,
    Udo

  • Multiple xsd's for one xml file

    Hi Experts,
    My scenario is HTTP to IDoc. My client is sending me XML file as input. I have got 4 XSD's from that XML file. I imported them into PI with giving references by using new importing method with refenences. I have got 4 XSD's imported succesfully into PI with the references in external references tab.
    Tha problem is each XSD is creating multiple messages(splitted) in PI. I can't use any one message in mapping becuase no message has full message to map with the output. One message has reference to the other message.
    Please suggest me how to proceed...
    Thanks-
    Ramesh.

    There should be a Main XSD which will refer the other (4) XSDs....right now you seem to be importing the XSDs independently.
    If XSD1 is referring XSD2, XSD2 is referring XSD3 and so on.....then XSD1 will form your Main XSD and then each XSD will have a separate reference to the next XSD.....all the XSDs need to be imported in XI.
    For example, create Data-types DT1, DT2, DT3, DT4 and provide a reference between them....DT2 in DT1, DT3 in DT2, DT4 in DT3....ultimately DT1 will refer all the other strcutures.....I hope this is what you are looking for.

  • Add schema location and version to the XML file header

    HI, I used XMLBean to generate a XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <bo:TXLife xmlns:bo="http://ACORD.org/Standards/Life/2">
    </bo:TXLife>
    I need add a schema location, a version, another name space so the header looks
    like:
    <?xml version="1.0" encoding="UTF-8"?>
    <bo:TXLife xmlns:bo="http://ACORD.org/Standards/Life/2"
    xmlns:xsd="http://www.w3.com/2001/XMLSchema"
    xmlns:xsi="http://www.w3.com/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.iit.com/schema/Schema29.xsd"
    version="2.9">
    </bo:TXLife>
    Thanks,

    Thanks Steve.
    Your right, it seems that I can't access the attribute or in this case add it
    by just editing the xsd. At least I haven't found a way to do that.
    The cursor solution works ok, but we'll have to add that code to every transformation
    etc.
    Timo
    "Steve Traut" <[email protected]> wrote:
    Hello Timo -- Unless your schema defines the attribute as part of the
    element you want to edit, I don't think you'll get access to the attribute
    through JavaBeans-style accessors.
    If you have any feedback about why the cursor won't work in your situation,
    though, I'd love to hear it.
    Steve
    "Timo Lukumaa" <[email protected]> wrote in message
    news:[email protected]...
    Hello, where having a similar problem. We need a schema locationdefinition so
    that XML is valid. We can edit the xsd files and add stuff there, wouldthere
    be a way to do that with out the cursor? This cursor solution isn'ttoo
    nice..
    "Steve Traut" <[email protected]> wrote:
    Henry -- You'll need an XmlCursor for inserting attributes that aren't
    defined in your schema. Try something like the following.
    TXLifeDocument txLifeDoc = TXLifeDocument.Factory.newInstance();
    TXLife txLife = txLifeDoc.addNewTXLife();
    // Create a cursor and move it to where you want to start inserting
    attributes.
    XmlCursor cursor = txLife.newCursor();
    cursor.toFirstContentToken();
    cursor.toLastAttribute();
    // Insert your attributes.
    cursor.insertAttributeWithValue("schemaLocation","http://www.w3.com/2001/XM
    L
    Schema-instance", "http://www.iit.com/schema/Schema29.xsd");
    cursor.insertAttributeWithValue("version", "2.9");
    cursor.insertNamespace("xsi",
    "http://www.w3.com/2001/XMLSchema-instance");
    cursor.insertNamespace("xsd", "http://www.w3.com/2001/XMLSchema");
    // Dispose of the cursor.
    cursor.dispose();
    Steve
    "Henry Niu" <[email protected]> wrote in message
    news:[email protected]...
    HI, I used XMLBean to generate a XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <bo:TXLife xmlns:bo="http://ACORD.org/Standards/Life/2">
    </bo:TXLife>
    I need add a schema location, a version, another name space so theheader
    looks
    like:
    <?xml version="1.0" encoding="UTF-8"?>
    <bo:TXLife xmlns:bo="http://ACORD.org/Standards/Life/2"
    xmlns:xsd="http://www.w3.com/2001/XMLSchema"
    xmlns:xsi="http://www.w3.com/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.iit.com/schema/Schema29.xsd"
    version="2.9">
    </bo:TXLife>
    Thanks,

  • How to transfer multi-input xml file to One xml file using BPM?

    Hi!
    Using BPM, We wana transfer multiful xml file to One xml at Remote FTP Server.
    I don't know how to design BPM.
    ============== samle1: input xml====================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE Shipments SYSTEM "DTD/Shipment.dtd">
    <Shipments>
      <sendingPartnerID>XXX</sendingPartnerID>
      <receivingPartnerID>XXX_UPSTMS</receivingPartnerID>
      <receivingMessageType>TPSDLS</receivingMessageType>
      <Shipment ID="0081646547" Type="CREATE">
        <CustomerID>XXX</CustomerID>
      </Shipment>
    </Shipments>
    ============== samle2: output xml====================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE Shipments SYSTEM "DTD/Shipment.dtd">
    <Shipments>
      <sendingPartnerID>XXX</sendingPartnerID>
      <receivingPartnerID>XXX_UPSTMS</receivingPartnerID>
      <receivingMessageType>TPSDLS</receivingMessageType>
      <Shipment ID="0081646547" Type="CREATE">
      </Shipment>
      <Shipment ID="0081886548" Type="CREATE">
      </Shipment>
      <Shipment ID="0081646999" Type="CREATE">
      </Shipment>
    </Shipments>
    Message was edited by: ChangSeop Song

    Hi,
    To convert multiple xml files into a single file, you will have to perform a N:1 mapping.
    The following tutorials are available on SAP to help you understand BPM and also to collect multiple XML messages so that they can be mapped into a single message. Check them out,
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Regards,
    Bhavesh

  • How to dpwnload one XML file for each report row

    Hi all,
    i have a report on the products table with about 1000 rows
    desc of table products
    product_id varchar (10)
    product_desc varchar2 (2000)
    I would like to download on the file system an xml file for each row of the report
    the nane of each xml file = <product_id>.xml
    thanks in advance
    km

    Hi,
    You would probably find it better to search on the PL/SQL forum as this is more their area than Apex.
    From what I can see in there (and there are a number of examples that would help you), you need to do something like:
    DECLARE
    vPATH VARCHAR2(50) := '/DEV';
    vFILENAME VARCHAR2(50);
    vFILE UTL_FILE.FILE_TYPE;
    BEGIN
    FOR C IN (SELECT PRODUCT_ID, PRODUCT_DESC FROM PRODUCTS)
    LOOP
      vFILENAME := C.PRODUCT_ID || '.xml';
      vFILE := UTL_FILE.FOPEN(vPATH, vFILENAME, 'W');
      UTL_FILE.PUT_LINE(vFILE, '<xdr>');
      UTL_FILE.PUT_LINE(vFILE, '<product_id>' || C.PRODUCT_ID || '</product_id>');
      UTL_FILE.PUT_LINE(vFILE, '<product_desc>' || C.PRODUCT_DESC || '</product_desc>');
      UTL_FILE.PUT_LINE(vFILE, '</xdr>');
      UTL_FILE.FCLOSE(vFILE);
    END LOOP;
    END;I haven't included exception handling etc and you should check on the PL/SQL forum to see if there are better examples!
    Andy

  • Mixing sound files into one sound file. Urgent

    Hi,
    I want to mix different sound files into one sound file but I don't have any idea of how to do this. Can anybody tell me how or just point me to the right tutorial. I do not want to do this through an applet.
    Thanks all in advance.

    try it this way:
    String oneFile = "mp3" + "wav" + "allOthers";
    you can use System.out.println(oneFile) to see if it works. good luck!

  • ISSUES IN XML FILE HEADER

    Hi Gurus,
    I am facing issue with the first two lines in incoming XML file. I am unable to read this using my program.
    <?xml version="1.0"?>
    <GL_INTERFACE_TBL xmlns="http://xmlns.oracle.com">I am pasting first few lines of my sample code.
    DECLARE
        lv_supp_file     XMLTYPE;
      BEGIN
        lv_supp_file  := xmltype( bfilename('XMLDIR','GL_XML_0512.xml'), nls_charset_id('AL32UTF8'));If first two lines are like this then I can read the file easily.
    <?xml version="1.0" encoding="UTF-8"?>
    <GL_INTERFACE_TBL>
    OR
    <?xml version="1.0" encoding="UTF-8"?>
    <GL_INTERFACE_TBL xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Please confirm is there any way. Our third applications does not have UTF-8 character set.
    Regards,
    Nagendra

    You still don't give the error message.
    Don't you think it's important for diagnosing the problem?
    When I try to read that incoming XML file I am encountering errors. Is it possible to make programs compatible in reading such kind of files.Sure.
    You have to determine what's the real encoding of the XML file (ask the third party team if necessary).
    Normally, when the encoding specification is missing in the prolog (like what you're receiving), then the file is considered UTF-8, but obviously it's not the case here.
    When you know the real encoding, you must then specify the corresponding character set in the XMLType constructor.
    For example, if the encoding is ISO-8859-1, then you must use this instead :
    lv_supp_file  := xmltype( bfilename('XMLDIR','GL_XML_0512.xml'), nls_charset_id('WE8ISO8859P1'));

Maybe you are looking for

  • How to find out the "manufacture date"?

    Hello! Can you tell me how to find out the manufacture date of my Satellite A110-334 with the serial "SY6224123K"? I need this information for my insurance! I found only this link for HDD`s: http://www.storage.toshiba.eu/index_manual.php?pid=220&sid=

  • My pop-up blocker is not working on ANY of the pop-up ads the come up (only in Safari, not Chrome of Firefox).

    I have my settings on block pop-up ads and, stil, the blocker is not working on ANY ads. It used to work just fine. Has anyone else had this specific problem, and how can I fix this issue? Please and thank you!

  • Extensive IO after Configuring DB Streams Replication

    Hi all, <br><br> I'm learning on configuring and managing Oracle Streams Replication. <br><br> I managed to configure a bidirectional Database replication using the PRE_INSTANTIATION_SETUP and POST_INSTANTIATION_SETUP procedures in the DBMS_STREAMS_A

  • IDVD 6 and "menu duration" error

    I have created an iMovie and then an iDVD project. When I attempt to burn an .img file I got an error: "Total menu duration exceeds 15 minutes" The Loop Duration goes to 12:14 minutes. How do I correct this? I'm really getting frustrated on this. Pet

  • New time capsule be noticeably better than the first gen?

    I bought the first time capsule back in 2008. As five years is an eternity in computers i was wondering if I would notice a significant difference if I was to purchase the new 5th gen time capsule. I use it not just for wifi in my apartment but I als