Query to show a month in which status changed

I have a table with columns containing member_name, Month_report_generated, and Current_status.
There is a month report for every month in the year showing the member's status in that month, and the status can change in any month.
I am trying to write a query that finds the month in which a member's status changed. I was thinking that the way to do this would be to find the max month that showed the member at the old status, and therefore that would be the month before the new status came into effect.
I am not sure how to write this query and any help would be appreciated.
Thanks

It would be helpful if you could have posted your sample data along.
Anyways, Maybe something like:
SQL> WITH TEST_TAB
  2         AS (SELECT   'ABC' member_name,
  3                      'Jan2009' Month_report_generated,
  4                      'Y' Current_status
  5               FROM   DUAL
  6             UNION ALL
  7             SELECT   'ABC' member_name,
  8                      'Feb2009' Month_report_generated,
  9                      'Y' Current_status
10               FROM   DUAL
11             UNION ALL
12             SELECT   'ABC' member_name,
13                      'Mar2009' Month_report_generated,
14                      'N' Current_status
15               FROM   DUAL
16             UNION ALL
17             SELECT   'ABC' member_name,
18                      'Apr2009' Month_report_generated,
19                      'N' Current_status
20               FROM   DUAL
21             UNION ALL
22             SELECT   'ABC' member_name,
23                      'May2009' Month_report_generated,
24                      'Y' Current_status
25               FROM   DUAL)
26               -- end test data
27  SELECT   *
28    FROM   TEST_TAB
29  /
MEM MONTH_R C
ABC Jan2009 Y
ABC Feb2009 Y
ABC Mar2009 N  -- Status changed in this month
ABC Apr2009 N
ABC May2009 Y -- Status changed in this month
5 rows selected.
SQL> WITH TEST_TAB
  2         AS (SELECT   'ABC' member_name,
  3                      'Jan2009' Month_report_generated,
  4                      'Y' Current_status
  5               FROM   DUAL
  6             UNION ALL
  7             SELECT   'ABC' member_name,
  8                      'Feb2009' Month_report_generated,
  9                      'Y' Current_status
10               FROM   DUAL
11             UNION ALL
12             SELECT   'ABC' member_name,
13                      'Mar2009' Month_report_generated,
14                      'N' Current_status
15               FROM   DUAL
16             UNION ALL
17             SELECT   'ABC' member_name,
18                      'Apr2009' Month_report_generated,
19                      'N' Current_status
20               FROM   DUAL
21             UNION ALL
22             SELECT   'ABC' member_name,
23                      'May2009' Month_report_generated,
24                      'Y' Current_status
25               FROM   DUAL)
26               -- end test data
27  SELECT   member_name,
28           lead_month month_report_generated,
29           lead_status current_status
30    FROM   (SELECT   member_name,
31                     month_report_generated,
32                     LEAD (
33                        Month_report_generated,
34                        1,
35                        Month_report_generated
36                     )
37                        OVER (
38                           PARTITION BY member_name
39                           ORDER BY TO_DATE (Month_report_generated, 'MonYYYY')
40                        )
41                        lead_month,
42                     LEAD (
43                        Current_status,
44                        1,
45                        Current_status
46                     )
47                        OVER (
48                           PARTITION BY member_name
49                           ORDER BY TO_DATE (Month_report_generated, 'MonYYYY')
50                        )
51                        lead_status,
52                     current_status
53              FROM   test_tab) a1
54   WHERE   a1.lead_status <> a1.current_status
55  /
MEM MONTH_R C
ABC Mar2009 N
ABC May2009 Y
2 rows selected.
SQL>Regards,
Jo

