Expire item

Hi expets,
i have following Characteristic
MATERIAL  -
Material Data With Prodcut hierarchy ( 3 Levels)
SLFLIFE    -
  It is an Normal Attribute (Mean Not Display or Navigational Attribute) it contains particular product Age (Life of the product in terms of Days)
PKM -
It is an Attribute of Some other Dimension it contains packed date of the particular product in the from of Character data type
0QUANTITY --- quantity Keyfigure
Now My problem is
When report executed the selection screen display like this
Date----
here i will enter current date.
when i say execute, to display the Expire quantity, through following logic
Take current date and compare the date with PKM, if the return value is greater than value of the SLFLIFE that particular proudct is expire other wise good.
but i don't i to achieve this problem, can anybody help me.
Advance Thanks
ANR

Hi,
Two options:
a) this could be a typical scenario for a virtual characteristic. Add a characteristic Expired to your cube. And implement the virtual characteristic badi with the corresponding logic. (You would also need to code the user exit for variables to get the variable entry to your virutal characteristic badi. See
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how to use variable time references in currency conversion for more details how to do that
b) Create a user exit formula variable for the date. Create a formula variable with replacement path from SLFLIFE and a formula variable with replacement path from Characteristic XYZ with replacement from attribute PKM. Then create a calculated key figure formula variable for current date - PKM formula variable - SLFLIFE formula variable. Then create a condition on this caluclated key figure with value < 0.
for information on formula variables check:
http://help.sap.com/saphelp_nw04/helpdata/en/03/6ba03cc24efd1de10000000a114084/frameset.htm
Heike

