Delete sales order from MD04 screen

Hi Gurus,
Need help in deleting a sales order from the MD04 screen.
The sales order was deleted, there are no production order/reservations associated with this Sales order, the sales order is still appearing on the md04 screen and consuming the stock. Ran MRP both in Netchange and Regen mode still the sales order appear on the MD04 screen.
This is a four months old sales order.
Thanks
Srini

Hi Aravind,
No problem, I found some notes online.
Executed the program SDRQCR21 and deleted the sales order.
Thanks for your help.
Regards
Srini

Similar Messages

  • Display Several Sales Orders from Same Business Customer TOGETHER   in MD04

    Hello
    In MD04 is it possible to display several sales orders from same business customer together?
    For instance one business customer order bikes for two times.
    The Order-No are 12912(50st by 07/08/09) and 12913(100st by 10/08/09).
    Normally after runnning of MRP(MD02), the planned orders are displayed seperately in MD04.
    I want to display  two orders together.
    The reason is if some trouble happens in Production(for Ord-no 12912) and it cannot be deliveried on schedule, however Production  (for Ord-no 12913) is going without trouble, the final-products for order 12913 should move for 12912.
    If you have some good solutions, please share it.
    Thank you for your advice.
    Regards,

    Hi Riyolshibashi,
    Lets look at the two main scenarios, MTS and MTO.
    In MTS, the general display filters are available in MD04.  Standard SAP filters do not filter on 'customer'.  I suspect this is because the concept would normally be illogical in a MTS environment.  Planned orders do not exist to serve a customer, but to serve 'stock'.  But let us not think about SAP and their logic.
    SAP allows you to create customized filters, in IMG>Production>MRP>Evaluation>Filter>Define Display filter.  Within this definition, under the  "Addnl Selections' tab, you can tick 'Define addl selections in the transaction'.  When you use this filter in MD04 display, then, one of the options available to you is to enter a specific Customer number, and then the display will only show the requirements from this customer.  Since you have excluded all other customer's orders, all orders of a single customer will be displayed consecutively.  Next to each other.
    In the case of MTO, the 'filter-by-customer' concept makes more sense (although, not for the reason you have stated.  You would have to find some manual method to convert a production order from supporting one sales order item, to supporting another sales order item.  Possible but difficult).  Anyway, the above mentioned customized filter would also work in an MTO environment.
    Regards,
    DB49

  • In MD04 deleted sales order appearing

    In my scanerio i found deleted sales order appearing in md04 and even it is not appearing in vbak table  and at the same time sales order not appearing for display .
    can some one help for the cause ..........??

    This is an error in the standard SAP programs (entries in VBBE table remain while they should be deteled). They made a program to clean up the entries in the VBBE table, it's program SDRQCR21
    Best is to run a nightly job on this program.
    You can check note 25444 for details.
    Grtz,
    Jan

  • How to delink sales order from a discrete job.

    Hi,
    I wanted to know how we can delink sales order from a discrete job.
    Thanks

    Go to the reservations screen in inventory; find the reservation using item number or sales order #
    Delete the reservation.
    Alternatively, you can go to the wip job and click on reservations and delete it.
    Hope this helps,
    Sandeep Gandhi

  • User should not delete Sales orders in CRM before May 2014.

    Hi,
    We have  requirement in CRM i.e. user cannot delete Sales orders before may 2014 in SAP CRM.
    Recently we have implemented Credit Check management in ECC (Cash n Carry Process especially for some customers)
    Normally we do create orders in CRM it should be replicated to ECC, based on FD32 credit value in ECC, CRM  order should give credit check massage.
    go through the below notes n help us where to change BADI in CRM, plz.
    We like to add a scenario where prior to April’14 period, user can not cancel/delete any order in CRM, so that the order cancellation data will not flow to SAP and below problem can be resolved.
    While checking the credit Exposure of the INDL Customers, we found in some cases, user has deleted few old orders in CRM which creates a open sales order value as Negative in SAP System. Due to this for a customer, if there is ZERO credit limit, ZERO outstanding, ZERO liability, Credit Exposure is become Negative as open order value is there. In CRM order is being raised and credit block is not appearing if the order amount is below the Credit exposure.
    Request you pls maintain the open Sales order value as ZERO for the INC customers (as per attachment list) for those who have a NEGATIVE open sales order value.
    For the open Sales order Value which are POSITIVE, keep these as same as these are customer’s actual & current open orders.
    NOTE: If user delete before may 2014 sales orders, all the deleted order values will be added to FD32 (Credit exposure -Negative),then user can able to raise sales orders for that value also.(It cannot be happened)
    Regards,
    JK

    Hello JK,
    I guess you can play around with the standard. You need to create a separate PFCG Role which only contains sales order related authorization object. Basically removing sales order related authorization object from the main primary PFCG role. And then controlling the secondary PFCG Role which only have sales order object. Controlling sales order PFCG role with validity period. Below is the screen shot of the PFCG role where you can maintain the validity period of the PFCG role for the specific user assigned to it.
    I hope this solution was helpful for you!
    Regards,
    Neha Gupta

  • Delete cancelled orders from infoproviders

    How do we remove sales orders from info providers, if those sales orders once updated in BI gets canceled after few days in ECC.
    Is there a way to completely remove those records from infoproviders.

    Hi.....
    You can do selective deletion.......
    STEPS:
    1. First goto to Infocube/ODS Manage screen.In that, tab to content.Click on Selective Deletion.Now you will find an Pop-up screen,in that click on Delete Selection.
    2. Enter the entries that you wanna delete and click on Execute.
    3.Deletion job can be schedule in background.To do that, click on Selection and choose immediate option after that click on start.Now new job will be created for deletion process.
    4.After Deletion, click on Continue.
    All these deletion process will affect F & E table of the cube.
    You can also use transaction 'DELETE_FACTS'. Here you can specify the infoprovider as well as lots of criterias to delete records from a cube.
    Hope this helps..........
    Regards,
    Debjani......
    Edited by: Debjani  Mukherjee on Oct 21, 2008 6:18 AM

  • Report on deleted sales orders ( va02)

    hi,
    i got one requirement to write a program to display the list of deleted sales orders (through VA02 Tcode).
    to my knowledge when a sales order is deleted through VA02 the order will be deleted from the database itself and will be deleted from all the SAP tables.
    if that is correct, is there any possibility that we can create a Ztable and update the data before deletion or any other solution for the above requirement?
    thanks in advance,
    Rajani yeluri

    hi rajani,
    u will get deleted data from using tables CDHDR,CDPOS,CDRED and function module '  CHANGEDOCUMENT_READ'.
    i am sending u some sample code, i hope it will helps u
    DATA: it_editpos    LIKE cdred OCCURS 0 WITH HEADER LINE,
                                     "Change documents, display structure
          it_editpos1   LIKE cdred OCCURS 0 WITH HEADER LINE,
                                     "Change documents, display structure
          x_editpos1    LIKE cdred,  "Change documents, display structure
            x_editpos     LIKE it_editpos,
                                     "Change documents,display structure
    *-----Calling FM to populate the structure 'EDITPOS'
      CLEAR it_editpos.
      CALL FUNCTION 'CHANGEDOCUMENT_READ'
           EXPORTING
              objectclass                = ' ' 
           TABLES
                editpos                    = it_editpos
           EXCEPTIONS
                no_position_found          = 1
                wrong_access_to_archive    = 2
                time_zone_conversion_error = 3
                OTHERS                     = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CLEAR: x_editpos,
             it_editpos1.
      LOOP AT it_editpos
        INTO  x_editpos
        WHERE tcode = 'ME21N' OR  "Here u have 2 pass 'VA02'
              tcode = 'ME22N' OR
              tcode = 'ME23N'.
        APPEND x_editpos TO it_editpos1.
        CLEAR x_editpos.
      ENDLOOP.
    now it_edipos1 has all CHANGENR numbers, so now u have to fetch data from F_NEW and F_OLD Fields
    i hope this will helps u
    Regards,
    prasad

  • How to remove sales orders from VL10A

    HI All,
    I had an issue from production system. Few orders are already delivery and accounting completed, still those orders are being displayed in VL10A. I have checked those orders and there are not schedule lines due for shipping. Sales order/delivery/invoice shows completed in the document flow.
    For the timebeing i have given workaround solution to exclude those orders from selection screen in VL10A.
    Could you suggest the permanent solution not to display those orders in VL10A, which are already shipped and no due for shipping.
    Thanks in advance and waiting for your suggestion.
    Regards,
    Vamsi.

    HI Raghu,
    Thanks for your inputs of the program, but it has no options to choose.
    Analysis:
    This could have happened due to Inconsistency in delivery due index tables.
    I referred OSS Notes: 128947 & 178328, executing  the reorganizing program u201CRVV05IVBu201D for the problematic sales orders to remove inconsistency.
    Please ensure to execute the report with proper selections in the initial screen even online i.e on business hours..
    Hope this would help to anyone in future.
    Regards,
    Vamsi.

  • Create multiple sales orders from single service notification?

    Is it possible to create multiple sales orders from a single notification (IW51)? 
    We currently create sales orders directly within transaction IW51 (Create Service Notification).  We kick off the sales order creation by pressing the "SALES ORD." button in the notification screen.  We're now interested in creating a 2nd Sales Order which would tie directly to the same Service Notification.  This is so that we can have the second order assigned to a different account assignment WBS (there are two different parties doing work on the service notification).
    I assume you would have to go to VA01 to create the Sales Order, but am not sure how to tie it directly to the service notification from here.  I treied to do a create with reference, but there is no ability to create with reference to a service notification.
    Do I have to create a second service notification for the 2nd Sales Order for this to work?  I want to avoid doing this if at all possible.
    I'm running SAP R/3 Enterprise
    Thanks for your help!

    Hi,
    go to vtaa- copy controls for sales document to sales document.
    select your combination of order and quotation go to item level. There select value 0(zero) in field positive/negative negative.
    No need to change update document flow.
    After setting zero in copy control that be told on above. create order with respective to the quotation.
    After saving the order.
    go to document flow to see the status in between quotation and order.
    If you placed setting right, then u certainly observe for quotation status will be open. so you can create no. of sales order with respect to that quotation..
    Have a good day..

  • 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

  • Deleting Sales Order in CRM and connected R/3 - Help needed

    I have a sales order created from the E-commerce scenario in CRM and has reflected in the R/3 system also.
    Now I want to delete thi sales order from the systems.
    I had cancelled this sales order from the webshop and thus the status in shown as completed.
    Now when I delete the order in the CRM system it doesnt allow me to do so, though I have the option to delete the sales order (I am authorised to do it).
    The error it gives is: "An error has occured in the system LOGPROD100 while copying the document".
    If I delete it from the R/3 system it says you cant delete an order created in the CRM system.
    Please guide me for this ASAP.
    I will be ery thankful to any one who does it.
    Thanks
    Message was edited by:
            Naresh Deepchand

    Hey Vijay Duvvada,
    I hope you are already referred below sap note  and which explains scope & how to do   -
    1084315 - Consulting: Information about the multiple backend scenario
    1763516 - How-to: Basic Setup of MEP
    As explained by Rohit Sharma data should be start flowing to multiple sites.
    please let me know if it does help.
    Regards,
    Arjun

  • How to find out the deleted sales order

    hi,
    sap gurus,
    my core user has deleted one sales order
    its showing as sales order is ARCHIVED in the status when we go for VA02
    in SAP in which table the deleted sales order will be stored.
    so that i can
    regards,
    balaji.t

    Plz SEARCH in SCN before posting.
    You can get those details from CDHDR, CDPOS tables.
    Give OBJECTCLAS = VERKBELEG and CHNGIND = 'D' in CDPOS table.
    You will the List of all Deleted Sales Orders.

  • Replication of BP and Sales order from CRM to R/3

    Hello everyone,
    I have a peculiar condition in my hands.The requirement is to replicate 10 business partners from crm to R/3 ,then the next 4 Business partners need not be replicated and then the next three replicated..How do we do this kind of replication....
    One thing more regarding the replication of sales order.When we save a sales order in CRM,is it automatically replicated to R/3 or do we need to release it manually??
    If yes,then if we do not want to replicate the sales order from crm to R/3,then what will we do?
    Consider that all the middleware settings are configured and working fine..
    Puneet

    Hi Bokhal,
    Please consider my answer from your recent thread dealing with apparently the same issue :
    Hi Bhokal,
    For filters in uploads please consider below:
    For Filtering the BP-upload, use the Administration Console
    (tx. SMOEAC) in the corresponding subscription of the "All Business
    Partners (MESG)" publication assigned to the R/3 site.
    Some publications (and the replication objects they are based on) are
    delivered as type "Simple bulk" which does not give you the opportunity
    to assign criteria values for filtering.
    You might have to re-create the publication. To do that:
    1) First delete the subscriptions "All Business Partners (MESG)" and its
    publications & the replication object.
    2) Recreate the replication object as type "Simple intelligent".
    3) Afterwards you can create a new publication via wizard of type
    "Simple intelligent (msg)" assigned to the BDOC-Type BUPA_MAIN. Then,
    you will be able to select some "filter criteria".
    The reason for deleting the "old" publication is, that you
    are not allowed to assign a BDOC-Type to more than one publication.
    4) But please keep in mind that there is no realignment supported. So
    you should only use fields for filtering, which cannot be changed
    afterwards.
    This is the "simple" solution for filtering on fields. This
    will not provide complex filter criteria.
    If you need this, you shall create a filter function in R/3- and/or
    CRM-Inbound and -outbound.
    If you want to keep the control about the upload trigger, you can add an
    additional module in transaction CRMC_BUT_CALL_FU, position > 200000.
    BUPA_MWX_BDOC_BPS_FILL_CENTRAL. Within this new module, you can delete
    all partners within the complex structure that you don't want to upload.
    Hoping that above will be helpful.
    Best regards
    Christophe Sturzel

  • Error V2 005 when creating a sales order from a quotation

    I hope someone can come up with some ideas to help me with this error. My client is creating a sales order from a quotation and immediately on the first screen the error V2 005 pops up. The quotation was not created with reference to any previous document, and at this point not sold-to party has even been copied through to the sales order.
    To make this error more interesting, this is only happening with 1 particular customer.
    I have checked: credit management, customer hierarchies, material determination, customer info records and none of these are in use.
    Can someone please come up with some ideas?
    Thanks and regards
    Kikas

    Dear Sai,
    Thanks for this note I am going to try it, however I have some concerns because the issue is only happening in production, with 1 custoemr only, and QA is an updated copy of production and I could not replicate the error in QA using the same customer....
    If anyone has any other ideas please I would appreciate it
    thanks
    Kikas

  • FM to create Sales Order from reference billing document

    Hi,
    I need to create a sales order from a reference billing document. Please tell me if there is any function module/BAPI to do that.
    Thanks in advance for the help
    Regards,
    Varun

    Hi
    <b>SD_SALES_DOCUMENT_COPY</b> copy Sales Doc into new one with the required Sales Doc Type (VBAK-AUART) for further creating.
    <b>SD_SALES_DOCUMENT_SAVE</b> create Sales Doc from the copied document
    create subsequent document
    REPORT Z.
      data: w_auart like vbak-auart,  "current SalesDoc type
            w_auara like tvak-auara,  "Subsequent SalesDoc type
            w_vbak  like vbak.
      parameter p_vbeln like vbak-vbeln.
    at selection-screen on p_vbeln.
      SELECT SINGLE auart FROM vbak into w_auart
        WHERE vbeln = p_vbeln.
      if sy-subrc <> 0.
        message e398(00) with 'Sales Doc' p_vbeln 'not found'.
      endif.
    start-of-selection.
      SELECT SINGLE auara FROM tvak into w_auara
        WHERE auart = w_auart.
      if sy-subrc <> 0 or w_auara is initial.
        message e398(00) with 'Subsequent type not defined for' w_auart.
      else.
      1. copy
        CALL FUNCTION 'SD_SALES_DOCUMENT_COPY'
             EXPORTING
                  i_auarn       = w_auara
                  i_vbeln       = p_vbeln.
      2. paste
        CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'
             IMPORTING
                  evbak         = w_vbak.
      3. commit
        COMMIT WORK.
      4. report
        write: / 'Sales Doc', w_vbak-vbeln, 'created.'.
      endif.
    regards
    vinod

Maybe you are looking for