Similar Messages

  • OSTC Query Not Showing Correct Percent If Component is Changed

    Hello gurus and experts...here is an interesting question:
    Question:  Why does a query not report proper Sales Tax Code percentage from OSTC table when a component is updated?
    Sales Tax Code (STC) of CA-37B, with a rate of 10.25% is made up of three parts:
    California (CA) State Tax Jurisdiction of "CA" with a rate of 7.00%,
    County Tax Jurisdiction of "CA-37" at a rate of 1.75%,
    City Tax Jurisdiction of "CA-37B" with a rate of 1.50%, and the effective date is set at 31 Dec 2008 (in the past).
    When the City Tax Jurisdiction is changed to 1.00% and date of 31 Dec 2009, the OSTC of CA-37B should be 9.75%.
    However, when a query is run on the OSTC table it strangely reports the old 10.25% (on the Sales Tax Code window it shows correctly as 9.75%).
    Here is the query - very simple...as about as simple as it gets...
    SELECT
    T0.Code,
    T0.Name,
    T0.Rate AS 'Total Tax Percentage',
    T0.Freight AS 'Freight Taxable?'
    FROM OSTC T0
    ORDER BY T0.Code
    IF we go back to the Sales Tax Code Window and change anything (description, one of the components, etc) and hit the update button, then the query reports the correct percentage.
    Am I missing something here?  I would imagine that the system must be doing something and I cannot believe the workaround is just go back and update something in the Sales Tax Code window - there are a ton of updates to do with taxes each year!  Trying to remember which component was updated can cause real confusion.  SAP B1 does a ton of automatic updates all over the system - why would it just be this area of information in OSTC???
    Thanks for reading the post, and many more thanks for your help and suggestions - Zal

    OK - Question Answered - had nothing to do with the query - user did not hit "Update" two times when doing the City Tax Jurisdiction Update...
    I knew SAP would be doing an auto update - has to!!!
    Thanks all - Zal

  • No status changes were carried out.

    experts,
    i want to delete  a projects from cj20n assigned budget removed from wbs. AVAC removed.n user status showing in CRTD N BUDG mode n already used t code OPSX but still its showing error on opsx.No status changes were carried out.
    please help me to find out the answer

    Hi,
    Make sure to remove both overall & year budget value & try it, if it is linked to IM position remove that one also before OPSX .
    regards,
    SL

  • Deploying the packages of microsoft critical update but members of collection is showing unknow client tab which comes in monitoring-- deployments status windows. until deadline to be completed. Nither provide any errors or completed status, progress sta

    Hi
    I have challaged for deployment of microsoft critical patches to client machine with the help of sccm. I have been done all configuration formalities, although previous months has been deployed successfully with any difficulties.
    But This month have some issue is being running, once i was deploying the packages of microsoft critical update but members of collection is showing unknow client tab which comes in monitoring--> deployments status windows. until deadline
    to be completed. Nither provide any errors or completed status, progress status.
    Please guide to resolve the issue,
    if you need more clarification, kindly let me know.
    Md Ehteshamuddin Khan
    Regards, Md Ehteshamuddin Khan All the opinions expressed here is mine. This posting is provided "AS IS" with no warranties or guarantees and confers no rights.

    Yes, I know this is an old post, but I’m trying to clean them up. Did you solve this problem, if so what was the solution?
    Take a look at the SU superflows, they will help you troubleshot this issue.
    http://technet.microsoft.com/en-us/library/ff385001.aspx
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Creation of a Query to show the values for the current month and the last 12 months data.

    Dear All,
    Good day!
    I have to create a Query with the below requirement.
    I have to create a Query to show the values for the current month and the last 12 months data.
    Can you please guide me how to achieve this ??
    thank you,
    Regards,
    Hema

    Hema
    explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
    you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
    for some more hints..
    http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
    http://scn.sap.com/thread/3217381
    search on SDN you will get many other ways..
    Thanks,
    Bhupesh

  • Can I build a query to show monthly sales by item by business partner?

    Hi all
    Is it possible to build a query to show monthly sales (quantity not value) by item by business partner?
    So the table would look something like this.
                   Jan     Feb     Mar     Apr
    Item 1      10       4         8         7
    Item 2      4         3         5         6
    Item 3      4        12        9         3
    Item 4      1         0         1         2
    Etc...
    As you can see, the monthly figure needs to be quantity of the item and not sales value.
    Would be grateful for any help.
    Many thanks.
    Wendy

    Hi,
    Try this:
    declare @code as varchar(15)
    set @code = ( select max(ta.cardcode) from OINV ta where ta.cardcode = [%0])
    Select [a] as Cardcode, [B] as Cardname, [c] as Item#, [D] as Descr,[1] as Jan,[2] as Feb,[3]as Mar,[4] as April,[5] as May,[6] as June,[7] as July ,[8] as Aug,[9] as Sept,[10] as Oct ,[11]as Nov,[12] as Dec
    from(
    SELECT T0.[CardCode] as  A , T0.[CardName] as  B, T1.[ItemCode] as C, T1.[Dscription] as D, sum(T1.[Quantity]) as t,month(T0.[DocDate]) as month FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE year( T0.[DocDate]) = 2014 and t0.cardcode = @code GROUP BY T0.[CardCode], T0.[CardName], T1.[ItemCode], T1.[Dscription],T0.[DocDate] ) S
    pivot
    (sum(t) for month IN ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12])) P
    Thanks & Regards,
    Nagarajan

  • To show all months of qty values for each fiscal year in report?

    Our cube contains different fiscal years of order qty/delivered qty for a material (e.g. material A).  We use fiscal year variant V9 (Oct. - Sep).  We would like to generate the following query result to list the material, order qty, fiscal year, and then for each calender month, the delivered qty value for the corresponding fiscal year:
    Column title:
    Material --- Order Qty --- Fiscal Year --- Oct --- Nov --- Dec --- Jan --- Feb --- Mar --- Apr --- May --- Jun --- Jul --- Aug --- Sep
    Just give two rows of data for material A:
    1st row data example:
    A (material) --- 23 (Order Qty)  --- 2006 (fiscal year) --- 2 (delivered qty in Oct of the calendar year 2005 )  --- 4(delivered qty in Nov of the calendar year 2005 ) ---1 (delivered qty in Dec of the calendar year 2005 ) --- 5 (delivered qty in Jan of the calendar year 2006 ) --- .... 2 (delivered qty in Sep. of the calendar year 2006)
    2nd row data example:
    A (material) --- 45 (Order Qty)  --- 2007 (fiscal year) --- 3(delivered qty in Oct of the calendar year 2006 )  --- 6 (delivered qty in Nov of the calendar year 2006 ) ---1 (delivered qty in Dec of the calendar year 2006 ) --- 5 (delivered qty in Jan of the calendar year 2007 ) --- .... 2 (delivered qty in Sep. of the calendar year 2007)
    How to generate this query?
    Thanks!

    hi Chandran,
    Actually in each row data for material in different fiscal year, all the KFs in columns should be restricted to the fiscal year value.  What we do is to use selections other than structure or RKF.  What we is following listed in details that you can check if what we do is correct:
    Under KF structure:
    1. Create a selection for the 1st KF (Order Qty).  In this selection, Order Qty is restricted with the characteristic 0FISCYEAR.
    2. Create a formular as 2nd KF for the FY value.  This formula KF use the value of a formular variable with Replacement Path of the the characteristic 0FISCYEAR.  But somehow this KF value shows "X" values in this column.  We defined this Replacement Path variable with the Reference Characteristic as 0FISCYEAR and all others keep default.  But don't know why this column shows "X" values. We also add  0FISCYEAR to the row, and find the one does have data in the row.  Any idea why put it in formular variable onto column not working?
    3. Create a selecction for the 3rd KF (Oct). In this selection, restrict Delivered Qty with the characteristic 0CALMONTH2 (Calendar month) and further restrict 0CALMONTH2 to a fixed value: October
    4. Create a selecction for the 4th KF (Nov). In this selection, restrict Delivered Qty with the characteristic 0CALMONTH2 (Calendar month) and further restrict 0CALMONTH2 to a fixed value: November.
    Then the following steps are similar to step 3 and 4 to create all other Month columns.  We wonder in all these selections, would we have to restrict them further with 0FISCYEAR?
    Therefore we've got two questions:
    1. Why in step 2, the formular variable doesn't work and the FY column shows "X" values?
    2. Do we need to further restrict the delivered qty with the characteristic 0FISCYEAR for each month column which corresonding to the fiscal year in the same row?
    Thanks alot and we are keeping giving you reward points!

  • MDX Query to show the latest product text again historical facts (Type 2 dimenion linking on Surrogate key and also Natural Key)

    I need to write a MDX query to show the latest product text again historical facts or a chosen product text in time. I can write this query in TSQL, but new to MDX.
    The way I do it in TSQL is joining two queries together on the Natural Key as opposed to the surrogate key.
    Can this be done in MDX. I know I could write two separate MDX queries, one which get the product text I wan and the other to get the measure with the actual product text and Natural Key, and use a lookup function in ssrs to show the two result sets I the
    same tablix by looking up the Natural Keys. But this should be able to be done in one query shouldn't it.
    In the dsv the fact knows to join to the dimension using the surrogate key.
    Thanks J

    Hi Jamster,
    According to your description, you want to write a query to show the latest product text, right?
    In MDX, we can use LastNonEmpty function to return the lastest member winth a dimension. LastNonEmpty is an aggregation function available in the Enterprise version of SQL Server. However, you can create your own with a little bit of recursive MDX. Here
    is a sample query for you reference.
    With Member Measures.LastHits as
    iif(isempty(Measures.Hits),
    ([Date].[Year Month Day].prevmember,
    Measures.LastHits
    ),Measures.Hits)
    Reference
    http://cwebbbi.wordpress.com/2011/03/24/last-ever-non-empty-a-new-fast-mdx-approach/
    http://richardlees.blogspot.com/2010/07/getting-last-non-empty-value.html
    If this is not what you want, please provide us the detail structure of your cube and the expected result, so that we can make further analysis and give you the exactly MDX query.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Query Account Balance Last Month

    Dear All,
    I need your help...I want to make query that show account balance AR at level 4 at end of month of last month. For example this month is March, so I want to show account balance AR at level 4 at end of month Feb.
    Thanks for your help
    Edited by: Ho  We I on Mar 3, 2009 3:47 AM

    Hi Ho,
    Try this out,
    SELECT SUM(Debit-Credit) as Balance from JDT1 WHERE RefDate <= [%0] and Account = [%1]
    Supply the first parameter with end date of the month and the second parameter with the account you want to check.
    Regardless which account you want to query (i wondered why you want to check AR balance by the account, you can get it from Customer Aging Report instead), you can use the query for any accounts
    Hope it helps.
    Cheers,
    Marini

  • Creating Query to show items from open sales orders with a/p invoice

    Hi experts,
    I am trying to create a query that will show what items/quantities are still in open sales orders that can now be filled by an incoming shipment of goods, processed through the a/p invoice.
    This needs to be done using subqueries, which I have no experience with.  I am trying to do this using the ORDR and RDR1 tables to show the open items from the sales orders and the OPOR and POR1 tables to show items just received in to inventory.  I would like the query to show exactly the open item's, their quantities, the posting date from the sales order and the customer name that can now be filled from the new shipment through the a/p invoice.
    I appreciate the assistance,
    Hayden (on behalf of Todd)

    Hello,
    try this
    SELECT T0.[DocDate], T1.[ItemCode], T1.[Dscription],( T1.[Quantity] - T1.[DelivrdQty]) As "Open Qty" FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[DocDueDate]  <= [%0]And ( T1.[Quantity] - T1.[DelivrdQty]) != 0
    Try this query in query manager.
    Thanks
    Manvendra Singh Niranjan
    Edited by: Manvendra Singh Niranjan on Jul 13, 2011 6:27 AM

  • IPhoto "Last 12 months" only shows 1 month from March-April

    On August 24th I imported some film into my iPhoto. Well I finally have a chance to go edit it and it is not there. After searching for it on iPhoto and my computer and an external hard drive- all just in case- I discovered that my iPhoto will only open up photos/video from 3/20/13-4/27/13. It says that that is what I uploaded in the last 12 months...I have uploaded a lot more than that and used it to create videos and export photos from my iPhone.
    I can't find my videos anywhere and it is for a project due on Monday.
    Can anyone help?

    Wondering: what happens to photos in the Last 12 Months folder, which have not been sorted into other albums, after 12 months..? -
    Nothing happens to them. The last twelve months album is just a window, showing you a current selection of your photos.  You can access all photos in your library either from the Photos view or from the "events" view. Each photo is a member of one of the events.
    You can define your own "last xxx month" albums with a different date range by defining a smart album from the File menu.
    Format the date according to the date format in your region settings.

  • IN NEED OF A SCCM 2012 QUERY THAT SHOWS LAST TIME SOFTWARE WAS USED OR OPENED

    Hello
    I am in need of an SCCM 2012 query that shows PCs that have Visio , Adobe Professional and Visual Studio and the last time each was used or opened. I have the query below which give me the PC name and the product. Any assistance will be very helpful
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%adobe acrobat%pro%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%viewer%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service pack%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security
    update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hydra%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%MUI%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%amd%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%microsoft visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%vision%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%add-in%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    = "Microsoft Visual studio 2012 devenv" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hotfix%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service%"

    Did you create a software metering rule for each software title? if not then you need you do that first and it will take over a week before you see results.
    Also keep in mind that your query will only find x86 software titles.
    http://www.enhansoft.com/

  • SCCM 2012 QUERY THAT SHOWS SOFTWARE INSTALLED AND LAST TIME IT WAS USED OR OPENED

    Hello
    I am in need of an SCCM 2012 query that shows PCs that have Visio , Adobe Professional and Visual Studio and the last time each was used or opened. I have the query below which give me the PC name and the product. Any assistance will be very helpful
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%adobe acrobat%pro%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%viewer%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service pack%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security
    update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hydra%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%MUI%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%amd%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%microsoft visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%vision%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%add-in%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    = "Microsoft Visual studio 2012 devenv" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hotfix%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service%

    See me reply to your other post with the exact same details, in the CM07 forum.
    http://www.enhansoft.com/

  • Planning query donu2019t show current data

    Hello,
    I have an input ready query over an aggregation level of a real time cube. Whenever the yellow request is closed and a new request is opened, the input ready query does not show the old data. And sometimes it shows incorrect data. We found that the issue is with the Cache.
    In RSRT when opening the input ready query in debug mode with "Do not use cache setting", the query returns correct data. But the surprise thing is that, the input ready query has Cache setting as inactive (0) in RSRT. So we had to generate the Delta buffer query <infoprovider>/!!1<infoprovider> in RSRT where <infoprovider> is the name of the real time cube.
    This solved our problem and the query brought in correct data. But again when I close the second request, the input ready query again shows me no data or shows me wrong data. So again we need to generate the delta buffer query in RSRT <infoprovider>/!!1<infoprovider>.
    This is very annoying when considering the fact that you have to generate the delta buffer query every time the request is closed. This could be a overhead in maintenance and will not go well with people.
    Does anybody have any solutions for solving this issue. Is there any setting by which we can turn off cache altogether or delete cache when a request is closed etc? or worst conditions how to automate the generation of delta buffer queries every time the request is closed?
    Any help is really appreciated.
    Regards,
    Anand

    please check the below;
    Delta buffer query in RSRT for BI-IP ("<infoprovider>/!!1<infoprovider>)
    Planning query donu2019t show the current data
    Edited by: Hymavathi Yanamadala on Sep 9, 2009 5:47 AM

  • Back dated action  which is changing the status ' inactive'

    hi friends,
    my requirement is as below :
    i want to insert  back dated action which is changing the status as inactive ( currently he is active) .
    System is not accepting to insert it and giving the message "   future action exists,check the status"
    So for that first i am deleting  all future actions and inserting the current action(which is changing status) and after inserting back  all the deleted actions.
    But the problem is  as per the latest records in IT0000 it is showing currently the  employee is in 'active' status(as we have inserted back the deleted records).
    But i want to make him into 'inactive' status after the current action( which is changing status as inactive) is inserted.
    This is my urgent requirement . an anybody respond to this immeadately.
    waiting for ur reply.
    thanks in advance.

    Hi Gajesh,
                     The process is as follows :
    1) During Calibration of a product,depending on the technician's User decision , 3 follow up actions are created.
    2) Each follow up action has one FM associated with it, which is customised in      SPRO > Display IMG > Quality Management > Quality Inspection > Inspection Lot Completion > Define follow-Up Action .
    3) In the first case ( first Follow up action when the inspection is successful) the first FM is triggered. In this FM we have to perform the following steps :
                                   a) Determine the Maintenance Order and the equipment.
                                   b) Incase both are available, status of equipmnt should be changed to 'A',
                                       Maintenance Order should be changed to 'Technically completed' and
                                       Maintenance Notification to 'Notification Completed' .
    If you need further info pls let me know.
    Thanks,
    Vasuki

