How to deleted the shipping notification record in the MD04

Hello Expert,
We have a very strange things here.
We have a Schedule agreement which need confirmation control for good receipt - means we need inbound delivery for the good receipt.
1. We have 20k open qty for delivery in the schedule line of the SA.
2. An we create an inbound delivery with reference to this SA with delivery qty 20k,
3. but when user discover that there is only 15k stock ready for good receipt, then he want to delete the inbound delivery and create a new one again.
4. user use an customized program to delete the inbound delivery, but there is some problem in this program, the inbound delivery was deleted successfully, but we found this shipping notification still existing in MD04 view.
5. And we double check confirmation overview in the schdule line for this item, we still found this inbound delivery existing in the list.
6. Then we try to use VL31N to create the inbound delivery with reference to this SA again, it is showing no stock for this material for good receipt as we don't have any open delivery qty for receipt. The existing 20k stock still waiting for good receipt although the inbound delivery was deleted.
Is there any method we can deleted this shipping notification in the MD04 and the entry with 20k in the confirmation overview of the SA?
Thank you very much for your help.

Hi shiva,
Thanks for your program, I ran this program, but it can find nothing.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Regeneration of Sales and Delivery Requirements
ATTENTION: Only simulation
Simulation Only
  List contains no data
Deleted Records in Total:    0 Single    0 Collective
Generated Records in Total:    0 Single    0 Collective
Total Elapsed Time:  119 ms
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please advice,

