Issue while inserting a BDC program in Inbound Proxy.JDBC-- PI-- SAP.

The scenerio is jdbcsender-sappi-inboundproxy(ECC6.0).
The issue is related to SAP Plant Maintenance Module where  We have a requirement for creating Maintenance item
programmatically from (SQLDatabase)Legacy Data for one of the interface.
since there are no standard BAPIS/Idocs or function modules available from SAP side for creating the maintenance item. So I
have written BDC program and with the help of submit statement in inbound proxy program, I am calling BDC program for
creation of the maintenance item.
When I tested the program independently on proxy side  the Maintenance Item is getting created successfully but when I
executed from end-to-end ie.  SQLDATABASE->SAP PI-->SAP. The message is getting strucked into the queue and queue  got stopped on SAP.
ECC side and the status of the message is scheduled state  on SXMB_MONI  transaction of SAP ECC.
As the message  is in scheduled state multiple number of Maintenance Items are getting created with the same values.
Has any one of our SAP friends, encountered this type of issue while inserting a BDC program in inbound proxy, please help 
in fixing this issue. FYI... I am using sap pi7.0 with service pack 24 and ecc6.0
Waiting for your kind expert guidance...
cheers,
Ram

Raj,
Thanks for the reply. I have tried registering the queues but still the same problem. the message got stuck in the queue of ECC and showing below message in queue.
function module                                    StatusText
SXMS_ASYNC_EXEC                  connection closed (no data)
I have checked in the forums especially  for this issue but no one has provided the answer for this.
Thanks and Regards
Ram

