Error in UseOneAsMany Function Error in SAP XI

Error in UseOneAsMany Function Error in SAP XI
Hi Experts,
I am trying the Example of function UseOneAsMany. My Input and Output XML Files are provided below:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_MM4 xmlns:ns0="http://test/mapping.test">
   <Header>
      <MatNo>MatNo</MatNo>
      <MatDesc>MatDesc</MatDesc>
   </Header>
   <Item>
      <MatNo>MatNo1</MatNo>
      <ItemNo>ItemNo1</ItemNo>
      <MatGroup>MatGroup1</MatGroup>
      <Mattype>Mattype1</Mattype>
      <Plant>Plant1</Plant>
   </Item>
   <Item>
      <MatNo>MatNo2</MatNo>
      <ItemNo>ItemNo2</ItemNo>
      <MatGroup>MatGroup2</MatGroup>
      <Mattype>Mattype2</Mattype>
      <Plant>Plant2</Plant>
   </Item>
</ns0:MT_MM4>
My Expected Output should be :
<?xml version="1.0" encoding="UTF-8"?>
-<ns0:MT_MM4R xmlns:ns0="http://test/mapping.test">
-<Header>
<MatNo>MatNo</MatNo>
<MatDesc>MatDesc</MatDesc>
<MatGroup>MatGroup1</MatGroup>
</Header>
-<Item>
<MatNo>MatNo1</MatNo>
<ItemNo>ItemNo1</ItemNo>
<Mattype>Mattype1</Mattype>
<Plant>Plant1</Plant>
</Item>
-<Header>
<MatNo>MatNo</MatNo>
<MatDesc>MatDesc</MatDesc>
<MatGroup>MatGroup2</MatGroup>
</Header>
-<Item>
<MatNo>MatNo2</MatNo>
<ItemNo>ItemNo2</ItemNo>
<Mattype>Mattype2</Mattype>
<Plant>Plant2</Plant>
</Item>
</ns0:MT_MM4R>
But for me Headers are coming first and then followed by two items. Please let me know how to solve the issue and also please provide the explanation.
Thanks,
GIRIDHAR

Hello,
Change ur structure little bit (add parent node "Record") and then use java mapping pasted in below blog to remove Record node to get ur desired structure.
File Conversion using 'Nodeception'
<?xml version="1.0" encoding="UTF-8"?>
-<ns0:MT_MM4R xmlns:ns0="http://test/mapping.test">
<Record> --- 0..Unbounded
-<Header>
<MatNo>MatNo</MatNo>
<MatDesc>MatDesc</MatDesc>
<MatGroup>MatGroup1</MatGroup>
</Header>
-<Item>  
<MatNo>MatNo1</MatNo>
<ItemNo>ItemNo1</ItemNo>
<Mattype>Mattype1</Mattype>
<Plant>Plant1</Plant>
</Item>
</Record>
<Record>
-<Header>
<MatNo>MatNo</MatNo>
<MatDesc>MatDesc</MatDesc>
<MatGroup>MatGroup2</MatGroup>
</Header>
-<Item>
<MatNo>MatNo2</MatNo>
<ItemNo>ItemNo2</ItemNo>
<Mattype>Mattype2</Mattype>
<Plant>Plant2</Plant>
</Item>
</Record>
</ns0:MT_MM4R>
Thanks
Amit Srivastava