Similar Messages

  • How to Delete the condition record in CRM

    HI,
    Can you please help me how to delete the condition record from condition table in CRM.
    Please explain the usage of FM CRMXIF_CONDITION_SEL_DELETE with examples.
    I have also read the documention of the function module. How to use this FM for custom defined condition table.
    (this is the code given in Documentation)
    DATA-OBJECT_REPRESENTATION         = 'E'
    DATA-SEL_OPT-CT_APPLICATION              = 'CRM'
    DATA-SEL_OPT-OBJECT_TASK                    = 'D'
    DATA-SEL_OPT-RANGE-FIELDNAME        = 'PRODUCT_ID'
    DATA-SEL_OPT-RANGE-R_SIGN                  = 'I'    (Including)
    DATA-SEL_OPT-RANGE-R_OPTION           = 'EQ'
    DATA-SEL_OPT-RANGE-R_VALUE_LOW  = 'PROD_1'
    Thanks
    Shankar

    Hi Shankar,
    I am using the same CRMXIF_CONDITION_SEL_DELETE function module to delete condition record present in CRM.
    But it is giving me below error in the return table of the FM after i run the program. Can you please correct me if I am doing any thing wrong?
    Error in  lt_return: SMW3     CND_MAST_SEL_DEL_EXT_VALIDATE     CND_M_SD
    code:
    ls_range-fieldname = 'PRODUCT_ID''.
    ls_range-R_SIGN = 'I'.
    ls_range-R_OPTION = 'EQ'.
    ls_range-R_VALUE_LOW = '123456'.
    APPEND ls_range TO lt_range.
    MOVE lt_range TO ls_entry-SEL_OPT-range.
    ls_data-SEL_OPT-object_task = 'D'.
    ls_data-SEL_OPT-ct_application = 'CRM'.
    ls_data-object_representation = 'E'.
    CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
      EXPORTING
        DATA          = ls_date
    IMPORTING
       RETURN        = lt_return
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      IMPORTING
        return = lt_ret.
    Edited by: Saravanaprasad Nadar on Jul 7, 2010 1:27 AM

  • Regarding how to delete the record in internal table

    Hi experts ,
    how to delete the record in intarnal table after validating the data,
    if record contains invalid fields?
    i am giving my code see this and give me the answer?
    loop at it_data into wa_data .
    Validate  Cost Center
        READ TABLE it_kostl INTO wa_kostl WITH KEY kostl = wa_data-kostl BINARY SEARCH.
        IF sy-subrc NE 0.
          PERFORM update_error_log USING wa_data
                                         text-004.
        ENDIF.
    Validate source file material ( material number )
    loop at it_mara into wa_mara .
      read table it_ausp into wa_ausp with key atwrt = wa_data-i_matnr .
               if sy-subrc NE 0 .
       PERFORM update_error_log USING wa_data
                                           text-002.
    delete it_data-objek .
         else.
      read table it_mara into wa_mara with key  matnr = wa_ausp-objek .
           if sy-subrc EQ 0 .
           wa_data-objek = wa_mara-matnr.
           wa_data-matkl = wa_mara-matkl.
         ENDIF.
         Modify it_data from wa_data  .
      endif.
    *endloop.
    Validate unit of measure (unit)
        READ TABLE it_t006 INTO wa_t006 WITH KEY msehi = wa_data-unit .
        IF sy-subrc NE 0.
          PERFORM update_error_log USING wa_data
                                         text-003.
        endif.
    Validate delivery location ( storage location )
        READ TABLE it_lgort INTO wa_lgort WITH KEY del_loc = wa_data-del_loc.
        IF sy-subrc NE 0.
          PERFORM update_error_log USING wa_data
                                         text-001.
             if wa_data-flag ='x' .
          delete it_data from  wa_data .
        endif.
        ENDIF.
    endloop.

    Hi Naren,
    First get the index number of the IT_data table and store it in one variable whose declaration like this.
    data: tabix type sy-tabix.
    while reading the internal table it_data set the tabix variable.
    tabix = sy-tabix.
    Instead of  the above use below one.
    Delete it_data-objek
    Use the Below statement it will delete  the row from the internal table.
    Delete it_data-objek index tabix
    Thanks,
    Chidanand

  • How to delete  the record  of saved HRA Details...

    Hi Experts,
    I have put the details of HRA Correctly.But while updating HRA In 0008 Infotype i wrongly updated the wagetype,How should i change the Wagetype.
    When i m trying to delete it is showing  RECORD CAN NOT BE DELETED (TIME CONSTRAINT 1).
    How can delete the record.
    Thanking u .
    Sai

    Hi
         Hope doing well ........ No need to delete any infotype but u can go to PA30 and in change mode their u can delete the wagetype which is wrongly entered
    Rajeshk

  • Reg:How to delete the column in table control also from database table.

    Hi Experts,
    Once again thank u all for giving the responses.
    one more doubt is how to delete the columns of table control and also the record shold delete from ztable.
    With Regards,
    Saroja.P.

    Hi,
    If you want to delete the rows in the table control and simultaneously delete it from the database table, then you can implement a 'DELETE' functionality specific to your table control. Have a MARK field (you will find that in the screen attributes of the table control -> give a name for the MARK field, you will find an additional MARK column at the beginning of your table control). You can check whatever rows you want to delete from the table control, call the delete module.
    "This portion of code inside the LOOP...ENDLOOP.
    IF sy-ucomm eq 'F_DELETE'.
       gt_itab2-check = mark.  " Store the MARK field status into your internal table's correspoding field 'check'
      MODIFY gt_itab INDEX tabcontrol-current_line.
    ENDIF.
    iF sy-ucomm eq 'DELETE1'.
      DELETE gt_itab WHERE check eq 'X'. "Your internal table does not have rows that you want to delete
    ENDIF.
    Now you can modify your database table using the MODIFY statement.
    MODIFY ZDB FROM TABLE gt_itab.

  • How to delete the complete contents of database table ? should be empty !!

    Hi Guys,
    I have requirement where i have delete the contents of database table..i have make it empty (no records at all) and then i have to fill it with the records from the excel sheet.
    I can upload data from the excel sheet.
    Please tell me how to delete the complete contents of the database table ??
    Regards
    Rahul

    hi ,
    just write like this,
    delete from <database table>.
    commit work.
    sample code, here edpar is database table.
    delete from edpar." FROM TABLE g_tab_delete.
      call function 'DB_COMMIT'.
      loop at g_tab_edpar into g_wa_edpar.
        insert into edpar values g_wa_edpar.
        if sy-subrc  eq 0.
          move-corresponding g_wa_edpar to g_wa_edpar1.
          append g_wa_edpar1 to g_tab_edpar1.
        else.
          move-corresponding g_wa_edpar to g_wa_edpar2.
          append g_wa_edpar2 to g_tab_edpar2.
        endif.
      endloop.
    that's all it works.
    reward points if helpful.
    regards,
    seshu.

  • How to delete the duplicate data  from PSA Table

    Dear All,
    How to delete the duplicate data  from PSA Table, I have the purchase cube and I am getting the data from Item data source.
    In PSA table, I found the some cancellation records for that particular records quantity  would be negative for the same record value would be positive.
    Due to this reason the quantity is updated to target but the values would summarized and got  the summarized value  of all normal and cancellation .
    Please let me know the solution how to delete the data while updating to the target.
    Thanks
    Regards,
    Sai

    Hi,
    in deleting the records in PSA table difficult and how many you will the delete.
    you can achieve the different ways.
    1. creating the DSO maintain the some key fields it will overwrite the based on key fields.
    2. you can write the ABAP logic deleting the duplicate records at info package level check with the your ABAPer.
    3.you can restrict the cancellation records at query level.
    Thanks,
    Phani.

  • How to delete the Cost center line item data

    How to delete the cost center line item data of particular cost center and only one cost center is exisiting for that company code.
    Is there any way to delete the line items in that cost center.
    Can data archiving & deleting can help us..........
    does it have any effect over other cost center data....
    any input needed.........
    regards
    rajesh

    Hi,
    i found 2 reports for you:
    1) CO_TOTAL_WRI - Archiving CO Totals Records   
    2) RKCOITW1     - Archiving CO Line Items: Write Program        
    from 2) is a linlk to customize archiv-parameters
    -> start it with transaction se38 / sa38
    A.

  • How to delete the production order in mass?

    Dear Experts
                 Please tell me how to delete the  old production orders?

    Raja,
    CO78 is a one stop transaction for production order setting deletion flag, deletion indicator, archiving and finally deleting.
    Generally we schedule the following programs in background in the sequence below,
    1. PPARCHP1 for Setting Deletion Flag
    2. PPARCHP1 for Setting Deletion Indicator (Once set cannot be revoked- so care should be taken in selection of orders)
    3. PPARCHA1 for archiving the production order with Deletion Indicator active. Basis should set the database/storage space for archiving/storing the records.
    4. PPARCHD1 for Deleting the records from SAP database.
    Regards,
    Prasobh

  • How to delete the duplicate requests in a cube after compression.

    Hi experts,
        1. How to delete the duplicate requests in a cube after compression.?
        2. How to show a charaterstics and a keyfigure side by side in a bex query output?
    Regards,
    Nishuv.

    Hi,
    You cannot delete the request as its compressed as all the data would have been moved to E table ..
    If you have the double records you may use the selective deletion .
    Check this thread ..
    How to delete duplicate data from compressed requests?
    Regards,
    shikha

  • How to delete the total entries in ztable

    Hi ,
    How to delete the total entries in ztable...
    code pls.
    regards,

    Hi Venkat,
    pls see below records,
    Plant  Material                       Alternate material
    3770  00000000000126875          2020202
    3770  000000000005999335        2020202
    3770  117196                           2020202
    3780  00000000000126875           2020202
    3784  00000000000126875         2020202
    3784  000000000002809336       2020202
    3784  000000000005999335        2 020202
    3789  00000000000126875            2020202
    if  i write below syntax ,
    delete from ztable where matkl = '2020202'.
    all records contains  matkl = '2020202' will be deleted ??
    pls. reply.

  • How to delete the Hierarchy data from Infoobjects.

    How to delete the Hierarchy data from Infoobjects. In my case I had 300 records in the corresponding table of info object.
    When i was trying to delete the hierarchy data, I am getting error message. "Some master data not deleted". Can any one tell me to delete all these records by using a program.

    Hi
    Go to SE11 and enter the hierarchy table name.
    /BIC/H....(infoobject name)...and execute the table and select table entry and delete all....
    Thanks
    TG

  • Hi, since the last update i find my rented movies remained under rented although unplayable. now i find some, as before the update, are deleting fully - can anyone tell me how to delete the unwatchable covers that remain?

    hi, since the last update i find my rented movies remained under rented although unplayable. now i find some, as before the update, are deleting fully - can anyone tell me how to delete the unwatchable covers that remain?

    bunjamin wrote:
    There is now a new line in BBM that wasn't there before which covers the message that I am typing, so I can't actually see what I am typing.
    Hi bunjamin,
    just go to BlackBerry World, and update all your apps including BBM.
    bunjamin wrote:
    Every time I unlock my phone, my screen enlarges so I can't really see much on the hub/notification screen and it defaults to the hub which it didn't do before).
    you can turn off the magnifying glass :
    device settings >> accessibility >> magnify mode >> OFF
    you can deactivate the "reset to Hub view" :
    hub >> overflow (bottom right button) >> Settings >> Display and actions >> Return to Default View When Idle >> OFF
    bunjamin wrote:
    my ringtone is much softer than it was previously
    yes, BlackBerry has acknowledged this bug in this article from the public knowledge base:
    KB36755 After upgrading BlackBerry 10 OS to version 10.3.1 the volume for notifications is noticed to be significantly lower than in the previous version
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • How to delete the PO..?

    Hi all
    Can anybody explain me how to delete the purchase order
    1.Before release ..?
    2.After release..?
    Thanks
    sp-mm

    How to use "me98" to delete PO from system completely?
    I am using "me98"(archive) to delete a PO that have a mistake for vendor code. 
    The following step is: 
    the 1 step: I maintained and saved a variant.  For this variant, I have to create a name for this variant and select the PO which want to delete. it's right? 
    the 2 step: I maintained a "Start Date".  For "Start Date",I select the "immediate " to execute it.  Is it right? 
    the 3 step: whether I maintained the "Spool Params" or not?  May I execute it immediately or not? 
    I have no idea for deleting PO via the "archive".   How can i do that ? 
    Archiving is not deleting. What do you think why SAP developed that much programs to retrieve and read data from an archive. 
    Archiving is saving and keeping data for a certain period (based on local laws for data retention and auditing purposes) outside of the production data base.  Such a job is usually done to keep the database small and fast. 
    While doing archiving the records are written to a file and verified to be readable and then the original record gets deleted from the database. Only if you delete then the file with the archived data you have deleted the record forever. 
    Sometimes people seems to work like a burglar and want erase every single evidence for an error. But even errors, or especially errors are subject to be audited if they are corrected in the right way. This is the same for financial and tax auditiors as for auditors for ISO 9000. 
    To be able to archive, you need to setup the path from SAP to the archive. You need to define the size of your archive and how may records should be kept there. 
    Step 1: Create variant for Archiving. Give it a name. Enter your PO number. Flag One step procedure. Flag detailed log. Erase flag for test run. 
    Step 2: Maintain your start date, you can use Immediate in such a small case. 
    Step 3: Maintain spool parameters. Enter your printer and set the values if you want to print immediatly and if you want keep the print. I suggest to hold the spool in the system. This helps you to determine any error. 
    Step 4. Execute the variant. 
    It creates 4 jobs: 
    ARV_MM_EKKO_SUB...., ARV_MM_EKKO_WRI.... ARV_MM_EKKO_DEL..... 
    ARV_MM_EKKO_STO.... If one of the steps fails, then everything is rolled back, hence nothing is archived, the record is still in your database. In this case use the jobs spool and joblogs to find out what happend.
    http://www.sap-img.com/materials/how-can-we-delete-purchase-requisition.htm
    Regards,
    Ashok

  • Hi Guys, i mistakenly synced my iphone and all my email contacts appears in my contacts list. its mixed up. can someone please assist me on how to delete the email address ONLY?

    hi Guys, i mistakenly synced my iphone and all my email contacts appears in my contacts list. its mixed up. can someone please assist me on how to delete the email address ONLY?

    Don't understand your problem... Contacts sync with a compatible address book or cloud service. Contact records can contain names, addresses, phone numbers, e-mail addresses, notes, or any combination of these. If you have records you don't want in your address book that you don't want in your contacts, then segregate them into groups in your address book and only sync the group(s) you want. If you don't want them there at all, then delete them.

