Bdc to delete delivery

hi guyz,
i  wanna delete delivery  i 've got the bdc and i have to use it se38 .
BDC
     0000     T     VA02     
SAPMV45A     0102     X          
     0000          BDC_CURSOR     VBAK-VBELN
     0000          BDC_OKCODE     /00
     0000          VBAK-VBELN     
SAPMV45A     4001     X          
     0000          BDC_OKCODE     /ELOES
at the moment im using
clear: bdcdata, messtab.
  refresh: bdcdata, messtab.
  PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.
  PERFORM bdc_field USING 'VBAK-VBELN'
                           gs_header-del_number.
  PERFORM bdc_field USING 'BDC_OKCODE'
                           '/00'.
  PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
  PERFORM bdc_field USING 'VBAK-VBELN'
                           '/ELOES'.
does this work to delete the delivery...or ...i have to smother thing...plz advise..
regards

Hi Sudheer,
   You can directly use the FM OIK_SD_DELETE_DELIVERY to delete a delivery.
Rgds,
Bujji

Similar Messages

  • BDC for deleting delivery

    hi All,
       I am writing a BDC for removal of outbound delivery from manifest as
    **--Record the BDC for deleting deliveries from Manifest
            REFRESH bdcdata.
            CLEAR   bdcdata.
            REFRESH messtab.
            PERFORM bdc_dynpro      USING 'SAPMV56A' '1011'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'VTTK-TKNUM'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=MM_TKAL'.
            PERFORM bdc_field       USING 'VTTK-TKNUM'
                                           w_manifest.
            PERFORM bdc_dynpro      USING 'SAPMV56A' '1020'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=MM_UETP'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'VTTK-TDLNR'.
            CALL TRANSACTION 'VT02N' USING bdcdata
                                     MODE  ws_mode
                                     UPDATE ws_update
                                     MESSAGES INTO messtab.
    but if i run this the delivery is not getting deleted.
    Please help.....
    Thanks ,
    Ruchi Tiwari

    REFRESH bdcdata.
    CLEAR bdcdata.
    REFRESH messtab.
    PERFORM bdc_dynpro USING 'SAPMV56A' '1011'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'VTTK-TKNUM'.
    PERFORM bdc_field USING 'VTTK-TKNUM'
    w_manifest.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=MM_TKAL'.
    PERFORM bdc_dynpro USING 'SAPMV56A' '1020'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'VTTK-TDLNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=MM_UETP'.
    CALL TRANSACTION 'VT02N' USING bdcdata
    MODE ws_mode
    UPDATE ws_update
    MESSAGES INTO messtab.
    try this code

  • BDC for deliting delivery

    hi All,
       I am writing a BDC for removal of outbound delivery from manifest as
    **--Record the BDC for deleting deliveries from Manifest
            REFRESH bdcdata.
            CLEAR   bdcdata.
            REFRESH messtab.
            PERFORM bdc_dynpro      USING 'SAPMV56A' '1011'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'VTTK-TKNUM'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=MM_TKAL'.
            PERFORM bdc_field       USING 'VTTK-TKNUM'
                                           w_manifest.
            PERFORM bdc_dynpro      USING 'SAPMV56A' '1020'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=MM_UETP'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'VTTK-TDLNR'.
            CALL TRANSACTION 'VT02N' USING bdcdata
                                     MODE  ws_mode
                                     UPDATE ws_update
                                     MESSAGES INTO messtab.
    but if i run this the delivery is not getting deleted.
    Please help.....
    Thanks ,
    Ruchi Tiwari
    Duplicate post
    Edited by: kishan P on Sep 6, 2010 11:47 AM

    REFRESH bdcdata.
    CLEAR bdcdata.
    REFRESH messtab.
    PERFORM bdc_dynpro USING 'SAPMV56A' '1011'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'VTTK-TKNUM'.
    PERFORM bdc_field USING 'VTTK-TKNUM'
    w_manifest.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=MM_TKAL'.
    PERFORM bdc_dynpro USING 'SAPMV56A' '1020'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'VTTK-TDLNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=MM_UETP'.
    CALL TRANSACTION 'VT02N' USING bdcdata
    MODE ws_mode
    UPDATE ws_update
    MESSAGES INTO messtab.
    try this code

  • Deleted Delivery Unable to do the Goods receipt reversal

    Hello Experts,
    Instead of deleting the particular delivery line items, user has deleted the STO delivery completely by using VL02N transaction code. Now in the purchase order history we have only GR and invoice document related to STO. (We already reversed the billing and deleted the delivery)
    Now we are unable to reverse the GR and getting the error "Delivery cannot be updated". This error because of the deleted delivery.
    Please advice how to proceed further. Now the overall from accounts it is showing imbalance.
    Please note, we are doing STO between company code to company code.
    Regards
    Rifaie M

    Satish,
    From you, i understood that for cancelling the GR i have to give delivery number reference.
    But in my case the delivery number itself deleted. I do not have delivery number in purchase order history. This has been deleted by the end user by mistakenly.
    Please advice
    Regards
    Rifaie M

  • Order deleted ,delivery was done

    hello,
    can any one tell me how we can delete a sales order when we have done the delivery

    Hi
    Vipin
                  One can not delete the sales order is the subsequent doc is exits If any delivery is done u can not delete he sales order. But U can short close the order by assiging the reason for rejection in sales order. But to delete the order u have to reverse PGI through VL09 and delete delivery through VL02N.
    Once u reverse/delete all the PGI and DELIVERY only then u r able to delete the sales order.
    Hope this will help you
    Thx

  • Undo GR with a deleted delivery note

         Hello,
    I don´t know if somebody has been in the same situation and could help or give us a solution:
    We would like to undo the Goods receipt from a Purchase order, but SAP doesn´t allow it due to the delivery note has been canceled by mystake.
    Two possibilities
    - Undo the deleted Delivery Note.
    - Undo the goods receipt in this situation.
    Thank you!
    Regards,

         Hello,
    I don´t know if somebody has been in the same situation and could help or give us a solution:
    We would like to undo the Goods receipt from a Purchase order, but SAP doesn´t allow it due to the delivery note has been canceled by mystake.
    Two possibilities
    - Undo the deleted Delivery Note.
    - Undo the goods receipt in this situation.
    Thank you!
    Regards,

  • To view the reference sales document of a deleted delivery

    Is there a table in SAP where I can see the reference sales document of a deleted delivery?
    Or is there a way that I can see the reference sales document of a deleted delivery.

    I dont think it is possible to track sale order reference for a deleted delivery through standard tcode.  Of course, you can see the deleted delivery details in MB51.
    thanks
    G. Lakshmipathi

  • Deleted delivery and inspection lot  tracking

    dear all,
    i have an issue please guide me
    the senario is
    At my client , there is a delivery happening in  vl01n i will pick the required quanity  and  send the lot to the QM  for final doc audit then after the QC is passed it will released from the QM then i will do the Post Goods Issue .
    the problem is here in the client    i have created  a delivery document and i have picked the quantity and  issued for the final doc audit report , during that time the goods which have been picked will be in the Scheduled for delivery .
    Now if the quality check fails for( final doc auidit ( ie for pallletization ) or some nails and packing is not done properaly ) it has to go for rework for the final doc auidit .
    If the quantity is rejected and gone for rework.    i will have to delete the delivery document  and create a fresh delivery doccument .
    because only if i delete the delivery document  what ever the quanity is there in the Scheduled for delivery will be  moved backed to the Bonded store .
    and then only it is possible for the goods to be picked and send for QC and after QC pass  PGI will be done
    My problem is  is there any connection can be done from the deleted delivery document and the fresh delivery document
    so that
    i can able to track the inspection lot  generated in the both the deliveries   i.e ( the deleted one and the fresh delivery document for which the PGI is done )
    Based on this i can create a  zreport for the QCheck  , becasue the client wants to  have  a link between the inspection lots generated between the two delivery documents and based on that they wanted to track the inspection lot

    Hi
    regarding  the link between two  delivery documents , as you are deleting the delivery the delivery document  is not there in any table so you wont get the link even in the document flow table. or delivery table .
    So its not feasible to generate link.
    I would suggest a different approach ,pl investigate more before you go ahead,
    You can have   seperate storage locations one with internal QC ,Other FG store and third final dispatch or BSR store.
    When material is transferred from production to quallity store a inspection lot is generated .once it is cleared QM will have stocks in FG store .Materials in FG store should be availble for final audit and only material which is approved in all respects in transferred to BSR store from where it is immediately dispatched. so QM and other departments can always access the stock in QM for internal inspection , rework an dfinal dispatch through store location instead of delivery tracking.
    I hope this helps
    regards
    Mandar

  • How to view deleted delivery

    Hello All,
    I have a sales order for which the delivery is deleted.I want to see the delivery details.I have the delivery number but am unable to find it either in vl03n or Likp table.
    I am also not able to find it in the document flow of the sales order.Is there any transaction or table where i can see the details for the deleted delivery.
    Thanks in advance.

    Hello,
    I solved this problem this way. Because the delivery is realy deleted from SAP you can use only a data paralely created with your delivery.
    VL22 - Change report - no all information are there
    MB51 - Material document list
    - Reference field of the selection screen is your deleted delivery number - insert with * before and after for exampel 80011313. You will get info about material movements related to your delivery. When you double-click material document there detail about article number, batches, partner/customer etc.
    I hope this help although this is a litle late after your question.

  • List of Deleted delivery note

    Hi,
    I am new end user on MM and SD.how to get list of delivery notes delited in past with username who deleted and material no qty and Sales Order no.
    I really need this to find who is deleting DN everyday. Why materila never moved out from W/H.
    Thanks,
    Bipin Singh

    Hi,
    please check the below link:
    List of Deleted delivery note
    Regards,
    Chinna

  • Finding deleted Delivery Reference

    Great gurus
    Delivery is Sales Order Related. Once Delivery PGI is made . and afterword we Reverse the PGI, Delete the delivery. is there any way we can finde out the Delivery & Sales Order reference ( After deleting delivery ).
    Regards\Adnan

    Dear Babu,
    No we can't find the Delivery & Sales Order reference  After deleting delivery .
    I hope this will help you,
    Regards,
    Murali.

  • Deleted delivery order tracking

    Hi experts,
    I wanted to find out whether there is any way to find out all the deleted delivery orders. Any table stores these data?

    Hi
    Check This Tables CDHDR and CDPOS .
    To know the deleted orders, go to CDPOS
    enter "VERKBELEG" in change document object.
    CHANGE_IND = 'D' .
    Ranga

  • Find ref.doc.of a deleted delivery

    Hello Experts,
    I would like to ask how can I find the reference documents of an already deleted delivery?
    I mean how can I find for ex.the sales order document number which was related to an already deleted delivery?
    I would like to mention that I know the deleted delivery number & I want to know for ex.with which sales order number was related at the flow before deletion.
    If you could please be so kind and inform me also about the relevant tables & fields which gives this information.
    Great thanks in advance.!!!
    Kind Regards
    George

    Hi,
    As far as my knowledge goes, you will not be able to find out the sales order number by using a deleted delivery document number. The reason is, when you delete the delivery, the reference will be deleted from VBFA table which stores the details of document flow. As there is no reference maintained, you will not be able to retrive the data.
    However, you can try to get the sales order number if you know
    a. Customer PO number for which the sales order is created (VA02 / 03)
    b. Sold to party + Material combination (VA05)
    Hope this helps.
    Thanks
    Mukund S

  • OSS notes for a Deleted Delivery

    Hi Experts,
    We have a strange issue. One of the users deleted the deliveries for an order. We  now want to delete the Order too. But we are unable to track the order.
    Since delivery is deleted, it is not possible to identify the related Sales order number or the materials attached to the delivery.
    do we have any OSS note for this ?
    Thanks,
    Arthy

    Dear Lakshmipathi,
    Thank you for your valuable suggestion. But we actually are trying to create a shadow table or a backup table to record the deleted delivery details in future. Could you suggest what this table should be like,how and what details should  we capture and how the new table should work in order to capture the deleted delivery details?
    Please let me knowif you have any possible suggestions for creating this shadow table.
    Thanks in Advance,
    Regards,
    Arthy

  • DELETE Delivery with BAPI BAPI_OUTB_DELIVERY_CHANGE

    Hi all
    i try delete delivery with the bapi BAPI_OUTB_DELIVERY_CHANGE, but isn't don't.
    i don't know why, what's wrong
      loop at gt_likp assigning <gs_likp>.
        gf_delivery = <gs_likp>-vbeln.
        gs_header_data-deliv_numb = <gs_likp>-vbeln.
        gs_header_control-deliv_numb = <gs_likp>-vbeln.
        gs_header_control-dlv_del = 'X'.
        call function 'BAPI_OUTB_DELIVERY_CHANGE'
          exporting
            header_data                   = gs_header_data
            header_control                = gs_header_control
            delivery                      = gf_delivery
    *       TECHN_CONTROL                 =
    *       HEADER_DATA_SPL               =
    *       HEADER_CONTROL_SPL            =
    *       SENDER_SYSTEM                 =
          tables
    *       HEADER_PARTNER                =
    *       HEADER_PARTNER_ADDR           =
    *       HEADER_DEADLINES              =
    *       ITEM_DATA                     =
    *       ITEM_CONTROL                  =
    *       ITEM_SERIAL_NO                =
    *       SUPPLIER_CONS_DATA            =
    *       EXTENSION1                    =
    *       EXTENSION2                    =
            return                        = gt_bapiret2
    *       TOKENREFERENCE                =
    *       ITEM_DATA_SPL                 =
    *       COLLECTIVE_CHANGE_ITEMS       =
    thx

    Hi,
    1) Use BAPI_TRANSACTION_COMMIT after Bapi.
    2) Check whether any subsequent documents has been created against the delivery (Refer to VBFA table).
    Regards
    Vinod

