MAM 2.5 - Order Detail Error

Does anyone has an answer for the following error?
Current configuration:
ERP 2004 and WAS 6.40
MI Server SP16
Application: MAM 2.5 SR2 SP16
PDA: symbol MC50 and iPAQ H5550
Application error when the user clicks from Order Overview screen to the Order Detail screen. Hence no orders can be displayed or edited
[code] Error Code
E503
Error Message
Failed calling event handler(InvocationTargetException) onLoad in com.sap.mbs.mam.order.control.OrderDetail.
   com.sap.mbs.core.api.CAFException: Failed calling event handler(InvocationTargetException) onLoad in com.sap.mbs.mam.order.control.OrderDetail.
  at com.sap.mbs.core.control.AbstractViewController.process()
  at com.sap.mbs.core.control.DefaultStateMachine.process()
  at com.sap.mbs.core.control.DefaultStateMachine.process()
  at com.sap.mbs.core.web.FrontServlet.doHandleEvent()
  at com.sap.mbs.mam.application.web.FrontServlet.doHandleEvent()
  at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe()
  at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet()
  at javax.servlet.http.HttpServlet.service()
  at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service()
  at javax.servlet.http.HttpServlet.service()
  at org.apache.tomcat.core.ServletWrapper.doService()
  at org.apache.tomcat.core.Handler.service()
  at org.apache.tomcat.core.ServletWrapper.service()
  at org.apache.tomcat.core.ContextManager.internalService()
  at org.apache.tomcat.core.ContextManager.service()
  at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection()
  at org.apache.tomcat.service.TcpWorkerThread.runIt()
  at org.apache.tomcat.util.ThreadPool$ControlRunnable.run()
  at java.lang.Thread.run()
  java.lang.IllegalArgumentException: String length exceeds max length of 2
  at com.sap.ip.me.persist.fileio.spi.AttributeTypeExt$AttributeTypeString.toByte()
  at com.sap.ip.me.persist.fileio.spi.AttributeTypeExt$AttributeTypeString.toByte()
  at com.sap.ip.me.persist.fileio.spi.AttributeDescriptorImpl.toByte()
  at com.sap.ip.me.persist.fileio.spi.QueryConditionSingle.()
  at com.sap.ip.me.persist.fileio.spi.QueryRuntimeImpl.createICondition()
  at com.sap.ip.me.smartsync.data.QueryFactoryImpl.createCondition()
  at com.sap.mbs.mam.bo.query.impl.AbstractQueryBuilder.getCondition()
  at com.sap.mbs.mam.bo.query.impl.Mam095QueryBuilderImpl.getPrioritiesByKeyCondition()
  at com.sap.mbs.mam.cstm.impl.CstmCustomControllerImpl.getPriorityByKey()
  at com.sap.mbs.mam.order.control.OrderDetail.onLoad()
  at com.sap.mbs.core.control.AbstractViewController.process()
  at com.sap.mbs.core.control.DefaultStateMachine.process()
  at com.sap.mbs.core.control.DefaultStateMachine.process()
  at com.sap.mbs.core.web.FrontServlet.doHandleEvent()
  at com.sap.mbs.mam.application.web.FrontServlet.doHandleEvent()
  at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe()
  at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet()
  at javax.servlet.http.HttpServlet.service()
  at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service()
  at javax.servlet.http.HttpServlet.service()
  at org.apache.tomcat.core.ServletWrapper.doService()
  at org.apache.tomcat.core.Handler.service()
  at org.apache.tomcat.core.ServletWrapper.service()
  at org.apache.tomcat.core.ContextManager.internalService()
  at org.apache.tomcat.core.ContextManager.service()
  at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection()
  at org.apache.tomcat.service.TcpWorkerThread.runIt()
  at org.apache.tomcat.util.ThreadPool$ControlRunnable.run()
  at java.lang.Thread.run()[/code]

Hi Dai,
i have not yet worked with MAM application.
But ,
<<
<b> java.lang.IllegalArgumentException: String length exceeds max length of 2
  at</b> com.sap.ip.me.persist.fileio.spi.AttributeTypeExt$AttributeTypeString.toByte()
  at com.sap.ip.me.persist.fileio.spi.AttributeTypeExt$AttributeTypeString.toByte()
  at com.sap.ip.me.persist.fileio.spi.AttributeDescriptorImpl.toByte()
  at com.sap.ip.me.persist.fileio.spi.QueryConditionSingle.()
