Latest record with active flag 'Y' (if only N, select that record)

Hi All,
I am having some records in table emp and need to select one record per id, which meets following criteria:-
(1) if there is only one record for given id, select them. eg- '0154', '0155'
(2) if more than one record then
(2a) select record with active_flag = 'Y'.
(2b) if more than one record with flag 'Y', select latest record where flag = 'Y'. Max eff_date.
Emp table:-
with emp as (
select '0066' id, 'ABC' name, 'Y' active_flag, to_date('01-01-2009', 'dd-mm-yyyy') eff_date  from dual union
select '0066', 'PQR', 'N', to_date('01-01-2010', 'dd-mm-yyyy') from dual union
select '0066', 'XYZ', 'N', to_date('01-03-2010', 'dd-mm-yyyy') from dual union
select '0154', 'PQR', 'N', to_date('01-05-2010', 'dd-mm-yyyy') from dual union
select '0155', 'DEF', 'Y', to_date('01-05-2010', 'dd-mm-yyyy') from dual union
select '8686', 'THY', 'N', to_date('01-10-2010', 'dd-mm-yyyy') from dual union
select '8686', 'QWE', 'N', to_date('01-01-2010', 'dd-mm-yyyy') from dual union
select '8686', 'POI', 'Y', to_date('01-04-2010', 'dd-mm-yyyy') from dual union
select '8686', 'MNB', 'Y', to_date('01-03-2010', 'dd-mm-yyyy') from dual
select * from emp;
Output records:-
with emp_selected as (
select '0066' id, 'ABC' name, 'Y' active_flag, to_date('01-01-2009', 'dd-mm-yyyy') eff_date  from dual union
select '0154', 'PQR', 'N', to_date('01-05-2010', 'dd-mm-yyyy') from dual union
select '0155', 'DEF', 'Y', to_date('01-05-2010', 'dd-mm-yyyy') from dual union
select '8686', 'POI', 'Y', to_date('01-04-2010', 'dd-mm-yyyy') from dual
select * from emp_selected;Request you to please look at it.
Regards,
Ritesh

Thanks for posting the sample data and expected resutls in such a useful way. It makes life so much easier.
Assuming that the only valid values in active_flag are Y and N, and that there are no nulls, then this is one way:
SQL > with emp as (
  2   select '0066' id, 'ABC' name, 'Y' active_flag, to_date('01-01-2009', 'dd-mm-yyyy') eff_date  from dual union
  3   select '0066', 'PQR', 'N', to_date('01-01-2010', 'dd-mm-yyyy') from dual union
  4   select '0066', 'XYZ', 'N', to_date('01-03-2010', 'dd-mm-yyyy') from dual union
  5   select '0154', 'PQR', 'N', to_date('01-05-2010', 'dd-mm-yyyy') from dual union
  6   select '0155', 'DEF', 'Y', to_date('01-05-2010', 'dd-mm-yyyy') from dual union
  7   select '8686', 'THY', 'N', to_date('01-10-2010', 'dd-mm-yyyy') from dual union
  8   select '8686', 'QWE', 'N', to_date('01-01-2010', 'dd-mm-yyyy') from dual union
  9   select '8686', 'POI', 'Y', to_date('01-04-2010', 'dd-mm-yyyy') from dual union
10   select '8686', 'MNB', 'Y', to_date('01-03-2010', 'dd-mm-yyyy') from dual)
11   SELECT id, name, active_flag, eff_date
12   FROM (SELECT id, name, active_flag, eff_date,
13                ROW_NUMBER() OVER(PARTITION BY id
14                                  ORDER BY active_flag desc, eff_date desc) rn
15         FROM emp)
16   WHERE rn = 1;
ID   NAM A EFF_DATE
0066 ABC Y 01-JAN-09
0154 PQR N 01-MAY-10
0155 DEF Y 01-MAY-10
8686 POI Y 01-APR-10If there could be nulls in active_flag, then you could use NVL to set the value to Y or N in the order by to sort it "correctly" based on your requirements.
If there could be values other than Y and N, then use a case statement in the order by to fix the order to give preference to what you want.
For example, if valid values could be Y, N, P and you wanted them selected in that order, then neither ascending nor descending sorts would be right, so you could do something like:
ORDER BY CASE active_flag WHEN 'Y' THEN 1
                          WHEN 'N' THEN 2
                          WHEN 'P' THEN 3
                          ELSE 4 ENDJohn

Similar Messages

  • BP with Archive flag found in Duplicate check records

    hello
    we have duplicate check fuctionality active in UI,while maitaing BP in UI ,duplicate records were found and when the same is selected to check the duplicate records ,we noticed that BPs with Archive flag active were also taken as Duplicate records and shown...
    is there a way to prevent those BPs not show in Duplicate records list.
    Please let me know,
    Regards
    Kumar

    If you did not actually register it online or mail in the registration card then it is unregistered.
    The result from "Check Your Service" means that no one has registered a product with the serial number you provided.
    With regard to the "Tech Spec page", serial numbers can identify the type of product but not necessarily who is the owner.
    Buying a product does not mean that it is registered even if it is purchased from Apple online or Apple Stores. Registration is the responsibility of the owner.  You can check what products are registered for your Apple ID at My Support Profile. If your MBP is not listed, then register and add the product or go to the online registration page and register it.
    Afterwards, your tech service should be able to perform the repair.
    Hope this helps and Good Luck.

  • Filtering records with deletion flag in Query report

    Dear Friends,
    We are using ECC6.00 (EHP4) for one of our QM requirement, i have created a query in SQ01 with the tables QMEL,AUFK,AFKO,QMFE etc., to get the details of production order and notification.
    The report will list out the production scheduler wise, order wise, defect wise quantity with the notification number also in the display.
    For notifications which are created wrongly, the users set deletion flag. The same i.e., notifications with deletion flag should not appear in the report and hence i have called the field and filtered the value in the output (i.e., field value not equal to X where X is for deletion flag set records).
    Everything works fine upto this, but when users (to carry out analysis) send the data to the spread sheet, the filter values are removed and all records are populated in the excel sheet (even records with deletion flag).
    To select and display only records without deletion flag, i want to introduce coding in the query. Kindly tell me whether this is possible, if so where and what code should be written to meet my requirement.
    The records with the deletion flag (notifications) should be eliminated from the selection and display.
    Experts help required.
    Regards,
    M.M

    Dear Raymond Giuseppi,
    Thank you for your reply. The code syntax had been corrected based on your information. Unfortunately the code doesn't filter the records. On further investigation , it was observed that the field KZLOESCH doesn't get updated and hence a field had been created in the infoset wherein the following  coding is written
    clear : w_dlfl.
    data : w_inact type char1.
    select single inact into w_inact from jest
    where objnr = qmel-objnr
       and stat = 'I0076'
       and inact ne 'X'.
    if sy-subrc = 0 .
      w_dlfl = 'X'.
    else.
      w_dlfl = ''.
    endif.
    The field name is W_dlfl.
    In the above condition how and where should i include the code given by you. Since the field KZLOESCH is not updated how should we get the data from the field w_dlfl be exempted from selection?
    Kindly provide solution.
    Regards,
    M.M

  • Bex Report to show only latest record on report and then history

    Hello Gurus,
    Table 1:
    Employee
    Valid From
    Valid To
    Hours Perday
    1900
    01/01/2014
    02/28/2014
    8
    1900
    03/01/2014
    03/31/2014
    6
    1900
    04/01/2014
    12/31/9999
    4
    Table 2:
    I have above in DSO, On report I need to show the latest record without Valid From and Valid To Fields shown below.
    Employee
    Hours Perday
    1900
    4
    And when user drags Valid From and Valid To field from free charac. it should show history as in DSO. I have leveraged 0VALIDTO customer exit processing variable with variable as "Value Ranges" >= Key Date so when query is executed if date entered is 04/01/2014 it should bring last record with Hours perday=4 and if date is entered as 03/01/2014 should bring two records with hours per day 6 and 4 and so on.
    The problem on report is that the record being pulled is always latest but when Valid To and Valid From free characteristics are dragged on the report it still shows the latest record and no history. Is there a way that when key date is entered it should show latest record as per >= of that key date and when Valid from is dragged in to report it should display history prior to that key date?
    Thanks,
    Sam

    Hi Sam,
    You are almost in the right direction. A little fine tuning is required in your process
    As you are dealing with Time dependent Master data, the ideal thing to use is "Key Date" in the query. But there is a limitation here. Key Date can show only single date's relevant master data. I mean if you enter 03.01.2014, only second record would be shown. Key date cannot work on Multiple dates or ranges to fetch historical data or multiple records accordingly.
    To achieve your requirement, you should not use Key date in your query.
    I have leveraged 0VALIDTO customer exit processing variable with variable as "Value Ranges" >= Key Date
    The above idea is good. You should make Valid From as Cust exit(i_Step =2) processed and make it as User Entry enabled. So that user exit code can pick up values as per > = Valid From(User Entry Based). But this user exit will be picking historical records if user enters other than latest Valid from date. I mean no drilldown is required. You need to use Valid from in rows also, I believe.
    Try this and let me know if you want any more inputs.
    Regards,
    Suman

  • HT1349 When listening to songs on my itunes acct (without ipod attached), I can only play one song at a time. It doesn't automatically play next song on list. It happens with all playlists. It only started happening when I downloaded the latest itunes upd

    When listening to songs on my itunes acct (without ipod attached), I can only play one song at a time. It doesn't automatically play next song on list. It happens with all playlists. It only started happening when I downloaded the latest itunes update.

    Are all songs checked in your playlist?

  • Hello Apple. Iphone6 ios8.0.2. I have problem with activation imsg and fctm. My number doesnt display on both apps. I can only use them with my apple ID. How can i fix this problem. Country:Azerbaijan. Number:  *********

    Hello Apple. Iphone6 ios8.0.2. I have problem with activation imsg and fctm. My number doesnt display on both apps. I can only use them with my apple ID. How can i fix this problem. Country:Azerbaijan. Number:  *******
    <Edited by Host>

    Hello Khayalh,
    You should be able to link your phone number by following the steps in the article below. From your iPhone, sign out of FaceTime and iMessage and then sign back in and it should link. Check in the Start Conversation With and I Can Be Reached at section in iMessage and FaceTime respectively. 
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    Regards,
    -Norm G. 

  • Select the one record with the latest record

    I have the following table called tblSales:
    SKU   TransDate   Color
    ===   ======  ====
    123   1/1/2015    Red
    123   1/2/2015    Red
    123   1/5/2015    Red
    123   1/1/2015    White
    123   1/2/2015    White
    123   1/3/2015    White
    123   1/1/2015    Blue
    123   1/2/2015    Blue
    123   1/5/2015    Blue
    I need to create a query along the lines "SELECT the latest record FROM tblSales WHERE Color = 'White''
    In this example, the record dated 1/3/2015 would be the result.  I know that MAX(TransDate) is used here, but not sure how.
    Thanks.
    Ken

    Karl,
    I had already tried that.  It returns all 3 records having SKU = 123 and Color = White.
    Worst case scenario is I can always search for White 123s using a query with TransDate DESC and then get the first record.  I was just hoping for something a bit more elegant.
    Thanks for your help though.
    Ken

  • How to get only the latest record in a folder

    Hi all,
    We have an OA SIT that is not a "standard" SIT in that it does not have the traditional Begin and End date. It only has an Effective date. Is there some way I can filter this table to only give me the latest record in the series? I know how to do this in SQL, but don't see how it would be possible in the EUL.
    We're trying to avoid creating database views, but at this point, I'm thinking it may be the easiest way to address this. Any other suggestions?
    Thanks in advance,
    Jewell

    Jewell.
    Of course I'm not going to mention that I have no idea what a 'standard' SIT is compared to your basic 'non-standard' SIT ... and I have to watch my spelling of such ... but however ...
    As you're most likely aware, in SQL you would get all the 'standard' SIT records first by going through the table. Then you'd go back through them all and find the most recent one.
    Because of this 2 table pass, I agree that just putting the SQL code in a custom folder (as you're not using views) would make the most sense.
    Russ

  • Rules are not allowed for jobs with set 'archive edited messages only' flag.

    Hi,
    We are on AEX 7.4 and have enabled user defined search and also setup archiving. Even though the retention period has expired but still the messages are not being
    archived.
    We see following issues:
    1. Unable to setup archiving rule in Runtime Work Bench, we are getting following error:
    Rules are not allowed for jobs with set 'archive edited messages only flag.
    2. Unable to set the expiration of messages using the following link.Each time we specify the number days it shows the same number of
    messages expired.
    http://XXXXX:50000/MessagingSystem/job/reorgdb.jsp
    3. However if we click on "remove messages" button the messages are getting deleted which tells me that the messages are not matching any
    archiving rule hence are being removed.
    Any pointers to the above issue are appreciated!!!
    Thanks,
    Rajeev

    Hi,
    Please check the [link|http://www.****************/Tutorials/XI/Archiving/Index.htm]
    Also check this
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/402fae48-0601-0010-3088-85c46a236f50?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=147266890
    Regards,
    Naveen.

  • How to Unblock a Storage Bin With an Inventory Active Flag

    Hi,
    I have a storage bin that shows as being blocked by an Inventory active flag, but the inventory document has been canceled. I can't even view this document since it was canceled. Anyone have any suggestions?
    Thanks,
    Das.

    Hi,
    You should be able to click on the bin master data (click on bin # and go to inventory tab) and take the recent inventory doc # then go to li02 and delete the inv. doc. That will solve your problem.
    You could also try LX22: Edit > Deactivate.
    Reward points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Weblogic with Active Directory Authentication provider problem: DN for user ....: null

    I have a java application (SSO via SAML2) that uses Weblogic as a Identity Service Provider. All works well using users created directly in Weblogic. However, I need to add support for Active Directory. So, as per documentation:
    - I defined an Active Directory Authentication provider
    - changed it's order in the Authentication Providers list so that it comes first
    - set the control flag to SUFFICIENT and configured the Provider Specific; here's the concerned part in config.xml:
    <sec:authentication-provider xsi:type="wls:active-directory-authenticatorType">
            <sec:name>MyOwnADAuthenticator</sec:name>
            <sec:control-flag>SUFFICIENT</sec:control-flag>
            <wls:propagate-cause-for-login-exception>true</wls:propagate-cause-for-login-exception>
            <wls:host>10.20.150.4</wls:host>
            <wls:port>5000</wls:port>
            <wls:ssl-enabled>false</wls:ssl-enabled>
            <wls:principal>CN=tadmin,CN=wl,DC=at,DC=com</wls:principal>
            <wls:user-base-dn>CN=wl,DC=at,DC=com</wls:user-base-dn>
            <wls:credential-encrypted>{AES}deleted</wls:credential-encrypted>
            <wls:cache-enabled>false</wls:cache-enabled>
            <wls:group-base-dn>CN=wl,DC=at,DC=com</wls:group-base-dn>
    </sec:authentication-provider>
    I configured a AD LDS instance(Active Directory Lightweight Directory Services) on a Windows Server 2008 R2. I created users and one admin user "tadmin" which was added to Administrators members. I also made sure to set msDS-UserAccountDisabled property to FALSE.
    After restarting Weblogic I can see that the AD LDS's users and groups are correctly fetched in Weblogic. But, when I try to connect with my application, using Username:tadmin and Password:<...> it does not work.
    Here's what I see in the log file:
    <BEA-000000> <LDAP Atn Login username: tadmin>
    <BEA-000000> <authenticate user:tadmin>
    <BEA-000000> <getConnection return conn:LDAPConnection {ldaps://10.20.150.4:5000 ldapVersion:3 bindDN:"CN=tadmin,CN=wl,DC=at,DC=com"}>
    <BEA-000000> <getDNForUser search("CN=wl,DC=at,DC=com", "(&(&(cn=tadmin)(objectclass=user))(!(userAccountControl:1.2.840.113556.1.4.803:=2)))", base DN & below)>
    <BEA-000000> <DN for user tadmin: null>
    <BEA-000000> <returnConnection conn:LDAPConnection {ldaps://10.20.150.4:5000 ldapVersion:3 bindDN:"CN=tadmin,CN=wl,DC=at,DC=com"}>
    <BEA-000000> <getConnection return conn:LDAPConnection {ldaps://10.20.150.4:5000 ldapVersion:3 bindDN:"CN=tadmin,CN=wl,DC=at,DC=com"}>
    <BEA-000000> <getDNForUser search("CN=wl,DC=at,DC=com", "(&(&(cn=tadmin)(objectclass=user))(!(userAccountControl:1.2.840.113556.1.4.803:=2)))", base DN & below)>
    <BEA-000000> <DN for user tadmin: null>
    <BEA-000000> <returnConnection conn:LDAPConnection {ldaps://10.20.150.4:5000 ldapVersion:3 bindDN:"CN=tadmin,CN=wl,DC=at,DC=com"}>
    <BEA-000000> <javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User tadmin denied
      at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:229)
      at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
    So, I tried to look why do I have: <DN for user tadmin: null>. Using Apache Directory Studio I reproduced the ldap search request used in Weblogic and, sure enough, I get no results. But, changing the filter to only "(&(cn=tadmin)(objectclass=user))" (NOTICE, no userAccountControl), it works; here's the result from Apache Directory Studio:
    #!SEARCH REQUEST (145) OK
    #!CONNECTION ldap://10.20.150.4:5000
    #!DATE 2014-01-23T14:52:09.324
    # LDAP URL     : ldap://10.20.150.4:5000/CN=wl,DC=at,DC=com?objectClass?sub?(&(cn=tadmin)(objectclass=user))
    # command line : ldapsearch -H ldap://10.20.150.4:5000 -x -D "[email protected]" -W -b "CN=wl,DC=at,DC=com" -s sub -a always -z 1000 "(&(cn=tadmin)(objectclass=user))" "objectClass"
    # baseObject   : CN=wl,DC=at,DC=com
    # scope        : wholeSubtree (2)
    # derefAliases : derefAlways (3)
    # sizeLimit    : 1000
    # timeLimit    : 0
    # typesOnly    : False
    # filter       : (&(cn=tadmin)(objectclass=user))
    # attributes   : objectClass
    #!SEARCH RESULT DONE (145) OK
    #!CONNECTION ldap://10.20.150.4:5000
    #!DATE 2014-01-23T14:52:09.356
    # numEntries : 1
    (the "[email protected]" is defined as userPrincipalName in the tadmin user on AD LDS)
    As you can see, "# numEntries : 1" (and I can see as result the entry "CN=tadmin,CN=wl,DC=at,DC=com"  in Apache Directory Studio's interface); if I add the userAccountControl filter I get 0.
    I've read that the AD LDS does not use userAccountControl but "uses several individual attributes to hold the information that is contained in the flags of the userAccountControl attribute"; among those attributes is msDS-UserAccountDisabled which, as I said, I already set to FALSE.
    So, my question is, how do I make it work? Why do I have "<DN for user tadmin: null>" ? Is it the userAccountControl ? If it is, do I need to do some other configuration on my AD LDS ? Or, how can I get rid of the userAccountControl filter in Weblogic?
    I didn't seem to find it in config files or in the interface: I only have "User From Name Filter: (&(cn=%u)(objectclass=user))", there's no userAccountControl.
    Another difference I noticed is that, even though in Weblogic I have set ssl-enabled flag to false, in the logs I see ldaps and not ldap ( I'm not looking to setup something production-ready and I don't want SSL for the moment ).
    Here are some other things I tried but did not change anything:
    - the other "msDS-" attributes were not set so I tried initializing them to some value
    - I tried other users defined in AD LDS, not tadmin
    - in Weblogic I added users that were imported from AD LDS in Roles and Policies> Realm Roles > Global Roles > Roles > Admin
    - I removed all userAccountControl occurrences that I found in xml files in Weblogic (schema.ms.xml, schema.msad2003.xml)
    Any thoughts?
    Thanks.

    I managed to narrow it down: the AD LDS does not support the userAccountControl.
    Anyone knows how I can configure my Active Directory Authentication Provider in Weblogic so that it does not implicitly use userAccountControl as filter?
    <BEA-000000> <getDNForUser search("CN=wl,DC=at,DC=com", "(&(&(cn=tadmin)(objectclass=user))(!(userAccountControl:1.2.840.113556.1.4.803:=2)))", base DN & below)> 

  • How to find out the latest Record in per_all_people_f and per_all_assignme

    Hi ,
    How to find out the latest Record in per_all_people_f and per_all_assignments_f
    Requirement : Need to find out the latest record in per_all_people_f and per_all_assignments_f to update the attribute column with pre defined value . Its not possible to track only with person_id / assignment_id and effective end date
    SELECT pp_id
    FROM (SELECT app.person_id pp_id,
    asf.*
    FROM apps.per_all_people_f app,
    apps.per_all_assignments_f asf
    WHERE --app.person_id=123568 and
    asf.person_id = app.person_id AND
    app.effective_end_date = to_date('31-dec-4712') AND
    asf.effective_end_date = to_date('31-dec-4712')
    GROUP BY app.person_id)
    HAVING COUNT(pp_id) > 1
    GROUP BY pp_id
    This query also returns more than 1 value for person_id .
    It would be great if you put comment on this .. Thanks in advance ,
    Arya

    I am getting more records with asf.primary_flag='Y' . If you give ur mail id , i will send the sample data
    ASSIGNMENT_ID     EFFECTIVE_START_DATE     EFFECTIVE_END_DATE     BUSINESS_GROUP_ID     RECRUITER_ID     GRADE_ID     POSITION_ID     JOB_ID     ASSIGNMENT_STATUS_TYPE_ID     PAYROLL_ID     LOCATION_ID     PERSON_REFERRED_BY_ID     SUPERVISOR_ID     SPECIAL_CEILING_STEP_ID     PERSON_ID     RECRUITMENT_ACTIVITY_ID     SOURCE_ORGANIZATION_ID     ORGANIZATION_ID     PEOPLE_GROUP_ID     SOFT_CODING_KEYFLEX_ID     VACANCY_ID     PAY_BASIS_ID     ASSIGNMENT_SEQUENCE     ASSIGNMENT_TYPE     PRIMARY_FLAG     APPLICATION_ID     ASSIGNMENT_NUMBER     CHANGE_REASON     COMMENT_ID     DATE_PROBATION_END     DEFAULT_CODE_COMB_ID     EMPLOYMENT_CATEGORY     FREQUENCY     INTERNAL_ADDRESS_LINE     MANAGER_FLAG     NORMAL_HOURS     PERF_REVIEW_PERIOD     PERF_REVIEW_PERIOD_FREQUENCY     PERIOD_OF_SERVICE_ID     PROBATION_PERIOD     PROBATION_UNIT     SAL_REVIEW_PERIOD     SAL_REVIEW_PERIOD_FREQUENCY     SET_OF_BOOKS_ID     SOURCE_TYPE     TIME_NORMAL_FINISH     TIME_NORMAL_START     BARGAINING_UNIT_CODE     LABOUR_UNION_MEMBER_FLAG     HOURLY_SALARIED_CODE     REQUEST_ID     PROGRAM_APPLICATION_ID     PROGRAM_ID     PROGRAM_UPDATE_DATE     ASS_ATTRIBUTE_CATEGORY     ASS_ATTRIBUTE1     ASS_ATTRIBUTE2     ASS_ATTRIBUTE3     ASS_ATTRIBUTE4     ASS_ATTRIBUTE5     ASS_ATTRIBUTE6     ASS_ATTRIBUTE7     ASS_ATTRIBUTE8     ASS_ATTRIBUTE9     ASS_ATTRIBUTE10     ASS_ATTRIBUTE11     ASS_ATTRIBUTE12     ASS_ATTRIBUTE13     ASS_ATTRIBUTE14     ASS_ATTRIBUTE15     ASS_ATTRIBUTE16     ASS_ATTRIBUTE17     ASS_ATTRIBUTE18     ASS_ATTRIBUTE19     ASS_ATTRIBUTE20     ASS_ATTRIBUTE21     ASS_ATTRIBUTE22     ASS_ATTRIBUTE23     ASS_ATTRIBUTE24     ASS_ATTRIBUTE25     ASS_ATTRIBUTE26     ASS_ATTRIBUTE27     ASS_ATTRIBUTE28     ASS_ATTRIBUTE29     ASS_ATTRIBUTE30     LAST_UPDATE_DATE     LAST_UPDATED_BY     LAST_UPDATE_LOGIN     CREATED_BY     CREATION_DATE     TITLE     OBJECT_VERSION_NUMBER
    931510     7-Nov-08     31-Dec-12     122     (null)     (null)     (null)     3978     1     (null)     14402     (null)     220150     (null)     734956     (null)     (null)     476     (null)     (null)     (null)     (null)     2     E     Y     (null)     100035417-2     (null)     (null)     (null)     45948739     (null)     (null)     (null)     (null)     (null)     (null)     (null)     868007     (null)     (null)     (null)     (null)     449     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)                                        
    797386     26-Aug-08     26-Aug-08     122     (null)     (null)     (null)     3980     3     (null)     14402     (null)     218925     (null)     734956     (null)     (null)     476     (null)     (null)     (null)     (null)     1     E     Y     (null)     100035417     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     740071     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)                                        
    916076     26-Aug-08     31-Dec-12     122     (null)     (null)     (null)     3980     1     4     14402     (null)     218925     (null)     734956     (null)     (null)     476     (null)     (null)     (null)     (null)     1     B     Y     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)                                        
    797386     25-Feb-08     25-Aug-08     122     (null)     (null)     (null)     3980     1     (null)     14402     (null)     218925     (null)     734956     (null)     (null)     476     (null)     (null)     (null)     (null)     1     E     Y     (null)     100035417     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     740071     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)     (null)

  • Processing of materials with deletion flags

    Hi,
    I have 2 questions.
    1) I want the materials with deletion flags blocked for use in PO or in any goods movement. How could I do that to restrict all processes for these materials?
    2) I have a Purchasing Request and a RFQ for this. After I create a PO for this request and rfq, I could still open another PO regarding this RFQ. Is this normal?  How could I prevent this?
    1 RFQ will be used only for one PO unless there is an agreement for purchase?
    Thanks
    Irem

    hi,
    you can use the X-plant material status to procurement at different levels...
    the same indicator you can find in the material master records in the BASIC data, Puchasing and MRP tab...
    To use the RFQ for One PO only, make the message which you get while making the PO as error message, then no one make another message later...
    make settings here:
    SPRO >> MM >> puchasing >> env. data >> define system messages >> here check for your message as per its no..and make it as "E"
    Regards
    Priyanka.P

  • Pt: opener tag with activity spaces

    Hi,
    Does anyone know a way of using a pt tag to render a link straight to the changePassword activity space?
    I have it hard coded at the moment, but obviously I want to use a tag to make it work between environments etc.
    the link I want to render looks like this
    http://myportal/portal/server.pt?space=ChangePassword&&control=EditorStart&editorType=10
    Thanks :-)

    First off, these are all excellent questions. It would be great if the community could come up with solid answers that we all could implement. I'm going to take a stab but someone wiser than myself is really needed to answer the questions.
    1) Is there a reason why you wouldn't want users to see the login page? I mean they can login right? Is it just that you want them to login from the page header instead of the login space? You could override the login space to get it to display whatever you want. I believe in the latest version of the portal the login space is even adaptive layout'd so it may be really easy to change.
    2) Great question / find. I don't think its really a security threat because security is still being obeyed...they only see folders that they have read access to. Again, you may be able to "turn off" this activity space (subspace?) on certain servers by diving into the ui source code.
    3) What would you expect to happen when the users changes the page id? Not trying to be snarky..but what would be better behavior. We have this issue all the time, but its caused by people linking to pages that have been deleted. I suppose you could use a PEI to redirect to a page that does exist...but it seems liek a lot of overhead and work.

  • Formula to get the latest record

    Hi,
    I looking to have only the last record logged displayed on my report, can any one help me with the formula ?
    Sorry,
    Actually to  be more precise I'm looking to the latest record for each equipment (where there are  many records for the equipment during the day).
    Many thanks,
    Andreia
    Edited by: andreia silva on Dec 22, 2009 3:12 PM
    Edited by: andreia silva on Dec 22, 2009 3:15 PM

    Hi,
    You could use a SQL Expression field. The following example uses the Northwind database (SQL Server) as an example.
    Type the following query in the SQL Expression editor
    (SELECT MAX("Orders"."OrderDate")
    FROM Orders
    WHERE CustomerID = Customers.CustomerID)
    Then create a record selection formula:
    {Orders.OrderDate} = {%datum}
    {%datum} is the sql expression
    When you run the report, you will see only the last order for each customer

Maybe you are looking for

  • ASA 5520 VPN load balancing with Active/Standby failover on 2 devices only...

    /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in

  • Procedure to generate invoice in xml---please help

    Hi all, I have to write code review of a pakage which contain procedure to generate invoice in XML.The procedure contain two files .pkb and .pks.All i know is that it will deliver elemt of the post script layout.?But i dont understand what it mean no

  • Querys not using indexes

    hi all. I want to know wich querys in not using indexes. this is posible?? My db version is 10.2 Thanks.

  • Q status -stop

    hi, I created file to idoc scenario. but in sxmb_moni its showing green flag and Q.status is STOP. what is means.... regards manoj

  • In microsoft outlook

    In Microsoft outlook 2013, while forwarding message to another recipient  outlook from should be original email senders name needs to display . How to configure