How to automatically update the Expiry Date's number of days

My web app input form is an event submission form. Users enter the event title, event date and other details, etc. I've figured out how to get the "expiry days" in the form and it be hidden but i can't figure out how to calculate this:
(today's date) - (event date) + 1 day = number of days to expire and then set the expiry days to that value upon submission.
I have tried writing the js but am getting no where, has anyone out there already accomplished this? I've researched and researched and find a million things on calculating the number of days but can't get one of them to work for my situation here... any help would be greatly appreciated!!

Hi Murtuza,
You can use function module BAPI_ISUACCOUNT_CHANGE.
Pass dunning lock details in parameter TCTRACLOCKDETAIL. This function module only create and delete locks.
So, you need to pass existing lock details (from table DFKKLOCKS) with PROCESSING_MODE = 04 (delete) and append another value with changed expiry date with PROCESSING_MODE = 01 (Create).
This will also help in maintain lock history too.
Hope this helps.
Regards,
Avinash

Similar Messages

  • How we can update the  System Date,in java

    Hi guys,
    can U pls help me...
    How we can update the System Date,in java
    I need to get the System Date and time continuosly thruogh threads concept.kindly help me
    Thanking u in Advance

    System.currentTimeMillis() will give you the current
    system date and time as a long value.
    ~I think the OP wants to change the system time not just get the system time.

  • How to regularly update the Master data/Text/ Hierarchy for BW DEV?- Urgent

    Hi Experts,
    Can anyone help me to understand how to update the Master data/Text/ Hierarchy regularly for BW DEV.
    Since all the new query developments are taking place in DEV, users are not finding the latest Masterdata/ Texts /Hierarchy in the DEV system.
    I have searched in SDN and got a document "HOW TO DOWNLOAD A HIERARCHY TO A FLAT FILE". However, is there any other way to upload the master data automatically on periodical basis.
    Please help urgently.
    Advance Thanks,
    BW USA

    If you want to extract master data from PRD in order to load in DEV, i suggest to do this (its a tricky thing):
    For example, you want to download 0EMPLOYEE
    1-In PRD, transaction RSD1
    2-Enter 0EMPLOYEE
    3-Copy the Master table for 0EMPLOYEE (/BI0/MEMPLOYEE)
    4-transaction SE16
    5-Enter the table name /BI0/MEMPLOYEE
    6-in the selection screen, go to "Options" Menu and select "User parameters", and now select "Standard List SE16"
    7-Execute
    8-Now its show's up the 0employee data, go to "System" menu - List - Save - Local File
    9-After you have the flat file, only rest create Infopackae in DEV Env. and load it from the flat file.
    Asigns points if useful.
    Regards

  • Update the expiry date of dunning lock in program

    Hi,
    I have requirement where I want to update dunning lock expiry date to today's date in the program. Does anybody have idea about FM or BAPI for that.
    I have actually used FKK_S_LOCK_DELETE but here i dont want to delete it directly. I have checked other FMs in function group FKLOCK but couldn't find any suitable.
    Thanks in advance,
    Murtuza

    Hi Murtuza,
    You can use function module BAPI_ISUACCOUNT_CHANGE.
    Pass dunning lock details in parameter TCTRACLOCKDETAIL. This function module only create and delete locks.
    So, you need to pass existing lock details (from table DFKKLOCKS) with PROCESSING_MODE = 04 (delete) and append another value with changed expiry date with PROCESSING_MODE = 01 (Create).
    This will also help in maintain lock history too.
    Hope this helps.
    Regards,
    Avinash

  • How system automatically update the RG23A ,C,D Registers

    Hi,
       As after capturing of excise invoice in J1IEX system update the corresponding RG register like for RM,  RG23A,  For capitalk  goods RG23C etc.  i want to know how system find the corresponding register which is to be updated  , 
    , In forum i read it find on the basis of Material type  ,  but insted of std. mat. type  we have create  RM for ROH  , FG  for FERT  etc.  then How system find the register automaticcaly where is the link is made for this.
    regards,
    zafar

    Hello,
    RG23A Register is update. When you are procuring some material from Vendor, then that material is Maintained in J1ID ,(as Raw material)   After capture of excise invoice, system will automaticaly find RG23A register,  Finding of registers is based on material types mentioned in J1ID.
    RG23C is updated when the material is assigned to material types in J1ID as a Consumbales, Tools  and Assets.
    RG23D register will update the plant as defined as DEPOT, then RG23D register gets updated. In DEPOT there is no RG23A and RG23C register, only register is RG23D.
    Regards
    Mahesh Naik

  • PO data will automatically update the required data in sevice entry sheet

    Dear gurus
    How and explain the PO for sevice entry sheet data automatically getting updated
    in service entry sheet..
    pls expalin how it happens
    Thanks & regards
    bhanu

    Hi,
    You  need to select the relevant item from your list of services by doing the following.
    Select your first line item and click the below service selection icon and in your service select the line again and click service tab and all you informATION FROM YOUR Service order will default into your SES.
    Thanks

  • Automatically update the date on opening a document in Pages 5

    I can't find how to automatically update the date on opening a document. I could in Pages 4.

    Indeed. That seems to be the only answer to all the "improvements". At least now I can do a word count with or without spaces. Phew. (Note the sarcasm)

  • Automatic update of HU data in Outbound delivery

    Hello all,
    I would like to create an ABAP program to automatically update the HU data in an outbound delivery. The purpose is to have an excel spreadsheet with the HUs per delivery and download them into the outbound delivery without the need to use manual actions.
    Does anybody know of a FUNCTION, BAPI, IDOC or anything else that may assist me in this task ?
    Thanks,
    Isaac

    Go To transaction BAPI, look at Logistics General -> Handling Unit Management -> Handling Unit
    If you want to create a delivery and know the materials and HUs just populate the delivery IDoc and process it.
    If you want to pack material by uploading this spreadsheet then look at LM* transactions as that is quickest way to find what you want.
    Mike

  • How to automatically create the custom migration scripts after recreating SSMA project?

    How to automatically create the custom data migration scripts after recreating SSMA project?
    There is number of tables ( big tables with BLOBS)  which I want to set up automatically to be migrated with custom migration scripts (replacing e.g. attribute named "FILE" with "TO_BLOB('') AS FILE" ).
    So the question is how to open MB file (I think that it should be standard db of some destktop RDBMS) ? 

    Hi Roman.Pokrovskij,
    According
    to your description, we can use SSMA tool to migrate data from one database (including Access, Oracle and so on) to SQL Server via GUI or the scripts. There is an example about migrating Access database to SQL Server via the
    custom migration scripts, you can review refer to them.
    <?xml version="1.0" encoding="utf-8"?>
    <ssma-script-file xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Microsoft SQL Server Migration Assistant for Access\Schemas\A2SSConsoleScriptSchema.xsd">
    <config>
    <output-providers>
    <output-window suppress-messages="false"
    destination="stdout"/>
    <upgrade-project action="yes"/>
    <data-migration-connection source-use-last-used="true"
    target-server="target_1"/>
    <progress-reporting enable="false"
    report-messages="false"
    report-progress="off"/>
    <object-overwrite action="skip" />
    </output-providers>
    </config>
    <servers>
    <!-- Server definition for Sql server target server-->
    <sql-server name="target_1">
    <sql-server-authentication>
    <server value="$SQLServerName$"/>
    <database value="$SQLServerDb$"/>
    <user-id value="$SQLServerUsrID$"/>
    <password value="$SQLServerPassword$"/>
    <encrypt value="true"/>
    <trust-server-certificate value="true"/>
    </sql-server-authentication>
    </sql-server>
    </servers>
    <script-commands>
    <create-new-project project-folder="$project_folder$ "
    project-name="$project_name$"
    overwrite-if-exists="true"/>
    <connect-target-database server="target_1"/>
    <load-access-database database-file="$AccessDbFolder$\$AccessDatabaseFile$"/>---
    <!--Schema Mapping-->
    <map-schema source-schema="$AccessDatabase$" sql-server-schema="$SQLServerDb$.dbo" />
    <!-- Convert schema -->
    <!-- Example: Convert entire Schema (with all attributes)-->
    <convert-schema object-name="$AccessDatabase$"
    object-type="Databases"
    conversion-report-overwrite="true"
    verbose="true"
    report-errors="true" />
    <!-- Synchronize target -->
    <!-- Example: Synchronize target entire Database with all attributes-->
    <synchronize-target object-name="$SQLServerDb$.dbo"
    on-error="fail-script" />
    <!-- Data Migration-->
    <!--Example: Data Migration of all tables in the schema (with all attributes)-->
    <migrate-data object-name="$AccessDatabase$.Tables"
    object-type="category"
    report-errors="true"
    verbose="true"/>
    </script-commands>
    </ssma-script-file>
    There is a similar scripts about migrating Oracle database to SQL Server, you can use powershell script to automatically run the console for scripts/variable files, saved in the specified folder. For more information, review the following
    article.
    http://blogs.msdn.com/b/ssma/archive/2010/09/09/performing-database-migration-assessment-using-ssma-console-application.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How do I get pages 5.2 to automatically update the date - use 10.9.2

    How do I get pages 5.2 to automatically update the date in my documents - before the update I could do this. Does anybody have the knowledge or a workaround.
    If not I will dump pages 5.2 and use my old version!!! this feature is important for any and all businesses using pages??
    Any advice on how to achieve this is greatly appreciated
    I use a number of macs all using OSX
    10.9.2

    I have the same problem.
    What confuses me is that all the apple provided templates in pages seem to auto update their time and date upon opening.
    So there MUST be a way to do it... Ive been unable to work out how...
    Amnon

  • How can I set the insert date to auto update in Pages 5.2.2

    how can I set the insert date to auto update in Pages 5.2.2
    I am attempting to have the date in header auto update in a Pages file.
    I can insert it, but where is the AUTO UPDATE selection
    OS10.9.4
    thank you

    Apple never included the auto-update feature for dates in Pages v5.2.2. You would have to single-click the date, and deliberately update it.
    If you have Pages ’09 v4.3 in /Applications/iWork '09, then it will allow you to configure auto-update of the date field. Right-click on the date, set the format, and click the selection for automatically update on open.

  • Stop automatically updating the date!

    How do you keep Pages from automatically updating the date when you open an invoice?

    I'm running Tiger so there may be some minor differences, but I ran a few tests starting yesterday and concluded today. If you double click on the date in any of the invoice templates it will open a pane in which (among other things) is a check box that's labeled Automatically update on open. In Tiger it's unchecked by default. Check and see how yours is set. In my tests on 4 templates, when this box was unchecked the dates remained as I set them. Three I dated as 12/6/08 and one I left with the current date. All retained the date I closed with. I noted that only the one I left unchanged would respond to the double click.
    Hope this helps.
    Walt

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • How can we update the last synchronization date and time..on SUP in sccm 2012 R2

    Hi,
        Can you any one please guide me how can i update the last  synchronization date & time in SUP on SCCM2012 r2 , some how its updated as future date and when ever i try to synch the SUP with disconnected WSUS its shows in the wsyncmgr.log 
    "Wakeup for a polling cycle " and  " Wakeupby inbox drop" and "Wakeup by SCF change"  
    Thanks 
    Balaji K

    You'll probably have to call CSS on this one as this not normal by any means. The messages you noted above are completely normal but if that's all you are seeing then there's an issue.
    Have you reviewed wcm.log and wsusctrl.log?
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • How to automatic update necessary infotypes at the end in ISR framework

    Hi experts,
    I want to create a custom PCR scenario based on ISR framework. This scenario will transfer a person from one position to another position. In the normal PCR scenario, the final change of the person's infotype data is done by following-up functions which are defined in the scenario action boxes. These following-up functions require an administrator to login system then mannually choose one following-up function to make the update to the system data. I wonder if it is possible to let the system automatically update the backend system at the end of the execution of ISR scenario. The ISR scenario has a setting called 'Automatic Update', will this help? Or we need to add a step in the PCR workflow to do it? Thanks a lot.

    Automating those kind of updates is part of the new HCM Processes and Forms which is in fact a replacment for PCRs. I would look into that if you can.

Maybe you are looking for

  • Satellite C850 - boot from DVD issue - want to replace Win8 with Win7U

    Got a new C850-1JZ yesterday and am trying to replace pre-installed Win 8 with Windows 7. I did create the recovery media (3 DVDs). The laptop is driving me "insane" as it seems to block any attempt to boot anything else other than Win8 on the preins

  • Sending a table as text( not as attachment)

    Hi, A mail is to be send with the data displayed in the form of a table.No attachments are allowed.When I set a message in the form of String ,message is send perfectly. No problem in sending mail. How can I display the message in mail in the form of

  • Mountain Lion trackpad help

    Is there any Mountain Lion trackpad gesture that brings all open applications up to the front for easy quitting? On Snow Leopard I was able to swipe 4 fingers to the right or left and quit my applications easily by hitting "Command" Q. I know how to

  • IPod 7th gen won't power on

    Hello My iPod kind of froze and I turned it off as an attempt to reset it, and it hasn't been able to turn off since. I tried holding the home and sleep / wake button; didn't work. I tried connecting it to an outlet; didn't work. I tried plugging it

  • Magic Mouse Scrolling is Choppy/Not Smooth

    Hi I recently re-installed Mavericks. Now when I use the 'fast one fingered' scroll on my Apple mouse, it will move a short distance and then completely stop, like someone slamming the breaks on a car. If I do the same on the track pad it will go to