Similar Messages

  • Issue while insert and update data to DB tables

    Hello all,
    i am having an issue while insert the data to DB table.
    my scenario is DB1 to DB2. i had a sender channel with select query which fetches data from DB1 and inserts to DB2.
    so the select query will fetch the records that were INSERTED to DB1 and records that were UPDATED to DB1 and needs to insert/update to DB2 table.
    Now the issue is i am able to insert the records but not able toupdate the records to DB2 table due to primary key issue.
    im message mapping
    sender message type is as follows:
    <src_message1>
    ----<row>
    -------<fieldA>
    -------<filedB>
    -------<filedC>
    Receiver message type as follows:
    <trgt_message1>
    ----<STATEMENT_1>
    ----<TABLE_NAME>
    ----<ACTION> INSERT
    ----<TABLE>
    ----<ACCESS>
    ----<field1> primary key
    ----<field2>
    ----<field3>
    ----<field4>
    ----<KEY>
    ----<field1>
    ----<field2>
    ----<field3>
    ----<field4>
    my query in sender channel is : select filedA, filedB, filedC from test_table where createdate=sysdate or updatedate=sysdate
    so it feteches the data from DB1 and inserting to DB2 but not updating the records to DB2 due to primarykey issue.
    please suggest how to solve ....will it solve by using UPDATE_INSERT for action?
    Best Regards,SARAN

    Hi Nagarjuna,
    i have done the following changes to target mapping structure;
    1. action as UPDATE_INSERT
    2.  in access tab, i had mapped fieldDate to field4.
    3. in Key tab, i assigned the sysdate to field4.
    but issue still exist. could you please check my above changes are correct or not. if wrong please provide me the details that needs to be done.
    thanks in advance.
    i'm providing the error details again:
    my query in sender channel is : select filedA, filedB, filedC, FiledDate from TEST_TABLE where fieldDate=sysdate or updatedate=sysdate
    it returns 4 records as follows:
    fieldA--fieldB-fieldC---fieldDate
    1001----EU----  1----
        2011-11-10
    1002----CN----  0----
         2011-11-10
    1003----AP---- 1----
          2008-03-15 (already exist in DB2)
    1004----JP----  1----
        2007-04-12 (already exist in DB2)
    the first two records are created today and remaining 2 records are updated the fieldC from 0 to 1 ( in DB1 )
    while inserting these 4 records to DB2, we get the following error "java.sql.SQLException: ORA-00001: unique constraint (data.TEST_TABLE_PK) violated" .
    Best Regards,SARAN

  • BDC program for inbound delivery VL31

    Dear experts,
    I have created BDC program for inbound delivery with old T_CODE VL31,but it's very inefficient.Now I must change the program for the efficiency improve.
    Could you give any idea?
    Thanks in advance,
    collysun.

    I'm sorry, but it does not seem that there is a BAPI for this (looking at transaction BAPI and business object BUS2015).
    Have you perhaps looked at the new transaction VL31N? Are there any differences that may improve the input (limit the number of BDC steps)?
    Otherwise, take a look at the way you are entering data now. Make sure there are not too many dialog steps. i.e. Make sure you enter all the data you can on a single screen, only then process the next OKCODE. Also, look at the transaction again: Perhaps you can enter items in an overview screen instead of individual items. (I have no knowledge of your situation of course; these are just some general guidelines).
    Cheers,
    Martin

  • Access issues while inserting data in a table in same schema

    Hi All.
    I have a script that at first creates and then populates a table. My script used to run fine in production environment till few hours back. But all of a sudden, it is popping up error while inserting data into the table .
    Error message - "Insufficient Previlages".
    Please suggest me what may be the reasons for this kind of error.
    Thanks in advance

    Sonika wrote:
    Hi All.
    I have a script that at first creates and then populates a table. My script used to run fine in production environment till few hours back. But all of a sudden, it is popping up error while inserting data into the table .
    Error message - "Insufficient Previlages".
    Please suggest me what may be the reasons for this kind of error.
    1) something changed
    2) you are hitting a bug

  • Performance issue while inserting data

    I have a .dat file containing the required data for the table.It has almost half a million rows.When i inserted the data using SQL LOADER it took
    almost whopping 70 minutes .How can i insert the data fast.what should i include in my control file to insert data fast.
    Or any other method?2
    oracle - 11gR2
    Cant use external tables as data is not of fixed length
    Edited by: Rahul_India on Oct 6, 2012 1:56 AM

    True but irrelevant.
    If the reason for the 70 minute load is CPU starvation the load time will remain 70 minutes.
    If the reason for the 70 minute load time is that a DBA implemented workload management the load time will remain 70 minutes.
    If the reason for the 70 minute load time is network saturation the load time will remain 70 minutes.
    If the reason for the 70 minute load time is the SAN bus is saturated the load time will remain 70 minutes.
    If the OP is on a RAC cluster and loading is happening on the wrong node causing remastering the load time will remain 70 minutes.
    and I could add many dozens more to this list without breaking a sweat.
    None of us have any basis for making any recommendation and again my intent here is not to be rude but sending the OP off on a wild goose chase saying DIRECT LOAD is faster, of course it is, or External Tables are faster, or whatever has no value if you do not first stop and ask the single most important question which is: "Why is the load taking 70 minutes?" Which is a question none of us can answer.
    What I am encouraging you to do is stop giving advice when you don't have a single byte of relevant information upon which to base a recommendation.
    Are you serious suggesting parallel execution? I do have experience with it. If CPU starvation is the root cause I recommend you try to work through the impact of your suggestion ... you will bring the server to its knees begging for mercy. So again please stop making recommendations until the OP responds with facts.

  • Issues while configuring java application using JDO with MS JDBC Driver 1.0

    We are in the process of configuring our java application with the production version of SQL Server 2005 Java Database Connectivity (JDBC) Driver 1.0. We are facing issues getting it to work with Sun App Server using JDO concept.
    After creating the data store, adding the JDBC driver to the application server classpath through console and also copying the driver into the lib directory, we are still getting the below error.
    Following is the stack trace encountered while running the application
    [#|2006-02-15T10:21:25.493+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.container.ejb.entity.finder|_ThreadID=30;|JDO74010: Bean 'InventoryEJB' method ejbFindAllInventoryItems: problems running JDOQL query.
    com.sun.jdo.api.persistence.support.JDOFatalInternalException: JDO76519: Failed to identify vendor type for the data store.
    NestedException: java.sql.SQLException: Error in allocating a connection. Cause: javax.transaction.SystemException
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.initializeSQLStoreManager(SQLPersistenceManagerFactory.java:870)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:786)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:673)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:849)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:681)
         at com.sun.j2ee.blueprints.supplier.inventory.ejb.InventoryEJB1142755294_ConcreteImpl.jdoGetPersistenceManager(InventoryEJB1142755294_ConcreteImpl.java:530)
         at com.sun.j2ee.blueprints.supplier.inventory.ejb.InventoryEJB1142755294_ConcreteImpl.ejbFindAllInventoryItems(InventoryEJB1142755294_ConcreteImpl.java:146)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:147)
         at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:185)
         at $Proxy164.findAllInventoryItems(Unknown Source)
         at com.sun.j2ee.blueprints.supplier.inventory.web.DisplayInventoryBean.getInventory(Unknown Source)
         at org.apache.jsp.displayinventory_jsp._jspService(displayinventory_jsp.java:119)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
         at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
         at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
         at com.sun.j2ee.blueprints.supplier.inventory.web.RcvrRequestProcessor.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    Can anyone help me on this issue?
    Regards,
    Bindu

    I have already tried this before and this not work too, but strange that even if I use JDBC:ODBC bridge driver, the return value for output parameters are not correct, that is, only return the value that I input but not the value after executed in the procedure....
    The code that I used with JDBC:ODBC bridge is as follow:
    public static void main(String[] args) {
    String url = "jdbc:odbc:;DRIVER=SQL Server;Persist Security Info=False;database=db;Server=sql;uid=sa;pwd=pwd";
              Connection con;
              ResultSet rs = null;
    CallableStatement callS = null;
              try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              } catch(java.lang.ClassNotFoundException e) {
                   System.err.print("ClassNotFoundException: ");
                   System.err.println(e.getMessage());
              try {
                   con=DriverManager.getConnection(url);
    callS = con.prepareCall("{ call dbo.CpJavaTest (?)}");
    callS.registerOutParameter(1, Types.INTEGER);
    callS.execute();
    rs=callS.getResultSet();
    int ret = callS.getInt(1);
    System.out.println("return value : " + ret);
                   while (rs.next()) {
                        String f1 = rs.getString(4);
                        String f2 = rs.getString(5);
                        System.out.println(f1 + " " + f2);
              } catch(SQLException ex) {
                   System.out.println("SQLException: " + ex.getMessage());
    The value of the output parameter is same as what I inputed! Hope any one can teach me how to correct it...
    Thank you very much!

  • Issue While Passing Multiple items into a sales order BAPI in SAP.

    &lt;messages&gt;&lt;input&gt;&lt;Invoke_SAP_SO_process_InputVariable&gt;&lt;part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload"&gt;&lt;ZBAPI_SORDER_WRAPPER xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns="urn:sap-com:document:sap:rfc:functions"&gt;
    &lt;rfc:ORDER_HEADER_IN&gt;
    &lt;rfc:DOC_TYPE&gt;TA&lt;/rfc:DOC_TYPE&gt;
    &lt;rfc:SALES_ORG&gt;1000&lt;/rfc:SALES_ORG&gt;
    &lt;rfc:DISTR_CHAN&gt;10&lt;/rfc:DISTR_CHAN&gt;
    &lt;rfc:DIVISION&gt;00&lt;/rfc:DIVISION&gt;
    &lt;rfc:REQ_DATE_H&gt;2009-03-11&lt;/rfc:REQ_DATE_H&gt;
    &lt;/rfc:ORDER_HEADER_IN&gt;
    &lt;rfc:ORDER_ITEMS_IN&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000010&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:MATERIAL&gt;M-18&lt;/rfc:MATERIAL&gt;
    &lt;rfc:TARGET_QTY&gt;1&lt;/rfc:TARGET_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000020&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:MATERIAL&gt;M-18&lt;/rfc:MATERIAL&gt;
    &lt;rfc:TARGET_QTY&gt;1&lt;/rfc:TARGET_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000030&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:MATERIAL&gt;M-18&lt;/rfc:MATERIAL&gt;
    &lt;rfc:TARGET_QTY&gt;1&lt;/rfc:TARGET_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000040&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:MATERIAL&gt;M-18&lt;/rfc:MATERIAL&gt;
    &lt;rfc:TARGET_QTY&gt;2&lt;/rfc:TARGET_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;/rfc:ORDER_ITEMS_IN&gt;
    &lt;rfc:ORDER_ITEMS_INX&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000010&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:MATERIAL&gt;X&lt;/rfc:MATERIAL&gt;
    &lt;rfc:TARGET_QTY&gt;X&lt;/rfc:TARGET_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000020&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:MATERIAL&gt;X&lt;/rfc:MATERIAL&gt;
    &lt;rfc:TARGET_QTY&gt;X&lt;/rfc:TARGET_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000030&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:MATERIAL&gt;X&lt;/rfc:MATERIAL&gt;
    &lt;rfc:TARGET_QTY&gt;X&lt;/rfc:TARGET_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000040&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:MATERIAL&gt;X&lt;/rfc:MATERIAL&gt;
    &lt;rfc:TARGET_QTY&gt;X&lt;/rfc:TARGET_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;/rfc:ORDER_ITEMS_INX&gt;
    &lt;rfc:ORDER_PARTNERS&gt;
    &lt;rfc:item&gt;
    &lt;rfc:PARTN_ROLE&gt;AG&lt;/rfc:PARTN_ROLE&gt;
    &lt;rfc:PARTN_NUMB&gt;0000002146&lt;/rfc:PARTN_NUMB&gt;
    &lt;/rfc:item&gt;
    &lt;/rfc:ORDER_PARTNERS&gt;
    &lt;rfc:ORDER_SCHEDULES_IN&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000010&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:SCHED_LINE&gt;0001&lt;/rfc:SCHED_LINE&gt;
    &lt;rfc:REQ_DATE&gt;2009-03-11&lt;/rfc:REQ_DATE&gt;
    &lt;rfc:REQ_QTY&gt;10&lt;/rfc:REQ_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000020&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:SCHED_LINE&gt;0001&lt;/rfc:SCHED_LINE&gt;
    &lt;rfc:REQ_DATE&gt;2009-03-11&lt;/rfc:REQ_DATE&gt;
    &lt;rfc:REQ_QTY&gt;10&lt;/rfc:REQ_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000030&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:SCHED_LINE&gt;0001&lt;/rfc:SCHED_LINE&gt;
    &lt;rfc:REQ_DATE&gt;2009-03-11&lt;/rfc:REQ_DATE&gt;
    &lt;rfc:REQ_QTY&gt;10&lt;/rfc:REQ_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000040&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:SCHED_LINE&gt;0001&lt;/rfc:SCHED_LINE&gt;
    &lt;rfc:REQ_DATE&gt;2009-03-11&lt;/rfc:REQ_DATE&gt;
    &lt;rfc:REQ_QTY&gt;10&lt;/rfc:REQ_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;/rfc:ORDER_SCHEDULES_IN&gt;
    &lt;rfc:ORDER_SCHEDULES_INX&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000010&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:SCHED_LINE&gt;0001&lt;/rfc:SCHED_LINE&gt;
    &lt;rfc:REQ_DATE&gt;X&lt;/rfc:REQ_DATE&gt;
    &lt;rfc:REQ_QTY&gt;X&lt;/rfc:REQ_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000020&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:SCHED_LINE&gt;0001&lt;/rfc:SCHED_LINE&gt;
    &lt;rfc:REQ_DATE&gt;X&lt;/rfc:REQ_DATE&gt;
    &lt;rfc:REQ_QTY&gt;X&lt;/rfc:REQ_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000030&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:SCHED_LINE&gt;0001&lt;/rfc:SCHED_LINE&gt;
    &lt;rfc:REQ_DATE&gt;X&lt;/rfc:REQ_DATE&gt;
    &lt;rfc:REQ_QTY&gt;X&lt;/rfc:REQ_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;rfc:item&gt;
    &lt;rfc:ITM_NUMBER&gt;000040&lt;/rfc:ITM_NUMBER&gt;
    &lt;rfc:SCHED_LINE&gt;0001&lt;/rfc:SCHED_LINE&gt;
    &lt;rfc:REQ_DATE&gt;X&lt;/rfc:REQ_DATE&gt;
    &lt;rfc:REQ_QTY&gt;X&lt;/rfc:REQ_QTY&gt;
    &lt;/rfc:item&gt;
    &lt;/rfc:ORDER_SCHEDULES_INX&gt;
    &lt;/ZBAPI_SORDER_WRAPPER&gt;
    &lt;/part&gt;&lt;/Invoke_SAP_SO_process_InputVariable&gt;&lt;/input&gt;&lt;fault&gt;&lt;selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"&gt;&lt;part name="summary"&gt;&lt;summary&gt;XPath query string returns multiple nodes.
    According to BPEL4WS spec 1.1 section 14.3, The assign activity part and query /ns2:ZBAPI_SORDER_WRAPPER/ns2:ORDER_ITEMS_IN/ns2:item/ns2:ITM_NUMBER should not return multipe nodes.
    Please check the BPEL source at line number "113" and verify the part and xpath query /ns2:ZBAPI_SORDER_WRAPPER/ns2:ORDER_ITEMS_IN/ns2:item/ns2:ITM_NUMBER.
    Possible reasons behind this problems are: some xml elements has maxOccurs &gt; 1 or the xml data is invalid according to XML Schema.
    To verify whether XML data received by a process is valid, user can turn on validateXML switch at the domain administration page.
    &lt;/summary&gt;
    &lt;/part&gt;&lt;/selectionFailure&gt;&lt;/fault&gt;&lt;/messages&gt;

    Hi Siva,
    I had a similar problem.
    I was using add button to create dynamic rows.
    In the coding part I create multiple instances but when I call the webservice only the last row is passed.
    Can you give me more inputs?
    Thanks
    Nancy

  • Issue Related to BDC Program against Recording

    Hi,
    I have a issue related to <b>BDC Programming</b>.
    Here My Transaction is related to <b>VX22</b>.
    First I did <b>Recording[SHDB]</b> for This Transaction<b>[VX22].</b>
    Then I had added same code from <b>Recording[SHDB]</b> in my Program.
    The Transaction which was going through <b>SHDB</b> Correctly, Not Working from My Program.
    Can any body tell me the Reason for this.
    I am adding <b>SHDB[Recording]</b> as well as Programming Code out here for checking.
    If anybody knows the diffrence please reply me.
    <b>SHDB - RECORDING</b>
    <b>    PERFORM bdc_dynpro      USING 'SAPMV52G' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RV52G-SELKZ'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'VBAK-VBELN'
                                      record-vbeln_001.
        PERFORM bdc_field       USING 'RV52G-SELKZ'
                                      record-selkz_002. " space
        PERFORM bdc_dynpro      USING 'SAPLV52E' '0500'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RV52G-SELKZ(02)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=DETA'.
        PERFORM bdc_field       USING 'RV52G-SELKZ(02)'
                                      record-selkz_02_003.
        PERFORM bdc_dynpro      USING 'SAPLV52E' '0520'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'VBEX-MODCO'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'VBEX-ALNUM'
                                      record-alnum_004. "Space
        PERFORM bdc_field       USING 'VBEX-EMBGR'
                                      record-embgr_005. "Space
        PERFORM bdc_field       USING 'VBEX-GENNR'
                                      record-gennr_006. "Space
        PERFORM bdc_field       USING 'VBEX-MODCO'
                                      record-modco_007. "Space
        PERFORM bdc_dynpro      USING 'SAPLV52E' '0520'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'VBEX-MODCO'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=BACK'.
        PERFORM bdc_field       USING 'VBEX-GENNR'
                                      record-gennr_008. "Value passed
        PERFORM bdc_field       USING 'VBEX-MODCO'
                                      record-modco_009. "Value Passed
        PERFORM bdc_dynpro      USING 'SAPLV52E' '0500'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      '*VBEX-VBELN'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=SICH'.
        PERFORM bdc_transaction USING 'VX22'.</b>
    <b>In Program Code Added:</b>
    <b>  CLEAR v_line_item.
      PERFORM f_bdc_dynpro      USING 'SAPMV52G' '0100'.
      PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                      'RV52G-SELKZ'.
      PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
      PERFORM f_bdc_field       USING 'VBAK-VBELN'
                                      i_data-vbeln.
      PERFORM f_bdc_field       USING 'RV52G-SELKZ'
                                      v_space.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = i_data-sno
        IMPORTING
          output = i_data-sno.
      SHIFT i_data-sno LEFT DELETING LEADING space.
      CONCATENATE c_line i_data-sno c_cl_b INTO v_line_item.
      PERFORM f_bdc_dynpro      USING 'SAPLV52E' '0500'.
      PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                      v_line_item.
      PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                      '=DETA'.
      PERFORM f_bdc_field       USING v_line_item
                                      c_x.
      PERFORM f_bdc_dynpro      USING 'SAPLV52E' '0520'.
      PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                      'VBEX-MODCO'.
      PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
      PERFORM f_bdc_field       USING 'VBEX-ALNUM'
                                      v_space.
      PERFORM f_bdc_field       USING 'VBEX-EMBGR'
                                      v_space.
      PERFORM f_bdc_field       USING 'VBEX-GENNR'
                                      v_space.
      PERFORM f_bdc_field       USING 'VBEX-MODCO'
                                      v_space.
      PERFORM f_bdc_dynpro      USING 'SAPLV52E' '0520'.
      PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                      'VBEX-MODCO'.
      PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                      '=BACK'.
      PERFORM f_bdc_field       USING 'VBEX-GENNR'
                                      i_data-gennr.
      PERFORM f_bdc_field       USING 'VBEX-MODCO'
                                      'A'.
      PERFORM f_bdc_dynpro      USING 'SAPLV52E' '0500'.
      PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                      '*VBEX-VBELN'.
      PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                      '=SICH'.
      PERFORM f_bdc_call_transaction USING 'VX22'.</b>
    Can Anybody tell me the Diffrence B/N Recording and Program.
    only <b>v_line_item</b> is added extra in program to find out specific line item and select that line item that is working Correctly.
    <b>Issue#1</b>
    The issues in above come in first Initial Screen[100] Where i need to Remove Check for <b>'RV52G-SELKZ'</b> that is first thing that is not happening.
    Next it woking correctly for <b> 500</b> Screen [By Selecting Correct line item and then Details for it].
    <b>Issue#2</b>
    Then it is going to Screen <b>502</b> where first it need to clear all the enabled field i passed <b>space</b> to them. but still it is showing values in all fields. After Clearing i should Re-Add 2 fields among Those fields.
    Then other things will happen.
    Can anybody tell me what is reason in program code is not working - I had tried in all <b>'A/E/N'</b> Modes but it's not working!
    If anybody knows reason please help me out.
    One More thing i had tried by making <b>PARAMETER ID'S</b> of few fields BLANK. But by this way also it is not working.
    <b>  SET PARAMETER ID 'ALN' FIELD v_space.
      SET PARAMETER ID 'EMB' FIELD v_space.
      SET PARAMETER ID 'GNR' FIELD v_space.</b>
    Can anybody give me the solution.
    Thanks in advance.
    Thanks & Regards,
    Prasad.

    Hi,
    I had tried in Ravi's way also.
    I will explain the process once more.
    It's a DE-Assign Process - Main purpose is to make the External Licence number blank.
    For that process is as follows:
    First user will Trigger <b>VX22</b> transaction,
    In the initial screen <b>100</b> he will give <b>Sales Order Number[VBELN]</b> then remove Check Box against <b>Blocked Items(Legal Control)</b> Then Press Enter.
    It will take user to <b>Change Licen Data [500]</b> Screen.
    There from the line items he will select specific line item which is already filled in with <b>ASSIGN</b> process.
    He will select check box against that Line item then will hit on <b>Details[F2]</b> from the Tool Bar.
    It will take user to <b>502 screen</b> There he will be deleting all the data in change mode one by one in order of <b>Exp.Ctrl.Class</b>, <b>Grouping</b>, <b>License Number</b>, <b>Change ID</b> Then he will hit on enter then by that <b>Ext.License No</b> which is in display mode - value against that field will get deleted.
    Then he will again provide <b>License Number, Change ID</b> and then <b>hit Enter, Enter, Then Back Button</b> then it will take us back to previous screen <b>[500]</b> there he will hit on <b>SAVE</b> button. Then Order will be saved.
    ABove is the actual process.
    Anybody having the solution for above as BDC is initially not making screen fields blank initially.
    how we can do this by SET PARAMETER ID's.
    Thanks & Regards,
    Prasad.

  • Error while running a BDC for the Transaction F-02

    Hi,
           I'm getting an error <b><i>"Parking not possible during Batch Input"</i></b> while running a BDC for the transaction F-02.
           When i click on the error message it displays the message [b<i>]"In Customizing, you can control whether an error message is issued."</b></i>
            How to solve this issue?.
            Waiting for ur replies.........
    Regards
    N.Senthil

    Hi,
    When you are doing the recording in SHDB, and in the same screen where the TCODE to be recorded is given, there are options that you can choose called "Recording Parameters"...Select the checkbox which says "Not a Batch Input Session", this will set the sy-binpt variable to " "(in a recording by default it is "X")...and you will not get this error...
    Also make sure while writing the BDC program to make use of the "bdc options" parameter which has this property to switch of sy-binpt...
        Refer below theard for sample bdc code for f-02.
    https://forums.sdn.sap.com/click.jspa?searchID=5126766&messageID=1538409
    Regards

  • Issue While sending data to Webserver

    Hi All,
      I am facing an issue while sending data to a webserver. My scenario is SAP(Proxy) to XI to Webserver. It is an asynchronous scenario. The same communication channel and same WSDL is used to send many Interfaces but when I am sending data for a particular Interface I am facing the issue "SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 400 Bad Request"
    Few points for reference -
    1. I am sending valid data to the webserver(Confirmed by the webserver guy).
    2. The WSDL is the latest one and the same WSDL is used at their end to receive the data.
    3. The schema I am using to send the data is also the latest ones.
    4. The same payload when sent through SOAPUI tool reaches the web server.
    5. The same communcation channel is used to send data for all the messages. All other messages are reaching the webserver except this message.
    Can anyone please provide me some solution for this issue.
    Thanks in advance.
    Regards,
    Sarat

    SInce you are using only one receiver channel for all WSDL operations, I hope you are setting SOAP action for each message type (operation) using dynamic configuration during mapping or at module level(in the soap receiver channel using DC bean).
    >> 5. The same communcation channel is used to send data for all the messages. All other messages are reaching the webserver except this message.
    Cross verify again all the design and configurations. check the MONI for Dynamic configuration header for this particular message if you are setting the same during mapping.
    >> 4. The same payload when sent through SOAPUI tool reaches the web server.
    Finally you can use some Sniffer tools to verify the requests that are being sent from XI and you can compare with SOAP UI tool request which is sending correct request in your case.

  • Can anyone tell me the flow of BDC program?

    Hi
    Can anyone tell me the flow of BDC program and also what is the significance of each step?
    Thanks
    Gagan

    Not sure what you are asking here.  A BDC program is a recording over an SAP transaction.  The flow is determined by the screen sequence of the transaction which is being recorded. 
    What you do is fill an internal table with screen numbers and fields with values and fcodes.  Then call the transaction using the internal table.
    For example, the following program calls PA30 and enters a time event.
    report zrich_0001
           no standard page heading.
    parameters: p_pernr type pa0002-pernr,
                p_plans type t528b-plans.
    data: mode type c value 'N'.
    data:   bdcdata type table of bdcdata    with header line.
    data:   messtab type table of bdcmsgcoll with header line.
    start-of-selection.
      perform do_transaction using 'P10'
                             p_pernr
                             p_plans.
    *       FORM do_transaction                                            *
    form do_transaction using timev
                              pernr
                              plans.
      data: bdcdate(10) type c,
            bdctime(8) type c.
      call function 'CONVERT_DATE_TO_EXTERNAL'
           exporting
                date_internal = sy-datum
           importing
                date_external = bdcdate.
      write sy-uzeit to bdctime.
      clear bdcdata.  refresh bdcdata.
      clear messtab.  refresh messtab.
      perform bdc_dynpro      using 'SAPMP50A' '1000'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=INS'.
      perform bdc_field       using 'RP50G-PERNR'
                              pernr.
      perform bdc_field       using 'RP50G-TIMR6'
                                    'X'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'RP50G-CHOIC'.
      perform bdc_field       using 'RP50G-CHOIC'
                              '2011'.
      perform bdc_dynpro      using 'MP200000' '2500'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'T705H-GTEXT'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=DIFP'.
      perform bdc_field       using 'P2011-LDATE'
                              bdcdate.
      perform bdc_field       using 'P2011-LTIME'
                              bdctime.
      perform bdc_field       using 'P2011-SATZA'
                              timev.
      if timev = 'P10'.
        perform bdc_dynpro      using 'MP200000' '2221'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P2APL-PLANS'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=DOIT'.
        perform bdc_field       using 'P2APL-OTYPE'
                                'A'.
        perform bdc_field       using 'P2APL-PLANS'
                                plans.
        perform bdc_field       using 'P2APL-WAERS'
                                'USD'.
      endif.
      perform bdc_dynpro      using 'MP200000' '2500'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'P2011-LDATE'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=UPD'.
      call transaction 'PA30' using bdcdata
                                    mode mode
                                    messages into messtab.
    * If error occurs, give message and come out.
      if sy-subrc <> 0.
      endif.
      clear bdcdata.  refresh bdcdata.
      clear messtab.  refresh messtab.
    endform.
    *       bdc_dynpro
    form bdc_dynpro using program dynpro.
      clear bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      append bdcdata.
    endform.
    *        bdc_field
    form bdc_field using fnam fval.
      clear bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      append bdcdata.
    endform.
    Regards,
    Rich Heilman

  • Issue with BDC program used for FBZ5 (Check Print)

    Hi all,
    I am having one requirement in Check printing. as per that i have made one Z program which will accept multiple Payment documents. I am passing selected accounting documents to BDC routine for Transaction FBZ5. (As in FBZ5 we can take a print for one Payment document not for multiple)
    We can have 3 scenarios in FBZ5
    1. Fresh Check printing (First time check printing)
    2. Old Check (printing for same Check no)
    3. New Check (After voiding older check)
    Category 1 and 2 are working fine but i am facing problem in category 3.
    For Category 3 : BDC Screen flow is like this
    A. Tcode FBZ5 Start program: SAPMFCHK Screen: 750 --> Click on 'Print'
    B. Program: SAPLSPO2 Screen: 0100  --> Here specify option 'New Check'
    C. Program: SAPMFCHK Screen: 0700
        - This program belongs to new Tcode FCH7
        - Here we have to give Void Reason code
    Now issue with Category 3:
    While executing BDC in online and background mode my control is terminating at step C mentioned above
    Troubleshooting:
    I have debugged standard program of FBZ5
    1. in Include MFCHKFD0 we can see call to Tcode FCH7  (PERFORM AUFRUF_FCH7.)
    2. in form AUFRUF_FCH7 i found code related to BDC
       also there one statement is getting triggered -->   CALL TRANSACTION 'FCH7' USING BDC MODE 'A'.
    So there is a BDC call inside my Z BDC program, so is this a reason why my program is not working for above scenario ?
    Or can't we handle above scenario in a way mentioned above?

    Hi Sandra,
    I was trying to upload customer master in fd01 using bdc. The screens were different while recording. So could not perform the upload. Thenone screen was skipped so that the bdc was working fine and the data was uploaded.
    This is the flow of the recording.
    'SAPMF02D' '0105'.
    SAPMF02D' '7105'
    SAPMF02D' '0111
    SAPMF02D' '0120
    SAPMF02D' '0130
    SAPMF02D' '0210
    SAPMF02D' '0215
    SAPMF02D' '0220'
    SAPMF02D' '0230'
    SAPMF02D' '0610
    After the second screen was deleted the bdc worked fine.

  • Issue while deleting Inbound delivery.

    Hello All,
    Here there is an issue while deleting Inbound delivery.
    GR ie 101 movement type is done for 1000 stocks.
    Later GR reversal ie 102 movement type is done for 200 stocks.
    So now in MD04 transaction inbound delivery is opened for 200 stocks.
    I am trying to delete Inbound delivery for 200 stocks but it doent allow.
    wht to do?please help

    I think you have used 102 and manully amend the qty.
    The inbound has 1000 qty, you reverse 200 qty. You should amend inbound delivery document qty to 800 and not delete it.
    Appreciate to revert is solution works for you.

  • Error while runing bdc program

    hi,
           i written one bdc program there are no syntax errors and in flat file also no error records but when uploading data it showing pop up that do you want to save data with 2 push buttons yes or no. i suppose to be it is front end problem how to avoid that.
                                                                                  p.surendar reddy

    Hi,
    You have miss a step while recording.. What i mean is you have created
    bdc for changing some document. you recorded the fields to be changed
    but didn't save before terminating recording.
    re-create your recording... and before and click save icon as the last step#
    in your recording..
    Hope this solves your problem..
    Enjoy SAP,
    Pankaj Singh.

  • Please  Help me How write the BDC program for the MIGO inbound Delivery

    Please help me how to write bdc program for the MIGO Inbound Delivery in 4.7EE Version. Please help me.
    Not in LSMW.  Required call transaction or Session Method. Please help me.
    Mohan

    Run transaction BAPI . Select Logistics Execution/Shipping/InboundDelivery/SaveReplica.. You can use function module BAPI_INB_DELIVERY_SAVEREPLICA in your ABAP program.

Maybe you are looking for

  • How can I insert clips in order?

    I am using 5.0.2. I have made an album of the photos that I want in my movie, and put them in the order I want. I would like to put in about 9 at a time, but iMovie does not keep them in the order I have. As an example-In iMovie I select photos 01,02

  • Itunes will no longer open on my pc

    I've used itunes for years on the same pc, and was using it to download and burn music last week as usual.Yesterday I found itunes would not open at all no matter what I do. I've tried putting CDs in which brings up the option to burn or upload using

  • How to boot from second hard drive in Ultra Bay

    Hi all! I recently installed a SSD drive as my primary disk and mounted my old hard drive in the Ultrabay. It still has all its original partitions, which are: Windows "System Drive" Windows OS Ubuntu Windows Programs General Data I can access 1., 2.

  • Reg. File split in XI

    Hi,         How do we split a file in XI? I Know that we can split a file using BPM step Message split. But my scenario is like, I am getting a flat file from a customer and as soon as it picked up by the File adaptor, it should be split into two par

  • HT201066 i want to make a quality copy of a cassette

    i want to make a quality copy of a cassette i have from 1974 - what software do i need to accomplish this. i have imac mac os x 10.6.8. i have quick time player, pretty basic. i also heard about an app called TAPEDECK. Quite expensive, £13.99..any go