Search based on UnApproved status in HRMS

Hi All
I have search page which shows records based on search
that page has one dropdown list which contain many options like
Approved,Closed,Rejected,Unapproved,etc
when I select Approved status then It shows all records that are approved
and when I select unapproved then it doesnt shows any records which are un approved
now I want show all records which are unapproved after selecting unapproved status
that page sows records in form of table at the bottom side of page
How can I do it?

I am getting confused plz use this Query
SELECT Vac.VACANCY_ID, Vac.DATE_FROM, Vac.NAME, Vac.DATE_TO, Vac.DESCRIPTION, Vac.NUMBER_OF_OPENINGS, Vac.LAST_UPDATE_DATE, Vac.CREATION_DATE, Job.NAME AS JobName, Job.JOB_ID, Grade.NAME AS GradeName, Grade.GRADE_ID, Org.NAME AS OrgName, Org.ORGANIZATION_ID, Loc.LOCATION_CODE, Loc.LOCATION_ID, Recruiter.FULL_NAME AS RECRUITER_NAME, Recruiter.PERSON_ID AS RECRUITER_ID, Recruiter.EFFECTIVE_START_DATE, Recruiter.EFFECTIVE_END_DATE, Recruiter.EMAIL_ADDRESS, Manager.FULL_NAME AS MANAGER_NAME, Manager.PERSON_ID AS MANAGER_ID, Manager.EFFECTIVE_START_DATE AS MAN_EFFECTIVE_START_DATE, Manager.EFFECTIVE_END_DATE AS MAN_EFFECTIVE_END_DATE, Manager.EMAIL_ADDRESS AS EMAIL_ADDRESS1, Status.MEANING, Status.LOOKUP_TYPE, Status.LOOKUP_CODE, Vac.REQUISITION_ID, (select count(assignment_type) from per_all_assignments_f paaf where paaf.vacancy_id = Vac.vacancy_id and paaf.assignment_type = 'A' and :1 between PAAF.EFFECTIVE_START_DATE AND PAAF.EFFECTIVE_END_DATE AND NOT EXISTS (SELECT NULL FROM per_all_assignments_f paf3 WHERE paf3.vacancy_id = paaf.vacancy_id AND paf3.person_id = paaf.person_id AND paf3.assignment_type ='E' ) and exists ( select null from per_all_assignments_f paf4 where paf4.assignment_id = paaf.assignment_id and paf4.effective_end_date = to_date('31/12/4712','DD/MM/RRRR') and paf4.assignment_type = 'A' ) and (fnd_profile.value('IRC_AGENCY_NAME') is null or exists (select 1 from irc_agency_vacancies iav1 ,per_all_people_f per1 ,irc_notification_preferences inp1 where iav1.vacancy_id=vac.vacancy_id and iav1.agency_id=fnd_profile.value('IRC_AGENCY_NAME') and per1.person_id=paaf.person_id and per1.party_id=inp1.party_id and (inp1.agency_id=iav1.agency_id or iav1.manage_applicants_allowed='Y')) ) ) AS APPLICANTS, (select count(distinct assignment_id) from per_all_assignments_f paaf where paaf.vacancy_id = Vac.vacancy_id and assignment_type = 'E' ) AS FILLED, decode(vac.manager_id,:2,'Y','N') AS MY_VACANCIES, Vac.BUDGET_MEASUREMENT_TYPE, Vac.BUDGET_MEASUREMENT_VALUE, posEO.NAME AS NAME1, posEO.POSITION_ID, posEO.EFFECTIVE_START_DATE AS EFFECTIVE_START_DATE2, posEO.EFFECTIVE_END_DATE AS EFFECTIVE_END_DATE2, NULL AS ACCESS_FLAGS, Vac.STATUS AS VACANCY_STATUS, Bg.NAME AS NAME2, Bg.ORGANIZATION_ID AS ORGANIZATION_ID1, Vac.BUSINESS_GROUP_ID, VSC.EMPLOYEE, VSC.CONTRACTOR, VSC.EMPLOYMENT_CATEGORY, VSC.TRAVEL_PERCENTAGE, VSC.MIN_SALARY, VSC.MAX_SALARY, VSC.SALARY_CURRENCY, VSC.PROFESSIONAL_AREA, VSC.WORK_AT_HOME, VSC.MIN_QUAL_LEVEL, VSC.MAX_QUAL_LEVEL, VSC.ATTRIBUTE_CATEGORY, VSC.ATTRIBUTE1, VSC.ATTRIBUTE2, VSC.ATTRIBUTE3, VSC.ATTRIBUTE4, VSC.ATTRIBUTE5, VSC.ATTRIBUTE6, VSC.ATTRIBUTE7, VSC.ATTRIBUTE8, VSC.ATTRIBUTE9, VSC.ATTRIBUTE10, VSC.ATTRIBUTE11, VSC.ATTRIBUTE12, VSC.ATTRIBUTE13, VSC.ATTRIBUTE14, VSC.ATTRIBUTE15, VSC.ATTRIBUTE16, VSC.ATTRIBUTE17, VSC.ATTRIBUTE18, VSC.ATTRIBUTE19, VSC.ATTRIBUTE20, VSC.ATTRIBUTE21, VSC.ATTRIBUTE22, VSC.ATTRIBUTE23, VSC.ATTRIBUTE24, VSC.ATTRIBUTE25, VSC.ATTRIBUTE26, VSC.ATTRIBUTE27, VSC.ATTRIBUTE28, VSC.ATTRIBUTE29, VSC.ATTRIBUTE30, VSC.SEARCH_CRITERIA_ID, Vac.ATTRIBUTE_CATEGORY AS VAC_ATTRIBUTE_CATEGORY, Vac.ATTRIBUTE1 AS VAC_ATTRIBUTE1, Vac.ATTRIBUTE2 AS VAC_ATTRIBUTE2, Vac.ATTRIBUTE3 AS VAC_ATTRIBUTE3, Vac.ATTRIBUTE4 AS VAC_ATTRIBUTE4, Vac.ATTRIBUTE5 AS VAC_ATTRIBUTE5, Vac.ATTRIBUTE6 AS VAC_ATTRIBUTE6, Vac.ATTRIBUTE7 AS VAC_ATTRIBUTE7, Vac.ATTRIBUTE8 AS VAC_ATTRIBUTE8, Vac.ATTRIBUTE9 AS VAC_ATTRIBUTE9, Vac.ATTRIBUTE10 AS VAC_ATTRIBUTE10, Vac.ATTRIBUTE11 AS VAC_ATTRIBUTE11, Vac.ATTRIBUTE12 AS VAC_ATTRIBUTE12, Vac.ATTRIBUTE13 AS VAC_ATTRIBUTE13, Vac.ATTRIBUTE14 AS VAC_ATTRIBUTE14, Vac.ATTRIBUTE15 AS VAC_ATTRIBUTE15, Vac.ATTRIBUTE16 AS VAC_ATTRIBUTE16, Vac.ATTRIBUTE17 AS VAC_ATTRIBUTE17, Vac.ATTRIBUTE18 AS VAC_ATTRIBUTE18, Vac.ATTRIBUTE19 AS VAC_ATTRIBUTE19, Vac.ATTRIBUTE20 AS VAC_ATTRIBUTE20, decode((select update_allowed||delete_allowed from irc_rec_team_members rec where rec.vacancy_id = VAC.vacancy_id and rec.person_id = :3), 'NN', 'VIEW', 'UPDATE') AS TEAM_ACCESS, (select count() from hr_api_transactions where transaction_ref_table = 'PER_ALL_VACANCIES' and transaction_ref_id = Vac.vacancy_id and creator_person_id = :4 and status = 'S') AS SaveForLaterLocks, (select count(*) from hr_api_transactions where transaction_ref_table = 'PER_ALL_VACANCIES' and transaction_ref_id = Vac.vacancy_id and status != 'D' and (creator_person_id != :5 or transaction_state != null or status != 'S' )) AS TRANSACTION_LOCKS, (select decode((SELECT count(pav1.vacancy_id) FROM per_all_vacancies pav1 WHERE pav1.vacancy_id =vac.VACANCY_ID AND(pav1.status ='CLOSED' OR (pav1.date_to is not null and NOT :18 BETWEEN pav1.date_from AND pav1.date_to))),0,'Y','N') from dual) AS APPLY_FLAG, PSA.LOOKUP_TYPE AS LOOKUP_TYPE1, PSA.LOOKUP_TYPE AS LOOKUP_TYPE2, Grade.OBJECT_VERSION_NUMBER AS OBJECT_VERSION_NUMBER1, PSA.LOOKUP_CODE AS LOOKUP_CODE1, Loc.OBJECT_VERSION_NUMBER AS OBJECT_VERSION_NUMBER2, PSA.MEANING AS MEANING1, Recruiter.OBJECT_VERSION_NUMBER AS OBJECT_VERSION_NUMBER3, decode ((SELECT count(1) FROM PER_RECRUITMENT_ACTIVITIES PRA,PER_ALL_VACANCIES PAV, IRC_ALL_RECRUITING_SITES ias,PER_RECRUITMENT_ACTIVITY_FOR PRAE WHERE vac.vacancy_id=PRAE.vacancy_id AND pra.recruiting_site_id = ias.recruiting_site_id AND PRAE.RECRUITMENT_ACTIVITY_ID = PRA.RECRUITMENT_ACTIVITY_ID AND ias.EXTERNAL = 'R' AND sysdate BETWEEN pra.date_start AND NVL (pra.date_end, sysdate) ), 0,'N','Y') AS REFERRALS FROM PER_ALL_VACANCIES Vac, PER_JOBS_VL Job, PER_GRADES_VL Grade, HR_ALL_ORGANIZATION_UNITS_VL Org, HR_LOCATIONS_ALL_VL Loc, PER_ALL_PEOPLE_F Recruiter, PER_ALL_PEOPLE_F Manager, HR_LOOKUPS Status, HR_ALL_POSITIONS_F_VL posEO, HR_ALL_ORGANIZATION_UNITS_VL Bg, IRC_SEARCH_CRITERIA VSC, HR_LOOKUPS PSA WHERE VAC.vacancy_id = VSC.object_ID(+) AND VSC.object_type(+) = 'VACANCY' and Vac.Job_id = Job.JOB_ID(+) and Vac.Grade_id = Grade.GRADE_ID(+) and Vac.Organization_id = Org.ORGANIZATION_ID(+) and Vac.Location_id = Loc.LOCATION_ID(+) and Vac.Recruiter_id = Recruiter.PERSON_ID(+) and :6 between nvl(Recruiter.EFFECTIVE_START_DATE,:7) and nvl(Recruiter.EFFECTIVE_END_DATE, :8) and Vac.Manager_id = Manager.PERSON_ID(+) and :9 between nvl(Manager.EFFECTIVE_START_DATE,:10) and nvl(Manager.EFFECTIVE_END_DATE,:11) and Status.LOOKUP_TYPE(+) = 'VACANCY_STATUS' and Vac.Status = Status.LOOKUP_CODE(+) AND vac.position_id = posEO.position_id(+) AND :12 between nvl(posEO.EFFECTIVE_START_DATE, :13) AND nvl(posEO.EFFECTIVE_END_DATE, :14) AND VAC.business_group_id = BG.Organization_id and EXISTS (select null from PER_VACANCIES PV where PV.vacancy_id = VAC.vacancy_id) AND (exists (select null from irc_agency_vacancies iav where iav.agency_id = FND_PROFILE.VALUE('IRC_AGENCY_NAME') and iav.vacancy_id = vac.vacancy_id AND :15 between nvl(START_DATE,:16) AND nvl(END_DATE, :17)) or FND_PROFILE.VALUE('IRC_AGENCY_NAME') is null) AND PSA.LOOKUP_TYPE(+) = 'IRC_PROFESSIONAL_AREA' AND VSC.PROFESSIONAL_AREA = PSA.LOOKUP_CODE(+) ORDER BY Vac.NAME*

