XI 2.0 problem: scenario xml - xi - idoc

Hi!
my scenario is xml -> xi -> idoc1, idoc2.
when the interface start, if I call SXMB_MONI I see that idoc1 is correct; for idoc2 the system generate an error: idoc.adapter.generic, "MSGGUID 587E007DA385D54697B3F02220A78987: Tag ORDERHEADER found instead of tag IDOC BEGIN=.</"
Can you help me to undestand the problem?
10 points for you!
Thanks,
Gianluca

Bruer,
I use an interface mapping between xml (imported from SAP BBPCRM 4.0, data type OrderCreateOrChangeVendorOut) and Idoc custom. My mapping is graphical mapping without java class or xsl.
My scenario work with one xml and two different idocs. Today I have added a second idoc. The problem is that the first one work correctly, for the new idoc generate an error for idoc_adapter.generic.
The jar file for the mapping is mandatory for my new idoc?
Thans you very mutch,
Gianluca

Similar Messages

  • XML to IDOC scenario in SAP PI 7.31

    HI Team,
      I am new to Sap PI. I have one scenario xml to idoc in sap pi. Can anyone please help me step by step for this scenario.
    Thanks in Adnavce
    Kallu

    There are ample examples on the internet. Search by giving your exact requirement.
    Try this and see if it helps.
    XI/PI: Simple IDoc Communication using SAP XI

  • XML to IDoc scenario

    Hi all,
    for a customer I'm building an xml to IDoc scenario. The xml-file looks like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ROOT>
      <ROW>
        <_5731 />
        <_5735 />
        <EMPLOYEE_SALARYNR>test</EMPLOYEE_SALARYNR>
      </ROW>
    </ROOT>
    The message type I created in the message mapping looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:ROOT xmlns:ns0="http://wartsila.com/i-protect">
       <ROW>
        <_5731 />
        <_5735 />
        <EMPLOYEE_SALARYNR>test</EMPLOYEE_SALARYNR>
      </ROW>
    </ROOT>
    My problem is I'm not able to translate the customer xml-file in my message mapping, unless I add the namespace "xmlns:ns0="http://wartsila.com/i-protect"" to the file. I tried to solve the problem by deleting the namespace declaration in the message mapping. After that I receive an error when I import the changed structure into the message mapping.
    Is anyone familiair with this problem? Is there someway to add a namespace to the sourcefile or to change the message mapping such a way that it corresponds to the source file?
    Thanks in advance!
    Regards,
    Ivo van Ee

    My problem is I'm not able to translate the customer xml-file in my message mapping, unless I
    add the namespace "xmlns:ns0="http://wartsila.com/i-protect"" to the file. I tried to solve the problem by
    deleting the namespace declaration in the message mapping. After that I receive an error when I import
    the changed structure into the message mapping.
    Since you have created a Message Type corresponding to the sender structure you have the option of deleting the namespace from the Message Type itself.....it is not to be deleted from the message mapping as you mentioned above.....changes made to the MT may cause an initial inconsistency in the mapping......but once done it will be fixed :)...just refer the blog given by Aamir...
    Regards,
    Abhishek.

  • Multimapping n:1 (XML to IDOC) Issue - Cannot use map in the scenario

    Hi! I have created a multimapping in the directory. Source message is 0...unbounded and destination message is 1. The intention is to bring a single file into XI that contains mutliple XML messages. I then need to map this into a single IDOC. I have the mapping working. However, when I try and bring this into my integration scenario, XI cannot find the message interface.
    I am not 100% convinced that this will all hang together =) But Cannot even prove that 'cos I cannot set this up in the scenario.
    Any ideas would be greatly appreciate and rewarded.
    Thx
    Duncan

    Apologies for getting all my terminology screwed up. Here is what I have:
    <u>Integration Repository</u>
    Imported Objects - Target IDOC
    Interface Objects : External Definitions - XML schema of source message
    Interface Objects : Message Interface - For source XML; Outbound + Asynch
    Message Objects : Message Mapping - XML (0..unbounded) to IDOC (1) map
    Message Objects : Interface Mapping - XML message interface (0..unbounded) -> XML to IDOC mapping -> IDOC (1)
    <u>Integration Directory</u>
    Interface Determination...
    I select Type of Interface Determination = Extended but when I pull down the dropdown I do not see the multimap.
    I have this working OK for one IDOC to multiple XML messages, doing the same as above. I have checked SCV, namespace etc... and they are correct. I am sure I am missing something very simple.
    Again, any ideas appreciated.
    Thx
    Duncan

  • Problem in SOAP to IDOC & File scenario

    Hi,
    My scenario is SOAP ->IDOC and FILE,when I run the scenario IDOc was processed and File was not created at the target system.I maintained LS name for sender SOAP and IDOC business service.Nothing was maintained in adapter spec identifiers for Recer business service(i.e For target File CC).This was working fine in Dev.After Importing another scenario which uses same business service,this didnt stp working?
    what could be the reason?
    Thanks,
    RP
    Edited by: [email protected] on Oct 21, 2008 10:59 PM

    > my imported scenario and existing scenario in QA using same sender business service.After importing the other scenario,existing scenario is failed to create files at target system even though it shows successful in MONI.
    >
    Check the target dir permission once again from your BASIS team. Reconfirm the the target dir name in receiver CC also.
    > Should we maintain Logical system in adapter specific identifiers for Recr File CC also??? I create a file in BI application server from recr File CC.
    >
    No, for creating a file you don't require this. This is required only in case of IDOC.
    > my scenario is
    > (SOAP sender) -->  TO IDOC & FILE  ..i maintained LS name in sender BS where SOAP CC is created and also at Recr BS where IDoc CC is created. The other Recr BS for File where I didn't.IS it required ?
    >
    For File recever BS, No need.

  • Xml of IDOC in R/3

    Scenario is IDOC to File. My ABAP team given some ref Idoc numbers which are there in R/3 system for test data.They are not posting Idoc from R/3 system to XI.They are asking me to take the data from R/3 system and post it thru XI RWB.
    So,how can I get xml (of Idoc) from R/3 system.so that i can the xml(of idoc) from RWB.

    Hi Naresh,
    Hasnt ALE configuration been done?
    I think you cant download XML if you have IDoc numbers.
    If ALE Configuration has not been done. Do the same. Wont take more than 10-15 minutes to do.
    Then using WE19 you can send the idocs.
    Regards,
    Sumit

  • How to encode XML to Idoc and decode Idoc to XML in business connector?

    Hi all,
    first of all: thanks for all, who are reading and perhaps responding this question!
    Here some facts and my question(s):
    The facts:
    - I have the business connector version 4.6!
    - I'm not working with any SAP Netviewer!
    - I have XML files on an FTP-server and Idoc-files on an FTP-server --> so no connection between SAP and business connector, meaning: the files are just on the ftp-server!
    What am i doing and what is working properly:
    - Business connector logs in into the FTP-server (with FTP-service: pub.client.ftp:login)
    - gets the file (with FTP-service: pub.client.ftp:get) (the idoc-file, when i want to convert it into XML or the XML-file, when i want to convert it into idoc-format)
    - puts the file into another place in the server (with service wm.PartnerMgr.gateway.transport.FTPTransport:OutboundProcess)
    !!!So far only getting and putting of the file works!!!
    What is missing between getting the file in one format - for example idoc-format - and putting the file into the server in the other format - for example XML-format is:
    CONVERSION FROM XML INTO IDOC AND VICE VERSA
    My question:
    - which services i have to use between getting and putting the files?
    Thanks to all,
    Tamer

    Hi,
    I have the same problem. I do fix it?
    Thanks
    Wilson Xavier
    Brazil

  • I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to customer. Can you please help me on the same?

    HI Experts,
    I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to vendor. Can you please help me on the same?
    Thanks
    SaiSreevastav

    Hi Sai,
    you can use XSLT or java mapping or adapter module to convert IDOC xml to XLS. Please refer the below blog
    Convert incoming XML to Excel or Excel XML – Part 1 - XSLT Way
    Convert incoming XML to Excel Sheet Part 2 – Adapter Module way
    Convert incoming XML to Excel Sheet
    then after converting to Excel, you can use the payloadswap bean in mail adapter
    XI: Sender mail adapter - PayloadSwapBean - Step by step
    regards,
    Harish

  • XML   to   IDOC

    HI....PI Experts
    I am early bird on PI space,
    My boss just given me a   XML file and asked to convert into XML using PI System.
    We have a readily installed PI System in place.
    What other information i have to get , know, discover to convert the XML to IDOC.
    I understand ...some  explicitly mapping to my XML to IDOC document structure is required. ..am i right ?
    if some explain more about this, We will be greatful and move further in this requirement.
    I tried this but was really not useful
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    Regards
    PR

    which is your target IDoc ?
    How you are picking this XML ?
    If you are picking that from folder as ABC.xml, so scenario is XML file to IDoc.
    If you are picking up that directly from MQSeries, so you will make connections between MQSeries & SAP PI.
    Take help for that from the link for making connection between MQSeries & SAP PI :
    How to use MQseries with PI?
    make scenario using XSD Schema of sender side IDoc.

  • How to convert XML into idocs and post in ECC using PI

    Hello All,
    I want to configure the scenario like this MDM->PI->ECC. Using FTP I am getting able to fetch the xml file from MDM Server Ready folder. Now, I need to convert this XML file into Idocs and post it in ECC. Can anyone provide me step by step configuration in PI to achieve this. I have configured communication channel with adapter type Idoc in Itegration Builder. But, I am not sure where it will do the conversion of XML into Idoc and how do post it to ECC. I am working first time on PI 7.1. I have worked on XI 3.0 in 2006-2007. Any help to configure this step by step shall be appreciated.
    Thanks & Regards,
    Hemal

    In you have the XML from MDM you have to use the mapping provided by the funtionals in the Funtional specification documents. once you did it you must configure the Receiver IDoc Adapter. and later dont fonget to configure properly the ReceiverAgreement.
    as you receive the docuement from MDM via FTP, thats not a SAP System that means that you have to define PI as the sender of the IDoc,otherwise you will have the Error "Unable to convert the sender service to an ALE logical system"
    to do that in the receiver Agreement>Header Mapping>Sender System-->Select PI server.
    Take in mind to send IDocs to any SAP System, the system that send it must be a SAP system too. thats why you configure it
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/112d20f6ce6c46ba66afb98d278fbd/frameset.htm
    Another thing is you have configure the ALE distribution Model.
    se this:
    http://wiki.sdn.sap.com/wiki/display/XI/FileToIDOC
    /people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system
    /people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
    Let us know
    Rodrigo P-.

  • Problem to concatenate data (IDOC)

    Hi experts,
    I am facing the following problem :
    i'm designing IDOC to JDBC scenario. On the source message of my mapping, I have the segment E1KNVVL of my idoc that contains the data TDLINE (the occurence of the segment is 0...9999). The problem is that I would like to concatenate all the TDLINE together if they exist.
    Example :
    I have one segment KNVVL that contains abc in TDLINE.
    I have a second segment KNVVL that contains def in TDLINE.
    I would like to have abcdef in my target message.
    The problem is that def does not always exist or can exist several times.
    I could not figure out the right conditions, I even tried java mapping but did not work.
    Any help would be greatly appreciated,
    Regards,
    Jamal

    use the below graphical mapping
    TDLINE->remove context->add  -
    >targetmessage
    KNVVL----
    >
    here add is the udf which has 2 inputs
    1) TDLINE(use remove context node function after TDLINE)
    2) KNVVL
    add
    use cache parameter context
    public void add(String () a,String () b,ResultList result,Container container)
    String c = " ";
    for(int i=0;i<b.length;i++)
      c = c + a(i) + " ";
    result.addValue(c);
    Edited by: malini balasubramaniam on Jul 31, 2008 11:14 AM
    Edited by: malini balasubramaniam on Jul 31, 2008 11:18 AM

  • Problem with XML on Linux

    hi everybody,
    I've a big problem with XML on Linux, in details I see my program stopping on Linux at the instruction
    XMLReader xr = XMLReaderFactory.createXMLReader("org.apache.crimson.parser.XMLReaderImpl");
    and it's strange because on Windows it runs and there aren't problems about permissions on files, does anyone knows what to do?
    thanks in advance!
    Stefano

    What happens on that line? I'm assuming you get some kind of error or exception.
    Make sure the JAR file for Crimson is in your classpath.

  • Problem with XML in APEX ORA-06502

    i, I have a problem with XML generation, I developed an application in APEX, and in a html page I have this process:
    declare
    l_XML varchar2(32767);
    begin
    select xmlElement
    "iva",
    xmlElement("numeroRuc",J.RUC),
    xmlElement("razonSocial", J.RAZON_SOCIAL),
    xmlElement("idRepre", J.ID_REPRE),
    xmlElement("rucContador", J.RUC_CONTADOR),
    xmlElement("anio", J.ANIO),
    xmlElement("mes", J.MES),
    xmlElement
    "compras",
    select xmlAgg
    xmlElement
    "detalleCompra",
    --xmlAttributes(K.ID_COMPRA as "COMPRA"),
    xmlForest
    K.COD_SUSTENTO as "codSustento",
    K.TPLD_PROV as "tpldProv",
    K.ID_PROV as "idProv",
    K.TIPO_COMPROBANTE as "tipoComprobante",
    to_char(K.FECHA_REGISTRO, 'DD/MM/YYYY') as "fechaRegistro",
    K.ESTABLECIMIENTO as "establecimiento",
    K.PUNTO_EMISION as "puntoEmision",
    K.SECUENCIAL as "secuencial",
    to_char(K.FECHA_EMISION, 'DD/MM/YYYY') as "fechaEmision",
    K.AUTORIZACION as "autorizacion",
    to_char(K.BASE_NO_GRA_IVA, 9999999999.99) as "baseNoGraIva",
    to_char(K.BASE_IMPONIBLE, 9999999999.99) as "baseImponible",
    to_char(K.BASE_IMP_GRAV, 9999999999.99) as "baseImpGrav",
    to_char(K.MONTO_ICE, 9999999999.99) as "montoIce",
    to_char(K.MONTO_IVA, 9999999999.99) as "montoIva",
    to_char(K.VALOR_RET_BIENES, 9999999999.99) as "valorRetBienes",
    to_char(K.VALOR_RET_SERVICIOS, 9999999999.99) as "valorRetServicios",
    to_char(K.VALOR_RET_SERV_100, 9999999999.99) as "valorRetServ100"
    xmlElement
    "air",
    select xmlAgg
    xmlElement
    "detalleAir",
    xmlForest
    P.COD_RET_AIR as "codRetAir",
    to_char(P.BASE_IMP_AIR, 9999999999.99) as "baseImpAir",
    to_char(P.PORCENTAJE_AIR, 999.99) as "porcentajeAir",
    to_char(P.VAL_RET_AIR, 9999999999.99) as "valRetAir"
    from ANEXO_COMPRAS P
    where P.ID_COMPRA = K.ID_COMPRA
    AND P.ID_INFORMANTE_XML = K.ID_INFORMANTE_XML
    xmlElement("estabRetencion1", K.ESTAB_RETENCION_1),
    xmlElement("ptoEmiRetencion1", K.PTO_EMI_RETENCION_1),
    xmlElement("secRetencion1", K.SEC_RETENCION_1),
    xmlElement("autRetencion1", K.AUT_RETENCION_1),
    xmlElement("fechaEmiRet1", to_char(K.FECHA_EMI_RET_1,'DD/MM/YYYY')),
    xmlElement("docModificado", K.DOC_MODIFICADO),
    xmlElement("estabModificado", K.ESTAB_MODIFICADO),
    xmlElement("ptoEmiModificado", K.PTO_EMI_MODIFICADO),
    xmlElement("secModificado", K.SEC_MODIFICADO),
    xmlElement("autModificado", K.AUT_MODIFICADO)
    from SRI_COMPRAS K
    WHERE K.ID IS NOT NULL
    AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
    AND K.ID BETWEEN 1 AND 25
    ).getClobVal()
    into l_XML
    from ANEXO_INFORMANTE J
    where J.ID_INFORMANTE =:P3_MES
    and J.RUC =:P3_ID_RUC
    and J.ANIO =:P3_ANIO
    and J.MES =:P3_MES;
    --HTML
    sys.owa_util.mime_header('text/xml',FALSE);
    sys.htp.p('Content-Length: ' || length(l_XML));
    sys.owa_util.http_header_close;
    sys.htp.print(l_XML);
    end;
    Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
    I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
    declare
    l_XML CLOB;
    begin
    --Oculta XML
    sys.htp.init;
    wwv_flow.g_page_text_generated := true;
    wwv_flow.g_unrecoverable_error := true;
    --select XML
    select xmlElement
    from SRI_COMPRAS K
    WHERE K.ID IS NOT NULL
    AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
    ).getClobVal()
    into l_XML
    from ANEXO_INFORMANTE J
    where J.ID_INFORMANTE =:P3_MES
    and J.RUC =:P3_ID_RUC
    and J.ANIO =:P3_ANIO
    and J.MES =:P3_MES;
    --HTML
    sys.owa_util.mime_header('text/xml',FALSE);
    sys.htp.p('Content-Length: ' || length(l_XML));
    sys.owa_util.http_header_close;
    sys.htp.print(l_XML);
    end;
    The error generated is ORA-06502: PL/SQL: numeric or value error+_
    Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+

    JohannaCevallos07 wrote:
    Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
    I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
    The error generated is ORA-06502: PL/SQL: numeric or value error+_
    Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+The likeliest explanation for this is that length of the XML exceeds 32K, which is the maximum size that <tt>htp.p</tt> can output. A CLOB can store much more than this, so it's necessary to buffer the output as shown in +{message:id=4497571}+
    Help us to help you. When you have a problem include as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    And always post code wrapped in <tt>\...\</tt> tags, as described in the FAQ.
    Thanks

  • Problem in xml query

    Hi
    I am working on BLS and having problem in xml query.I want to perform some calculation over xml columns.Than total of this as a new column.I can do this part in logic editor itself but can i do these both task by XSLT.
    Can be made our own XSLT for this ?
    I am feeling kind of fear to xslt. Can anybody help me in this.
    Thanks a lot in advance
    thomas

    Ram,
    In xMII there is a list of predefined xslt transforms that do something similar to what you are explaining.  The 3 that I think may be what you are looking for are
    they are under Calculation Transformations and Subtotal Transformation take a look at these and tell me if they are doing what you want to accomplish.  In the xMII help file do a search on Inline Transforms or navigate to Advanced Topics -> Inline Transforms -> Predefined Inline Transforms.  In this section there are examples of how to use these transforms and apply them in the query templates.  If this is not what you are looking for can you explain in a little more detail along with a simple example of how you want this transform to work.  Also why do you want to use xslt if you can already accomplish this in BLS?
    Regards,
    Erik

  • Problem in processing incoming IDOC

    Hi All,
    I have a problem while processing Incoming IDOC in the system.
    While I try to process and FI IDOC (without purchase order) in the system, by giving the appropriate GL account and cost centre where the document should get posted to (in transaction WE19), I find that the system creates the IDOC successfully with status 53. However, it creates a parked document in the system for the vendor.
    When I try to post the document through transaction FBV0, the system asks for a cost centre. Can you please clarify, why the system is asking for a cost object though it is given in WE19 transaction. Ideally while processing the IDOC the system should post the document directly as it has all the relevant details in the IDOC right?
    (Just for info, I have given the GL account details in segment E1EDP19 with qualifier 002 and the cost centre in segment E1EDP30 with qualifier 045)
    Expecting your help in this regard.
    Regards
    Nagarajan N

    Hi
    You can use WE19 to debug the Idoc FM.
    Check this link if it is helpful:
    Debugging Idocs
    Regards
    Neha

Maybe you are looking for

  • Errors in 9ias patch dcumentation!

    folks, this applies to all who're trying to upgrade their existing 9ias to the latest patch set version using the integrated patchset. this is also helpful if you're doing a first time install and there are some issues that help in getting the server

  • Goods receipt for PO , immediate TO

    Experts, We are developing a custom RF transaction GR for PO. During this process I am using BAPI_Goodsmvt_create to create the material document in the back ground.I want to create the transfer order for the material document immediately in the bag

  • X1 Carbon Windows 8 Partition Layout - What is it all about ?

    Hey, Have a Windows 8 X1 Carbon and along with WWAN issues and a dud camera (screen got replaced entirely) I am now wondering about the partition layout. I have a 240gb Intel SSD with this layout : 1000mb Recovery Partition 260mb Healthy (EFI System

  • How do I change margins in Numbers?

    How do I change the page margins in the new version of Numbers?

  • Using the map/erase/lockout function on my Ipad

    I see I can remotely erase, lock out and locate my Ipad if it is stolen or lost. I don't have any other Apple devices, so how do I do this from my Win7 PC? I went to the Apple site and it said to download the Icloud panel for my PC (which I did), but