Delete entries in /SAPAPO/POSMAPN with /SAPAPO/SDORDER_DEL

Hi Guys,
we´re having many orders in table //POSMAPN that are not existing in liveCache.
We assume that these are obsolete orders that can be deleted with report //SDORDER_DEL.
My question:
What is the prerequisite for orders being deleted from //POSMAPN with //SDORDER_DEL?
Or in other words: Which entries in //POSMAPN are considered as "obsolete" by //SDORDER_DEL?
Thanks a lot for your help.
Andreas

Hello Andreas,
When you run the /SAPAPO/SDORDER_DEL program, you should run the program to delete the orders from both Live Cache and Database ( see the 2nd tab on the selection screen of this program). This way you can ensure that it is deleted properly. Otherwise, when you run //CCR or //SDRQCR21 it only checks the livecache. Since, it has already been deleted in your case, you can give it a try to see if you can delete the orders from DB using option "Delete from DB" ( see the 1st tab).
Also, usually the order gets disappeared from LC once the order is PGIed, however a bit of information is still available on APO side and thats where this program would delete it to counter that. The reason why the order line info is still stored in APO is due to the fact that the order lines can always be reverse PGIed and the delivery can also be deleted. So, it is a wise option to run this program by providing the Period in the selection screen which is usually the MBDAT and as a regular practice you can provide a date range that is less than 90 days or so.
Hope this helps
Babu Kilari