Maybe you are looking for

  • What setting need in SAP R/3 if i want to send only changed records to XI

    Hi All      I had problem while sending Idoc  from SAP R/3 to XI      Thing is i want to send only the changed records in Idoc not all so what        settings i  need to in SAP R/3 ?      Can any one explain me how to do this... Adv thanks and Points

  • SOAP communication channel

    Hi, I am configuring sender SOAP communication channel. I see only "CENTRAL ADAPTER ENGINE" in the Adapter engine type. I do not see any INTEGRATION SERVER  in the drop down option. Kindly help.

  • There is a problem syncing the folder...

    I keep getting the following message whenever I boot up my PowerBook G4: *There is a problem syncng the folder "Brad's iMac (2)."* *Unknown error: chflags('/Volumes/bradpurvis/Backups.backupdb/Brad's iMac (2)', 0) Please try again later.* Recently, m

  • Going for the wicked Double-Chase-card-combo

    I'm looking to get the Chase Sapphire Preferred card sometime in the next couple of months for gathering travel miles but I am unimpressed with the 2x points only on travel/dining. Chase Freedom is a great combination to have with CSP (5x points on r

  • Cp 5 unable to publish to ACP 8?

    Hello All, (ACP 8, SP1 & Cp 5) I have been waiting for ACP 8 so that I could publish Cp5 content to the Connect Server ("Need Adobe Connect 8 for Share Pod to work...") and now that I have ACP8 I am STILL unable to directly publish Cp5 content to the