Similar Messages

  • Error while trying to expire item programmatically

    I'm trying to expire an item using WWSBR_API.MODIFY_ITEM_POST_UPLOAD. The API doc states that parameter p_expiration should be in the format 'dd-mon-yyyy HH12:MI PM'. However whenever I try to use this format the procedure returns the error:
    ORA-01830: date format picture ends before converting entire input string
    ORA-06512: at "PORTAL.WWSBR_API", line 1209
    ORA-06512: at "PORTAL.WWSBR_API", line 1361
    ORA-06512: at line 12
    Since WWSBR_API is wrapped there is no way to identify what is happening at line 1209 and 1361. Does anyone know how to correct this?
    My test script is:
    @set_context
    declare
    l_masterid      number := 33006;
    l_id          number := 33007;
    l_caid          number := 34;
    l_folder_id     number := 32836;
    l_region_id     number := 1060;
    l_filename     varchar2(350) := 'DBFD5D42CE0109B0E034001083270748';
    l_author     varchar2(30) := 'BATCHADM';
    l_return     number;
    begin
    l_return := wwsbr_api.modify_item_post_upload(
    p_master_item_id => l_masterid,
    p_item_id => l_id,
    p_caid => l_caid,
    p_folder_id => l_folder_id,
    p_region_id => l_region_id,
    p_file_name => l_filename,
    p_expire_mode => WWSBR_API.EXP_DATE,
    p_display_name => 'EXPIRED',
    p_description => 'This is an expired item.',
    p_expiration => '09-JUN-2004 04:01 PM');
    wwpro_api_invalidation.execute_cache_invalidation;
    end;
    Thanks,
    Rick Wright

    I left out a bit of important data...
    Portal database is 9.2.0.4.
    10g iAS version 9.0.4.
    Thanks,
    Rick Wright

  • How to delete UWL expired Item.

    Hi,
    One of our user have this expired item(leave request) which he rejected but now the thing is that despite rejecting the leave request it is still present in his UWL. And when he clicks on the UWL item the detail screen that pops up shows blank table.
    I have tried everything from clearing cache and expired items cache (in System Admin-> System Config) but nothing works.
    Though we can try the below approach too, to delete the work item from backend : -
    1)     Go to FM: RH_LOCAL_INBOX_GET
    2)     Get the Work Item ID for the item (WI_ID)
    3)     Then go to the transaction : SWWL and search for the WI_ID
    4)     Then mark the item for deletion.
    But we dont have the rights to do that.
    Besides we can modify the XML for UWL but since the problem is occuring for only one user I dont want to modify the XML for issue faced by only ONE person.
    Is there any other alternate method to delete this work item from UWL.
    Thanks,
    Ajeet
    Edited by: apteajeet on Dec 21, 2010 11:17 AM

    The best way to delete this would be from the source - which is the backend system.
    For leave requests, you will see an Index:0 .... exception if these are not deleted.
    You can also schedule a batch job to do a periodic check of the completed tasks and get rid of them.
    Thanks,
    Shanti

  • Expired Items Report

    Hi,
    I'm trying to create a expired items report component. If I look at wwv_things you find the columns:
    - EXPIREMODE (Values PERMANENT,DATE,NUMBER)
    - EXPIREDATE
    - EXPIRENUMBER
    With this I'm able to determine whether an item is expired. However I cannot build a report on this because of security reasons (wwv_things is not granted to PORTAL30_PUBLIC). The view to use is called WWSBR_ALL_ITEMS. However, this view only has a EXPIREDATE column. This is not enough to determine whether an item is expired. How do I determine whether an item is expired using this view ?
    It would be nice if a next Portal version has an Expired Items Portlet showing the expired items of the logged on user.
    Thanks in advance,
    Willem-Pieter van der Lugt
    null

    Wiilem-Pieter,
    A bug has been filed for this issue. The view should contain EXPIREMODE and EXPIRENUMBER columns. We will release the new views on OTN as soon as its available.

  • Confusion over Expired Items

    Hi everyone,
    I having a little trouble with expired items and wondered if anyone could help.
    I seem to be able to set the expiry date but not a specific time on this date. Does anyone know at what time an item expires on its expiry date and whether it is possible to change this time?
    I have also noticed that items that have already expired are still displayed when the page is in edit mode. Although I am able to purge expired items from the page group properties page, I would prefer not to retain them at all. Does anyone know if their is an option not to retain expired items or whether I can automatically purge the expired items at regular intervals?
    If this is all covered in the documentation is anyone able to point in the right direction as my searches have found anything?
    Thanks for any help in advance.
    Paul.

    I assume you're using Portal 9.0.2.
    In 9.0.2.6, you can set the expiry date AND time. There is also an option to hide "un-published" items in edit mode (un-published means they are expired, deleted, or haven't reached their publish date). There is also page-level purging in addition to purging for the entire page group.
    There is no automated purging option, although we are considering an API to do this in a future release.
    Regards,
    Jerry
    PortalPM

  • What happens to lock on expired item in partitioned cache?

    With a partitioned cache, what happens if an object with a lock on it expires?
    In other words, if I put it in with an expiry, something locks it, and it expires while the lock is present, what happens?

    Hi mesocyclone,
    The lock/unlock API is completely orthogonal to the data-related API (get, put, invoke, etc). Presence of absence of the data has no effect on the lock.
    Regards,
    Gene

  • Help: API for purging expired and deleted items

    Hi gurus
    Is there an API available for purging deleted and expired items? The customer wants to be able to have date controlled deletion of items and the only way I see this happening is to set up a database job (hopefully) calling the purge API - if it exists...
    TIA
    Claus

    Anja,
    You can take a look at the portlet called document management (for 3.0.8) in portals.us.oracle.com. It can do purge expired/deleted items.
    pin
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    Hi,
    is there a way to purge expired or deleted items programmatically? Can we schedule a job which does the purging in a certain intervall? We don't want the admin person go into portal and manually do the system purge.
    Any thoughts?
    Thanks,
    Anja<HR></BLOCKQUOTE>
    null

  • Updating a variable based on checking expiration date against now() in each row of a table

    I’m using Coldfusion 9,0,0,251028 on Windows 7 64-bit, with a Microsoft Access 97 database.
    I’m trying to create a query which loops through all the rows in a table and checks if the current date is later or earlier than the expiration date. 
    If the expiration date column is earlier than now(), it sets the column “is_current” to 0, which is a variable that controls whether or not a message displays on a different page(breakingnews.cfm). 
    The column that has the expiration date is “exp_dat” in the table “news”. The query I have so far is:
    <cfquery name="expire" datasource="#db#">
    update news
    set is_current = 0
    where exp_dat < now()
    </cfquery>
    What this ends up doing is filtering out the expired items correctly, but once a new row is inserted, the previous items(which haven’t expired yet)
    are still having the “is_current” column set to 0.
    The query is cfincluded on the page the messages are supposed to display on (breakingnews.cfm). 
    How can I get the query to loop over each row every time to check if the now() is earlier or later than “exp_dat” without setting all the other row’s “is_current” to 0?

    Two things:
    1 - A query will never affect rows you haven't told it to. Therefore if new rows have the is_current set to 0, then it's because you're either setting it so in your insert statement or you've set a default value on the column. Just make sure you set the column to 1 when you insert the new row.
    2 - Why are you doing this at all? Say you run your update query (which is relatively intensive) a millisecond before one expires, it'll still be shown on your page. Why are you not just doing "SELECT * FROM mytable WHERE expiration_date > now()"?
    Obviously use cfqueryparams, but that's just an example. It seems at the moment all you're doing is storing out-of-date data in a database and causing yourself a lot more work and overhead.

  • Outlook 2010 autoarchive does not delete items from server

    I have read similar Qs & As, but I don't think they apply to my circumstances.
    I use Outlook 2010 with Windows 7 32 bit for a GMAIL IMAP account.
    My email pst file is 7GB in size and I think this is affecting performance. I'd like to auto-archive all emails more than 15 months old to a separate pst file, and to do this every 14 days. I've set up
    1) file/clean-up/archive all folders according to their auto-archive settings/OK
    2) Options/advanced/auto-archive
    run every 14 days
    delete expired items
    archive or delete old items
    move old items to c:\... my archive folder.
    The auto-archive fires up automatically at the right time (I've been testing using a 1 day interval), but despite all this, it still doesn't delete emails from the IMAP (Gmail) folders, and I have emails going back to 2010.
    How do I get this to work please? I don't want my IMAP folder to increase in size for ever - is there a practical limit?
    Simon Brew

    What are your gmail settings? Gmail will archive messages that Outlook deletes from the server unless you change the setting and tell gmail to delete them. (It's under Forwarding and POP on the settings page at gmail.com.)
    You can configure gmail to only provide the most recent 1,000, 2000, 5,000 or 10,000 messages - leaving the older messages archived in the gmail mailbox. 
    Do you have the Gmail \ All Mail folder subscribed? That duplicates all of your mail - unsubscribe it to reduce the file size. 
    Diane Poremsky [MVP - Outlook]
    Outlook & Exchange Solutions Center
    Outlook Tips
    Subscribe to Exchange Messaging Outlook weekly newsletter

  • Expiration date and Price break date in blanket purchase agreement

    Hi,
    In Blanket purchase agreement i see expiration date and in price break i see the from date and to date, can some one tell me the difference between these two dates?
    Issue
    1.when i try to put an end date(expiration date) to one of the line i get this error message or when i try to cancel the po line by giving some reason it throws the same error.
    The error
    "You cannot cancel or finally close this agreement line because there are open purchase order lines referencing this document."
    Regards
    Sudharshan

    Hi Sudarshan,
    Expiration date under BPA is used to prevent ordering of the item after the date appearing in this expiration field. It will stop you to create new releases incase you are trying to create one after the expiry date of the BPA.
    In short, If the item on the agreement has expired but already exists on an open release, you can still use the release. However, the expired line item will not be used for sourcing, and any future releases you create will not allow using the expired item.
    Under Price Break, Effective from and to date indicates the validaity of Price break rule for a particular duration. This is restricted to Price break rule only.
    Hope this will help.
    Regards,
    S.P DASH

  • Getting hold of an item's expiry date

    WWSBR_ALL_ITEMS contains a column called EXPIREDATE.
    This only seems to get populated with a date if:
    1. An explicit expiry date is provided
    2. You click on the expire item link
    For items that are set to 'Expire in x days' nothing is stamped here when 'x' number of days past the publish date is exceeded.
    In fact, I cannot find where the 'x' days is recorded anywhere.
    This means I cannot write any SQL against the WWSBR_ALL_ITEMS view to pull back items that are not expired if 'expire in x days' is utilised.
    Can somebody point me in the right direction? I'm sure it is hiding as an attribute somewhere...
    Cheers,
    John

    Simply alter your database table liek this:
    alter table <your_table> modify (<your_date_column> default sysdate);
    You simple delete this date item from the APEX Form region. Each time you insert a record into thsi table, the column is set to sysdate.

  • Preventing expired batch from being sold

    Currently in one of our client's setup, I can select expired batch from the list of items. Is there a way to prevent expired items from being selected when creating sales order (VA01) or, if the user can select the expired item, at least display an error or warning message?

    Hi,
    Do try making the batch in resticted use in change batch basic data1 tab,activate radio button of batch status for Batch restr.
    It makes
    Batch in Restricted-Use Stock
    Specifies that the batch is included in restricted-use stock.
    Use
    If, though a batch has the status "restricted", you want to use a goods movement to post a quantity to unrestricted-use stock, the quantity is posted to restricted-use stock and not to unrestricted-use stock.
    If the status of a batch is set to restricted, the total unrestricted-use stock is transferred to restricted-use stock by means of a transfer posting. A material document is created.
    You cannot change the status of a batch (unrestricted/restricted) in a goods movement, only with the following functions:
    by maintaining the batch master record manually
    using the control function provided in the QM system
    Configurations for Restricted-Use Stock
    For planning purposes, restricted-use stock is treated like blocked stock, that is, it is either available or not available, depending on your system configuration.
    Withdrawals from restricted-use stock are either possible or not possible, depending on your system configuration.
    The status of a batch can be considered in batch determination, that is, you can search for unrestricted or for restricted batches.
    _(This has been adopted from SAP documentation.)
    Change batch T.code-*MSC2n*Regards,
    Reddyy

  • List View Lookup Threshold and Expiration

    Hi
    Does anyone have an explanation of why Expiration can stop for a site, Raising the Value of the List View Lookup Threshold then allows it to work again?
    Cheers

    Hi there,
    Techincally, you must configure the expiration for a single list and the timer job will cover all expired items and hide from the list. For more information, visit my blog at http://tuan-tomy.blogspot.com/2014/11/how-to-set-expiration-policy-for-items.html
    With List View Lookup Threshold, this setting lets administrator define a number of lookup field/user in a single list. Of course, if you leave as default (8), you still can create more 8 lookup fields/user fields in a single list, but you could not save
    the list as a template, or create list from the template which are stored more than 8 lookup/user columns inside. In addition, this setting isn't related to expiration setting.
    Thanks
    /hai
    Visit my blog: My Blog | Visit my forum:
    SharePoint Community for Vietnamese |
    Bamboo Solution Corporation

  • CDP and DeltaCRL locations expiring on Issuing CA

    This has been a crash course in PKI and I am taking over for a previous sysadmin which has made it even more interesting. I'm hoping that you smart folks can help me
    to better understand my configuration so that I can correct an issue with expiring/expired locations. Otherwise, I fear I might bugger it up even more.
    Overview:
    Offline Root CA - 2008 R2 SP1 - Not joined to the domain.
    Online Issuing CA #1 - 2003 R2 SP2 - Joined to the domain (was supposed to be retired, I believe). I don't see any issues with this server.
    Online Issuing CA #2 - 2007 R2 SP1 - Joined to the domain (was supposed to replace #1, I believe). This one has items that are expired/expiring.
    I had a call that a user was receiving a certificate error when trying to connect to our MS Lync server, and when I checked the Online Issuing CA
    #2 server, I notice a pile of expired/expiring locations. I did a bunch of searching/reading and came to the conclusion that I would have export a new Root CA cert from my offline Root CA (Right-click Revoked Certificates, All Tasks, Publish the .CRL), manually
    copy it over to the online Issuing CA (C:\Windows\System32\CertSRV\CertEnroll), restart the ADCS service and then use the command Certutil -addstore -f CA cert.crl and
    then update AD with Certutil -f -dspublish cert.crl.
    That seemed to clear the expiry notices for the "Issuing CA 2 (V0.0)", but the following scrubbed screen shots are what I'm left with.
    On the first, when the Root CA branch is selected, you can see "CDP Location #2 Expired". It expired last month. This is a HTTP location
    (one of 2 HTTP locations that are present):
    In the second, when the "Issuing CA (V7.0)" branch is selected, you can see a bunch of items expiring:
    The AIA locations and CA Certs themselves won't expire for 19 more years.
    I'm uncertain as to why we have 2 Issuing CA branches under the Root CA (V0.0 and V7.0?), and very curious as to what I am missing or what I may have
    done incorrectly to have expired/expiring items remaining.  I realize that the MMC snapin isn't totally reliable, so I'm looking for ways to verify the integrity of PKI across the domain and be sure that I haven't messed anything up. I would also like
    to retire the old CA, but want to make sure I decommission it in such a way that there is no impact to the production environment.
    Any insight would be more than appreciated.

    Can you check again which physical directory is associated specifically with CDP #2 and if you copied the new CRLs there? Any directory could theoretically be used as a CDP - so you need to check the virtual dir in pkiview.msc or the Issuing CA's cert.,
    and then find the corresponding dir in IIS Manager.
    One thing to note: A CA creates more than one CRL if it had been renewed once with a new key. I f you run certutil -crl at the Root more than one file is created in the local CertEnroll directory (CA.crl, CA(1).crl etc.) How many
    CRL files have been created at the same time are in the Root's CertEnroll directory?
    You need to publish all those files to all CDPs (also holds for ldap). In case you copied a single CRL file to the web server - is one of the others maybe missing? Compare the file suffix of local files and the URL referred to in pkiview.msc
    - is it CA.crl, CA(1).crl in both cases?
    If it is really the same web server and same file and OK in the local directory but expired when retrieved over HTTP I can only imagine it is an odd DNS / caching / proxy etc. issue.

  • Delete items permanently

    Hi,
    I would like to know if I can delete many items permanently from pages with pl/sql.
    The fastest way I can think is to expire all the products I want to remove with pl/sql pdk modify_item function and then purge the expired products of the page group from the web interface.
    Is there any other way to delete many items permanently with pl/sql ? Is it possible to purge the expired items of a page group with pl/sql ?
    Thanks

    Hi -
    Unfortunately there is no supported API for deleting items.
    Regards,
    Candace

Maybe you are looking for

  • App Store shows Twitter update again and again

    Hello boys and girls. My Mac App Store shows the update 2.0.1 for Twitter again and again. I downloaded it 10 times again and it didn´t go away. Twitter is on 2.0.1 and the MAS shows the update again.On my iMac there wasn´t a problem with this update

  • Query and selection fields

    Hi, I'm creating a query with trx SQ01. I want to modify the name of a field in the selection screen of the query. How can I do this ? Regards

  • Signalling between two Windows

    I am not sure how to signal between two Windows created in the same Thread. Suppose I have two Windows, WindowA and WindowB (either is a descendent from the Window hierarchy - ie. JFrame, JDialog, etc.). WindowB can be instantiated with different par

  • Compilation Error - Operation != is illegal with Forte 6 U1

    when I compiled the following source code, I get the error below. I believe i am missing something basic. I ompile on Solaris 8/Forte 6Update1. Compilation Error message: "tmp.C", line 73: Error: The operation "PhoneBook != PhoneBook" is illegal. 1 E

  • Downloading doesn't start in Ovi music download

    HI,        I have a Nokia X6 16GB, and I have a nokia ovi account and it has not expired yet, earlier i used to download music tracks and albums by signing in Ovi music account and tapping on button of download, and i have not changed my internet con