Deleting Child records which are not associated to any parent

Hi
We have seen that in the application though the Activty records has been deleted the child records like sample dropped and the roduct details has remained in the system. This happened cos in R18 when contact was deleted activty got deleted but the Activity child records remained in the application.
we found that child records are present by looking into record utilization.
Wanted to know if there is any way to delete these child records from teh application cos we are unable to query for them from UI as well as via webservices.
any pointers would be helpful.
-MR

There is not a reporting subject area or folder available on Books. The workaround we employed was to create a field on the entity that was assigned books and that field was checked when the books were assigned. We are using web services to assign books and the web services also updates the field "Books Assigned". This gives us a way of reporting on that field to see those records without book assigned.

Similar Messages

  • Deletion of Request which are not updated to data target

    hi,
    I want to all PSA data whether it is updated or not In our project this is being done by Using a Process chain, But it is not deleting the request which are not updated to any data target or failed, I have selected both the check boxes
    Only successfully booked requests
    Only requests with errors, not updated in any data target
    but even after selecting this check box it is not deleting the failed request, can any one tell me why it is so.
    Any help in this would be highly appreciated.

    Try to do it without checking any of the checkboxes...
    Regards,
    Luis

  • Join 2 tables which are not related with any primary-foriegn key constraint

    Hello,
    How to join 2 tables which are not related with any primary key foreign key constraint.
    Ex.Consider Table A has 5 columns->A_ID,A_Name,A_Address,A_City,A_Pin(Total 10 rows)
    Table B has 5 columns->B_ID,B_Name,B_Adress,B_City,B_City(Total 30 rows)
    From both the table i want the data,which i need to use in curosr to display finally as "Address Label".
    Both the table are entirely different,but there can be some names of Table A which may come in Table B also,if the name,address and city is also same.That means same person in both the table.
    So finally i want total number of distinct records(distinct data of Table A which is not in B+all the data of table B) to come under Address Label.
    How can i write the select query for this condition?
    Thanks
    Swapna

    Hi, Swapna,
    user11018268 wrote:
    Hello,
    How to join 2 tables which are not related with any primary key foreign key constraint.
    Ex.Consider Table A has 5 columns->A_ID,A_Name,A_Address,A_City,A_Pin(Total 10 rows)
    Table B has 5 columns->B_ID,B_Name,B_Adress,B_City,B_City(Total 30 rows)
    Both the table are entirely different,but there can be some names of Table A which may come in Table B also,if the name,address and city is also same.That means same person in both the table.I think you want a UNION, not a join.
    If you have 10 rows in table_a, and 30 rows in table_b, then
    SELECT       A_ID,          A_Name,     A_Address,     A_City,     A_Pin
    FROM      table_a
    UNION
    SELECT       B_ID,          B_Name,     B_Adress,     B_City,     B_City
    FROM      table_b
    ORDER BY            2,               4          
    ;will produce up to 40 rows; 40 if there are no duplicates. (UNION implies DISTINCT.)
    The corresponding column types should be similar, if not exactly the same.
    There's no problem if A_Name is VARCHAR2 (50) and B_Name is CHAR (30).
    However, there will be a problem if A_ID is a NUMBER and B_ID is a TIMESTAMP.
    You must have the same number of columns in all branches of the UNION.
    If you want an ORDER BY clause, put it at the very end, after the last branch of the UNION.
    You can use positional notation (where 2 means the 2nd column) like I did, or you can use names from the first prong of the UNION (such as A_Name).
    From both the table i want the data,which i need to use in curosr to display finally as "Address Label".
    So finally i want total number of distinct records(distinct data of Table A which is not in B+all the data of table B) to come under Address Label.I'm not sure what your mean about "Address Label".
    Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables, and the exact results (formatted) that you want from that data.
    You can concatenate all 5 columns into one VARCHAR2 column, if you want to.
    You'll probably want to use RPAD (or simillar functions) to make the output line up nicely.
    If any of the columns are not strings, use TO_CHAR to make string versions of them.
    For example:
    SELECT  TO_CHAR (A_ID, '9999999')
         || '   '          -- leave a little space between the left-justified a_id and the right-justified a_name
         || RPAD (A_Name, 25)
         || RPAD (A_Address, 50)
         ...Edited by: Frank Kulash on Nov 14, 2009 10:11 AM

  • I have got a lot of apps, which are not installed on any of my iDevices anymore. is there a possibility to remove all those apps from iTunes without searching which ones are, and which ones aren't installed on one of my iDevices?

    I have got a lot of apps, which are not installed on any of my iDevices anymore. is there a possibility to remove all those apps from iTunes without searching which ones are, and which ones aren't installed on one of my iDevices?

    Assuming all the device(s) have been synced to this computer as its Home computer. The easiest way would be to delete all the apps from iTunes. After which connect your device(s) to the computer (iTunes) and transfer purchases from the device(s) by right click (control click) the device name in the left sidebar and the click transfer purchases. When done only the apps on your device(s) will be in you iTunes library.
    Hope that helps

  • Identify tables which are not used in any access seq.

    Hi
    Need to identify those tables (A500 - A999) which are NOT used in any access sequence (table T682I).
    Not sure how to do this.
    Thanks for the help

    Hi Karen,
    if you don't want to use SE11 and see it on one glance, you could use the following coding:
    DATA: it_t682i TYPE TABLE OF t682i,
          wa_t682i TYPE t682i,
          it_missing TYPE TABLE OF t682i,
          wa_count TYPE kotabnr VALUE 499.
    SELECT * FROM t682i INTO TABLE it_t682i
                  WHERE kvewe = 'A'
                  AND  kotabnr BETWEEN 500 AND 999.
    DO.
      ADD 1 TO wa_count.
      READ TABLE it_t682i INTO wa_t682i
                 WITH KEY kotabnr = wa_count.
      IF sy-subrc <> 0.
        CLEAR wa_t682i.
        MOVE wa_count TO wa_t682i-kotabnr.
        APPEND wa_t682i TO it_missing.
      ENDIF.
      IF wa_count = 999.
        EXIT.
      ENDIF.
    ENDDO.
    BREAK 'your user'.
    The table it_missing is just a quicky solution, you could use a table with just one field or use write to print the result.
    Hope that helps!
    Regards
    Nicola

  • ODI to delete those members which are not present in the source file

    Hi John,
    Using ODI we can delete members by using delete option in the Operation column
    Fine. I would like to delete members from planning which are not there in the source file.
    For e.g if my source file has members A1,A2,A3,and A4 and Planning outline has A1,A2,A3,A4,A5 and A6. I would like to delete only A5 and A6.

    Hi John,
    Its only a one time process. The issue is, we have to concatenate two segments of the COA into one dimension in Planning. But if we concatenate it creates a cartesian product which is not the requirement. Only a particula value of segment 1 are to be joined with segment 2.
    E.g Company 1 is to be joined with Cost center 1.
    Company 2 with Cost center 2
    Company 1 should not get joined with Cost Center 2 and Company 2 with Cost Center1.
    So when we use ERPI and load the first outline it creates all the possibilities of the concatenation. So we would like to delete the unrequired members. If we have the values of the required members in a file, I would like to delete the unrequired members in the planning hierarchy.
    So would like to use the NOT IN function

  • How to delete images from folder which are not in the database

    I am created windows form
    i wont to delete images from the folder where i have stored images but i only want to delete those images which are not in the data base.
    i don't know how it is possible . i have written some code
    private void button1_Click(object sender, EventArgs e)
    string connectionString = "Data Source";
    conn = new SqlConnection(connectionString);
    DataTable dt = new DataTable();
    cmd.Connection = conn;
    cmd.CommandText = "select * from tbl_pro";
    conn.Open();
    SqlDataAdapter da = new SqlDataAdapter(cmd);
    da.Fill(dt);
    int count = Convert.ToInt32( dt.Rows.Count);
    string[] image1 = new string[count];
    for (int i = 0; i < count; i++)
    image1[i] = dt.Rows[i]["Image1"].ToString();
    string[] image2 = new string[count];
    for (int i = 0; i < count; i++)
    image2[i] = dt.Rows[i]["Image2"].ToString();
    var arr = image1.Union(image2).ToArray();
    string[] arrays;
    String dirPath = "G:\\Proj\\";
    arrays = Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories).Select(x => Path.GetFileName(x)).ToArray();
    int b= arrays.Count();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    var del = arrays[j].ToString();
    else
    foreach (var value in del) // ERROR DEL IS NOT IN THE CURRENT CONTEXT
    string filePath = "G:\\Projects\\Images\\"+value;
    File.Delete(filePath);
    here error coming "DEL IS NOT IN THE CURRENT CONTEXT"
    I have to change anything .Will It work alright?
    pls help me
    Sms

    Hi Fresherss,
    Your del is Local Variable, it can't be accessed out of the if statement. you need to declare it as global variable like below. And if you want to collect the string, you could use the List to collect, not a string.  the string will be split to chars
    one by one.
    List<string> del=new List<string>();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    del.Add(arrays[j].ToString());
    else
    foreach (var value in del)
    string filePath = "G:\\Projects\\Images\\" + value;
    File.Delete(filePath);
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Standard Manager executing other programs which are not INCLUDED .

    hello guys,
    We are having eBiz 11.5.9 environment and 9.2.0.6 Database on AIX 5.3 32-bit environment.
    I am new to this client's environment and found that, there are 3 include specialization rules defined for Standard Manager which does not include "Active Responsibilities" program but still this Standard Manager is executing "Active Responsibilities" without any issues.
    How is this possible ???
    Ideally, Standard Manager should only run those 3 included programs ONLY and for rest of the programs which are not assigned to any of the concurrent manager , we should get "INACTIVE/No Manager" message.
    My 2nd question is, when I am running this oracle seeded script $FND_TOP/sql/afrqscm.sql which shows the manager assigned to the perticular request id, it gives the below output,(Below is request id is for "Active Responsibilities")
    ===================================
    SQL> @afrqscm.sql
    Enter request ID : 22035368
    Request 22035368 can be run by the following concurrent managers:
    Running Manager
    20 STANDARD
    0 ALTS
    Below are the active concurrent manager log filenames:
    no rows selected
    ===================================
    In our environment , ALTS is DISABLED manager without having any specialization rules attached to it and its basically a "Backup standard manager".
    I am wondering, what setup is required to have backup concurrent manager like ALTS which will take care of requests in case standard manager goes down ?????
    Ebiz architecture is one Admin/conc/db Tier (Aix 32 bit) and 5 Web nodes ( RHEL Linux 32 bit).
    Thanks,
    Prasad
    Edited by: 881822 on Dec 7, 2011 3:00 AM

    Hi Hussein,
    Thnks for your reply,
    My second doubt is resolved as even though there are no specialization rules assigned to ALTS manager , that means it is exactly the same as that of Standard Manager and will execute all the programs. Below is statement from your mentioned pdf ,
    =========
    Specialize your manager to run only certain kinds of requests. Without specialization rules, a manager accepts requests to start any concurrent program.
    =========
    Regarding your first question, Yes , we do bounce managers once in a month , below is the status of those two conc programs which are INCLUDED in Standard Manager.
    SQL> select 'Concurrent program '||fcp.concurrent_program_name||' is ' ||decode(fcqc.include_flag,'I','included in ','E','excluded from ')||fcqv.user_concurrent_queue_name specialization_rule_details from fnd_concurrent_queues_vl fcqv,fnd_concurrent_queue_content fcqc,fnd_concurrent_programs fcp where fcqv.concurrent_queue_id=fcqc.concurrent_queue_id and fcqc.type_id=fcp.concurrent_program_id and fcp.concurrent_program_name='CPINR080C';
    SPECIALIZATION_RULE_DETAILS
    Concurrent program CPINR080C is included in Standard Manager
    Concurrent program CPINR080C is excluded from TESTPlus General
    SQL> select 'Concurrent program '||fcp.concurrent_program_name||' is ' ||decode(fcqc.include_flag,'I','included in ','E','excluded from ')||fcqv.user_concurrent_queue_name specialization_rule_details from fnd_concurrent_queues_vl fcqv,fnd_concurrent_queue_content fcqc,fnd_concurrent_programs fcp where fcqv.concurrent_queue_id=fcqc.concurrent_queue_id and fcqc.type_id=fcp.concurrent_program_id and fcp.concurrent_program_name='CPDOR270C';
    SPECIALIZATION_RULE_DETAILS
    Concurrent program CPDOR270C is excluded from TESTPlus General
    Concurrent program CPDOR270C is included in Standard Manager
    Thanks,
    Prasad

  • Delete records from tableA which are not in tableB

    Table A contains milions of records which is the best way to delete records from tableA which are not in tableB
    delete from tableA where empno not in (select empno from tableb)
    or
    delete from tableA where empno not exists (select empno from tableb
    where b.empno=a.empno)
    any help

    Hi
    If you can do this, do with this:
    create table tableC
    as select a.*
    from tableA a,
    (select empno from tableA
    minus
    select empno from tableB) b
    where a.empno = b.empno;
    drop table tableA;
    rename table tableC to tableA;
    Ott Karesz
    http://www.trendo-kft.hu

  • TS1368 I want to delete a lot of things childrens stories, albums which are not used which that are on my ipad. However when I go through Itunes it wont show me most of the stuff in my library. it takes ages to delete one at a time.

    I want to delete a lot of things childrens stories, albums which are not used which that are on my ipad. However when I go through Itunes it wont show me most of the stuff in my library. it takes ages to delete one at a time.
    Can you help please?

    Thanks King_Penguin for taking time to read and reply. 
    I just purchased this movie on Thursday, May 15, so just a few days ago.  I have never had any trouble whatsoever since I have been in Vietnam.  I have downloaded several movies and even music and they have all synced to my respected Apple products except for this purchase. 
    Sorry, I don't quite understand what you mean by studios and different versions.  Could you please explain? 
    I checked my purchased list in my purchase history under my account and there are no hidden items. 

  • Delete Rows from T1 which are Not in T2

    Hi
    I've 2 Tables like below
    T1
    N1
    N2
    2
    11
    2
    22
    3
    33
    8
    44
    8
    88
    T2
    N1
    N2
    2
    22
    8
    88
    If I Run Delete query, I must delete Rows from T1 which are Not in T2
    For example, I must delete Rows 1,3,4 from T1
    So how to write that delete query? Please advice

    Delete from T1
    Where not Exists (select * from T2 Where t1.N1=t2.N1 and t1.N2=t2.N2)
    --or
    Delete t
    From t1 t
    left JOIN t2 m
    ON m.N1=t.N1 and m.N2=t.N2
    WHERE m.N1 is null and m.N2 is null
    --Or
    ;With mycte as
    select N1,N2 from T1
    Except
    select N1,N2 from T2
    Delete t
    From t1 t
    INNER JOIN mycte m
    ON m.N1=t.N1 and m.N2=t.N2

  • Delete the records which have the Data values are NULL before load data to BPC model

    Hi Everyone,
    I am loading the data from flat file to BPC Model (10.0 Version).
    Source data (Flat file) looks like below:
    RP_Employee RPT_Currency Data
    Test                USD                   8
    Test1              USD
    Test2              USD                    6
    My user requirement is that to delete the records which have the Data values are NULL before load data to BPC model.
    So,Please let me know how can i meet to this requirement.
    I am thinking that,it is possible by using start routine BADi. If i am correct please let me know process like creation of class and BADi implementation.
    Thanks in advance!!

    Hi Nilanjan,
    Please see my source data below:
    Account      Client       Employee     Time                Data
    123              XYZ            Vishu            2014.01               300
    456                                                       2014.01
    789              ABC         Alexander      2014.02               200
    If you see the second record,
    If data value is ZULL,  then the Employee or another dimension is also NULL.
    So I want to delete second records.
    If it is Start routine please share the code and steps to do.
    Thanks in advance!!
    Regards,
    Viswanath

  • I have songs which are not selected in my library, but are still on my Iphone. How can they be deleted? Can they be deleted manually?

    I have songs which are not selected in my library, but are still on my Iphone. How can they be deleted? Can they be deleted manually?

    Ariana...
    so I assume there should be some track of them
    Yes.
    In the iTunes Store on the right under Quick Links click Purchased (new).
    You'll be able to re download past purchases for free if you are a resident of the U.S., and have iTunes 10.3 or later installed.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Delete records which are checked

    What is the codings in servlet and jsp  to delete the records which have been checked where status ="To be accounted".

    Hi Rajesh,
    Case sy-ucomm.
    when 'DELETE'.
      loop at itab where checkbox = 'X'.
        delete itab.
      endloop.
    endcase.
    Please paste ur part of code.
    Calling of the Function Module should be given the user command
    call function 'REUSE_ALV_LIST_DISPLAY'
        exporting
          I_CALLBACK_PROGRAM      = SY-REPID
          IS_LAYOUT               = IS_LAYOUT
          IT_FIELDCAT             = IT_FIELDCAT
    <b>      I_CALLBACK_USER_COMMAND = 'USER_COMMAND'</b>      IT_EVENTS               = IT_EVENTS
          I_SAVE                  = C_ISAVE
        tables
          T_OUTTAB                = IT_OUTPUT
        exceptions
          PROGRAM_ERROR           = 1
          others                  = 2.
      if SY-SUBRC <> 0.
        message id SY-MSGID type SY-MSGTY number SY-MSGNO
                with SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    Regards
    Gopi
    Message was edited by: Gopi Narendra

  • How do I delete a contact which is not in my contact list or anywhere else?

    I need to delete contact information (email addresses and names) on my iPhone which keep coming up every time I type a remotely similar name in Mail, but isn't in my contact list.
    I tried searching for the name and then the associated email address using the iPhone but came up with no result. I searched for the name and then the associated email address inside of my HP HDX-18t (Vista Ultimate 64bit) but came up with no result. I tried searching for the name and then the associated email address using the iPhone but came up with no result. I searched for the name and then the associated email address inside of my Yahoo account (using my Vista PC, not the iPhone) but came up with no result. I searched for the name and then the associated email address inside of all of my other email addresses and devices but came up with no result.
    These names and the associated email addresses show up only in my iPhone and absolutely nowhere else. I tried Restoring my iPhone and that did not resolve the problem. Using the iPhone I tried going to Settings - General - Reset - Erase All Content and Settings. This did not solve the problem.
    Every time I've ever sent an email to an email address and received a response from that email address that email address and name associated with the response has been stored someplace in the phone but no place else. This is a major pain because every time I try to send an email to one of my actual contacts I have to either type out their full name or flick through a stream of contacts which are not in any of my sources. This means I cannot send an email quickly (I'm using an iPhone so I should be used to a lack of speed, huh?) and am often lost in a sea of names and email addresses I cannot eliminate.
    How do I get rid of this? I want all of the names and addresses which are not in any of my other locations gone! These are not even in my iPhone Contacts or even in the Sent email folders so there must be a way to delete them without their coming back!?!?!???!??!
    Thanks all who answer with solutions which serve to solve the problem.
    Message was edited by: monkeyman_stones
    Message was edited by: monkeyman_stones
    Message was edited by: monkeyman_stones
    Message was edited by: monkeyman_stones

    Try logging into your Yahoo account from a computer, search out the contact you are trying to delete and manually correct or delete the bad contact.
    The bad information might be hidden as a second address or other contact information (or misspelled) and not be showing up on the iphone but will pull up the address anyway.
    I had one old address in a contact that kept pulling up each time i tried to email him. The new address was there, but the old address was what the phone kept showing. When I edited the contact info from my computer the old address went away, and the new address started poping up.

Maybe you are looking for