AD Id Expiry date output

Hello All,
In our organisation, we have temp employee for whom we create a AD Id and set the user account expiry date of 45 days after creation of AD Id. 
We have been asked to generate the list of temp employee on weekly basis whose AD Id is going to expiry in current week and need to send email notification, informing their AD id is going to expiry after "x" no.of days.
I was able to create a powershell to find, Can you please confirm if is it correct
Search-ADAccount -AccountExpiring |
Get-ADUser -Properties givenName,sn,userprincipalname,accountExpirationdate.
Thanks HA

Here is the link. If this fails let me know
http://www.microsoftpro.nl/2011/07/07/how-to-schedule-a-powershell-script-using-scheduled-tasks-in-windows-server-2008-r2/
Your code should be like this
Search-ADAccount -AccountExpiring -TimeSpan '7' |
Select -Property givenName,sn,userprincipalname,accountExpirationdate |
Export-Csv -Path C:\Temp\AccountExpiresinSevenDays.csv -NoTypeInformation -Encoding UTF8
Start-Sleep 10
Send-MailMessage -From '' -To '' -SmtpServer 'SMTP' -Subject 'Account Expiry Report' -Attachments C:\Temp\C:\Temp\AccountExpiresinSevenDays.csv
Note: Input From, to SMTP names as required. This is only for your managers reporting needs
Regards Chen V [MCTS SharePoint 2010]

