Can wevcreate an LSMW for deleting the sales documents

Hi All,
Is it possible to create the LSMW to delete open sales orders?
If yes,
Which menthod is suitable and why....plz let me know.
Thanks in advance,
Praveen

Hi All,
Thanks for the inputs. I was able to create a LSMW in the develpment box of our system.
Now my question is how do i transport my LSMW to Quality system?
Is LSMW transportable?
Wht is import and export option in LSMW?
Please let us know if you guys know about it.
Thanks in advance.
Praveen

Similar Messages

  • FM for unlocking the sales document

    Dear all,
               I need to know if there is any function module which unlocks the sales document.I have a problem with CRM system,it creates the sales order thr bdoc but with another material and the sales document cannot be opened in the edit mode.I tried using DEQUEUE_EVVBAKE.But its also not working may be i am passing the wrong parameters to this FM.Please help me out.
    Reward points are Guaranteed

    Check the below thread .
    Lock Objects
    Regards,
    Maha

  • Authorisation for deletion of sales order

    Dear All,
    We want to have the check when deleting the sales orders that the users can not be able to delete the sales orders.
    We wrote the code to MV45AFZZ for the deleting the sales orders-user exit FORM USEREXIT_DELETE_DOCUMENT
    But while deleting the sales order, we got dump.
    Could you please help us why we got abap dump?
    We wrote the below part:
      message 'ZZZZZz' TYPE 'E'.
    Regards
    J.Black

    The output of error messages and user dialogs is possible only with restrictions in the FORM routine USEREXIT_DELETE_DOCUMENT. Messages of the type E or W cannot be output. This causes the runtime error DYNPRO_MSG_IN_HELP as of Release 4.0.
    Other notes
    The deletion of the delivery can no longer be prevented at this point by returning to the dialog, since all the delivery data has already been deleted logically. If the user has to prevent the deletion of the delivery for certain reasons, the system should issue an error message of the type A.
    Check this link:[http://www.sapnet.ru/viewtopic.php?p=811]

  • Error "The sales document is not yet complete" when using SD_SALES_DOCU_MAINTAIN

    Hi there,
    I have built an update program for updating the sales documents (VA42). In that program I am using the BAPI-SD_SALES_DOCU_MAINTAIN. It works fine except for the sales docs that are incomplete. For those sales docs I have the following messages in the Return-internal tab. from the BAPI:
    V4
    233
    VBAKKOM has been processed successfully
    V4
    233
    VBAPKOM has been processed successfully
    V4
    233
    VBAPKOM has been processed successfully
    V4
    233
    VBAPKOM has been processed successfully
    V1
    555
    The sales document is not yet complete: Edit data
    V1
    311
    Collection Contract 55259592 has been saved
    The sales doc is indeed incomplete. What is missing in this sales doc is the prices. After discussion with the people from the business, I found out that it is impossible to complete those sales docs.
    In the transaction-VA42 it is possible to save such sales docs, after clicking the "Save" button in the pop-up "The sales doc is incomplete. (Save - Edit - Cancel)".
    The standard reports SDVBUV00 and SDVBUK00 do not help.
    Is there any other possibility or other BAPI that I could use to save such sales docs?
    Thanks,
    Dimce

    no issue anymore. On the QA-system it didn't work and on the production one it works.

  • Can we delete the sales order?

    hi,
    can we delete the sales order?

    Use transaction code SARA for deletion of sales order but as every body said it is not recommended as it might affect the documents made against it and also the master data.
    So its better to reject the sales order.
    Regards
    Prashant

  • Where can i see who deleted the sales order

    Where can i see who deleted the sales order?

    Hi Raja,
    Thnks for the reply.But I wanted to see Delivery Document which is not in the database as it has been deleted.
    As in this program , When I enter This Delivery Number , it says - No Changes carried out.
    Kindly provide me the program fo Delivery Document.
    Best Regards,
    Ankur

  • Function module for deleting the perticular sales order

    Hi Experts
    I wanted a function module name for deleting the perticular sales order document ,when i enter the import parameter as sales order no  and some value as export parameters so that i can use that for the program (message :successfully deleted ).

    Hi Satya,
    Use BAPI BAPI_SALESORDER_CHANGE as follows:
    DATA: T_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA: BAPISDH1X LIKE BAPISDH1X.
    PARAMETERS: P_VBELN LIKE VBAK-VBELN.
    *SET THE DELETION FLAG
    BAPISDH1X-UPDATEFLAG = 'D'.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    salesdocument = P_VBELN
    order_header_inx = BAPISDH1X
    tables
    return = T_RETURN
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Hope this will help.
    Regards,
    Nitin.
    Edited by: Nitin Karamchandani on Dec 8, 2008 8:36 AM

  • How to delete the subsiquent document for a sales order

    Hi,
    Please tell me the tcode to delete the subsequent document of a sales order and a sales quotation.I want to reject or delete the sales quotation.
    Please tell me the procedure.
    Currently i am trying to cancel the billing document for sales order by VF02 and try to cancel through menu bar.
    After canceling the document its still giving the message that subsequent document exists.
    Please help.
    Thanks and Regards

    in the document flow : i am finding documents which are given below :
    Doc.                                           Date     Overall Processing Stat
    Serv. notif. 00015773
    Qt For NewConnection 20022016    23.04.08   -   Completed
    Order New Connection 22460 23.04.08           -    Open
    Z New Connection 90022430 23.04.08      FI doc. not Required
    Cancel. Invoice (S1) 90023731 19.07.08    FI doc. not required
    And no accounting document created.
    Thanks and Regards
    Edited by: Birendra Choudhary on Jul 19, 2008 2:08 PM

  • Any program for Deletion the normal Parked documents in Standard SAP

    Hi All,
    is there any program for delete the normal parked documents in Standard SAP ??  we have nearly 2000 documnets so we can't do manually one by one at FBV2/FBV6.
    please help.
    Raj

    Hi,
    You can create a CATT/LSMW project, by recording the relevant transactions and then make a mass change by executing it.
    Regards,
    Eli

  • Deleting the Sales Order Linked to Prodution Order

    Hi all,
      I have created Production Order with ref. to Sales Order and made the status Released.
    Now my requirement is when i am able to delete the sales order which has been linked to the production order.I.e,At what status of production order the linked sales order will be able to get deleted.
    For Eg.If the Status is settlement rule completed.them am i able to delete the Sales order.
    And how do i know the status of production order that it is being processed or it is yet to get processed.
    Thaks in advance,
    M.Badrinarain.

    Hi,
    This is common problem of deletion of sales order in MTO scenario. First thing is that you cannot delete entire production order from database. you need to TECO for the that production order.
    sales order does not gets deleted unless its subsequent document gets deleted (production order).
    So only solution here is TECO for the that production order & then reject the line item in sales order by giving reason for rejection.
    Pls refer below link
    How can I terminate the sales order item?
    Regards,
    Sankaran

  • Need IDOC and segment for mappping the sales order number

    Hi,
    we need the IDOC name and segment for mapping the sales order number created by oracle in sap for transaction VA01.
    Whether the sales order number created by Oracle can be used to create the sales order in sap using the idoc ACC_SALES_ORDER01?
    . If we can do,then what is the segment and field for the sales order number in the idoc ?
    Please reply asap it's very urgent
    Thanks
    Edited by: suresh kumar nandhagopal on May 16, 2008 12:07 PM

    Hi,
    IDOC for sales order is ORDERS05. Segment E1EDKA1, for field go to SE11 and enter E1EDKA1 to find field for sales order.
    Cheers.
    ...Reward if useful.

  • Can the badi of MIRO be used to add/delete the material documents in MIRO?

    Hi ,
    Can the BADI of MIRO be used to add/delete the material documents in MIRO? As I use call transaction to call 'MIRO' , during I fill in the bdc tab of the MIRO, I want to use its badi to delete/add some listed material documents in the items of the MIRO.
    If you have solution, please let me know. Thank you very much.

    Thank you for your reply.
    Yes, I have finished the call bapi code. But the users want to change some post date, tax, amount and some account values
    during MIRO. So I tried to use call bdc.
    But when I call bdc to run miro, I need to update the material documents reciords which are choosed according to some specific logic.

  • Material master table/field that can store a value that indicates the sales

    Hello Gurus....
    My Client is looking for a material master table/field that can store a value that indicates the sales volume (quantity) of a material. If the sales volume of a material falls within the top 80% of the total sales volume, then the material will have an indicator of "A", 15% will be "B", bottom 5% will be "C". Business wants to use this field to drive the automatic putaway into different pick zones.
    We cannot use ABC Analysis field (MARC-MAABC) or CC phys.in.ind. (MARC-ABCIN) since they are used for ABC analysis and cycle count based on value, nor volume. Using these fields will limit our future use of the true SAP functionality.
    field in Purchasing view in the material master called Mfg Part Profile. However, this is also against the original functionality of the field.
    Other than, this any other field we can use it? or the only option is to do a custom field?
    Regards,
    Kumar

    Hi
    I think the only option is to have a custom field.
    Regards
    Prasad

  • Error in doing LSMW for uploading in Sale order

    Dear Sir,
    While doing test run for LSMW for uploading 15 Sale order , first order saved with no error and from second order the following error is displayed.
    Exchange rate of 1 in INR 2  for date 25.05.2009 3 could not be determined.
    Kindly do the needfull.

    Sir,
    If we manually enter, order getting saved for all the sale order.
    Why it is not possible while doing LSMW. 
    Please clarify.
    Regards
    Sethuraman

  • Report for analyse the sales realisation for a particular period

    Hi guys,
    Is there any report for analyse the sales realisation for a particular period.
    thanks
    murali

    Able to find the solutin the report S_AHR_61016532 it self.

Maybe you are looking for

  • Error while downloading iPhone app updates

    Yesterday I tried to download two iPhone app updates. The app store showed the two updates that were available, but when I tried to update them, it kept giving me an error message saying that my iTunes store request could not be completed. I am up to

  • PO Qty restruction based on purchase group

    Hi experts Can you provide me solution on this requirement that restruction on purchase order qty based on purchase group, in detail my user want that if i entered purchase group XYZ ,then for that purchase order po qty system should not allow more t

  • Why is the NFC option on the newer T models gone?

    I'ved looked closely at the spec sheet and all options, and correct me if I'm wrong, but NFC is not an option anymore. Why? More and more ultra low budget phones and tablets come with NFC, so it seems very unlikely that cost savings is a factor. Why

  • Mapping xsql on tomcat

    hi I deployed an application on apache-tomcat server. but when I access the xsql page it's displayed without executing the sql statement. I modified the web.xml. to map the xsql page with XSQLservlet. I also modified the httpd.conf file to handle the

  • I can't open my scripts.

    I have been using Adobe Story Free and it's not opening anymore. Please help.