Delete only itemno from sales order

Dear all,
   By using this bapi BAPI_SALESORDER_CREATEFROMDAT2 i created the sales order.And i  updated the sales order.When i am deleting the item the whole sales order is deleting.How should i delete only item no in sales order.
                                         regards,
                                          malli

Mr,
1) Delete the Sales Order
SALESDOCUMENT = <doc. number>.
ORDER_HEADER_INX-UPDATEFLAG = 'D'.
2) Delete an item of Sales Order
SALESDOCUMENT = <doc. number>.
ORDER_ITEM_IN-ITM_NUMBER = <item number>.
ORDER_ITEM_INX-ITM_NUMBER = <item number>.
ORDER_ITEM_INX-UPDATEFLAG = 'D'.
finally:
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Amit.

Similar Messages

  • How to release Stock blocked against deleted line items from  Sales order.

    We have Scenario as follows.
    Sales order made for  items available in stock.  Deleted few lineitems from sales order balance items delivered and invoiced. Sales cycle is complete in all sense.
    What we have noticed is when we are creating new sales order / Delivery for deleted items from above Sales order it shows deleted quantity is blocked against old sales order. These line items are no longer
    available in old sales order since it is deleted also it is not appearing in open sales order report (VA05).
    Overall stock available is same as quantity mentioned in deleted line item.
    In MD04 - Sales requirenment transaction it shows sales order / line item against which it is blocked.
                    i.e deleted line item.
    How to release these stock and make available for sales. Any standard process available ? or any other solutions
    Thanks & Regards,

    I got a solution for my question from other forum. for info
    Go to SE38 and enter program SDRQCR21 then execute...
    Enter line item which is blocked for sales order in MD04 and enter plant then check Data
    transfer box and uncheck other boxes... It will pop up information and click yes...
    You will get one report and Stock inconsistency will go off and then check it in MD04....
    regards

  • Delete Credit Card from Sales Order

    Hi Gurus
    I have some issue in releasing sales order to accounting... in this process the only solution I am finding is to delete the credit card info from the sales order. Do we have a BAPI or BDC is the only option.
    Thanks
    Ram Kumar

    Mr,
    1) Delete the Sales Order
    SALESDOCUMENT = <doc. number>.
    ORDER_HEADER_INX-UPDATEFLAG = 'D'.
    2) Delete an item of Sales Order
    SALESDOCUMENT = <doc. number>.
    ORDER_ITEM_IN-ITM_NUMBER = <item number>.
    ORDER_ITEM_INX-ITM_NUMBER = <item number>.
    ORDER_ITEM_INX-UPDATEFLAG = 'D'.
    finally:
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = 'X'.
    Amit.

  • How to get report for deleted line items from sales orders

    Dear FRIENDS,
    please infirm the t.code or report for viewing the deleted line items from sales ordrers.
    Kindly do the neeedful.
    regards,
    N.M.PAWAR

    Hi,
    With transaction SE16 you can view table CDHDR for header changes and
    CDPOS for item changes. This includes deletion.
    OR
    GO to VA03 - Display Sales order -> Put order no : don't press enterbutton. -> Go to Enviornment -> changes -> You will get details
    Date ItmNo. SLNo Action
    Hope this help please close the thread if answers

  • Not to be able to delete line items from sales orders

    I have to do something so as not to be able to delete the line items from a sales order if I have already received a down payment for this sales order

    Dear Stilianos
    Assign Reason for Rejection for that line item and create a new line item in the same sale order.
    Incidentally, why do you want to delete the line item ??
    thanks
    G. Lakshmipathi

  • Deleting line item from sales order

    Hi to All,
    I am an SD support consultant,i had an issue please help me out,
    When i am trying to delete one line item from the sales order i am getting error message that line item cannot be deleted because of planned order.

    Hello
    Due to your availability check & transfer of requirement config for sales process & material, in the background planned order already generated. Till the time you have subsequent document for Item, you can't delete the litem.
    So, take assistance of PP consultant in your team for delete planned order
    Thanks & Regards
    JP

  • Cannot delete line item from sales order

    Hi Gurus,
    Need your expert helo for the following issue :
    A sales order was created in CRM with 3 line items, the first and 3rd line item being the same.The order was successfully replicated to ECC.Now on the CRM side the 3 rd line item was deleted and another item was entered which doesnot exist in the system.The system gave 2 errors indicating that the item doesnt exist in the system which is valid.Now when we are tryng to delete the line item(3rd item which doesnt exist in the system) the system doesnt allow it .If there were any subsequent docs for this order it would make sense that order doesnt allow any changes on the CRM side but there is no delivery doc created yet.
    Seems like the order is in some confused state.Can you please suggest what can be done to make sure that line item 3 can be deleted and changes on CRM side reflect to ECC.
    your suggestions will be greatly appreciated.
    Will reward with points.Thanks in advance.

    Hi Venkat,
    I think once you create order..system will not allow you to delete the line Item completely. Now do one thing open a sales order and try to delete the line item..it will not delete it. But if you go to status column of same line item...it will show the status as 'rejected'. This means that order is not placed for that material. And the requirement will not be shown in APO. This is as good as deleting the line item completely.
    thanks
    Kushal
    reward points if help

  • Bapi or FM to delete Pricing condtion from sales order

    Hi,
    I have a requiremnet where i need to delete the pricing condition .The sales order is changed by one proxy program and then the pricing condtion record is appearing twice in order this because of the condition origin is automatic.
    one entry is for automatic and one entry ( changed manually ) is which we are passing to the bapi 'BAPI_SALESORDER_CHANGE' FM in the proxy program  .
    I need to delete the record for automatic .
    I have checked the bapi 'BAPI_SALESORDER_CHANGE'  but not working...
    can anyone let me know any bapi available to delete the procing condition.
    Regards,
    raj

    Hi,
    Any one please.
    Regards,
    raj
    Edited by: kumar raj on Apr 28, 2009 2:25 PM

  • How to restore deleted manual conditions from sales order?

    Hello Experts,
    I have a situation where one of the users did a mass change on many sales orders. As part of this mass change, re-pricing was done and that deleted all manual conditions which are applied on each sales order item level.
    Is there a way I can restore deleted manual conditions?
    Please let me know and appreciate any help!
    Thanks!
    PL.

    hi
    peter
    you find the sale order  manual deleted condition types  in AUT10 t code level
    go to AUT10 t code here enter the sale order number and give the date time, then execute now its showing  condition types and amount also
    pl check below screen
    regards
    sankar

  • How to delete line item from sales order ?

    Dear All ,
                               user is having 20 line items from which 3 line items of which prod order confirmation cancellation is done also goods reversal done now as user tries to delete the line items an info box pops up --> Due to cost management the line item can not be deleted . Can u tell me that if these line item is not deleted than how to delete this ?  sos what user had done that he had selected reason for rejection for these 3 line items so now the total wt is reduced but user is not able to delete the lineitems .
    pl help
    sap11

    Hi
    For those line items you can assign a REASON FOR REJECTION. Automatically the status of those line items will be closed.
    Thanks,
    Ravi
    PS : sorry....please ignore my post.
    Edited by: sankar ravi on May 20, 2008 3:45 PM

  • Sales invoice carrection  & item deletion from sales order after PGI

    Hello Sir ,
                   i want to change the item price after billing , account document is created .
                   what can i do for it ?
                  and second is . i want to delete line item from sales order after PGI
                  like  after delivery customer want  to change the goods .
                  please ans me asap
    Thanks
    Arvind
    Edited by: saparvind on Nov 5, 2009 5:30 PM

    Hi ,
    i want to change the item price after billing , account document is created .
    what can i do for it ?
    Once the Billing document and corresponding Accounting document created, then you have to cancel the BILLING DOCUMENT to change the Price.
    To change the Price , If it is Manual price directly you can change in the Billing document.
    If the Price is coming from the CONDITION RECORDS then you have to UPDATE the pricing to the  CARRY OUT NEW PRICING in the Billing documents, with Option B
    i want to delete line item from sales order after PGI
    like after delivery customer want to change the goods .
    For this you have to reverse the PGI in the Transaction code VL09 and then cancel the DELIVERY in VL02N---Delete.
    Now you can change the Goods in the Sales document in VA02.
    Please check the above and revert.
    thanks,
    santosh

  • I want an information to retrive deleted records for a sales order.

    Hi technicals,
      This is suresh.I need a help from you .
    I have designed a BAPI which is going to retrive the New records ,updated records for a particular sales order based on the sales organization.But when i am trying to retrive the data for deleted records it's not getting any data.
      Is it possible to get the deleted records for particular sales order based on sales organization.
    if it is possible ,then let me know whether there is any function module to get the
    deleted records based on sales organization.
    Please help me to solve the problem.
    Thanks in advance,
    suresh..

    I'm not aware of a FuMo
    SAP deletes VBAK hard on database. Only trace in ChangeHist is possible.
    Ask Table CDHDR & CDPOS for those...
    OBJECTCLAS = VERKBELEG, OBJECTID = vbeln (leading zroses!), TABNAME = VBAK, CHNGID = D
    SalesOrg not identificable out there...
    Have fun ! Not points wanted!

  • Revenue not flowing from Sales order to PS so no WIP in PS/WIP

    Hi,
    We are following PS with MTO scenario.
    For calculating WIP in projects we are unable to get the actual revenue flow from Sales order to PS so entire amount in PS/WBS is sitting in WIP but its wrong.
    User wants to do the Delivery and billing form Sales order only.
    Can you please help us how to calculate the WIP in this scenaio.
    Thanks,

    Hi,
    Have you made the account assignment as WBS Element in the SO line item. Ift his is done, once you create an invoice from SO the actual revenue will get updated in WBS Element.
    Regards
    Sreekanth

  • Budget error while creating delivery from sales order

    hi Gurus,
    System is throwing error PB603 "Item 004 WBS element ABC-XXX budget exceeded" while creating delivery from sales order.
    I am picking material from unrestricted plant stock (not in project stock).
    I am also confused as sales order has 3 line items & error shows Item 004 !

    Hi Kuldeep,
    Check this note,
    Note 159387 - Message BP603: incorrect line item is displayed
    Its valid only till 4.6. Might give you some idea but.
    Regards,
    Gokul

  • Automatic creation of project from Sales Order?

    hi..
    can someone guide me how to automatically generate PS Projects from SO USING TCODE HBS0?
    i have been able to generate projects automatically when i use tcode VA41 but my need is to do this for RE using sales browser and creation of Sales Order is by Tcode HBS0.
    when i save the sales order, no project is created. ( Note: Material i used is same one i used successfully in VA41+)
    thanks in advance..

    Hi Ramesh,
    Creation of project from sales order in SAP Project system is described as assembly processing.
    In the Project System only networks can be generated directly from a sales document during assembly processing. Indirectly the system can also generate work breakdown structures, when it creates the network.
    1.You start assembly processing by creating a sales document for a material. This sales
       document can be inquiry,quotation, sales order.
    2. The system then
        Configures the material, if necessary
        Creates a network using the standard network as a template
        Configures the network, if necessary
        Schedules the network backwards from the required delivery date
        Checks material availability
        Costs the network and transfers these costs to the sales document.
    3. When you save the sales document, the system saves the network together with the sales
        document. If applicable, it also generates a project definition and work breakdown structure.
        The project number is derived from the sales document number.
    Please refer link mentioned below to know more details
    http://help.sap.com/saphelp_47x200/helpdata/en/95/1613a8837b11d2b6700000e82d8bd1/frameset.htm
    Regards
    Tushar

Maybe you are looking for