Similar Messages

  • How to delete entries in the T030 table with LSMW?

    Hi all,
    I need to delete 600 entries from T030 table (Fix account table), Tcode OBYG, and I want to use a legacy for this,
    but I don´t know how or if is possible delete entries from a table with a legacy.
    Thanks in advance!

    You Can Use SCAT instead.

  • How to replace TLB order in APO (/sapapo/snptlb) with external number

    Hi All,
    I am trying to replace TLB order (ex. APO-0001) created in transaction /sapapo/snptlb with an external number generated by me
    (ex. test-123). Can anyone suggest an FM or anymethod or process for the same.
    Win full points by answering this simple question !!
    Thanks - Chandan

    Dear Chandan
    You can make the settings in SPRO->APO->SNP->Basic setting-> Maintain Number Ranges for orders . Maintain the number ranage and Tick it as External.
    When you Run TLB, You can provide the external number.

  • Description of jobs defined with /sapapo/mc8e

    Hello,
    Requirement is to maintain description of Jobs defined with /sapapo/mc8e in multiple languages.
    I checked table /SAPAPO/TSPLBT and there I can see Language Key field as well but in front end while defining job using /sapapo/mc8e, I could not find any option of defining description in multiple languages.
    Quick response from you all APO masters will be appriciated.
    Thanks and regards,
    Devang

    Hello Manimaran,
    Thank you for your prompt reply.
    As you mentioned, we can maintain description directly in table but I am not sure if that will be the correct way as maintaining values directly in table may result into inconsistencies.
    As Language Key is available in table /SAPAPO/TSPLBT, my guess is some option should be available in front end as well to maintain description in multiple languages. And I am not finding that option in job maintenance transactions.
    Hope I was able to explain my concerns.
    Thanks and regards,
    Devang

  • Delete entries from the table

    Hi folks,
    I have delete program to delete entries from a custom table and has only one feld in it.
    tables: ZABC
    selection-screen begin of block B1 with frame title text-110.
    select-options: P_KOSTL for ZABC-KOSTL.
    selection-screen end of block B1.
    delete from ZABC where KOSTL in P_KOSTL.
    Upon executing I am entering certain cost center ids on the selection screen to delete them from the table.It did not work.
    what is it I am missing?
    Thanks,
    SK

    Hi,
    Try this sample code..Replace ZABC with your table..
    TABLES: ZABC.
    selection-screen begin of block B1 with frame title text-110.
    select-options: P_KOSTL for ZABC-KOSTL.
    selection-screen end of block B1.
    START-OF-SELECTION.
    * Delete the records from the table.
    DELETE FROM ZABC where KOSTL IN P_KOSTL[ ].  " [] for the select-options.
    IF sy-subrc <> 0.
      ROLLBACK WORK.
    ELSE.
      COMMIT WORK.
    ENDIF.
    Thanks,
    Naren

  • Delete data from DSO only with a part of the key

    Hi experts,
    I have a DSO with 9 key fields and i want to delete some entrys. Our source system only provides 2 fields of the key. My problem is, that the BI is not able to delete from DSO unless I have the full key.
    Now I want to get the rest of the key fields from the active table of the DSO. Can sombody help me please with the ABAP Code? Or is there another possibility?
    I already found this thred in SDN but this is for BW 3.5:
    Delete data from ODS with only part of the key
    Thanks
    Ralf

    Ralf,
    the thread pointed out by you is for passing deletion entries to the DSO / target using the deletion entries .. namely recordmode = D.
    Are you looking at deleting data from the DSO as a one time activity or you want to handle the same using a start / end routine ...? and pass deletion entries to other data targets which get the data from this DSO ?
    Arun

  • Is there any BAPI or function module  to delete entries from a table (VBAK)

    Hi Everybody,
    this is my first thread in SDN...
    my problem follows...
    A report is be created that selects all sales orders created by e-Sales that are more than 20 minutes old and still have a delivery block:
    tables:
    VBAK     sales document: header data
    selection fields:
    VBAK-LIFSK      &#8800;     <BLANK>
    VBAK-ERNAM     =     userID used by e-Sales / IVE
              (EP-BATCH / EAI-BATCH)
    VBAK-ERDAT      <=     Current system Date
    VBAK-ERZET     <=     Current system Time - 20 minutes
    These orders should be deleted from SAP system.
    This report should be scheduled to run regularly every 10 minutes.
    my doubt : is ther any BAPI or Function module to delete entries from a standard table...if no what is the way to delete the enteries from a std table...
    best replies will be rewarded....
    regards
    Reddy

    Hi Vasanth ,
    thanks for your reply.
    i tried in the same manner what u mentioned.
    but how to pass only one parameter to the functionmodule..
    here in this case we have to pass only update flag as 'D'..
    i did the same it giving dump..
    An exception occurred that is explained in detail below.                          
    The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was      
      not caught and                                                                   
    therefore caused a runtime error.                                                 
    The reason for the exception is:                                                  
    The call to the function module "BAPI_SALESORDER_CHANGE" is incorrect:                                                                               
    In the function module interface, you can specify only                            
    fields of a specific type and length under "ORDER_HEADER_INX".                    
    Although the currently specified field                                            
    "INT_ORDER_HEADER_INX" is the correct type, its length is incorrect.              
    my pgm :
    *& Report  YNEW_ORDER_DELETION
    REPORT  ynew_order_deletion.
    TABLES:vbak.
    PARAMETERS:
         p_lifsk LIKE vbak-lifsk DEFAULT '02'.
    SELECT-OPTIONS:
       s_lifsk FOR vbak-lifsk DEFAULT '10',
        s_ernam FOR vbak-ernam,
        s_erdat FOR vbak-erdat,"DEFAULT sy-datum.
        s_erzet FOR sy-uzeit.
    *PARAMETERS:
    p_erzet LIKE sy-uzeit.
       s_erdat like vbak-erdat,
       s_erzet like vbak-erzet.
    DATA:
       BEGIN OF int_final OCCURS 0,
            w_vbeln TYPE vbak-vbeln,
       END OF int_final.
    DATA:
      int_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    DATA: int_order_header_inx LIKE bapisditmx OCCURS 0 WITH HEADER LINE.
    DATA:
      wf_time TYPE sy-uzeit.
    INITIALIZATION.
      s_ernam-low = 'KULKARMA'.
      s_ernam-sign = 'I'.
      s_ernam-option = 'EQ'.
      APPEND s_ernam.
    s_ernam-low = 'EAI-BATCH'.
    s_ernam-sign = 'I'.
    s_ernam-option = 'EQ'.
    APPEND s_ernam.
    wf_time = sy-uzeit - 1200.
    p_erzet = sy-uzeit - 1200.
    p_erzet-low = wf_time.
    APPEND s_erzet.
      int_order_header_inx-updateflag = 'D'.
      APPEND int_order_header_inx.
    START-OF-SELECTION.
      SELECT vbeln FROM vbak
                       INTO TABLE int_final
                       WHERE lifsk EQ p_lifsk
                         AND ernam IN s_ernam
                         AND erdat IN s_erdat
                         AND erzet IN s_erzet.
      IF sy-subrc = 0.
        LOOP AT int_final.
          CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
            EXPORTING
              salesdocument         = int_final-w_vbeln
      ORDER_HEADER_IN             =
        order_header_inx            = int_order_header_inx
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      NO_STATUS_BUF_INIT          = ' '
            TABLES
              return                      = int_return
      ORDER_ITEM_IN               =
      ORDER_ITEM_INX              =
      PARTNERS                    =
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      SCHEDULE_LINES              =
      SCHEDULE_LINESX             =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
        ENDLOOP.
        LOOP AT int_return.
          WRITE:/ int_return-type,
                  int_return-id,
                  int_return-number,
                  int_return-message.
        ENDLOOP.
      ENDIF.
    please help me ..its a very urgent issue to be solved...
    am waiting for ur reply...
    regards
    gangareddy

  • Delete entry or change entry in sap table

    Hi Gurus,
    i want to change or delete entry in VBEP.
    points sure!
    Rahul

    hi guys ,
    its very easy ,
    go for se16 , fetch all the records which are required to delete ( use only se16 lay out)
    after fetching the records just enter ' /H ' in the command bar
    and then double click on any of the enter , then u fill go to debugging screeen and then just press F7
    u will find the following code
    form set_status_val tables ntab structure x031l
                        using code name next for_lines.
      field-symbols: .
      refresh exclude_tab.
      if code = 'SHOW'.
        set titlebar 'TAB' with name 'anzeigen'(100).
      elseif code = 'EDIT'.
        set titlebar 'TAB' with name 'ändern'(101).
      elseif code = 'INSR'.
        set titlebar 'TAB' with name 'einfügen'(102).
      elseif code = 'ANVO'.
        set titlebar 'TAB' with name 'einfügen'(102).
      elseif code = 'DELE'.
    then just click on CODE and pass value as  DELE and press F8
    AND THEN U CAN DELETE ALL THE ENTRIES

  • Delete entries over 1 month old in parent  and child tables

    Hi guys,
    Im new to oracle (2days old) and im struggling to find out how to delete all entries over 1 month old in a database but also delete entries from the child table. I have read about delete cascading etc but im really strugging at the moment. Any tip or ideas? thank you

    You just need to delete data in parent table using the right WHERE clause that requires some timestamp column that stores data age. If the foreign key constraint is created with ON DELETE CASCADE child rows are automatically deleted.
    Assuming P is the parent table and C the child table and the timestamp column is stored in the parent table here is an example.
    SQL> create table p(px int primary key, d date);
    Table created.
    SQL> create table  c(cx int, cy int references p on delete cascade);
    Table created.
    SQL>
    SQL> insert into p values(1, '01/01/2011');
    1 row created.
    SQL> insert into p values(2, '15/01/2011');
    1 row created.
    SQL> insert into p values(3, '31/01/2011');
    1 row created.
    SQL> insert into c values(10,1);
    1 row created.
    SQL> insert into c values(20,2);
    1 row created.
    SQL> insert into c values(30,3);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>
    SQL> delete p where months_between(sysdate, d) >= 1;
    2 rows deleted.
    SQL>
    SQL> select * from p;
            PX D
             3 31-01-2011
    SQL> select * from c;
            CX         CY
            30          3
    SQL>Edited by: P. Forstmann on 15 févr. 2011 13:45

  • Source system appearing in BI folder : Not able to delete entry RSBASIDOC

    Hi all,
    Iam creating source system connection from ECC to BI system.
    But the source system appearing in BI folder all the time, i found one note 1087980 and tried deleting an entry with SRCTYPE = M from RSBASIDOC table with FM RSAP_BIW_DISCONNECT , but the system shows error message OTHER_ERROR and the entry does not get deleted.
    For this SAP recommended to check a valid RFC connection between ECC and BI system , i have checked it and the RFCs are working fine for it also.
    Please help.
    Regards,
    Akash.

    follow this steps:
    In the source sytem
    SE37 e launch the FM RSAP_BIW_DISCONNECT
    you will find the BIW and OLTP log on the RSBASIDOC
    So run the FM.
    IF you find the OTHER_ERROR, may you have to check the RFC connection. (If the source system was been refreshed, you have to create a RFC to PROD).
    You should encounter this error ( Not able to delete entry RSBASIDOC), when you try to restore the DS: in this case infact, is the IDENTIFIER (TSPREFIX) that creates problem (so you have to delete the relevant entry from the table).
    CIao,
    Cristian

  • When using a chart in Pages, the first zero is deleted in any number beginning with a zero

    When using a chart in Pages, the first zero is deleted in any number beginning with a zero (for example, 055). How do I stop this?

    The leading zero in the value 55 is unnecessary, so Numbers eliminates it for cells formatted as Number or Automatic. A cell formatted as Text prior to making the entry will take whatever you type into it and keep it as entered. A cell formatted as Numeral System will display as many places as you tell it to, and will add zeros as necessary without your even having to type them in.
    Jerry

  • Oraphan(deleted) entries in the v$archived_log

    1)why I have oraphan(deleted) entries in the v$archived_log
    77338 04-28-2013 22:10:04 04-28-2013 22:10:39
    77489 04-29-2013 18:07:21 04-29-2013 18:07:27
    77489 04-29-2013 18:07:21 04-29-2013 18:07:27
    1 04-30-2013 16:35:28 05-01-2013 08:47:20
    1 04-30-2013 16:35:28 05-01-2013 08:47:20
    5279 05-08-2013 00:05:12 05-08-2013 05:14:19
    5280 05-08-2013 05:14:19 05-08-2013 11:36:16
    5280 05-08-2013 05:14:19 05-08-2013 11:36:16
    I checked my physical stand is in synced with primary.I have a script to monitor arch gap which grab max seq.So in this case it grabs (77497 29 apr) instead of (5280 may 8 2013)

    Thanks a lot to HC and CKPT for finding time and replying me.
    CKPT I really like your article.I think I am facing same issue.
    We have to reset primary on 30 april 2013.
    DEVL PRIMARY          77490     5474 09-MAY/00:06      ####
    Primary:
    select distinct RESETLOGS_CHANGE#, RESETLOGS_TIME from v$archived_log order by RESETLOGS_TIME desc;
    RESETLOGS_CHANGE# RESETLOGS_TIME
    2.2701E+10 05-01-2013 08:47:20
    2.2701E+10 04-30-2013 16:35:28
    1 08-28-2012 16:34:30
    SQL> select distinct RESETLOGS_CHANGE#, RESETLOGS_TIME from v$archived_log order by RESETLOGS_TIME desc;
    RESETLOGS_CHANGE# RESETLOGS_TIME
    2.2701E+10 05-01-2013 08:47:20
    2.2701E+10 04-30-2013 16:35:28
    1 08-28-2012 16:34:30
    SQL> select max(sequence#) from v$archived_log;
    MAX(SEQUENCE#)
    77490
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 5471
    Next log sequence to archive 5476
    Current log sequence 5476
    STANDBY
    SQL> select max(sequence#) from v$archived_log where applied='YES';
    MAX(SEQUENCE#)
    5474

  • OB08- Error while deleting entries.

    Hi All,
    I am getting an error while deleting some entires in OB08.
    ERROR MESSAGE: Entry CAD/EUR (28.08.09), exchange rate type EURX cannot be deleted.
    Steps i followed to delete the entires are
    selected some 30 entries and clicked the edit tab and delete function.
    system has given a message box with number of deleted entries 30 after that i clicked SAVE button. Once i clicked the save button i got the above error message.
    Please advice what is error about and how to get rid of this error. Why the error message coming only for this currency combination.
    Thanks in advance.
    Regards,
    VK

    Hi Tarun,
    Thanks for your reply.
    But when i try to delete all the entries one by one i could, but this error comes only when i try as a bunch of entires.
    Please advice why the differences.
    Regards,
    Vimal

  • Removing the Delete Entry (Shift+F2) in SM58 through authorization object

    Dear All,
    Please guide me how to remove the delete entry (Shift+F2) from the following tcode SM58, SMQ1, LBWQ.
    The above said tcode having the S_ADMI_FCD with NADM check.
    I know to edit or copy the standard reports which is used to do the activity.
    But I would like to implement this to the functional Users only to avoid deleting all the TRFC logs.
    Please suggest ASAP.
    Cheers..
    Khadar

    Hi,
    I Appreciate your response.
    Actually my issue was, once you execute the SM58 it will list all the TRFC logs with the criteria of all or mentioned users.
    There you could find the delete icon and in the Edit menu --> Delete Entry (Shift+F2).
    I want to disable this function for all the users except System Administrators.
    Cheers..
    Khadar

  • Delete Entrie Transaction Type(YMCR, YMHF )

    Hi Experts,
    I want to delete the complete Trasaction type YMCR, YMHF so that i can again create the copy of it with standard setting and make use of this transaction types. I have tried updating it with Solman_Setup but it is giving Dump while Updating. So is there any way we can Delete Entrie transaction type and create Fresh Ones.
    I require this beacuse i dont have any names left to create it into the system. i have Z, Y, ZZ ,YY . So delete is necessary.
    Regards,
    Shashank Sahu

    Hi Shashank,
    if you perform the "hard delete" described by Suhel, please be Aware of the already (under These Transaction types) created tickets! The delete Action is not possible of there still tickets under These Transaction types!
    Regards,
    Robert

Maybe you are looking for

  • MacBook Pro 13 early 2011 repeated unexpected shut down

    This machine has had problems for 6 months or so, spontaneous shutdowns and automatic restarts.  It's been back to Apple twice: first time a cable change, the second a new logic board.  The HD and memory have been changed.  SMC has been reset.  It's

  • Create Dynaset Error

    Following code run in vb no problem: sql = "Select * from Table_name for update" set OraDynaset = OraDatabase.CreateDynaset(sql, 0&) OraDynaset.Edit But run exe the error message is "OIP-04117 Not an updatable set" Why? Help Me!

  • Cs4 as3 preloader

    Hi, Is there a surestarter preloader in AS3 with CS4? Meaning here, showing a progress bar or percentage value before loading the main swf, right away at the start of the  loading. I tried 3 different versions: 1- I used the code from a video (and ac

  • How to display BIRT report on Tomcat server

    Hi, I am using BIRT to generates the report, i am having a BIRT file called Customers.rptdesign that i want to execute on Tomcat server, but not able to execute. On eclipse brouser its running very well and displaying reports in brouser but not in To

  • Internet Clients & Mac Enrollment

    Hello, I'm having some issues with Internet Clients and Mac Enrollment, the latter via both the Intranet and Internet.  Going over all the certificate steps again, the only thing I didn't do is have two FQDN for the Web Cert since I'm using the same