Similar Messages

  • Workflow to send mail 20 day before the expiry date

    Dear All,
    I created a workflow to send mail when a calculated column date is equal to today as follows:-
    Step1
    add -20 days  to Current Item:Expiry Date (Output to Variable : date)
    then set variable : Notification1 to Variable : date
    Step2
    If variable:notification1 equals (ignoring time) Today
    email users
    Now when i add a new item to the list , the workflow status is set to In progress , and when i refresh the page the status is changed to Completed before the condition is met and!!
    Any help
    Regards

    If I Understood your question correctly, you need to send email to user 20 days before expiration date. 
    From above you workflow I can see, you are just checking your condition once a item is created. As your Step2 condition is not met your  workflow is completed without any error. I suggest you might want to try below workflow
    Step1
    add -20 days  to Current Item:Expiry Date (Output to Variable : date)
    then set variable : Notification1 to Variable : date
    then Pause until Variable:date
    Step2
    email users
    Above workflow design will pause you workflow till 20 days before expiry date. and then send email to user. 
    Please ignore syntax, I just tried to put logic.
    Below is explantion on how to use Pause Action(from MSDN) in Sharepoint workflow
    This action is initially displayed in a workflow step as Pause until this time.
    Use this action to pause the workflow until a particular date. You can add a current date, a specific date, or a lookup.
    Following are examples of what the action might look like in a workflow step,
    Pause until 1/1/2010 12:00:00 AM
    Pause until Variable: A week from Modified
    If this helps Please mark it answer or vote as helpful.
    Thanks
    Siddharth

  • In the packing list, batch number and expiry date is not appearing for a ma

    Dear Friends,
    I have an issue in the packinglist.
    In the packing list, batch number and expiry date is not appearing for a material.
    But in the delivery the batch number and expiry date is appearing.
    Why this has triggered and how to solve this?
    With regards

    Hi Vamsi,
              Please go through the output type Smart form or script programe of the packing list and check with the abaper If is there any Bug.
    Regard's
    Murali.

  • Project expiry date message field - Adobe Captivate 7

    Hi,
    The 'project expiry date' feature is really useful, but lacks the facility to define the message window size. The message field allows you to input a large amount of characters but the output within the expired project is around 40.
    Surely this should allow for at least a basic message to convey that the project has expired and what to do to extend it? Even better would be to allow text formatting too.
    Also, having entered text into the message field, saving, closing, and opening again to edit, it doesn't seem to retain changes made.

    I started with Captivate 5 then 5.5, 6 etc. Now I am on 8. Every time I switch versions I found the best way to convert a project is to Copy the slides from the old project to a new project. So create a new File on CP 8 and paste all the slides from your earlier version CP 7. It might be time consuming but I never had a problem. Also it is a very good practice to make sure in your preferences you tick the box Generate Project Backup (hours of work can be lost if not).

  • BAPI_GOODSMVT_CREATE - Batch Expiry Date......

    HI Im,
    using this BAPI to post a goods movement from one location to another in the same plant.
    The stock is being posted to a specific Batch.  When I do this the material document gets created okay and the stock moves.
    The problem is that the batch expiry date is not updating.  The stock I'm moving has a later expiry date than the current date.  If I do this manually in MIGO it works fine and updates the batch expiry date with the later date.
    Has anyone else experienced this or know of a work around ?

    Hi
    I am populating the item data like:
    *- Populate item data
      LOOP AT i_items_trans.
        CLEAR ibapigm_item.
    *- Convert the matnr backto 18 char form (External)
        CALL FUNCTION 'CONVERSION_EXIT_MATN2_INPUT'
          EXPORTING
            input            = i_items_trans-matnr
          IMPORTING
            output           = i_items_trans-matnr
          EXCEPTIONS
            number_not_found = 1
            length_error     = 2
            OTHERS           = 3.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        ibapigm_item-material   = i_items_trans-matnr.
        ibapigm_item-plant      = x_user-werks.
        ibapigm_item-stge_loc   = x_user-lgort.
        ibapigm_item-move_type  = '101'.   "Goods Receipt
        ibapigm_item-mvt_ind    = 'B'.     "Goods Movement for PO
        ibapigm_item-po_number  = i_items_trans-ebeln.
        ibapigm_item-po_item    = i_items_trans-ebelp.
        ibapigm_item-gr_rcpt    = sy-uname.
        ibapigm_item-quantity   = i_items_trans-ktmng.
        ibapigm_item-base_uom   = i_items_trans-meins.
        ibapigm_item-entry_qnt  = i_items_trans-ktmng.
        ibapigm_item-entry_uom  = i_items_trans-meins.
        ibapigm_item-batch      = i_items_trans-charg.
        APPEND ibapigm_item.
      ENDLOOP.
    Header data like:
      MOVE: sy-datum TO bapigm_head-pstng_date,
            sy-datum TO bapigm_head-doc_date,
            sy-uname TO bapigm_head-pr_uname,
            v_mblnr  TO bapigm_head-ref_doc_no,
            con_bfwms_bestand TO bapigm_head-ext_wms.
    *- Document Header Text
      IF NOT v_bktxt IS INITIAL.
    *- Preceed "INV=" to the Invoice number entered
        CONCATENATE 'INV='(003) v_bktxt INTO v_bktxt
        SEPARATED BY space.
        bapigm_head-header_txt = v_bktxt.
      ENDIF.
      MOVE gmcode_01 TO bapigm_code-gm_code.
    And calling the BAPI as:
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header  = bapigm_head
          goodsmvt_code    = bapigm_code
        IMPORTING
          goodsmvt_headret = bapigm_headret
        TABLES
          goodsmvt_item    = ibapigm_item
          return           = ibapigm_ret.
    *- Commit on Success
      IF NOT bapigm_headret-mat_doc IS INITIAL.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
    Havent faced any problem so far...
    Did you populate <b>EXPIRYDATE</b> in  structure <b>BAPI2017_GM_ITEM_CREATE</b>? If yes, see in debugging, whatz happening to this value.
    Regards,
    Raj

  • Effective date and expiry date is data warehousing

    I am new to OWB. I would like to know how we update expiry dates in slowly changing dimension tables by using OWB. Suppose if my source data is as follows:
    Emplid Job Action Eff. Date
    1000 "New Hire" 24-JUN-1999
    1000 "Promotion" 27-SEP-2000
    1000 "Merit" 01-JAN-2001
    I would like to populate my target table like this.
    Emplid Job Action Eff. Date Expiry Date
    1000 "New Hire" 24-JUN-1999 26-SEP-2000
    1000 "Promotion" 27-SEP-2000 31-DEC-2000
    1000 "Merit" 01-JAN-2001 31-DEC-9999
    I tried to read the source system rows in the order of emplid and eff. date desc. I wanted to pass eff. date of current row to the next row in the source system. In this way, I can easily determine expiry date of current transaction. I have a hard time to do this in OWB. I would like to know
    1) Whether it is possible or not by simple mapping.
    OR
    2) Do I have to write any post mapping procedure?
    OR
    3) Is there any better way?
    Your input is greatly appreciated.

    Hi ,
    follow these steps.
    1) take the table, and again take same table,and join it on primary keys like say table a,table a1.
    a.id = a1.id(+)and
    a.start_date = a1.start_date(+).
    2) take outputs of join in sort operator and sort a.id asc and a.start_date asc.
    3) take o/p of sort operator in aggegrator.
    4) take in the input of agg , a.id,a.start_date , and b.start_date,and group by a.id and a.start_date.
    5) in output parameters add id and assigned id to it,start_date = a.start_date and create min_date = min(b.start_date)
    6) then drag o/p to exp ,and create o/p parameets like id ,start_date,and end dates.
    assign id to id,start_date = a.start_date and end date = if min_date is not null then mindate else
    to_date('31-dec-4719')
    and then get them in target table.
    i have implemented this on my side,for any help pls feel free to get in touch.
    Sharad.

  • Report for expiry date of the material

    All SAP Gurus,
    We have certain Materials which are expirable.
    These Materials are batch managed, and each batch is having different expiry date.
    Is there any standard report available which can give is the days remaining to reach the expiry date (for that material)?
    Regards,

    Hi,
    Try MB5M,
    here
    Field name                                Field value
    Material                                Enter the material code to which the report is desired.
    Plant                                Enter the plant in which the report is to be generated.
    Storage Location                     Enter the storage location in which the report is to be generated. Optional entry. Leave it blank.
    Batch                                 Batch number to be displayed. Optional entry. Leave it blank.
    Remaining shelf life           Minimum amount of time for which the material must keep upon goods receipt for the goods receipt to be accepted by the system. Optional entry.     
    Remaining shelf life warehouse     Indicates that the remaining shelf life of a batch in                                                         
    Total remaining shelf life         Indicates that the system displays the total remaining shelf life of a batch.                                                                               
    The total remaining shelf life is calculated from the shelf life    
    Expiration date minus the current date.  Select this radio button.                              
         Indicates that the system also displays materials with zero stock. Optional, leave it blank.
         Display of remaining shelf life in days. Select this radio button to display the remaining shelf in days in the report.
    Regards,
    Pardeep Malik

  • Report with expiry date.

    In MB51, I cannot find the expiry date for the batch.
    Is there any report where I can find list of batch with PO and also the expiry date?
    Please advice.

    HI,
    MB5M is the perfect report as suggested by jurgen.The criteria is, in Material master the plant data
    storage view u have give the shelf life.It will work perfectly.Pl try.Give shelf life as one for the
    material .Goto MSC2N and change the manfactured as 17/06/09 and press enter .The expiration date
    will be calculated automatically by the system.Now goto MB5M the system will dislay the shelf life
    expiration date.
    Is there any report where I can find list of batch with PO-For this u can use MB51  report
    regards
    murugan
    Edited by: Murugan mgl on Jun 19, 2009 6:16 AM

  • Report is executing in background and need data(output) in excel format

    Report is executing in background and need data(output) to get downloaded in excel format in my PC from an internal table;;in any drive i.e. C: or D: .When executing in backround it prompt to user with which location excel file to be saved and the name of file.How to download in background in excel format?
    Edited by: PRASHANT BHATNAGAR on Aug 26, 2008 6:24 AM

    Hi
    Download a report to excel with format (border, color cell, etc)
    Try this program...it may help you to change the font ..etc.
    Code:
    REPORT ZSIRI NO STANDARD PAGE HEADING.
    this report demonstrates how to send some ABAP data to an
    EXCEL sheet using OLE automation.
    INCLUDE OLE2INCL.
    handles for OLE objects
    DATA: H_EXCEL TYPE OLE2_OBJECT,        " Excel object
          H_MAPL TYPE OLE2_OBJECT,         " list of workbooks
          H_MAP TYPE OLE2_OBJECT,          " workbook
          H_ZL TYPE OLE2_OBJECT,           " cell
          H_F TYPE OLE2_OBJECT.            " font
    TABLES: SPFLI.
    DATA  H TYPE I.
    table of flights
    DATA: IT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
    *&   Event START-OF-SELECTION
    START-OF-SELECTION.
    read flights
      SELECT * FROM SPFLI INTO TABLE IT_SPFLI UP TO 10 ROWS.
    display header
      ULINE (61).
      WRITE: /     SY-VLINE NO-GAP,
              (3)  'Flg'(001) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (4)  'Nr'(002) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (20) 'Von'(003) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (20) 'Nach'(004) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (8)  'Zeit'(005) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP.
      ULINE /(61).
    display flights
      LOOP AT IT_SPFLI.
      WRITE: / SY-VLINE NO-GAP,
               IT_SPFLI-CARRID COLOR COL_KEY NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CONNID COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CITYFROM COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CITYTO COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-DEPTIME COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP.
      ENDLOOP.
      ULINE /(61).
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-007
           EXCEPTIONS
                OTHERS     = 1.
    start Excel
      CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
    PERFORM ERR_HDL.
      SET PROPERTY OF H_EXCEL  'Visible' = 1.
    CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls'
    PERFORM ERR_HDL.
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-008
           EXCEPTIONS
                OTHERS     = 1.
    get list of workbooks, initially empty
      CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
      PERFORM ERR_HDL.
    add a new workbook
      CALL METHOD OF H_MAPL 'Add' = H_MAP.
      PERFORM ERR_HDL.
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-009
           EXCEPTIONS
                OTHERS     = 1.
    output column headings to active Excel sheet
      PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
      PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
      PERFORM FILL_CELL USING 1 3 1 'Von'(003).
      PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
      PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
      LOOP AT IT_SPFLI.
    copy flights to active EXCEL sheet
        H = SY-TABIX + 1.
        PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
        PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
        PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
        PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
        PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
      ENDLOOP.
    changes by Kishore  - start
    CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
      CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTING #1 = 2.
      PERFORM ERR_HDL.
    add a new workbook
      CALL METHOD OF H_MAPL 'Add' = H_MAP  EXPORTING #1 = 2.
      PERFORM ERR_HDL.
    tell user what is going on
      SET PROPERTY OF H_MAP 'NAME' = 'COPY'.
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-009
           EXCEPTIONS
                OTHERS     = 1.
    output column headings to active Excel sheet
      PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
      PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
      PERFORM FILL_CELL USING 1 3 1 'Von'(003).
      PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
      PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
      LOOP AT IT_SPFLI.
    copy flights to active EXCEL sheet
        H = SY-TABIX + 1.
        PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
        PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
        PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
        PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
        PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
      ENDLOOP.
    changes by Kishore  - end
    disconnect from Excel
         CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING  #1 = 'C:\SKV.XLS'.
      FREE OBJECT H_EXCEL.
      PERFORM ERR_HDL.
          FORM FILL_CELL                                                *
          sets cell at coordinates i,j to value val boldtype bold       *
    FORM FILL_CELL USING I J BOLD VAL.
      CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_ZL 'Value' = VAL .
      PERFORM ERR_HDL.
      GET PROPERTY OF H_ZL 'Font' = H_F.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_F 'Bold' = BOLD .
      PERFORM ERR_HDL.
    ENDFORM.
    *&      Form  ERR_HDL
          outputs OLE error if any                                       *
    -->  p1        text
    <--  p2        text
    FORM ERR_HDL.
    IF SY-SUBRC <> 0.
      WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
      STOP.
    ENDIF.
    ENDFORM.                    " ERR_HDL
    Regards
    Murali Papana

  • How to set expiry date for a mail account?

    Hi there, i'm new in Messaging Server, need help here on how to set an expiry date to a specific mail user since the mail user will be just a temporary mail user. Instead of deleting manually, is there any smarter way of doing it?

    Directory Server can be set to exipre a password, indeed. That will prevent the user from logging in, when it happens. There will be no warning, or anything like that.
    The account will still be on the server, and the mailbox will still contain mail. It will still receive mail.
    If you want to turn an account off, you will have to make some arrangement outside Messaging Server for automating it.
    You can use any kind of program you like to set the ldap attribute "mailuserstatus" to "inactive", or even "deleted" as you wish.
    You can use java, "c", or any other programming tools you like. Messaging Server and Directory Server aren't written in Java, anyway.

  • Item Expiry Dates in a View ?

    I would like to write a query to show items that have an expiry date or number of days until expiry set, is there a secured view that can be used or do I need to access the underlying table directly ?
    The wwv_things table gives me the expiredate, expirenumber, expiremode. The content area view (wwsbr_all_items) only has the expiredate so doesn't show any items that are set to expire say 5 days in the future.
    Is there a different view that shows this or should I just run the query off wwv_things ?

    Simon,
    You would need the expirenumber and expiremode columns from the wwv_things table to achieve this. Expiremode, a varchar2 column, can contain the literal 'PERMANENT', 'DATE', or 'NUMBER'. WWSBR_ALL_ITEMS view currrently does not expose these columns. If you have access to the source, add these 2 columns to the view creation script. If not use the view script given below to recreate the view:
    PROMPT Creating View 'WWSBR_ALL_ITEMS'
    CREATE OR REPLACE VIEW WWSBR_ALL_ITEMS AS
    SELECT t.masterthingid masterid,
    t.id,
    t.siteid caid,
    t.language,
    t.iscurrentversion is_current_version,
    t.cornerid folder_id,
    t.regionid folder_region_id,
    t.name,
    t.title display_name,
    t.itemtype,
    t.type,
    t.subtype,
    t.parentid parent_item_id,
    t.topicid category_id,
    t.topicsiteid category_caid,
    t.author,
    t.description,
    t.publishdate publish_date,
    t.expiremode expire_mode,
    t.expiredate expire_date,
    t.expirenumber expire_number,
    t.image,
    t.keywords,
    u.url url,
    t.filename,
    tx.text text,
    t.cornerlinkid folder_link_id,
    t.cornerlinksiteid folder_link_caid,
    t.active,
    t.checkable can_be_checkedout,
    t.checkedout is_item_checkedout,
    t.checker checker_username,
    t.checkoutdate checkout_date,
    t.fullscreen,
    t.inplace,
    t.hideinbrowse,
    t.createdate,
    t.creator,
    t.updatedate,
    t.updator,
    t.seq,
    t.author_seq,
    t.createdate_seq,
    t.itemtype_seq
    FROM WWV_THINGS T,
    WWSBR_URL$ U,
    WWV_TEXT TX
    WHERE t.url = u.url(+) and
    t.siteid = u.object_siteid(+) and
    t.textid = tx.id(+) and
    t.siteid = tx.siteid(+) and
    ( EXISTS
    -- site and style admin
    SELECT 'x'
    FROM WWSEC_SYS_PRIV$
    WHERE OBJECT_TYPE_NAME = 'SITE'
    AND NAME = TO_CHAR(T.SITEID)
    AND OWNER = wwctx_api.get_product_schema
    AND GRANTEE_TYPE = 'USER'
    AND GRANTEE_USER_ID = wwctx_api.get_user_id
    AND GRANTEE_GROUP_ID = 0
    AND PRIVILEGE_CODE > 100 -- SITE and STYLE ADMIN
    UNION ALL
    SELECT 'x'
    FROM WWSEC_SYS_PRIV$ P, WWSEC_FLAT$ F
    WHERE P.OBJECT_TYPE_NAME = 'SITE'
    AND P.NAME = TO_CHAR(T.SITEID)
    AND P.OWNER = wwctx_api.get_product_schema
    AND P.GRANTEE_TYPE = 'GROUP'
    AND P.GRANTEE_USER_ID = 0
    AND P.GRANTEE_GROUP_ID = F.GROUP_ID
    AND P.PRIVILEGE_CODE > 100 -- SITE and STYLE ADMIN
    AND F.PERSON_ID = wwctx_api.get_user_id
    OR
    -- portal admin
    EXISTS
    SELECT 'x'
    FROM WWSEC_SYS_PRIV$
    WHERE OBJECT_TYPE_NAME = 'ANY_SITE'
    AND NAME = 'ALL_OBJECTS'
    AND OWNER = wwctx_api.get_product_schema
    AND GRANTEE_TYPE = 'USER'
    AND GRANTEE_USER_ID = wwctx_api.get_user_id
    AND GRANTEE_GROUP_ID = 0
    AND PRIVILEGE_CODE = 500 -- ADMIN
    UNION ALL
    SELECT 'x'
    FROM WWSEC_SYS_PRIV$ P, WWSEC_FLAT$ F
    WHERE P.OBJECT_TYPE_NAME = 'ANY_SITE'
    AND P.NAME = 'ALL_OBJECTS'
    AND P.OWNER = wwctx_api.get_product_schema
    AND P.GRANTEE_TYPE = 'GROUP'
    AND P.GRANTEE_USER_ID = 0
    AND P.GRANTEE_GROUP_ID = F.GROUP_ID
    AND P.PRIVILEGE_CODE = 500 -- ADMIN
    AND F.PERSON_ID = wwctx_api.get_user_id
    OR
    -- folder owner
    ( EXISTS (SELECT 'X'
    FROM WWV_USER_OWNED_CORNERS
    WHERE SITEID = T.SITEID
    AND ID = T.CORNERID)
    OR
    -- view folder w/no ILS
    ( EXISTS (SELECT 'X'
    FROM WWV_USER_CORNERS
    WHERE SITEID = T.SITEID
    AND ID = T.CORNERID
    AND HAVEITEMSECURITY = 0)
    OR
    -- view folder or item w/ILS
    EXISTS (SELECT 'X'
    FROM WWV_USER_CORNERS C
    WHERE C.SITEID = T.SITEID
    AND C.ID = T.CORNERID
    AND ((HAVEITEMSECURITY = 0) OR
    (HAVEITEMSECURITY = 0 AND
    T.SECURITY = 'folder') OR
    (HAVEITEMSECURITY = 1 AND
    T.SECURITY = 'item' AND
    EXISTS
    (SELECT 'X'
    FROM WWSEC_SYS_PRIV$ D,
    WWSEC_FLAT$ F
    WHERE F.PERSON_ID =
    WWCTX_API.GET_USER_ID()
    AND D.OBJECT_TYPE_NAME = 'ITEM'
    AND D.NAME =
    T.SITEID&#0124; &#0124;'/'&#0124; &#0124;T.MASTERTHINGID
    AND D.OWNER =
    WWCTX_API.GET_PRODUCT_SCHEMA
    AND D.GRANTEE_TYPE = 'GROUP'
    AND D.GRANTEE_GROUP_ID = F.GROUP_ID
    AND D.GRANTEE_USER_ID = 0
    UNION ALL
    SELECT 'X'
    FROM WWSEC_SYS_PRIV$ D
    WHERE D.OBJECT_TYPE_NAME = 'ITEM'
    AND D.NAME =
    T.SITEID&#0124; &#0124;'/'&#0124; &#0124;T.MASTERTHINGID
    AND D.OWNER =
    WWCTX_API.GET_PRODUCT_SCHEMA
    AND D.GRANTEE_T YPE = 'USER'
    AND D.GRANTEE_USER_ID IN
    (WWCTX_API.GET_USER_ID(),2)
    PROMPT Creating View 'WWSBR_ITEM_PERSPECTIVES'
    CREATE OR REPLACE VIEW WWSBR_ITEM_PERSPECTIVES AS
    SELECT tp.siteid item_caid,
    tp.masterthingid item_masterid,
    tp.perspectiveid perspective_id,
    tp.perspective_siteid perspective_caid,
    p.name perspective_name
    from wwv_thingsperspectives tp,
    wwv_perspectives p
    where p.siteid = tp.perspective_siteid
    and p.id = tp.perspectiveid
    and exists (select 1
    from wwsbr_all_items i
    where i.masterid = tp.masterthingid
    and i.caid = tp.siteid)
    null

  • How to pull data output of TCODE "MRKO" into a BI Cube.....??

    Hi Gurus:
    One of the business requirement is to EXTRACT data from relevant tables that the R/3 TCode "MRKO" provides in a report format in to BI. I don't tknow if there is any std. SAP extractor that would provide me the details. We need this data to determine the payment DATE based on "Payment Terms" using a logic, then summarize the data at each Vendor level and pass this information to the BI Cube. We need this information for a Cash Flow Forecasting project.
    I am not familiar with the Tcode MRKO or the program. I would appreciate it if anyone can shed some light here. I basically need a Total Due amount for a month period, Vendor, The date on which the payment has to be made in future based on the Payment terms and Company code. I don't know the tables involved, but the TCODE provides a "Total" per Vendor and thats what I would like to capture and pass to BI. How can I achieve this?
    Appreciate the name of the STD extractor if one exists or the table(s), and if any logic is necessary.....?
    Thanks a lot in advance.....!
    PBSW

    HI,
    I am not aware of any standard extractor for the report that you get from Tcode MRKO, But I can suggest you in a very customized way to extract the data into BW.
    When you run the transaction "MRKO", please check the program that is running in the background for that report to run and get the data output. You could easily find from the lower side menu bar.
    Once if you get to know the program, create a structure and create a datasource assigned to that structure, where  the datasource uses funcion module as its extraction method. In SAP you can easily convert a program into a function module and let the extractor fill your datasource for extraction.
    - Another way of doing it, is to find out the tables that it is retrieving from the report MRKO and create a structure with those fields filled up using a function module. And then use that structure and function module for your new datasource to extract.

  • How to show data output in SSRS

    Below is my simply query.  I need to use Matrix SSRS format. I will put "Region" in "row" column, Header will use "Customer_Requested_Date" field, and will use "Amount" in the data session.
    The data output in the "Header" field will show January.....until December (current month is December).  In the Amount field under "December" (current month), I need to compute the formula like "Customer_Request_Month"
    < =  Current Month".  (I do not have the field name called Current Month, need to get a Date/Time function to display Current Month).
    How I can come up the data output under December Header field to show the current Amount in that section?
    November, 2014
    December,2014
    Region
    Amount
    CRD Month < = Current Month
    Select
    Customer_Request _Date,
    Customer_request_Month,
    Transaction_Type,
    Region,
    Amount
     From Table
    Thanks,
    Josephine
    Josey Tang

    Hi Josey,
    According to your descritption, you want to show the current month in your tablix. Right?
    In Reporting Services, we can use the Now() and datepart() function to get the current month. Please use the expression below:
    =Datepart("m",Now())
    In this scenario, since you want to show the amount of current month within the column group, you need to create another dataset which always show the data of current month. Then you can use lookup() function to get the amount value from the current dataset
    based on the Region. Please follow the steps below:
    Create a same dataset(DataSet2) using your query. Add a filter on this dataset. Make Fields!Customer_request_Month.Value
    =
    Datepart("m",Now())
    Then add a column inside of column group, using the expression below:
    =lookup(Fields!Region.Value,Fields!Region.Value,Fields!Amount.Value,"DataSet2")
    The design and result look like below:
    Reference:
    Expression Examples (Report Builder and SSRS)
    Lookup Function (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • GTC Upload in OIM 9.1.0.2.How to capture User Expiry Date

    Hi,
    There are two OOB fields on User form.User account Expiry Date and User account Expiry Warning date.I have made these fields hidden.I found a strange thing happening.When I create a user manually,these two fields have a date value populated automatically,but if I perform bulk Upload,there two fields are blank.
    Please help.
    Regards,
    Shubhra

    Hi srini,
    thanks for your reply,
    Actually we integrated with 2003 exchange server, and we need a new integration with exchange server 2010.
    we don't want to disturb 2003.
    We are confusing with connector versions and how to perform those things.
    Thnaks,
    Valli

  • Report of expiry dates for framework purchase orders

    Hi,
    In Standard SAP is there any report of expiry dates for framework purchase orders?
    Thanks & Br,
    Sandeep

    Hi
    There is no standard report available to display the expiry dates for frame work orders.You can get the details from table EKKO and field is KDATE or U have to go for development.
    regards
    Ramakrishna

Maybe you are looking for

  • Shared Library Doesn't Display Events

    I want to share my iPhoto library with another user on the same computer. So in Preferences I turned on sharing. When the other user logs in and selects the shared library they just get a panel with thousands of loose photos unlike the original libra

  • HttpURLConnection and DataInputStream

    I posted this in the Conventional & Interruptable IO forum, but thought it might be better off here.... I'm having a strange issue with this piece of code. The input stream coming in is quite predictable and I know that this loop will only iterate tw

  • How to Open .EPA files.

    Hi Gurus,              I have one file with .EPA extention, which i got from SDN on Portal Development Kit.              Please help me out how to open and consume that file. Thanks in Advance, Udaya Bhaskar

  • JTextField.setText() please help...

    i have a field in my table that is in date format. txtempdate.setText(rsmastempl.getDate("empdate")); this produce an error. how will i display my date filed in my table in a TextBox? thank you for helping. killuasoft

  • Suppressing empty nodes in ALV tree grid

    Hi,  I'm writing an ALV tree report with financial data broken down by cost element hierarchy. We've determined that the maximum number of levels in our hierarchy is seven so have to build the program to accept seven node levels. Most times when it r