Similar Messages

  • I got this warning when i open a specific page on my website in IE : MuseJSAssert: Error calling selector function:Error: A security problem occurred.

    Hi,
    I found out when i'm in IE and go to the page 'Artists'
    and i click on a name, for example: 'Abel Equipe ELA/I Gomes'
    I get this warning :
    MuseJSAssert: Error calling selector function:Error: A security problem occurred.
    This is only in IE, not when i use Safari or Chrome
    this is the website link
    Any ideas how to solve this problem?

    There's an invalid hyperlink on the Abel Equipe ELA/I Gomes page on a bit of text that reads "with your input." You need to find this text within Muse, clear the hyperlink and enter a valid one.

  • ERROR Msg: MuseJSAsset: Error calling selector function:Error: A security problem occurred.

    ERROR Msg: MuseJSAsset: Error calling selector function:Error: A security problem occurred.
    Just launched site using 1 of my 5 CC web-hosting chips. Using Adobe's hosting: ns1, ns2 & ns3.worldsecuresystems.com
    Concerned that the "• Assign a domain name (e.g., www.mycompany.com)" keeps coming up, even tho' I've launched???????????

    Hi,
    The MuseJSAsset error usually appears if there is any conflicting script on the page. Have you added your own code to the site using Insert HTML feature? If yes, please try removing it.
    Regarding your second concern, What is your site URL?
    Regards.
    Aish

  • MuseJSAsset: Error calling selector function:Error: A security problem occurred.

    Hi,
    Internet Explorer is popping up the error "MuseJSAsset: Error calling selector function:Error: A security problem occurred." on all but the Home page at: http://tolight.businesscatalyst.com/index.html. I saw the other post about the same issue and checked my mailto links but they look ok. Any other ideas?
    Thanks!

    David Healy,
    Do you have 1 particular .muse file that gives this 1009 error everytime when opening?
    If so, please send that .muse file to [email protected] along with an explanation of the problem. If your file is > 20MB, use a filesharing service like SendThisFile or Adobe SendNow.
    Also, you should have a file named 'MuseLog.txt' in your user Documents folder which should have some additional info about the error. Please attach that file to your email.
    The Adobe office is closed for a few more days for the holiday break, so it may be several days before you get any response.

  • Error in UseOneAsMany function

    Hello,
    My scenario is File to IDoc and we are using RFC lookup in message mapping also.
    While executing this interface I am getting below error in quality system environment.
    Please find attached trace file.
    RuntimeException during appliction Java mapping com/sap/xi/tf/_ARTransactions_to_ACC_DOCUMENT03_ Thrown: com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-field mapping /Z1ACCOUNTS/IDOC/E1BPACKEC9/CHARACTER; root message: Exception:[com.sap.aii.mappingtool.tf7.FunctionException: Too few values in the first queue in function useOneAsMany. It must have the same number of contexts as the second queue] in class com.sap.aii.mappingtool.flib7.NodeFunctions method useOneAsMany
    But while testing in Development environment, I am not getting any error. In dev system messages are processed successfully.
    In Both environment design and configuration objects are same expect some server credentials.
    Could you please help me?

    Hi Rohan
    From your trace, looks like the RFC connection is having some problem
    Caused by: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: resource error: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool RfcClient[RFCLookUpGLTransactionsData]c63e54cc41083352af06556d6dd4d9d4 is exhausted. The current pool size limit (max connections) is 1 connections.
      at com.sap.aii.adapter.rfc.afcommunication.from.FromAF.callClientChannel(FromAF.java:229)
      at com.sap.aii.adapter.rfc.afcommunication.ejb.RfcAFBean.process(RfcAFBean.java:270)
    Can you check your RFC receiver comm channel?
    Rgds
    Eng Swee

  • Error while creating function filter for SAP R3 destination

    Hi All,
    I am using SAP Portal Add-in 1.0 Patch 3 for Visual Studio 2003 with SAP Portal Runtime 1.0 Patch 3 for Microsoft .NET and SAPDotNetConnector2.0.
    Portal server is successfully added to my server explorer.SAP R3 system  destination is also added succesfully ,but when i create a function filter  
    for my destination function to add my RFC enabled function module it  gives me an error message "Missing R3NAME=... or ASHOST=... in connect_param in RfcOpenEx",but when i log into the R3 system from portal system ,I am able to log successfully.
    please see the attached jpg file for your reference.
    what should I do,plz help me.

    3 things:
    1. When you say "but when i log into the R3 system from portal system ,I am able to log successfully"... what do you mean exactly? Do you mean you tried to do a "test connection"?
    2. Make sure the portal user mapping is set to "user & password" and not SSO. In order to work with the destination in design time you need to have it set to User and Password. Later, for run-time connection you can change it to SSO.
    3. If number 2 failed, can you please click on the destination in the server explorer and look at the property grid for the connection string property? make sure it's correct (you can post it here if you don't know).
    Regards,
    Ofer

  • MuseJAssert:Error calling selector function: Error:Invalid argument

    Some people are reporting this error on one page of a site I am building.  Those users are all using IE for a browser.
    The site is www.shermanoaksstreetfair.org and it comes up with the main stage schedule page. 
    I took out all questionable links, but I think it may have something to do with the slide show. 
    Please advise if you have come across this error.

    Usually this is caused by an incomplete upload. If you change something in Muse, and export, Muse may export html files, css files, javascript files, images, etc. If you use Muse's 'upload to FTP Host' function, Muse will upload just the changed files. If you use an external FTP client, you have to be sure to upload all the files exported by Muse, or you may see errors like this.

  • MuseJs Asserts: error calling selector function error: argument non valide

    Hy, i've this error message on my website, juste in IE. somebody knows what happened ?
    Thanks

    Hi
    Please let us know which version of IE shows this error , I have checked with IE11   and i dont see the error.
    Thanks,
    Sanjit

  • Function call in SAP GUI with errors

    Dear All,
                 When i am calling FM of Comports using OLE Integration i got " Function call in SAP GUI with errors" error
    now my front end version is 6.40. how to solved this problem.
    In my Function Module i am creating object like this
    CREATE OBJECT O_OBJ 'MSCOMMLib.MSComm.1'.
        IF SY-SUBRC <> 0.
          RAISE NO_CREATE_OBJECT.
        ENDIF.
    it raised the sy-subrc = 2 this error is "Function call in SAP GUI with errors"
    send to me how to handle this error.
    Thank,
    Vijay.g

    Hi Vijay,
    We are facing the same issue.
    Interestingly
    From program's code only we are facing this issue.
    If we display the program and Execute (Direct processing), it is working fine.
    Can you please share how you resolved this issue.
    Thanks
    Sreedhar

  • Transaction iView( Tcode) Error: Function call in SAP GUI with errors

    Hey Guys:
                  I use Transaction iView to show the ABAP application on Portal. The application works to import data from client to BW. After I fill all the information and execute the application, the system returns the error message " Function call in SAP GUI with errors".
    The ABAP application works fine on SAP GUI, so it should not be the program problem.
    Any Suggestion for this will be nice. Thanks for your help.

    Hey Duy:
            Thanks for your response. I check the servers which i have access, and all of them cannot work correctly.
    First, other iViews(Dynpro,BW Report,BSP,KM...) work fine.
    Second, our backend system is a BW server.
    I try to do so on our EP production and development, also connect them to our BW production and development servers. All of those are failed and have the same problem.
    The t-code comes from our abap program and register on BW server, and hte program works fine when I use SE38 to execute it.
    PS. The Transaction iView works fine before, but I have no idea why it just crash now.
    Please let me know if you have any suggestion about this.

  • Error executing custom function module

    Hi all,
    am trying to read a function module form my java code as below.
    There is no problem with the function module.
    I think there is some problem with the java code that is written. I am sure the problem lies with the  TABLES IT_PRODUCT_DATA STRUCTURE  ZOG_ITEM_SCREENSTR.
    Function module parameters and signature.
    FUNCTION ZGET_CUST_ORDERGUIDE_ITEMDATA.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(IV_ORDER_GUID) TYPE  CRMT_OBJECT_GUID OPTIONAL
    *"     VALUE(IV_CUSTOMER) TYPE  BU_PARTNER
    *"  TABLES
    *"      IT_PRODUCT_DATA STRUCTURE  ZOG_ITEM_SCREENSTR
    Java Code that is Implemented is attached above.
    public ArrayList fetchOrderGuide(String customerNumber) {
              ArrayList itemList = new ArrayList();
                                       ItemSalesDoc itemSalesDoc = new ItemSalesDoc();
              if (log.isDebugEnabled()) {
                   log.debug("inside ZAdminLogin");
              try
              JCoConnection aJCoCon = (JCoConnection) getConnectionFactory().getConnection(com.sap.isa.core.eai.init.InitEaiISA.FACTORY_NAME_JCO,
                                                                                                 com.sap.isa.core.eai.init.InitEaiISA.CON_NAME_ISA_STATEFUL);
                   try
                        try
                             JCO.Function zFetchSalesOrderFunctionModule = aJCoCon.getJCoFunction("ZGET_CUST_ORDERGUIDE_ITEMDATA");
                             // set the import values
                             Table zItemsTable = new Table("ITEMS");
                                       //zPackagesTable.addColumn(Table.TYPE_STRING,"HUI");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JOGITEM");
                             zItemsTable.addColumn(Table.TYPE_INT,"JPRUOM");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JPRSEQ");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JOGDESC");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JLINE");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JOGNR");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JPACK");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JSIZE");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JBRAND");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JWEEKAVG");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JDELFLAG");
                             JCO.ParameterList importParams = zFetchSalesOrderFunctionModule.getImportParameterList();
                             importParams.setValue("BP-104", "IV_CUSTOMER");
                             aJCoCon.execute(zFetchSalesOrderFunctionModule);
                             JCO.Table zRtItems = zFetchSalesOrderFunctionModule.getTableParameterList().getTable("IT_PRODUCT_DATA");
                                            int numberOfPackages = zRtItems.getNumRows();
                                            if (log.isDebugEnabled()) {
                                                 log.debug("number of packages " + numberOfPackages);
                                            if (numberOfPackages > 0)
                                                 for (int j=0; j<numberOfPackages; j++)
                                                      TableRow itemRow = zItemsTable.insertRow();
                                                      //itemRow.setRowKey(new TechKey(zRtItems.getString("EXIDV")));
                                                      //packageRow.getField("HUI").setValue(zGoods.getString("EXIDV"));
                                                      itemRow.getField("JOGITEM").setValue(zRtItems.getString("OGITEM"));
                                                      itemRow.getField("JPRSEQ").setValue(zRtItems.getString("PRSEQ"));
                                                      itemRow.getField("JOGDESC").setValue(zRtItems.getString("OGDESC"));
                                                      itemRow.getField("JLINE").setValue(zRtItems.getString("LINE"));
                                                      itemRow.getField("JOGNR").setValue(zRtItems.getString("OGNR"));
                                                      itemRow.getField("JPACK").setValue(zRtItems.getString("PACK"));
                                                      itemRow.getField("JSIZE").setValue(zRtItems.getString("SIZE"));
                                                      itemRow.getField("JBRAND").setValue(zRtItems.getString("BRAND"));
                                                      itemRow.getField("JWEEKAVG").setValue(zRtItems.getString("WEEKAVG"));
                                                      itemRow.getField("JDELFLAG").setValue(zRtItems.getString("DELFLAG"));
                                                      zRtItems.nextRow();
                        catch(JCO.AbapException abapException)
                             //Exception thrown, user is not valid
                             if(log.isDebugEnabled())
                                  log.debug(  abapException.getKey());
                   catch (Exception ex)
                        if (log.isDebugEnabled()) {
                             log.debug(ex);
                   finally
                        aJCoCon.close();
              catch(BackendException beeEx)
                   if(log.isDebugEnabled())
              return itemList;     
    LOGDETAILS
    ZGET_CUST_ORDERGUIDE_ITEMDATA:: - IN: INPUT * IV_CUSTOMER='BP-104' IV_ORDER_GUID='00000000000000000000000000000000'
    Oct 9, 2008 6:48:41 AM,507 SAPEngine_Application_Thread[impl:3]_7 Error com.sap.isa.core.eai.sp.jco.JCoConnectionStateful Error occcurred in EAI layer "com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Trying to access row values in a table which does not have any rows yet".
    [EXCEPTION]
    com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Trying to access row values in a table which does not have any rows yet
                at com.sap.mw.jco.JCO$Record.checkRowCapacity(JCO.java:12354)
                at com.sap.mw.jco.JCO$Record.getString(JCO.java:12827)
                at com.sap.mw.jco.JCO$Field.getString(JCO.java:11055)
                at com.sap.isa.core.eai.sp.jco.JCoUtil.paramIterator(JCoUtil.java:412)
                at com.sap.isa.core.eai.sp.jco.JCoUtil.logCall(JCoUtil.java:382)
                at com.sap.isa.core.eai.sp.jco.JCoUtil.logCall(JCoUtil.java:236)
                at
    All helpful answers will be rewarded heavily

    hi,
    first of all you do not set the import values for your table correct. You should do something similar like this:
    Function myFunction = connection.getJCoFunction(Z_FM");
    Table myTable = myFunction.getTableParameterList().getTable("Z_TABLE");
    for(int i=0; i<2; i++) {
        myTable.appendRow();
                        myTable.setValue(value1,"VALUE1");
                        myTable.setValue(value2,"vALUE2");
                   connection.execute(myFunction);
    Did you debug your java class? You should check at which point your java class throws the error.
    Regards
    Michael

  • Error when making a call to SAP using SaveData

    Hi,
    Iam getting the following error while making a function call to SAP
    T:5392 *>RfcInstallStrucure2: field 1 (SIZE_DIM, t:0, l:1) offset 16 too small
    Can somebody please explain me what's going wrong.
    Thanks & Regards,
    Sudha

    Hi Sudha,
    WELCOME TO SDN FORUMS!!!
    It's a RFC Error. I think there is a problem with the length of the parameter you are passing to the RFC.
    1. Please check the parameters that your are passing to your rfc.
    2. I mean the datatype and length of the parameter that you are passing.
    3. Instead of passing the parameters from the .net application to the RFC, test the RFC from the SAP GUI
    with the input that you are going to pass from the .net application.
    Hope it helps.
    Regards,
    Maheswaran.B
    In order to keep the quality of the forum posts high and to involve more people in the process, SDN has
    introduced some mechanism to reward points. In case your problem is solved, don't forget to do this otherwise you
    might not get much help in the future anymore.
    Message was edited by: Maheswaran B

  • ERROR WHILE UPLOADING FUNCTIONAL LOCATION MASTER DATA THROUGH LSMW?????

    Dear Experts,
    I am uploading the master data of functional location through LSMW .I had completed all the steps except "Run Batch Input Session".
    In that step it is showing as functional location already exists, after this error the remaining functional locations are updated in sap or it will stop total transaction by  this error???
    how can u upload the remaining in to sap by skipping already existed one????
    here I am uploading the error screen shot.
    Thanks & Regards,
    Sunil Boya

    Hi Jogeswara Rao Kavala,
    When I am pressing back or NO option  it is showing error like this
    What is this OK- Code means?
    how can I resume this process, even it was not going to back screen also and only one option is available for exit from this is by going into MENU-SYSTEM-SERVICES-BATCH INPUT-CANCEL.
    Sunil Boya

  • Error while posting GR "Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX

    Dear Experts,
    While posting GR for any non-valuated material, I am getting an error "Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX in position 1 with RC 0
    Message no. C+099"
    Kindly explore the possibilities of solution for the above error. The abve error only showing at the time of posting and not whicle Check.
    Regards,
    Tushar

    Hi Tushar,
    Your problem is happening because of the applicaiton of an SAP Note. I think PM has nothing to do with this Error. Pl. read the following (which I read this from one SAP website) & check the relevant SAP notes and take action or write to SAP  for solution.
    Symptom
    The posting of goods receipts results in a long runtime.
    Other terms
    ACTUPD, MIGO, performance, material ledger
    Reason and Prerequisites
    The actual costing is active.
    The performance problems usually occur when there are several procurement alternatives or procurement processes (tables CKMLMV001 and CKMLMV002) for certain materials.
    This can be caused by implementing the modification according to Note 1017470 or 919869, [...]
    Regards,
    Bala.

  • Error calling "RfcRegisterServer" with NW or SAP-RFC

    Hello,
    with our customer upgrading to the EHP 7.0 we run into an erroro while calling the function "RfcRegisterServer"
    with SAP-NetWeaver:
    Contents of structure “RFC_ERROR_INFO“:
    code = 1
    message = (0x0A)ERROR       service '?' unknown(0x0A)(0x0A)TIME        Thu Apr 10 15:24:30 2014(0x0A)RELEASE     711( 0x0A)COMPONENT   NI (network interface)(0x0A)VERSION     39(0x0A)RC -3(0x0A)DETAIL NiErrSet(0x0A)COUNTER     120(0x0A)
    key = RFC_COMMUNICATION_FAILURE
    group = 4
    abapMsgNumber =
    abapMsgClass =
    abapMsgType =
    abapMsgV1 =
    abapMsgV2 =
    abapMsgV3 =
    abapMsgV4 =
    Function “RfcWaitForRequest“ with classical SAP-RFC:
    Contents of structure “RFC_ERROR_INFO_EX“:
    key = RFC_ERROR_COMMUNICATION
    message = CPIC-CALL: 'SAP_CMACCPTP : rc=20(0x0A)(0x0A)LOCATION    SAP-Gateway on host dehensv233.de.henkelgroup.net / sapgw92(0x0A)ERROR       registration of tp master.down.wtr from host(0x0A) dewtdbtec03.de.henkelgroup.net not allowed(0x0A)(0x0A)TIME        Thu Apr 10 14:33:45 2014(0x0A)RELEASE 740(0x0A)COMPONENT   SAP-Gateway(0x0A)VERSION 2(0x0A)RC 720(0x0A)MODULE      /bas/740_REL/src/krn/si/gw/gwxxrd.c(0x0A)LINE 3536(0x0A)COUNTER     880458233(0x0A)
    Any thoughts of how we can fix this issue?
    With king regards.

    Hi Jan,
    Please go through SAP Note "1850230 - GW: "Registration of tp <program ID> not allowed" and try to again rerun this step where you are getting error.
    Regards,
    Jitendra

Maybe you are looking for

  • Can't find my itunes or iphoto libraries on time machine backup

    Non-technical user trying to save/back up contents to External Hard Drive before upgrading to Snow Leopard. Copied overnight but can't see where my tracks/photos on the Time Machine Back up might be. Can anyone advise where I could find them or if I

  • Problem in CRM IC webclient-CRM_CI is the tcode

    HI SAP ALL Currently i am working on CRM.  Here SAP Users expereices a following error When ever trying to use VIN( Vehicle identification numer ) as input in the CRM_IC ( IC WEBCLIENT) and click on confirm button, the vehicle information avaiable on

  • Can somebody post link to How to Use ABAP-Mapping in XI 3.0?

    Hello, can somebody post a real link to the document How to Use ABAP-Mapping in XI 3.0. All the links to this documnet in the existing posts are not valid. Thanks for your information Jayson

  • Need table name used for storing web dynpro methods' code.

    Hi experts, I am trying to retrieve the code of a particular web dynpro component's methods. So can anyone please tell me the table in which the code or logic part  of the methods are stored????????? Thanks in advance..... Edited by: Adithya K Ramesh

  • No.of pallets - PO smartform

    Hi all! Im working on Purchase order SmartForm.I got struck at a field called No.of Pallets .it is given that to find no. of pallets find alternate unit of measure from material master. but i'm unable to follow .can anybody help me.immediate response