Maybe you are looking for

  • How Do I enable multiple trigger voltages on the PCI-6221 using NI-DAQmx?

    I am using the PCI-6221 to do some simple data acquisition.  The idea is to allow three different analog voltages to trigger the data acquisition state.  I currently have the code set up for one voltage trigger but I am not sure what needs to be done

  • Script error for IE7 on WD Abap development

    Hi, My browser is IE 7.0. I'm developing wdb dynpro abap application. When i select a view and press Show/Hide Layout Preview, script error occures and ie error page is displayed. How can i solve this problem? Thanks.

  • New Hard Drive Not seen by DU

    I have PPC 2.0 model 7.3 G5 Suspecting Hard drive errors, I bought 2 new WD5000AAkX drives to install into my G5. The machine was configured with a system drive and secondary drive. Althogh SATAIII manufactuers specs indicate backwards compatible to

  • Implementing KANBAN-WM

    Hi Gurus, we are implementing KANBAN with WM for VERP materials in the pharmacology factory. We actived the replenishment strategy 0006 (for WM) and created a supply area, but SAP didn´t let us use the PK01 to create a new control cycle. System oblig

  • LiveCycle Generator for 3D

    Hi all, Iam looking for a server side product which converts my 3D Diagrams to PDF. Does LiveCycle Generator Supports it? If not is there any Adobe product available for it? How can I convert a 3d to PDF programatilly. A sample would help me a lot. T