Delete if not exists

Hi,
can you abap experts show me how I to implement
such a requirement ?
LOOP AT lt_it_li INTO w_int_li.
CALL FUNCTION 'Z_EXPORT_PERS'
  EXPORTING
    im_pernr       = w_int_li-IPPERS
    im_datum       = w_int_li-EVDAT
IMPORTING
   EX_NOYRS       = le_noyrs
   EX_ENTRY       = le_entry
   EX_ORGEH       = le_orgeh
   EX_SUBRC       = le_subrc.
  IF sy-subrc EQ 1.
    MESSAGE e001(zehs_fh_kb).
  ELSEIF sy-subrc EQ 2.
    MESSAGE e002(zehs_fh_kb).
  ELSEIF sy-subrc EQ 9.
    MESSAGE e003(zehs_fh_kb).
  ENDIF.
IF THE RETRIEVED le_orgeh is
AVAILABLE IN SELECT-OPTIONS FIELD s_orgeh
keep it remaining ELSE delete this row
IN  lt_it_li
ENDLOOP.

Hi
LOOP AT LT_IT_LI INTO W_INT_LI.
  CALL FUNCTION 'Z_EXPORT_PERS'
       EXPORTING
            IM_PERNR = W_INT_LI-IPPERS
            IM_DATUM = W_INT_LI-EVDAT
       IMPORTING
            EX_NOYRS = LE_NOYRS
            EX_ENTRY = LE_ENTRY
            EX_ORGEH = LE_ORGEH
            EX_SUBRC = LE_SUBRC.
  IF SY-SUBRC EQ 1.
    MESSAGE E001(ZEHS_FH_KB).
  ELSEIF SY-SUBRC EQ 2.
    MESSAGE E002(ZEHS_FH_KB).
  ELSEIF SY-SUBRC EQ 9.
    MESSAGE E003(ZEHS_FH_KB).
  ENDIF.
  IF NOT LE_ORGEH IN S_ORGEH.
    DELETE LT_IT_LI.
  ENDIF.
ENDLOOP.
or
LOOP AT LT_IT_LI INTO W_INT_LI.
  CALL FUNCTION 'Z_EXPORT_PERS'
       EXPORTING
            IM_PERNR = W_INT_LI-IPPERS
            IM_DATUM = W_INT_LI-EVDAT
       IMPORTING
            EX_NOYRS = LE_NOYRS
            EX_ENTRY = LE_ENTRY
            EX_ORGEH = LE_ORGEH
            EX_SUBRC = LE_SUBRC.
  IF SY-SUBRC EQ 1.
    MESSAGE E001(ZEHS_FH_KB).
  ELSEIF SY-SUBRC EQ 2.
    MESSAGE E002(ZEHS_FH_KB).
  ELSEIF SY-SUBRC EQ 9.
    MESSAGE E003(ZEHS_FH_KB).
  ENDIF.
  IF LE_ORGEH IN S_ORGEH.
     do something....... 
  ELSE. 
   DELETE LT_IT_LI.
  ENDIF.
ENDLOOP.
Max