>>
this exception can also see in the error stack trace .
this is because ,
while creating the query conditions , u may be (or in program) passing  a string variable to one field descriptor(field) whose maximum length is 2 (that u can see in the meRepMeta.xml file itself.). But  the value passed to this field is greater than 2 . just chek in ur code whether passing a value , even space , is passing to that field while query condition creation or not.
Regards
Kishor Gopinathan

Similar Messages

  • Order details error

    Hi
    We have installed SP13 on WAS and SP13 on the client and we know have the known error on this release. I have also installed hotfix 1 for MAM25 SR2 which should fix this error, but is does not??. Local created service orders do, however not fail. For the local orders i can display order details, but NOT for the orders created on R/3.
    I have tried anything (i think). Anybody with a good idea on what to do?
    Please help
    Best Regards
    Rolf Bastholm

    Hi Rolf,
    we had the same thing, after we patched the client to SP13 patch 05 the problem was solved.
    Ofcourse we also installed the hotfix 1 for MAM25.
    Hope this helps.
    Cheers,
    -Bart

  • Error message while activating ODS ZFI_ORD( FI Order Details)

    hi ,
    I am getting this error message while activating  the ODS ZFI_ORD( FI Order Details) "Value '1 - Hide = 2 Neck' (hex. '2000200020002000310020002D002000480069006400650020') of characteristic ZORD_DESC contains invalid characters
    " . I am not able to get in which record the problem is and the message is not clear for records. How to check it.
    Thanks,
    Pooja

    Hi
    Try to see the Errorred Records At PSA itself. The Object ZORD_DESC can be cheched for values.
    Data Target Request can be Deleted by making it Red. Edit at PSA
    /people/sankar.kumar/blog/2006/10/11/loading-text-filestxt-into-bw-with-hex-option
    RSKC --> type ALL_CAPITAL --> F8 (Execute)
    OR
    Go to SE38 and execute the program RSKC_ALLOWED_CHAR_MAINTAIN and give ALL_CAPITAL or the char you want to add.
    Check the table RSALLOWEDCHAR. It should contain ALL_CAPITAL or the char you have entered.
    Refer
    /people/sap.user72/blog/2006/07/23/invalid-characters-in-sap-bw-3x-myths-and-reality-part-2
    /people/sap.user72/blog/2006/07/08/invalid-characters-in-sap-bw-3x-myths-and-reality-part-1
    /people/aaron.wang3/blog/2007/09/03/steps-of-including-one-special-characters-into-permitted-ones-in-bi
    http://help.sap.com/saphelp_nw04/helpdata/en/64/e90da7a60f11d2a97100a0c9449261/frameset.htm
    For adding Other characters
    OSS note #173241 u2013 "Allowed characters in the BW System"
    Sample cleansing routine (#)
    Help loading  char EQUIP#1111#TAG#3311  SN#A01040          *     into Cube
    Hope it helps and clear

  • Order Detail Enhancement on MAM 2.5 SP13

    Hi,
    I am trying to do some enhancement on the order detail in MAM 2.5 SR2. I have imported the .war file into Eclipse, but there is a problem with order detail in MAM 2.5 SR2 using MI 2.5 SP13 that is solved by applying an Add-On into MAM. I downloaded the Add-On and applied it, which makes the standard MAM work correctly, but when making enhancements I must apply the Add-On again.
    This Add-On has two classes files: OrderDetail.class and OrderHelper.class, but the source code isn't available (no .java files).
    How can I make enhancements into Order Detail in MAM (I want to add fields with information to be entered on the mobile device and updated into a Z table in the backend) without losing them when applying the Add-On?
    Regards,
    Daniel

    When you download the MAM25.ZIP archive from the SAP Market place, there are two .war files in the subfolders (mam25.war and mam25_eclipse.war). I think you have imported some of these in the eclipse.
    But there's also a subfolder named <i>Client_Source</i> with a jar archive in it (<i>MAM25.src.jar</i>). Extract its content and you will receive all of the MAM25 source in .java files.
    Cheers,
    Todor

  • ATP Error-production order details is not appearing in ATP check

    Hi ,
    As per the details which I updated, production order details are not appearing in Sales order ATP check.
    Pls help me to solve it ,the settings needed to do in the system.
    Thanks,
      Vijesh

    Hi,
    i checked the configuration, it is same as you said, but still the production order window is not showing in the ATP check.
    thanks to  help.
    Regards,
    Vijesh

  • SSIS - Getting the detailed error message from a FTP Task

    Greetings all,
    I'm working on a SSIS package that pulls a file down from an FTP server, then has its way with it.
    Under expected conditions, everything is working perfectly. However, I never want to download the same file twice. In order to enforce this, I just set the OverWriteFileAtDest option to false. Obviously, if the file has already been brought over, the package
    fails. This is the intended functionality.
    However, in such a case I want to handle the error separately. Now, when I setup a EventHandler to deal with it, the error message that's passed over is:
    "Error: An error occurred in the requested FTP operation"
    Oh joy. Ambiguity at its finest. However, the detailed description is:
    "Receiving file "/server/folder/file.XLS". File "\\server\folder\file.XLS" already exists.
    Try as I might, I can't seem to capture the detailed error message so that I can act on it. I'm looking for a way to capture this info, pass it to an expression, and then handle it from there.
    Thanks!

    Did you try enabling logging for the package and capturing it in SQL table which case you should get error messages in sysssislog table
    http://msdn.microsoft.com/en-IN/library/ms186984(v=sql.110).aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Deleting Sales Order Details using BAPI_SALESORDER_CHANGE And Reinserting

    Hi All,
    I need to <b>change a Sales Order</b> in such a way that I would <b>delete all the existing Line Items</b> of that SO And <b>then reinsert new Line Items</b> as generally is the practice of saving a document.(Update Header-Delete Old Item Entries-Reinsert New Present Entries).
    I coded a small test program in ABAP using the <b>BAPI_SALESORDER_GETLIST And BAPI_SALESORDER_CHANGE</b>.
    In order to affect the Qty I have to update the Schedule Parameter also of the BAPI_SALESORDER_CHANGE Function.But this causes a new entry in VBEP.
    eg:
    <b>Before BAPI Calls</b>
    SO-Number:9001
    Header:9001,etc......
    Detail:ItemNo=10,Material=xyz,TargetQty=100,etc..
    Scedule:ItemNo=10,Scheduleline=1,Req_Qty=100,etc...
    I coded the program such that
    1.I <b>Get the List of Items</b> using BAPI_SALESORDER_GETLIST.
    2.Call the <b>BAPI_SALESORDER_CHANGE</b> filling appropraite   values in Parameters <b>with UpdateFlag = 'D'</b>
    3.<b>Insert new values</b> in OrderItems And Schedule Parameters
    say:
    Detail:ItemNo=10,Material=xyz,TargetQty=25,etc..
    Scedule:ItemNo=10,Scheduleline=1,Req_Qty=25,etc...
    4.<b>Call the BAPI_SALESORDER_CHANGE</b> filling appropraite values in Parameters <b>with UpdateFlag = 'I'</b>
    <b>The output now becomes.</b>Header:9001,etc......
    Detail:ItemNo=10,Material=xyz,TargetQty=100,etc..
    Scedule:ItemNo=10,Scheduleline=1,Req_Qty=100,etc...
    ItemNo=10,Scheduleline=2,Req_Qty=25,etc...
    Now After Commit when I see my <b>SO it shows me a qty of
    125</b>.
    I am attaching the code for your analysis.
    Thanx in advance.
    *& Report  ZSM_CHANGESALESORDER                                        *
    REPORT  ZSM_CHANGESALESORDER                    .
    DATA:
    For Calling the GetList BAPI Function
      CUSTOMER_NUMBER LIKE  BAPI1007-CUSTOMER,
      SALES_ORGANIZATION LIKE  BAPIORDERS-SALES_ORG,
      IT_SALES_ORDERS LIKE TABLE OF BAPIORDERS,
      WA_SALES_ORDERS LIKE LINE OF IT_SALES_ORDERS,
      IT_RETURN LIKE TABLE OF BAPIRETURN,
      WA_RETURN LIKE LINE OF IT_RETURN.
    For Calling the ChangeFromData BAPI Function
    DATA:
      SALESDOCUMENT LIKE  BAPIVBELN-VBELN,
      WA_ORDER_HEADER_IN LIKE  BAPISDH1,
      WA_ORDER_HEADER_INX LIKE BAPISDH1X,
      IT_ORDER_ITEM_IN LIKE TABLE OF BAPISDITM ,
      WA_ORDER_ITEM_IN LIKE LINE OF IT_ORDER_ITEM_IN,
      IT_ORDER_ITEM_INX LIKE TABLE OF BAPISDITMX ,
      WA_ORDER_ITEM_INX LIKE LINE OF IT_ORDER_ITEM_INX,
      IT_SCHEDULE_LINES LIKE TABLE OF BAPISCHDL ,
      WA_SCHEDULE_LINES LIKE LINE OF IT_SCHEDULE_LINES,
      IT_SCHEDULE_LINESX LIKE TABLE OF BAPISCHDLX ,
      WA_SCHEDULE_LINESX LIKE LINE OF IT_SCHEDULE_LINESX,
      IT_RETURN_CHG LIKE TABLE OF BAPIRET2,
      WA_RETURN_CHG LIKE LINE OF IT_RETURN_CHG.
    DATA:
      IT_RETURN_CT LIKE BAPIRET2.
    PARAMETERS:
      P_SO LIKE VBAK-VBELN,
      P_CUSTNO LIKE  BAPI1007-CUSTOMER,
      P_SORG LIKE BAPIORDERS-SALES_ORG.
    START-OF-SELECTION.
      SALESDOCUMENT = P_SO.
      CUSTOMER_NUMBER = P_CUSTNO.
      SALES_ORGANIZATION = P_SORG.
    Retrieve the Existing Sales Order details for that Sales Order.
      PERFORM GETREQSODETAILS.
    Delete the Existing Sales Order details from that Sales Order.
      PERFORM DELETEOLDSODETAILS.
    Insert New details for that Sales Order.
       PERFORM ADDNEWSODETAILS.
    END-OF-SELECTION.
      PERFORM COMMITTRANS.
    *&      Form  GetReqSODetails
    FORM GETREQSODETAILS .
      CALL FUNCTION 'BAPI_SALESORDER_GETLIST'
        EXPORTING
          CUSTOMER_NUMBER    = CUSTOMER_NUMBER
          SALES_ORGANIZATION = SALES_ORGANIZATION
        IMPORTING
          RETURN             = WA_RETURN
        TABLES
          SALES_ORDERS       = IT_SALES_ORDERS.
    *delete the Sales Order Details of Sales Orders other than the req.One
      IF NOT IT_SALES_ORDERS[] IS INITIAL.
        SORT IT_SALES_ORDERS BY SD_DOC.
        LOOP AT IT_SALES_ORDERS INTO WA_SALES_ORDERS.
          IF WA_SALES_ORDERS-SD_DOC NE SALESDOCUMENT.
            DELETE IT_SALES_ORDERS.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " GetReqSODetails
    *&      Form  deleteOldSODetails
    FORM DELETEOLDSODETAILS .
      DATA: IRECCOUNT TYPE I.
      IRECCOUNT = 1.
    *Clear all the Inernal Tables And Work Areas
    *and Update the SO Header Index
      PERFORM CLEARDATA.
      PERFORM SOHEADERINDEX.
      LOOP AT IT_SALES_ORDERS INTO WA_SALES_ORDERS.
    *Fill the Order Details Index Internal Table
        PERFORM FILLSODELETEDTLS_INDEX_PARAM
        USING WA_SALES_ORDERS-ITM_NUMBER 'D'.
    *Fill the Order Scedule Index Internal Table
        PERFORM FILLSODELETESCH_INDEX_PARAM
        USING WA_SALES_ORDERS-ITM_NUMBER IRECCOUNT 'D'.
      ENDLOOP.
    *call the Sales Order Change Fumction to delete the Existing Data
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          SALESDOCUMENT    = SALESDOCUMENT
          ORDER_HEADER_INX = WA_ORDER_HEADER_INX
        TABLES
          RETURN           = IT_RETURN_CHG
          ORDER_ITEM_INX   = IT_ORDER_ITEM_INX
          SCHEDULE_LINESX  = IT_SCHEDULE_LINESX.
    ENDFORM.                    " deleteOldSODetails
    *&      Form  SOHeaderIndex
    FORM SOHEADERINDEX .
      WA_ORDER_HEADER_INX-UPDATEFLAG = 'U'.
    ENDFORM.                    " SOHeaderIndex
    *&      Form  FillSODeleteDtls_Index_param
    FORM FILLSODELETEDTLS_INDEX_PARAM
    USING VALUE(P_ITM_NUMBER) VALUE(P_FLAG).
      WA_ORDER_ITEM_INX-ITM_NUMBER = P_ITM_NUMBER.
      WA_ORDER_ITEM_INX-UPDATEFLAG = P_FLAG.
      APPEND WA_ORDER_ITEM_INX TO IT_ORDER_ITEM_INX.
    ENDFORM.                    " FillSODeleteDtls_Index_param
    *&      Form  FILLSODELETEsch_Index_PARAM
    FORM FILLSODELETESCH_INDEX_PARAM
    USING VALUE(P_ITM_NUMBER) VALUE(P_RECCOUNT) VALUE(P_FLAG).
      WA_SCHEDULE_LINESX-ITM_NUMBER = P_ITM_NUMBER.
      WA_SCHEDULE_LINESX-SCHED_LINE = P_RECCOUNT.
      WA_SCHEDULE_LINESX-UPDATEFLAG = P_FLAG.
      APPEND WA_SCHEDULE_LINESX TO IT_SCHEDULE_LINESX.
    ENDFORM.                    " FILLSODELETEsch_Index_PARAM
    *&      Form  addnewSODETAILS
    FORM ADDNEWSODETAILS .
      DATA: IRECCOUNT TYPE I, ITEMNO TYPE I.
      IRECCOUNT = 1.
    *Clear all the Inernal Tables And Work Areas
    *and Update the SO Header Index
      PERFORM CLEARDATA.
      PERFORM SOHEADERINDEX.
      WHILE IRECCOUNT <= 1.
        ITEMNO = IRECCOUNT * 10.
    *Fill the New Order Details in the Internal Table
        PERFORM FILLSODTLDATA USING ITEMNO 'TEST FG' 37 .
    *Fill the Order Details Index Internal Table
        PERFORM FILLSODELETEDTLS_INDEX_PARAM USING ITEMNO 'I'.
    *Fill the New Schedule Details in the Internal Table
        PERFORM FILLSOSCHDATA USING ITEMNO IRECCOUNT 37 .
    *Fill the Order Scedule Index Internal Table
        PERFORM FILLSODELETESCH_INDEX_PARAM
        USING ITEMNO IRECCOUNT 'I'.
        IRECCOUNT = IRECCOUNT + 1.
      ENDWHILE.
    *call the Sales Order Change Fumction to Insert New Data
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          SALESDOCUMENT    = SALESDOCUMENT
          ORDER_HEADER_INX = WA_ORDER_HEADER_INX
        TABLES
          RETURN           = IT_RETURN_CHG
          ORDER_ITEM_IN    = IT_ORDER_ITEM_IN
          ORDER_ITEM_INX   = IT_ORDER_ITEM_INX
          SCHEDULE_LINES   = IT_SCHEDULE_LINES
          SCHEDULE_LINESX  = IT_SCHEDULE_LINESX.
    ENDFORM.                    " addnewSODETAILS
    *&      Form  clearData
    FORM CLEARDATA .
      CLEAR WA_ORDER_HEADER_INX.
      CLEAR WA_ORDER_ITEM_INX.
      REFRESH IT_ORDER_ITEM_INX.
      CLEAR WA_SCHEDULE_LINESX.
      REFRESH IT_SCHEDULE_LINESX.
      CLEAR WA_RETURN.
      REFRESH IT_RETURN.
      CLEAR WA_ORDER_ITEM_IN.
      REFRESH IT_ORDER_ITEM_IN.
      CLEAR WA_SCHEDULE_LINES.
      REFRESH IT_SCHEDULE_LINES.
    ENDFORM.                    " clearData
    *&      Form  FILLSODTLDATA
    FORM FILLSODTLDATA  USING    VALUE(P_ITEMNO) VALUE(P_MATERIAL)
    VALUE(P_TARGET_QTY) .
      WA_ORDER_ITEM_IN-ITM_NUMBER = P_ITEMNO.
      WA_ORDER_ITEM_IN-MATERIAL = P_MATERIAL.
      WA_ORDER_ITEM_IN-TARGET_QTY = P_TARGET_QTY.
      APPEND WA_ORDER_ITEM_IN TO IT_ORDER_ITEM_IN.
    ENDFORM.                    " FILLSODTLDATA
    *&      Form  FILLSOschDATA
    FORM FILLSOSCHDATA  USING    VALUE(P_ITEMNO)
                                 VALUE(P_RECCOUNT)
                                 VALUE(P_REQ_QTY)  .
      WA_SCHEDULE_LINES-ITM_NUMBER = P_ITEMNO.
      WA_SCHEDULE_LINES-SCHED_LINE = P_RECCOUNT.
      WA_SCHEDULE_LINES-REQ_QTY = P_REQ_QTY.
      APPEND WA_SCHEDULE_LINES TO IT_SCHEDULE_LINES.
    ENDFORM.                    " FILLSOschDATA
    *&      Form  committrans
    FORM COMMITTRANS .
      DATA:SUCCESSFLAG(1).
      LOOP AT IT_RETURN_CHG INTO WA_RETURN_CHG.
        IF WA_RETURN_CHG-TYPE = 'S'
              AND WA_RETURN_CHG-ID = 'V1'
              AND WA_RETURN_CHG-NUMBER = 311
              AND SUCCESSFLAG IS INITIAL.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              WAIT   = 'X'
            IMPORTING
              RETURN = IT_RETURN_CT.
          SUCCESSFLAG = 'X'.
        ENDIF.
      ENDLOOP.
      IF SUCCESSFLAG IS INITIAL.
        WRITE: 'SORRY SOME ERROR'.
      ELSE.
        WRITE: 'SUCCESSFUL'.
      ENDIF.
    ENDFORM.                    " committrans

    Thanx wolfgang,
    I needed that info.
    As I had mentioned in the earlier posts, I want to delete the old Sales Order Item Details,
    Schedule Details,Basic Price data And Reinsert data in the same.
    I am giving u the algo that I have used.
    1.<b>Get the SalesOrder Details</b> for a particular Sales Order using BAPI_SALESORDER_GETLIST(para:customer & sales Org and then deleting unwanted SO data).
    2.<b>Delete</b> the Sales Order <b>Item Details,Schedule Details</b> using BAPI_SALESORDER_CHANGE.
    3.<b>Commit</b> Transaction(<b>If I dont use this commit Error comes in Step No.7 while Commiting</b>)
    using BAPI_TRANSACTION_COMMIT.
    4.Check <b>Return Table</b> of both BAPI_SALESORDER_CHANGE and BAPI_TRANSACTION_COMMIT.
    5.if Step No.4 is <b>Not okay</b> <b>then Rollback</b>(BAPI_TRANSACTION_TRANSACTIN) <b>and Exit</b> <b>else move to step 6</b>.
    6.<b>Add New</b> Sales Order <b>Item Details,Schedule Details, Basic Price</b> using BAPI_SALESORDER_CHANGE.
    7.<b>Commit Transaction</b> using BAPI_TRANSACTION_COMMIT.
    8.<b>Check Return</b> Log of both BAPI_SALESORDER_CHANGE and BAPI_TRANSACTION_COMMIT.
    9.if Step No.9 is okay then Exit else Rollback(BAPI_TRANSACTION_TRANSACTIN) and move to step 10.
    10.Add Old Sales Order Item Details,Schedule Details, Basic Price from Data available in Internal
    table(Filled in step.1 ) using BAPI_SALESORDER_CHANGE.
    11.Commit Transaction using BAPI_TRANSACTION_COMMIT.
         This <b>works fine in 1 server in which I get the message of Incomplete Data,etc...when I make a Sales Order from va01</b>.
    But in another server where I dont this message,I get <b>error in step  7 or 11 as per the flow</b>.
    The return structure of BAPI_TRANSACTION_COMMIT contains error with Message 'Updating was not possible'. Also the message 'Updation was terminated' cms frm the SAP server.  
         What could be the reason?
    Thanx in advance

  • Purchase Order Interface Error

    Can any body help me out to resolve the issue.
    After inserting in the PO interface tables (PO_HEADERS_INTERFACE , PO_LINES_INTERFACE, PO_DISTRIBUTIONS_INTERFACE ) when I run request ( Import Standard Purchase Orders) following error occured. And no error is inserted in PO_INTERFACE_ERRORS also.
    ORA-01422: exact fetch returns more than requested number of rows in Package po.plsql.PO_PDOI_PVT. Procedure init_sys_parameters.0
    ORA-01422: exact fetch returns more than requested number of rows in Package po.plsql.PO_PDOI_PVT. Procedure init_startup_values.10
    ORA-01422: exact fetch returns more than requested number of rows in Package po.plsql.PO_PDOI_PVT. Procedure start_process.50
    User-Defined Exception in Packaged po.plsql.PO_PDOI_Concurrent. Procedure POXPDOI.30
    Regards,
    Siraj Gul

    Dear Sandeep,
    Thanks alot for the help. After your instruction when I run concurrent request following message show.
    --> To get the log message for PDOI, please use the following id to query against FND_LOG_Messages Table: AUDSID = 8621728
    --> Concurrent request completed successfully.
    But No data found in the table "fnd_log_messages"
    And Neither data deleted from PO_Header_interface table nor inserted in PO_Headers_All and other detail tables.
    Can you please provide me the script for PO_Headers_Interface, Lines and Distribution.
    Regards,
    Siraj Gul

  • Sales order details thru ALE

    hi folks,
    i have a simple scenario to do with ALE/IDOCS. i have to create sales order in SAP. And when ever that SO is created the sales orders details should be sent to an external system (here, notepad). could any one suggest me teh step by step proceduer for the same......or atleast some brief procedure hw to acheive this...i also have one more doubt....can we send IDOCS from ECC 5.O to IDES 4.6. if i am trying to do the same it showing some error mentioning that basic idoc type does not exist in 4.6c......can any one resolve my doubt,
    thnx in advance,
    santosh.

    Hi Gouri Sankar,
    would you be able to upload the sales orders with multiple line items using BAPI LSMW?
    if so could you plz suggest?
    Thanks in advance.
    Suresh/

  • Internal order KO8G error

    Hi
    There have been some incorrect postings under particular cost element to a internal order. But the postings have been corrected, and according to FBL3N and KOC4 all amounts are zero now.
    But when I try to run KO8G in period 3, or KO88 for a particular order the system is showing a error message :Complete allocation structure. Message no. KD503
    I checked the internal order and the Settlement rule. ( I assign a different allocation structure to the sender: In the master data maintenance for the sender, choose "Settlement rule -> Goto -> Settlement parameters" and then enter a different allocation structure.)
    The allocation structure fields was given correctly.
    When I run the KO88 after modifications system is also throws the same error
    Please help me in this matter.
    Regards

    It is very clear from the error message that to you are using allocation structure for settling the order cost. You can find out the settlement structure which is currently attached by selecting the settlement parameters of the order.
    It appears that there a cost element, which has been posted on the order and no secondary cost element is specificed for transferring the same to cost receiver.
    If you check the detailed error message, it will give you the cost element, which is not included in the allocation structure. Include the same in allocation structure and repeate the settlement.
    Regards
    Rakesh Pawaskar

  • Sending sales order details through ALE to External system

    hi folks,
             i have a simple scenario to do with ALE/IDOCS. i have to create sales order in SAP. And when ever that SO is created the sales orders details should be sent to an external system (here, notepad). could any one suggest me teh step by step proceduer for the same......or atleast some brief procedure hw to acheive this...i also have one more doubt....can we send IDOCS from ECC 5.O to IDES 4.6. if i am trying to do the same it showing some error mentioning that basic idoc type does not exist in 4.6c......can any one resolve my doubt,
                            thnx in advance,
                                santosh.

    Thanks for your quick response, Sarathy.
    Yes I am referring to SAP ECC to third party system but using ALE.
    Here is the scenario, a sales order will be created in SAP CRM and that sales order will be replicated to ECC as a sales order. Now I need to generate an Idoc for this sales order to send it to a third party system.
    Regards

  • No delivery if order has error in CRM

    Hi All,
    I want to restrict delivery if system has any error in CRM Order.
    Requirement,
    (1) Created orders are successfully replicated in ECC
    (2) After making some changes in existing order changes are not replicated.
    (3) I want to restrict delivery if order has an any error in CRM.
    Regards
    Jay

    Hi Jay,
              For your Requirement to restrict delivery in CRM System
    SAP CRM has preset Functionality for Orders with Error Status in SAP CRM they do not Replicate to ECC System, So if your Order has an Error Status then it shall not Replicate to ECC System.
    For Achieving your Required Details you may Follow the Steps as mentioned below
    (1) Created orders are successfully replicated in ECC
    For Replication of the Order you need to Configure the Middleware Parameters and Subscription and Publication for Particular System Status for the Order to Replicate to ECC System
    (2) After making some changes in existing order changes are not replicated.
    For Replication of the Order after Changes,Check the Status Profile there is a option for "Business Transaction Control" which should be set to To be Distributed which then allows the Order to Flow to the ECC System after changes have been Made.
    (3) I want to restrict delivery if order has an any error in CRM.
    For this Process you shall require to Configure the System as to Distribute the Order at a Particular status which is the Final status in CRM and you shall have to Configure the Processing of Outbound Delivery on the Same status,due to which if Errors are Present in the Order the Order with Errors doesnt flow to ECC and you shall be able to Stop Processing of the Orders with Errors.
    Hope it Answers  your Queries...
    Revert Back for Further Queries..
    Thanks and Regards
    RK.

  • Sales Order -  BAPI_SALESORDER_CHANGE Error.

    Hi,
    I would want to compare the system price and the expected price for a sales order and in case of any discrepancy, set a 'reason for rejection' code. I'm using the bapi 'BAPI_SALESORDER_CHANGE' to make changes to the sales order (setting the rejection code). This is working fine in cases where there is some value for both the prices but is throwing an error while the system price is null.
    Is there any way to overcome this error and still set the rejection code?
    I pass all the required information to the BAPI,
    - Sales Order Number
    - Update Flag in HEADER_INX (U)
    - Item Number and Reason for Rejection in ITEM_IN
    - Item Number, Update Flag, Reason for Rejection (X) in ITEM_INX
    However I'm able to manually set RFR even if system price is null but not through BAPI. Is there any additional details that needs to be passed.
    Error Details:
    Error Message:
    No Sales Price (YYYY) for material XXXXX line IIII. Order will be incomplete.
    Message no. ZZ054
    Diagnosis
    The system could not determine a Sales Price (YYYY) for material 1. line 2..
    System Response
    The entire order will become incomplete when you save it.
    Thank you.

    Rob,
    I have checked the custom coding and the condition under which the message is popping up. I'm curious to understand why this is bypassed while setting RFR using VA02 while not in BAPI. It does not stop here while debugging.
    Also, once the RFR is set using VA02 and if I try to modify anything in the sales order or revoke the RFR, I get to this custom code.
    Thank you for your valuable time.

  • Upload of purchase order details using LSMW

    Hi friends,
    I encountered a problem while uploading purchase order details using LSMW . in the field mapping I could not able to fine the field TCODE. as a result I could not assign the transaction code ME21. could you please suggest me a solution.
      thanks

    Hai
    Check with the following
    Select fifth Radio button then follow the bellow step
    <b>5) select radio-Button 5 and execute
       Maintain Field Mapping and Conversion Rules
       Select the Tcode and click on Rule button there you   will select constant
       and press continue button
       give Transaction Code : ME21 and press Enter</b>
    Thanks & regards
    Sreenivasulu P

  • Open Production Order Details

    Hi Experts,
    we develop customize report, we need list of open production order details, we know table's to get consolidate list
    Ques is there any function module to get list of open production order details or any other simple way?
    Regards,
    Sankaran

    Hi,
    How do you want to see your Open Production Orders?
    what parameters you want to consider?
    is this all th Orders with PCNF and PDLV but TECO and DLV not inculded some thing like that??
    Follow the procedure..
    In BS42, You copy one existing Profile with some "Zxxx" and Copy all.
    in the Selection Conditions define as below:
         PCNF
    or   PDLV
          TECO    Not (Check box active)
    and DLV       Not (Check box active)
    and CLSD     Not (Check box active)
    or you can have diffrent statuses as per your requirement.
    Then it is done..
    Use this Profile in COOIS in "Selection Profile Status".
    Hope this helps..
    Regards,
    Siva
    Hi Sankaran,
    I have missed the Statuses CRTD and REL to be included in the profile.
    Any way you can add these as well.
    Revert for further discuusion..
    Reg.
    Siva
    Edited by: Siva Kumar M on May 7, 2008 2:13 PM

Maybe you are looking for