Maybe you are looking for

  • Paid $60 - for a phone number rather than a subscr...

    Hi, first a quick rant: I'm an EXTREMELY frustrated new user. I have spent the last hour trying to figure out what I just purchased and what I can do to get an explaination, but whoever created this website did so without a new user in mind. Quickly:

  • Can't get sound to play using audio line in

    I am trying to play audio from my iPhone by connecting mini plug cable to the headphone jack and the audio line-in mini plug.  The input level indicator in System Preferences > Sound is showing that audio is playing but I don't hear sound.  I do have

  • Different currency posted to a Company Code

    Hi SAP Gurus, I have a issue, where the documents are posted with different currency. Issue: Program(RFKK_MA_SCHEDULER) has run and posted few documents in different currency then the original. For my company code 1234 and GL Acct XXX(Post automatica

  • How to get rid of hidden partitions display in Disk Utility?

    Running Snow Leopard I used the Terminal (defaults write com.apple.DiskUtility DUDebugMenuEnabled 1) to enable the Disk Utility Debug Menu. I then turned on the Show Every Partition so I could see the hidden partitions (but grayed out) in the disk/vo

  • Maximum number of proceses

    Hi Experts, How to find what is the maximum number of processes configured on instance. spfile has the parameter, is there any query which can return same? v$process and v$session seems will not help much. Please suggest. Regards - Neuron