Similar Messages

  • Workflow - based on idoc status workflow have to trigger

    hi,  i generating IDOC using abap program, when i generated IDOC workflow triggering, my recruiment is based on IDOC status
    workflow have to trigger, eg success status 30 means mail have to go one person, if fail means mail as to go another person. I trying for last two days any one can help me.

    Hi Rajendra,
    You need to trigger workflow only if u require any approval/Rejection.
    If you just need to send a mail on idoc status 30 or fail status, u need not to trigger workflow.
    You can do it with the help of standard FM also. Just search by putting Mail or sendmail* in t-code SE37, you will surely get an relevant FM which you can use in Condition of Status of idoc.
    Hope it will help u.
    Regards
    Nitin

  • Searching Content in Edit Status

    Hi All,
    I have a content which has just one revision ,which is rejected in workflow  and is in Edit Status.Is there a way that I can get it in search results.
    When i try to fire a query xCustom <contains> `Test`,  where xCustom is custom metadata and have value as Test ,i don't get any results.

    Hi ,
    If I understand correctly , you are looking to do search based on dStatus=Edit , right ?
    This metadata column is hidden(not used) in default search page , but is used when searching for content from Repository Manager . From the applet it utilizes the following service call along with the following parameters to list the content items :
    IdcService=GET_DATARESULTSET
    dataSource=Documents
    whereClause=(dStatus LIKE 'EDIT' )
    GET_DATARESULTSET is a service call which executes a Select query against the database. The query is built from the dataSource parameter.
    The list of Datasource present is stored / retrieved from std_resources.htm (location :  <mw_home>/Oracle_ECM1/ucm/idc/resources/core/tables)
    To list these contents from browser maybe you could write a RIDC code or run the above service from browser as mentioned :
    http://hostname:port/cs/idcplg?IdcService=GET_DATARESULTSET&dataSource=Documents&whereClause=(dStatus LIKE 'EDIT' )&resultName=list&IsJava=1
    In the result page check for @ResultSet list and under that dDocName listed are all the content id's which are in Edit status. 
    GET_DATARESULTSET does not have a HTML associated with it hence it need to be output using IsJava parameter for content listing .
    Hope this helps.
    Thanks,
    Srinath

  • Creating PR in Unapproved Status

    Hi All
    Pl let me know the steps to be followed to create Purchase Requisition in Unapproved Status in Back To Back Order Scenario. Business requirement is to create PR in unapproved status from the SO Line.
    We are on 11.5.10.2 and its urgent.
    Thanks
    Rajeev

    Please refer the below note: Back To Back Process Always Create Approved Purchasing Requisitions (Doc ID 467508.1)
    Goal
    ===
    How does one use the Back to Back Process and have the new requisition be created in status
    INCOMPLETE so that additional lines may be added to the requisition?
    ### Steps to Reproduce Problem ###
    1. Select OM responsibility
    2. Create Sales Order in OM
    3. Book the Sales Order
    4. Run the process "AutoCreate Purchase Requisitions"
    See the field AUTHORIZATION_STATUS in the table PO_REQISITIONS_INTERFACE_ALL
    always is populated with the value "APPROVED",
    5. Select Purchasing Responsibility
    6. Run the process "Requisition Import" with parameter "Initiate Approval after ReqImport" = No
    8. Query requisitions, at this point the requisitions are in status APPROVED.
    Want requisitions in status INCOMPLETE.
    Solution
    =====
    Per standard functionality, the Back to Back Process cannot create new requisition in status
    INCOMPLETE. We create the entry in PO_REQUSITIONS_INTERFACE with AUTHORIZATION_STATUS as approved only.
    As per the present code and functionality, we create the requisition with approved status only.
    Therefore, additional lines may not be added to the requisition.
    AutoCreate Purchase requisition concurrent program or progress order from the sales
    order pad, shall create a requisition for a booked ATO buy item line if there is open
    quantity on the line. This is designed functionality. (By open quantity we mean the
    order qty that is not reserved to a supply).
    If you want to prevent autocreate purchase requisition from processing the line as you
    are already having an existing PO for it you can achieve it in two ways -
    1. Put the line on create supply hold immediately after creating the sales order.
    Autocreate Purchase requisition will not pick such a line. Thereafter, you can
    manually reserve the existing PO to the order line and remove the hold. Once
    the entire quantity on the line is reserved to a supply, it is no longer eligible to
    be processed by autocreate purchase requisition and will not create another PO.
    2. CTO provides a custom hook CTO_CUSTOM_SUPPLY_CHECK_PK. You can
    add logic here to prevent CTO from trying to create supply. Please refer to CTO
    Process Guide - Setup - Custom Check Supply Creation API.
    To locate manual, see
    Oracle Configure to Order Release Notes, Release 12.1.1 (Doc ID 789425.1)
    Then select Oracle Configure to Order Process Guide, Part No. E13692-01, April 2009
    search for manual, open it.
    Hope this helps.
    Regards,
    Paarthy
    Edited by: Paarthy on Mar 16, 2012 5:52 AM

  • Searching for a Project status = CLSD and open purchase orders?

    Hi,
    I am searching for a project status (Project Builder CJ20N) which allowed my to set a CLSD or a simillar status for settlement with open purchase orders.
    This staus should allowed to process with open orders BUT  not allowed to add new orders after setting this status.
    Have somebody any idee? Or it is impossible?
    Tahnk you in advanced for your Help.
    Regards Baldy

    Hi TV-kid,
    while I was waiting for an answer I got to the same conclusion, so what you offers me is quite tempting actually.
    I got a look to your website and it seems convincing. Still though, your case studies are in other business area, It's only a mater of good knowledge of File Maker.
    I did download the test-drive last version of File Maker plus their samll Business Solution. I did read most of the documentation and the learning process would be too long to construct ourself a good crossed-data base.
    I'd like to get in contact with you to look for a possible colaboration. to get private, I'd liketo do it through your contact link in your website .
    To whom shall I write?
    Thanks
    Cheers
    Cheers

  • How do you apply rules based on read status?

    I migrated to Mail.app from PowerMail, and one of the powerful options available when creating a filter/rule in PowerMail was the ability to check the status of the message (message is/is not read) before applying the rest of the rule.
    Is there a way to apply this same check within a rule in Mail.app?
    This option is used to create rules that file mail ONLY AFTER it has been read.
    Obviously, the user must apply the rule manually since rules are only fired off when mail comes in, or when one highlights one or more message(s) and then selects the "Apply Rules" option from the contextual menu or from the Message menu.
    What makes this so powerful is that rather than having to manually file every message after you read it you can create rules that check status for read, if it is check to see if it matches other criteria, and if it does, put it in a folder with other like messages.
    Like many people, I have a large number of folders and subfolders into which I file my messages. By creating such a rule, I only have to file a message that matches other criteria once, use that to set up the criteria for the rule, and on subsequent messages that match that criteria, I only have to apply the rule after I have read it.
    I could just file all the messages directly into their appropriate folders, but then I have to keep watch on the subfolders for new mail, rather than just watching the inbox, reading the new mail, then using the Apply Rules item to have the read message checked and then filed based on the criteria that it matches.
    The logic might look like this.
    Is Read status true
    AND
    The subject contains "Intranet"
    THEN
    Move message to /On My Mac/Work Mail/Current Projects/Intranet Project/ mail folder
    THEN
    Stop processing rules.
    Without the ability to test the message's "read status" I have to select the message, right click to select "Move To>" from the contextual menu, then mouse through four sub panes to put the read message in the folder where I want to store it.
    I also cannot select a number of read messages and use the Apply Rules option to allow my filing rules to move any number of read messages to their proper storage folders.
    If anyone has a method for doing this, please let me know. It is the one thing I miss most about PowerMail.
    Message was edited by: rnsyderpsu

    I have been doing some of this, and while it does provide some of the functionality that is lost without the ability to apply rules only to read messages, it is not a complete solution. One of the biggest drawbacks is that it is not easy to selectively limit what new mail shows up the smart mailbox. One approach that works, sort of, is to limit the smart mailbox to only messages from people in my address book. However, not all relevant messages are from people already in my mailbox, so it requires constantly double checking to make sure that things are slipping through the cracks.
    The best thing about being able to apply rules, after receiving them, based on the status of a message is that it puts the control in the users hands. It allows you to selectively apply rules, only when you want to apply them. Rather than always/never, you have the ability to apply rules "sometimes/as needed." It allows for fuzzy logic, rather than hard conditions.

  • Update Approval Status of parent Folder based on approval status of folder items

    Hi,
    I have a SharePoint list which contains folders. Each folder contains one or more items. I wish to update the folder approval status to "Approved" when all the items inside the folder are approved.
    The workflow should trigger whenever the approval status of one or more items inside the folder is changed and is expected to check the approval status of all other items inside the folder. If all the items are approved the folder's approval status should
    be set to "approved".
    I am designing the workflow via SharePoint Designer 2013 and using SharePoint Online 2013 .
    Thanks a lot in advance.

    Hi,
    According to your post, my understanding is that you wanted to update Approval Status of parent Folder based on approval status of folder items.
    Per my knowledge,
    there is no out of the box way to accomplish this with SharePoint.
    Though we can loop the
    folder items to set the content approval status, we can not get the parent folder and then set the content approval status.
    As a workaround, I recoemend to create event reciever to get set the content approval status of the folder items.
    For more information, you can refer to:
    How to: Create a remote event receiver
    How to create a simple Remote Event Receiver for a Custom List in Office 365 SharePoint 2013 site
    Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
    Office 365 forum
    http://community.office365.com/en-us/forums/default.aspx
    Thanks,
    Linda Li                
    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]
    Linda Li
    TechNet Community Support

  • Searching based on the content of an uploaded document

    Hi,
    Is it possible to search based on the content of the document I have uploaded. The system used is ECC 5.0.
    Eg : I have uploaded resumes of employees and I have search based on their skills. Is it possible to search based on the skill which is mentioned in the resumes and provide the output.
    Thanks,
    Sarath.C

    I can't do that without knowing the structure of your document, it all depends on wether the data you need is in a fixed position in a fixed line or it's in a variable position and the correct line or position needs to be found before using it.

  • How to omit records based on a status code

    I am trying to select records based on a status 'N' or 'A' by a certain date as long as by the chosen date there is not another status given to the same course like 'D' or 'X'.
    Here are some sample data...
    CREATE TABLE #TEST
    (ID VARCHAR(7),
    COURSE VARCHAR(10),
    CURRENT_STATUS VARCHAR(1),
    STATUS_DATE DATETIME)
    INSERT INTO #TEST
    (ID, COURSE, CURRENT_STATUS, STATUS_DATE)
    VALUES
    ('0020541','AAAA-1000H', 'X', '2013-08-27 00:00:00.000'),
    ('0020541','AAAA-1000H', 'N', '2013-08-26 00:00:00.000'),
    ('0020541','BBBB-2000H', 'D', '2013-11-04 00:00:00.000'),
    ('0020541','BBBB-2000H', 'N', '2013-08-27 00:00:00.000'),
    ('0020541','CCCC-3000H', 'D', '2013-09-11 00:00:00.000'),
    ('0020541','CCCC-3000H', 'N', '2013-08-26 00:00:00.000'),
    ('0020541','DDDD-4000H', 'A', '2013-08-25 00:00:00.000'),
    ('0020541','EEEE-5000H', 'N', '2013-08-26 00:00:00.000')
    SELECT * FROM #TEST
    DROP TABLE #TEST
    If the query is to determine how many records with a status of N or A up to and incl August 26, 2013, I should see 4 records... AAAA-1000H, CCCC-3000H, DDDD-4000H, EEEE-5000H
    If the query is to determine how many records with a status of N or A up to and incl October 1, 2013, I should see 3 records... BBBB-2000H,  DDDD-4000H, EEEE-5000H
    ...and so on.
    Any help is appreciated.

    I am trying to select records based on a status 'N' or 'A' by a certain date as long as by the chosen date there is not another status given to the same course like 'D' or 'X'.
    Here are some sample data...
    CREATE TABLE #TEST
    (ID VARCHAR(7),
    COURSE VARCHAR(10),
    CURRENT_STATUS VARCHAR(1),
    STATUS_DATE DATETIME)
    INSERT INTO #TEST
    (ID, COURSE, CURRENT_STATUS, STATUS_DATE)
    VALUES
    ('0020541','AAAA-1000H', 'X', '2013-08-27 00:00:00.000'),
    ('0020541','AAAA-1000H', 'N', '2013-08-26 00:00:00.000'),
    ('0020541','BBBB-2000H', 'D', '2013-11-04 00:00:00.000'),
    ('0020541','BBBB-2000H', 'N', '2013-08-27 00:00:00.000'),
    ('0020541','CCCC-3000H', 'D', '2013-09-11 00:00:00.000'),
    ('0020541','CCCC-3000H', 'N', '2013-08-26 00:00:00.000'),
    ('0020541','DDDD-4000H', 'A', '2013-08-25 00:00:00.000'),
    ('0020541','EEEE-5000H', 'N', '2013-08-26 00:00:00.000')
    SELECT * FROM #TEST
    DROP TABLE #TEST
    If the query is to determine how many records with a status of N or A up to and incl August 26, 2013, I should see 4 records... AAAA-1000H, CCCC-3000H, DDDD-4000H, EEEE-5000H
    If the query is to determine how many records with a status of N or A up to and incl October 1, 2013, I should see 3 records... BBBB-2000H,  DDDD-4000H, EEEE-5000H
    ...and so on.
    Any help is appreciated.
    I guess I didn't understand your problem. Not sure if this might help you.
    SELECT * FROM #TEST
    where CURRENT_STATUS IN ('N','A') AND STATUS_DATE<='2013-08-26'
    AND STATUS_DATE NOT IN(Select STATUS_DATE from #test
    where CURRENT_STATUS IN ('D','X'))
    SELECT * FROM #TEST
    where CURRENT_STATUS IN ('N','A')
    AND STATUS_DATE<='2013-10-01'
    AND STATUS_DATE NOT IN(Select STATUS_DATE from #test
    where CURRENT_STATUS IN ('D','X'))
    - please mark correct answers

  • Prorate calculation based on Martial status

    Dear Experts,
    We have two types of the minimum of Housing Allowance(IT0014 - HA01WT):
    1.        1000 Monthly for Single
    2.        1500 Monthly for Married
    And this changeable based on Marital Status Key on Info Type 0002. However; if the change of Marital Status happened in the middle of the month the Housing Allowance should be calculated on a pro rata basis.The System gives the employee the new Housing Allowance in full. Please provide me the logic or operation that we can use in the PCR
    Pls let me know for any further clarification
    Regards
    SB

    I found solution on my own. please find below the rule
    TABLEP0002 Read table fields
    VARGBFAMST Tab.field VVVVV v.ky
      1
        WPALL?LAST ID = LAST?
          N
          Y
            AMT?IZSHNG Comparison
                ADDWT *    OT   Output table
              <
                RTE=FZ7N   Set
                RTE?1      Comparison
                  =
                    ZERO= NRA  AmtNumRteTime = 0
                    RTE=FZ7T   Set
                    AMT=IZMHNG Set
                    MULTI RAA  Multipl.amt/no/rate
                    AMT/TKDIVI Division
                    ADDWT 1001 OT   Output table
                    RTE-TKDIVI Subtraction
                    RTE*-1     Multiplication
                    AMT=0      Set
                    AMT=IZSHNG Set
                    MULTI RAA  Multipl.amt/no/rate
                    AMT/TKDIVI Division
                    ADDWT 1001 OT   Output table
                  >
                    AMT=IZMHNG Set
                    ADDWT *    OT   Output table
    Now its calculating based on prorate basis for both single and married status...
    Regards
    Sanjai

  • Wrong behavior when search for PO in status Confirmed by vendor.

    Dear Experts,
    We use SRM 550 and we work with POR,
    The problem is that after we create POR with quantity like the PO has there are no results if we try to search PO whit the status "Confirmed by vendor"
    The problem is that after we create POR with partly of the PO quantity there is no results if we try to search PO whit the status "Partly Confirmed by vendor ".
    Can someone know if we need to implement a BADI or something else?
    Thanks
    isiaki

    solevd

  • Transaction authorization based on document status

    Hi,
    We need to give display only access to end users (i.e specific business roles) based on the status of the document, for e.g. if document status is IN PROCESS the end user should only be allowed to Display the document - how can this be achieved ? Helpful inputs asap plz. Thank you.
    Best Regards.

    Hi Robert,
    Thanks for the quick reply, I will go through the said changes and update the thread accordingly in a day or two. Thanks again.
    Best Regards.
    Still waiting to test the solution, will update the thread soon !
    Regards.
    Edited by: Jacob Raj on May 2, 2011 2:02 PM

  • Requirement in Service Ticket Search based on Notes

    Hi All,
    We have a requirement in CRM for searching the service tickets based on the notes(additional notes) added to the order(say Service Tickets).
    Is there any class/method existing in the current system or how do we handle it?
    Please suggest your valuable inputs.
    Any experience on this using TREX search will be highly appreciable.
    Thanks,
    Mohan.

    All,
    Please let me know how GENIL class can be used for service ticket search based on notes.
    Thanks and Regards,
    Mohan

  • Shipment Output determination  based on shipment status.

    Dear all,
    In  T code VT01N   we are facing some issue.
    The issue is like when am selecting the Shipment button and saving  at that time the  output type is trigging.
    Actually the output type should trigger only after the shipment completion.
    Could any one kindly suggest any way for Shipment Output determination  based on shipment status.
    <removed by moderator>
    Thank you,
    Niketh
    Edited by: Thomas Zloch on Oct 8, 2011 8:21 PM

    I think you have to write your own REQUIREMENT CODE under the outpout type .

  • Filtering entries in BP search based upon user

    Hi
    We are trying to filter out results shown in BP search, based upon users. For that we are trying to follow steps mentioned in IMG
    SPRO->IMG-> Customer Relationship Management -> CRM Cross-Application
    Components -> Generic Interaction Layer/Object Layer ->
    Component-Specific Settings -> Extend Object Model for Business Partner
    The field(region) we are using is already present in structure CRMST_HEADER_SEARCH_BUIL and as per my understanding we will be using method Adjust_Result_Table.
    But still I am not able to resolve it. Please help me in this regard.
    Thanx & Regards
    Hits

    Hi,
    The object that we work with at 2007:
    BuilHeaderSearchNew
    and not BuilHeader like at the last version
    so, we have to implement CL_BUPA_IL_HEADER_SEARCH and not CL_BUIL_HEADER
    1. Create :
    ZCL_BUPA_IL_HEADER_SEARCH
    with superclass:
    CL_BUPA_IL_HEADER_SEARCH
    2. At customizing:
    SPRO->CRM->Cross Application components->Generic Interaction Layer/Object Layer->component specific setting ->Extend Object Model for Business Partner
    add:
    External Object Name - BuilHeaderSearchNew
    Implementation Class - ZCL_BUPA_IL_HEADER_SEARCH
    Nou you can use this method for changing the result:
    ZCL_BUPA_IL_HEADER_SEARCH ->GET_RESULT_TABLE
    good luck
    ayelet

Maybe you are looking for