Similar Messages

  • Error 1075: The dependency service does not exist or has been marked for deletion

    Windows 7 Pro laptop will not connect to corporate domain. Multiple identical twin laptops have no problem.
    Best suggestion so far has been to leave the domain and rejoin it, BUT the relevant buttons are grayed out and the comment says "Note: The identification of the computer cannot be changed because:- The Workstation service is not running. Open the Services
    snap-in (services.msc) to ensure it is running and set its Startup Type as "Automatic"."
    In services.msc the Workstation service is already set to Automatic but is not started. When I try to start it manually the response is "Windows could not start the Workstation service on Local Computer." and then "Error 1075: The dependency service does
    not exist or has been marked for deletion."
    Rebooting gets me nowhere.
    In all other respects that laptop appears fine and can connect to the Internet, but NOT to the network. I have brought it and a twin laptop home to try on my domestic network and get the same results.
    Any ideas, please?

    Hi,
    Let us go to services.msc and navigate to Network Store Interface Service. Please check whether this service has been set to Automatic and turned on.
    Kim Zhou
    TechNet Community Support

  • Error on deleting page group (Path ID does not exist)

    Hello
    I'd like to delete a page group of my project. Normally I have no problem with that. But sometimes the following exception is thrown and the group can not be deleted:
    An unexpected error has occurred (WWS-32100)
    ORA-1: User-Defined Exception (WWC-36000)
    An unexpected error occurred: User-Defined Exception (WWC-44082)
    An unexpected error occurred: User-Defined Exception (WWC-44082)
    An unexpected error occurred: User-Defined Exception (WWC-44082)
    Error while deleting page. (WWC-44130)
    Path ID does not exist. (WWC-50001)
    Can anybody help me?
    Chrigel

    hi chrigel,
    i searched for the problem and found a few references to it in our bug database. i strongly suggest to open a TAR with support to analyze the problem. they will see if a patch is available for this problem or open a new bug.
    thanks,
    christian

  • While deleting query it shows error: errors: components (ver A)do not exist

    Hello All,
    when i delete the query from Bex Query designer i am getting the below error but its working fine with TC RZDELETE.
    SAP BI AddON 7.X,Support Package 11,Revision 634
    Status Messages
    errors: components 4lsxxxx (version a) do not exist on the database
    errors: Element 4lsxxxx (version b) do not exist on the database
    errors: components 4lsxxxx (version b) do not exist on the database
    when i double click the message it shows
    Diagnosis
    You have attempted to open query 4LT1JF8BXKJMK73TNIY15TRF0 from the Query Designer. However, this query does not exist in the database in the system to which you have made a connection.
    System Response
    Opening the query was terminated.
    Procedure
    Make sure that you have connected to the correct BW system. Note: The query may have been deleted by another user.
    Edited by: Ranga123 on May 18, 2011 3:00 PM

    Hi,
    >lower support package 5 its not showing the error message
    :-D
    SAP develops sometime bull ****.
    => there is no reason to show this message in the front end.
    => Sometimes I don't understand SAP procedure.
    Nobody is interesting in this message. I have deleted this query. It's normally that this query isn't on the server now.
    => I know this message since years.
    => but nobody create a OSS message, or SAP corrects this feature.
    Sven

  • "Transfer structure  does not exist" while deleting data from a DSO

    Hello experts,
    while deleting data from a DSO I get the following messages:
    @5B\QInformation@     Database table /BIC/AAKIVO1400 was deleted and recreated
    @5C\QError@     Transfer structure  does not exist
    When I try it twice process works without any problems. I get then the following msgs:
    @5B\QInformation@     InfoCube / DataStore object "AKIVO14" contains no data (yet)
    @5B\QInformation@     Database table /BIC/AAKIVO1400 was deleted and recreated
    So I think the first deletion works but ended with errors. What could be the reason?

    Please check if data from new and chage log table is also deleted.
    For the error message : Do you have 3.5 flow ? Check your transfer structure , if it is active and then again try to right click and delete data from DSO.
    - Monika

  • The material does not exist in plant or flagged for deletion

    Hi All,
    I have done the integration of R3 back end with SRM system (SRM 5.0) Classic scenario is working fine.
    In the direct Material Procurement I get an error message that "the material does not exist in plant or flagged for deletion".
    I checked R/3 side material is active only and I have assigned plant in extend attributes.
    Can you please help me to resolve this problem..
    Thanks
    Ravi

    Hi Ravi
    check you validit date from and to for that material in comm_product table.* if it is valid you can do shopping or else you cant.
    regards
    Muthu

  • "ORA-21700: object does not exist or is marked for delete" select from ADT

    Posted this in OLAP section as well, but since this is Object technology, I thought I would repeat it here. Sorry about the duplication.
    BTW, I'm using Oracle9i 9.2.0.4.1.
    I'm trying to create a script that can automate the process of generating abstract data types for use in an OLAP_TABLE function. I'm following the examples in the documentation. Everything runs great the FIRST time I run my script, but when I drop my types and re-create them, when I run the next SELECT statement against the OLAP_TABLE function, I get:
    ERROR at line 1:
    ORA-21700: object does not exist or is marked for delete
    My script drops the ADTs before creating, but somehow they are not REALLY being dropped.
    SET ECHO ON
    SET SERVEROUT ON
    DROP TYPE ts_table_6;
    DROP TYPE ts_row6;
    CREATE TYPE ts_row6 AS OBJECT(
    CONJ2002 VARCHAR2(400),
    CONJ2002_DATA number(16),
    PERIOD VARCHAR2(10),
    PERIOD_NAME VARCHAR2(20));
    CREATE TYPE ts_table_6 AS TABLE OF ts_row6;
    SELECT CONJ2002, period, period_name, conj2002_data FROM TABLE(OLAP_TABLE(
    'REFVLMTA DURATION QUERY',
    'ts_table_6',
    'limit CONJ2002 to first 3',
    'MEASURE CONJ2002_DATA from CONJ2002.DATA
    DIMENSION CONJ2002 from CONJ2002
    DIMENSION PERIOD from PERIOD WITH
    ATTRIBUTE PERIOD_NAME from period.name'));
    Again, it works the first time, but not the second time. I need to bump up the ADT names to ts_row7 and ts_table_7. SQL Plus says the types are being dropped.
    Any ideas?
    Dan Vlamis [email protected]

    Hi Dan
    What append if you do a connect between the DROP and the CREATE statements?
    Chris

  • Delete exposure in THMEX and FTREX12 - error "Transaction does not exist"

    I have transferred by error an exposure (using TFREX12) to HM. In THMEX I have deleted the newly created exposure that has a transaction Nber. Then in TFREX12 I try to reverse this transfer by using in the menu Position the function "Reverse transfer" but get an error message "Transaction xxx does not exist". How can it be deleted so that I can transfer the exposure to the appropriate Hedge Plan??
    Thanks
    G.

    Hi,
    correct procedure is to reverse transfer in FTREX12 without deleting the exposure in THMEX. If you deleted it in THMEX first, then the error is justified. To solve the problem, you can manually create an exposure with the same transaction directly in THMEX, then transfer reversal should be possible.
    Rgds,
    Tomislav

  • Error System "Item does not exist. It may have been deleted by another user"

    Error System "Item does not exist. It may have been deleted by another user" in sharepoint 2010
    This is problem show when User new item in List . User open new item page about 3 pages and User save each one page when page save complete , User will save another page.
    Sometime User can not save item , it show that error
    This List not have workflow and code
    Please let me know what is the issue ?

    Hi,
    Greetings. THis is a known issue and see the links for resolution
    http://support.microsoft.com/kb/972225
    http://social.technet.microsoft.com/Forums/office/en-US/638e4aa0-527c-4b20-a899-a0cf181983ec/no-item-exists-at-it-may-have-been-deleted-or-renamed-by-another-user?forum=sharepointadminlegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • SP2013: List does not exist / The page you selected contains a list that does not exist. It may have been deleted by another user

    There are dozens of entries regarding "
    List does not exist / The page you selected
    contains a list that does not exist. It may have been deleted by another user" and none of them are really SP 2013 so i thought I would create this entry. 
    I am getting the error above after creating a simple list with 4 columns.  the list is created during a new site definition activation but when I click on my list, I get the error above.  the list works if I deactivate the feature and re-activate
    it.  but has the error whenever the new site definition is created.  
    Has anybody encountered this issue on SP 2013?

    Hi,
    For your issue, there are plenty of possible reasons offered when we search this issue online.
    Here are similar issue posts, check whether they are helpful:
    http://sharepoint.stackexchange.com/questions/98239/list-does-not-exist-error-when-opening-the-views
    http://sharepoint2u.com/?p=56https://shareyourpoint.wordpress.com/2012/04/12/list-does-not-exist-the-page-you-selected-contains-a-list-that-does-not-exist-it-may-have-been-deleted-by-another-user-sharepoint-2010-error/
    http://spnovice.blogspot.com/2012/10/list-does-not-exist-or-does-it.html
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • ORA-00959: tablespace '_$deleted$3$0' does not exist

    One of our Backup Database is acting up; one of my colleagues babysits it, but I just stumbled upon something strange. The error below keeps popping up whenever I try and create a new table.
    ERROR at line 8:
    ORA-00959: tablespace '_$deleted$3$0' does not existI have tried looking up the error on MOS and google without any luck.
    Regards,
    Phiri

    phiri,
    Here is the error illustration;
    $ sqlplus sys/password@opttest as sysdba
    SQL*Plus: Release 10.2.0.4.0 - Production on Fri Aug 20 14:51:09 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create tablespace ogan_deneme
      2  datafile '/backup/ogan_1.dbf' size 200M
      3  extent management local;
    Tablespace created.
    SQL> drop user ogan cascade;
    User dropped.
    SQL> create user ogan identified by password default tablespace ogan_deneme;
    User created.
    SQL> grant connect, resource to ogan;
    Grant succeeded.
    SQL> drop tablespace ogan_deneme including contents and datafiles;
    Tablespace dropped.
    SQL> conn ogan/password@opttest
    Connected.
    SQL> create table ogan_deneme as select * from all_objects;
    create table ogan_deneme as select * from all_objects
    ERROR at line 1:
    ORA-00959: tablespace 'OGAN_DENEME' does not existSo in your case as you have seen, your tablespace is that _$deleted$3$0 one.
    Ogan
    Edited by: Ogan Ozdogan on 20.Ağu.2010 14:55
    Here is the solution;
    SQL> conn / as sysdba
    Connected.
    SQL> alter user ogan default tablespace codesd;
    User altered.
    SQL> conn ogan/password@opttest
    Connected.
    SQL> create table ogan_deneme as select * from all_objects;
    Table created.Hope That Helps.
    Ogan

  • TS4204 I need to delete a calendar event that transfered to my 4S from my Droid.  Also this event occurs yearly.  When I open this event, the edit button in the upper right corner does not exist so I can't delete it.  Any suggestions to get rid of it? Sur

    I need to delete a calendar event that transfered to my 4S from my Droid phone. This event occurs yearly.  When I open this event, the edit button that normally appears in the upper right corner does not exist so I can't delete it.  Any suggestions on how to get rid of it?

    uninstalled firefox ....deleted all files still remaining under mozilla firefox directory in program files ... to avoid having to reprogram all my settings, reisntall all addons as well .. I did not remove anything from mozilla firefox that is stored in either appdata or under the windows users directory (if any)
    ... the as suggested reinstalled the latest version of the firefox browser using the link you provided in the email ..; tested and several issues still remain present and unresolved ....
    so please this is urgent or I will have to jump browsers and start using chrome .. because we work 14 hours a day 6 (sometimes 7) days a week, to get ready for the launch of our newest venture and we cannot lose that much days on browser related issues ... so please instead of putting me through week long step process .. of do this .. do that .. can you please actually look into the issue from your end .. I use firefox for so many, many years thta I deserve this kind of support .. thnx Robert

  • Start routine: DELETE VARIABLE DOES NOT EXIST

    Dear Friends,
    I have written the below code in the start routine.
    LOOP AT DATA_PACKAGE.
    IF DATA_PACKAGE-/BIC/ZSREGIO <> AMR.
    DELETE DATA_PACKAGE.
    ENDIF.
    ENDLOOP.
    when i check for syntax errors, it gives message Delete variable does not exist.
    Need your earliest help.
    Kind Regards
    Paddy

    hi Paddy,
    seems we forget quote
    DELETE DATA_PACKAGE WHERE /BIC/ZSREGIO <> 'AMR'.
    where did you put the code ?
    there is 'insert your code here ...', put your code after that line.
    if you are using BI 7.0, use source_package :
          MONITOR_REC     TYPE rstmonitor.
    $$ begin of routine - insert your code only below this line        -
    ... "insert your code here
    DELETE SOURCE_PACKAGE WHERE /BIC/ZSREGIO <> 'AMR'.
    hope this helps.

  • Check Point VPN-1 Securemote service causes Error 1075: The dependency service does not exist or has been marked for deletion

    Has anyone ever managed to solve this one?
    We have a problem on Windows 7 SP1 32bit systems.
    when we try to start the Check Point VPN-1 Securemote service we get this message:
    Error 1075: The dependency service does not exist or has been marked for deletion
    When we install a clean Windows 7 from an ISO the checkpoint client without any issues
    when we use the same Windows Setup source and install it from SCCM TS - the CheckPoint client doesn't start
    the client we're installing is : CP_SeucRemoteSecureClient_NGX_R30_HFA3
    which is supported for Win7 x86
    other than that there are no special prerequisites for the CheckPoint client. therefore we know the problem is local :/
    we tried to isolate and minimize the cause of the issues by trying to see the differences between a clean installation from ISO and a clean installation from SCCM
    We know for sure the problem is not from SCCM Client, Programs and Features, Updates, Group Policy
    it seems like the configuration is the same but we can't seem to find any online solution about this issue
    any suggestions?
    thanks
    Tamir Levy
    Tamir Levy

    Hi,
    Please check if all the dependencies services are running, if not, please start them:
    DNS Server
    Remote Procedure Call (RPC)
    Netlogon
    Server
    Workstation
    Any error message, please post back.
    You can also check solution in this article:
    http://support.microsoft.com/kb/269375
    Hope these could be helpful.
    Kate Li
    TechNet Community Support

  • Item does not exist. It may have been deleted by another user

    Hi,
    I am getting a strange issue with the error "Item does not exist. It may have been deleted by another user " with the below code which was under "RunWithElevatedPrivileges" in a application page.
    public void test(int requestId)
    SPList list= web.Lists["test"];
    SPListItem lstItem = list.GetItemById(Convert.ToInt32(requestId)); //Error
    But when I test the above code in a console application, it is working fine & I am sure the id exist in the list.
    Can any one help me on this issue!
    Thanks In Advance,
    Kumar.

    Ok.
    Go to the sharepoint list and check the item with id is exist or not?
    Retrieve the data using another column instead of id column.
    Just for testing.
    Check the below way also
    SPQuery query = new SPQuery();
    query.Query = "<Where><Eq><FieldRef Name=\"ID\"></FieldRef><Value Type=\"Integer\">" + id.ToString(CultureInfo.InvariantCulture) + "</Value></Eq></Where>";

Maybe you are looking for

  • Re-package jinitiator with new certdb.txt

    I understand that with the Oracle Application Suite it is possible to repackage the jinitiator (jinit.exe) in order to include the new certdb.txt file to support SSL Forms. Is it possible to do the same with the Developer Server ? It would also help

  • Structure of DBFS file system

    If we configure KM to use a CM repository in DBFS mode, will the files be all stored in a single folder or will the repository manager distribute the files amongst multiple folders? Thanks. Regards, Mel Calucin Bentley Systems

  • Problem in connecting to email

    I cant access my email, even after setting up the mail. The mailbox has been created but doesnt receive mail. It automatically disconnects. Plz help..

  • Problem e-mailing photos––Mail always chooses smallest size

    Hello Mac community! Whenever I try to e-mail a photo (whether selected from iphoto or elsewhere) my Mac Mail program always sends it in a smaller size.  Momentarily the larger size will show up in the e-mail, but then in a flash it becomes small.  T

  • Générateur de Fonction élémentair​e - Fs

    Bonjour, Dans une application, j'utilise la fonction "Générateur de Fonction élémentaire" ( fonction disponible dans Signal Processing/ Waveform Génération). Cette fonction possèdent une entrée cluster qui contient la fréquence d'échantillonnage ains