Urgent ! Exit code to calculate End Date (31/12/9999) to Current system Dat

Dear All,
I have a scenario where i need to calculate Position time hold by an employee in an organisation.
I have 2 date Char ( DATE FROM & DATE TO), the problem is that is , If an employee is having
2/3 position in an organisation its current position End Date is always 31.12.999 as its End date is
not know. For previous position End Date is maintained.
My requirement is to calculate Position hold time including Current position.
I have created 2 Formula Variable on Date From & Date To,
The issue is that Date To is having both Values Previous Position Date thats ok as its not 31/12/9999
I am geting those values in Forumla in addition its also having Date For Current position as 31/12/9999
which should be converdet in to current system date.
I need to write a User Exit on End Date Forumla Variable which should only convert if Date = 31/12/9999
else leave it as it.
For EX,
EndDate
1/1/2005
1/1/2006
31/12/9999(Only this value need to convert as current system date and leave above valuse as it)
Can any one please provide me the code for this, this is v urgent.
Thanks V V much.
Regards,

Hi Dilek,
I now understand what you were writing.
I played around a bit and it still doesn't work like I want to.
The really strange thing is when I adapt an existing (SAP - standard) dynamic action (for another IT)  the 'calculation part' is performed and with my own attempt it doesn't substract the day.
0442              BEGDA     06     10     P     T001P-MOLGA='05'
0442              BEGDA     06     20     I     MOD,0014,1539
0442              BEGDA     06     30     W     P0014-ENDDA=P0442-BEGDA
0442              BEGDA     06     50     W     P0014-VTROP='-'
0442              BEGDA     06     55     W     P0014-VTRAN='1'
0442              BEGDA     06     60     W     P0014-VTRZH='010'
If IT0442 is created or changed, IT0014 with subtype/wagetype 1539 should be delimited with enddate = (startdate IT0442 -/- 1 day)
If you can have a look whether I mak e an obvious mistake, it's appreciated.
In the meantime I'll fiddle around as well at my end.....
Thanks,
Wilfred.

Similar Messages

  • Customer exit code to calculate  Average YTD.

    Hi Experts,
    I want to create new column ( AVGYTD TRGT) in Bex report for folling data .( Which is FF data).
    I have created one formula variable(zfmvavgytd) of type customer exit. and strucked at coding part.
    so that, anybody provide customer exit code for required column(avgytd trgt). and details are as follows.
    0CALMONTH  ENO  ENAME  PERDAY_ TRGT  
    04.2011             1     ABC             100                     
    04.2011             2     BCD             200
    05.2011             1     ABC             200 
    05.2011             2     BCD             200 
    06.2011             1     ABC             300 
    06.2011             2     BCD             200 
    07.2011             1     ABC             200
    07.2011             2     BCD             200 
    till  03.2012        
    Now I want to display the column for ( AVG YTD_TRGT)   based on "0calmonth " & " ENo  "   as below
    AVG YTD_TRGT
    100           
    200
    150
    200
    200
    200
    200
    200
    calculation behind this is...
    for 04 .2011   --empno(1)  ---100/1
    for 04 .2011   --empno(2)  ---200/1
    for 05 .2011   --empno(1)  ---200+100/2
    for 05 .2011   --empno(1)  ---200+200/2
    for 06 .2011   --empno(1)  ---300200100/3
    for 06 .2011   --empno(1)  ---200200200/3
    for 07 .2011   --empno(1)  ---200300200+100/4
    for 07 .2011   --empno(1)  ---200200200+200/4

    First you need to calcualte the YTD and then Average YTD.
    Year to Date (YTD) u2013 From the 1st to entered u201CKey Dateu201D for the current year.
    Average Year to Date - YTD divided by the u201CNo of Daysu201D in year till u201CKey Dateu201D for current year.
    Check the below code for getting Previous YTD....next create a Selection restrict the KF with YTD varaible
    Below is sample code for reference.
    to calculate "Previous year to date" (User input Calday u2013 key date)
    WHEN 'ZDAYPYR'.
    IF I_STEP = 2. "after the popup
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZPDATE'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
    L_S_RANGE-LOW(4) = L_S_RANGE-LOW(4) - 1. "low value previos year
    v_loc_date = L_S_RANGE-LOW. "take input value in another variable
    L_S_RANGE-LOW+4(4) = '0101'.
    L_S_RANGE-HIGH = v_loc_date. "high value = input, taken into another variable
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.

  • Calculate End Date

    Hi,
    I have 3 fields Start Date (Date Type), Term Length (Number) & End Date (Date Type). The user enters a start date and the contract term length in months, I need to calculate the end date.
    For e.g. *09/12/2012 + 5 = 02/12/2013* -- -- NOT+ -- _09/17/2012_.
    Basically add the number of months to the date and calculate the end date, but the default in CRMOD is adding the number as no. of days not month.
    Is there any way I can do this using workflows. (I need the data displayed on the layout).
    I thought of using the "Month" function to extract the value and add the no. of months, but it threw an error that it cannot work with 1 parameter.... I assume it is reporting only function and will not work in workflows. Is there any way/logic by using Julian Day/Month or some other function to do this calculation?
    If not possible using workflows, as a last resort is it doable using reports?
    Thank You

    Gaurav,
    Try this :
    Create a Workflow and use the below expression on the field you want to update
    Expr:- [<StartDate>]+[<TermLength>]*30
    30 is the number of days in a month, this is a simple approach. If you want to use the actual number of months (which I think is your requirement) from that start date to the end date based on the number of months selected in Term Length, you will have to so some more If's and else, use the IIf function to validate this.
    Ex: IIf(Month value of Start date is 1/January and the number of months selected in term length is 5 then you will have to build your logic around that to get number of months in each of those 5 months and use the sum of that in the code above.
    Good Luck!
    Royston

  • How to Calculate End-Date for a given Startdate in business hours without holidays

    Hello Experts,
    I need to create a plsql function where we need to determine end date for a task. For this, input will be only start date & number of hours allocated for that task. Based on this input we need to exclude Business hours & need to include only Business hours. and in the end we need to achieve the end date after the hour addition to the start date.
    Example : INPUT: 03-OCT-2013 12:00:00 PM /
                                  Hours Allocated 30 Hrs.
    Business Hours - 11 AM to 9 PM.
    So time starts from or Startdate is Friday 03-OCT-2013 12:00:00 PM. 
    So If I want to calculate the end-date by adding 30 hours to it, it should come WednesDay 09-OCT-2013 12:00:00 PM because I excluded Weekends & considered only business hours that is 11 am to 9 pm.
    I am not able to get any such guidance in Internet as most of the docs are having start & end date as input.
    Please help!
    Thanks in advance !!

    Hi,
    As Christ said, there's no nuilt-in Oracle function to tell whether a given DATE is a holiday or not, partially because there's so much local variation in holidays.  You can write a function like that (see http://forums.oracle.com/forums/message.jspa?messageID=3351081 ), but creating a table will be simpler and more efficient.
    I suggest creating a row for every date, whether it's a work day or not; that way, you can have variations in the schedule (e.g., schedule changes and
    partial holidays).
    CREATE TABLE  work_calendar
    (   dt  DATE       PRIMARY KEY
                       CONSTRAINT  work_calendar_dt
                           CHECK (dt = TRUNC (dt))
    ,   day_type       VARCHAR2 (8)  NOT NULL
                       CONSTRAINT  work_calendar_day_type
                           CHECK ( day_type IN ( 'HOLIDAY'
                                               , 'WEEKEND'
                                               , 'WORK DAY'
    ,   start_time     DATE
    ,   end_time       DATE
    ,   work_hours     NUMBER
    ,   work_hours_since_1970     -- or some point earlier than you'll ever need
                       NUMBER
    ,   CONSTRAINT  work_calendar_start_time
            CHECK ( TRUNC (start_time) = dt)
    ,   CONSTRAINT  work_calendar_end_time
            CHECK ( TRUNC (end_time) = dt)
    This will let you do a lot of the calculations you need without a function.

  • Calculate end date from inputs : start date and number of months

    Hello Experts,
    I have a start date and number of months from which i need to calculate the end date.
    For Eg: start date = 03-12-2008
                no. of months = 48
          Ans: end date = 03-12-2012
    Please help me.

    requirement is no different from what is stated in the previous thread.
    To elaborate further, I'm looking for some Function Module or some relevant alternative to calculate the future date.
    Future date is calculated using a start date input and No. of months.
    As stated in the example in my previous thread.
    For eg:
    Inputs to FM    : Start date        : 03-12-2008
                                    No. Of months : 48  months
    Output from FM: Future Date     : 03-12-2012
    Looking forward for your reply.

  • End-date for EBS account for Re-hires

    Hi Guys,
    I am facing a weird issue.
    We have configured EBS connector which is working fine for all new users. But in case of new hires, the END-DATE on EBS account is not getting changed. But it is getting changed on EBS process form. I did not see any errors in the log to trace the issue.
    Please help me out.

    locate the EBSUM jar,java class and method being called for this task and extract jar to verify the OOTB code, I don't remember exactly but this code issue. verify this using decompiler.
    If you check the ootb updateuser method(ORCL_EBS_UM_9.1.0.7.0\lib\EBSUM\oracle\iam\connectors\ebs\usermgmt\integration\EBSUserManagement.jar), enddate pass as s7 and this is not being considered for update. this is bug with connector you can raise SR to oracle or try below( which I applied earlier)
    write a java code to update end date directly into ebs database.
    1. remove the existing adapter and attach your custom adapter where pass username,effective date to, ebs database login detail( already you have in the itresource pass the same here.
    2. now write a java code and do below step
    a) connect to database using normal sql connection
    b) executeUpdate method to update end date ( update fnd_user where set eff_date_to=to_date(enddate,'format') where username=user) something like this.
    before doing above login to ebs db using apps user and describe the fnd_user table and see the exact attribute name.
    --nayan
    Edited by: Nishith Nayan on Mar 16, 2012 1:51 AM

  • ERROR - the ProtectKeyWithTPMAndPIN Method failed with the exit code: 8031005B

    Hello
    I am using the EnableBitlocker.vbs script to automatically assign the TPM and start the encryption. I am running it from an elevated command prompt. Here is are the arguments I am running with
    cscript EnableBitLocker.vbs /on:tp
    /l:c:\bitlockerlog.log /promptuser /ro:"MBAM" on
    All is well and it prompts the user for a PIN but then it fails.
    Here is the full log file. I haven't been able to find any info on the error code in the subject.
    Script processing started  02/07/2014       14:43:27
    Proper number of command line arguments passed to the script
    ---------------Executing with the following arguments------------------
    Enable parameters: tp
    Logging location: c:\bitlockerlog.log
    Create recovery key: No recovery key use specified
    Encryption method: 3
    Create SMS status MIF's: No SMS status MIF's will be created
    Reset TPM ownership: 1
    User prompting: 1
    Connection succeeded to MicrosoftTPM
    Successfully retrieved a TPM instance from the Win32_TPM provider class
    TPM found in the following state:
    Enabled - True
    Activated - True
    Owned - True
    Connection succeeded to MicrosoftVolumeEncryption
    TPM is in a ready state to enable BitLocker.
    Change TPM owner password specified on the command line.
    Random TPM owner password is: ;&K:)BU65|c7_v2n
    Completed converting old owner password to owner authorization:  0
    Completed converting owner password to owner authorization:  0
    Starting to change owner authorization process on the TPM
    ERROR - Failed to change owner authorization on the TPM with the following exit code:  80280001
    Successfully connected to WMI StdRegProv
    Checking if Group Policy encryption method is set...
    Found EncryptionMethod with value: 4
    Found EncryptionMethod policy registry key ignoring any /em options on command line
    Found ActiveDirectoryBackup with value: 1
    Found RequireActiveDirectoryBackup with value: 1
    Determined client Group Policy configured to require AD escrow of recovery password
    EncryptableVolumes count is: 1
    The EncryptableVolume(s) found: \\?\Volume{ad6db324-01dd-11e4-8272-806e6f6e6963}\
    EncryptableVolume used for encryption is: C:
    The volume has a protection status of: 0
    BitLocker Protection is Off
    Get conversion status is: 0
    The volume has a status of fully decrypted
    The following user is logged on: MGMT\80151318-sys
    Attempting to enable BitLocker TPM + Pin
    ERROR - the ProtectKeyWithTPMAndPIN Method failed with the exit code:  8031005B
    Script ended  02/07/2014       14:43:51
    Any and all help would be appreciated. This has worked before on a different laptop.
    Thanks

    Hi,
    This error indicates that the group policy isn't set correctly, when configure the group policy at teh server side, you should notice that only one of the additional authentication can be required at start up , otherwise a policy occurs, the notice can be
    found just like below:
    and after test, the error indeed occurs, just like the screen below:
    So, I suggest to check the group policy for bitlocker settings, you can only choose one start up authentication method.
    Regards
    Wade Liu
    TechNet Community Support

  • A failure exit code of 257 was returned - Offfice Communicator 2007 deployment

    Hi
    I'm trying to deploy Office Communicator 2007 with the MSI-File, the patch with the msp-file and the mui also an msi file.
    I do this with a task sequence.
    I tested the deployment a couple of times and it worked all the time.
    Now I deployed the package to our clients this are xp sp3 and vista sp1 clients.
    The deployment worked for about 2 hours. The notebook who where online at this time they received the package.
    So I was able to update approximately the half of all clients.
    But now every notebook who receive the deployment will get the same error massage:
    1. The program for advertisement has not yet startet -> that is normal
    2. Advertisement was received -> that is normal
    3. Progarm started for advertisement (Command line: "C:\Windows\system32\CCM\TSLauncher.exe") -> also normal
    4. The program for advertisement "XXX" failed ("BMA0014D" -"*") -> Then the advertisement has finished and no software is installed.
    Here the error message:
    The program for advertisement "BMA202BD" failed ("BMA0014D" - "*"). A failure exit code of 257 was returned.  User context: AUTORITE NT\SYSTEM    Possible cause: Systems Management Server (SMS) determines status for each program it executes. If SMS cannot find or correlate any installation status Management Information Format (MIF) files for the program, it uses the program's exit code to determine status. An exit code of 257 is considered a failure.  Solution: For more information on the exit code, refer to the documentation for the program you are distributing.
    BMA0014D is the ID of the Task sequence.
    So I was searching on the internet but I didn't found anything about the "exit code of 257"
    Why does it worked for 2 hours and now I receive the error message?
    I tried to update the software packages on the distribution point. But I still get the same error.
    Then i tried to create the advertisement new. But it still doesn't work.
    The advertisement run time is set to "as soon as possible". The expire time isn't set.
    Where is the problem?
    I have no idea.
    Thanks for your quick respond.

    Hi
    Now I tested normal advertisements and TS advertisements.
    Both don't work and they get both the same error message, like this above.
    Here is the content of the smsts.log:
    Attempting to get locations for this member program. TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    Location of the reference package BMA0014E is already resolved. Continue on next member program. TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    Initializing polciy env variables TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    Found policy in local WMI TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    Initializing HTTP transport. TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    Preparing Policy Assignment Request. TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    Getting assignments from local WMI. TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: {3e48ad32-bd2d-4723-b03d-1b0ef0f48a98} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found non-active policy: {742d5df6-65e3-41d3-ab4b-183e1245fd37} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: {5cd60bfc-92b0-4aa5-bd99-26194a3affa4} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: {370da0bb-6d10-4fe6-bb2f-343fcaa16538} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: {7df73a1c-216e-450e-8ab3-f98f06fd5d9e} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found non-active policy: {a1bc1884-4826-4e87-8b3d-92335e6add61} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: {2e1d5407-e4fb-41be-bf3b-42a53f568575} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: {b6ce388c-fc36-4ab0-a054-30e55289fcba} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: {d73c8222-a828-4e06-8464-b3f65393f027} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: SMS00001-{166f310d-5df1-4e63-aca4-b8fe072d3c7b} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: SMS000ES-{04e7e852-ad40-49ec-9fe7-418be29053ba} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: {0b83f8e4-88b7-4676-8465-9f014d8eb901} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: {f9ba7a86-7390-4da1-a750-4c1d38886dd3} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: {b0e4df7f-fe9f-4b34-978f-1085e83137a1} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: {931e35bc-1469-4747-b37b-9f36c2e80ab5} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    found empty policy xml: {efe026c1-f84c-4ff0-b5f5-682d492c8fc9} TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    Successfully read 13 policy assignments. TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    Cannot find NAAConfig CCM_NetworkAccessAccount TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    Network Access Account is not set TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    Error initializing policy environment variables. Code 0x80040101 TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    Error initializing TS environment. Code 0x80040101 TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    Task sequence launcher advertisement failed!. Code 0x80040101 TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    Successfully finalized logs to SMS client log directory from C:\WINDOWS\system32\CCM\Logs TSLauncher 16.07.2009 14:34:57 912 (0x0390)
    I have this content on all clients which do not get the advertisement.
    What do you mean, what does your TS look like?
    I have an Run Script command and 3 software packages to install.
    On the client there will be a message that the installation in 5 minutes will beginn.
    After those 5minutes the message disappear and that's all. Then I get the error message on the sccm server.
    Where can I set or check the Network Access Account?

  • A failure exit code of 1152 was returned

    The program for advertisement "XXXXXX" failed ("XXXXX" - "*"). A failure exit code of 1152 was returned.
    User context: NT AUTHORITY\SYSTEM Possible cause: Systems Management Server (SMS) determines status for each program it executes. If SMS cannot find or correlate any installation status Management Information Format (MIF) files for the program, it uses the
    program's exit code to determine status. An exit code of 1152 is considered a failure. Solution: For more information on the exit code, refer to the documentation for the program you are distributing.
    I was trying to deploy a package which installs in a task sequence but failing. It works on other machines but failing on this particular client and was getting
    the above status on SCCM. Anyone who already encountered this issue?
    Thank you!

    Below is the last failed status:
    The program for advertisement "HD1200B0" failed ("HD100173" - "*"). A failure exit code of 33280
    was returned. User context: NT AUTHORITY\SYSTEM Possible cause: Systems Management Server (SMS) determines status for each program it executes. If SMS cannot find or correlate any installation status Management Information Format (MIF) files for the
    program, it uses the program's exit code to determine status. An exit code of 33280 is considered a failure. Solution: For more information on the exit code, refer to the documentation for the program you are distributing.
    The last smsts.log indicated:  "Waiting for software updates to pause".
    A failure exit code of 33280?
    Thanks!

  • Calculate the working days having the start and end dates only

    Hi,
    Can BIP be able to calculate the working days having the start and end dates only? It is like the NETWORKDAYS function in Excel. (i.e. excluding weekends and holidays).
    Thanks.

    Not out of the box.
    But You could extend your BIP functions
    Look at here:
    http://blogs.oracle.com/xmlpublisher/2009/05/bip_by_extension.html
    Based on that what you need is similar to the following Java code:
    http://objectlabkit.sourceforge.net/
    regards
    Jorge A.

  • Updating driver data fail? (EXIT CODE 7)

    I keep getting this error, and I'm not sure how to trouble shoot it. I keep getting locked up at 42% on each Install. I thought that adobe automatically updates each version but just understood that there was an update July 2014 and I should pick and choose what I'd like to install.
    Anyone know how to fix this issue?
    Installation Failed
    Errors encountered during installation. (7)
    -------------------------------------- Summary --------------------------------------
    09/21/14 16:11:06:363 | [INFO] |  | OOBE | DE |  |  |  | 11608 |  - 0 fatal error(s), 1 error(s)
    09/21/14 16:11:06:363 | [INFO] |  | OOBE | DE |  |  |  | 11608 | OSX version: 10.9.4 
    09/21/14 16:11:06:363 | [INFO] |  | OOBE | DE |  |  |  | 11608 |
    09/21/14 16:11:06:364 | [INFO] |  | OOBE | DE |  |  |  | 11608 |
    09/21/14 16:11:06:364 | [INFO] |  | OOBE | DE |  |  |  | 11608 | ERROR: Updating driver data failed. Driver entry was notadded. ARP estimated size 0KB
    09/21/14 16:11:06:364 | [INFO] |  | OOBE | DE |  |  |  | 11608 |
    09/21/14 16:11:06:364 | [INFO] |  | OOBE | DE |  |  |  | 11608 | Please search the above error string(s) to find when the error occurred.
    09/21/14 16:11:06:364 | [INFO] |  | OOBE | DE |  |  |  | 11608 | These errors resulted in installer Exit Code mentioned below.
    09/21/14 16:11:06:364 | [INFO] |  | OOBE | DE |  |  |  | 11608 | -------------------------------------------------------------------------------------
    09/21/14 16:11:06:364 | [INFO] |  | OOBE | DE |  |  |  | 11608 |
    09/21/14 16:11:06:364 | [INFO] |  | OOBE | DE |  |  |  | 11608 | Exit Code: 7 - Unable to complete Silent workflow.
    09/21/14 16:11:06:388 | [INFO] |  | OOBE | DE |  |  |  | 11608 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    09/21/14 16:11:06:389 | [INFO] |  | OOBE | DE |  |  |  | 11608 | END - Installer Session
    09/21/14 16:11:06:389 | [INFO] |  | OOBE | DE |  |  |  | 11608 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*

    Are you trying to download the software onto OneDrive?  That's what your file extension shows.  That seems like a problem right there.  Try installing lightroom to the pro 3's hardrive.  I'm not a computer wiz, so I could be wrong.   

  • Data Store Error Exit Code 3

    Hi all,
    One of the data stores that I am using constantly encounters an intermittent error which causes the data store to go down before Endeca Server restarts the data store automatically and restore access to the data store. This also causes the access to the studio page to be affected as well. I am wondering if anyone has encountered similar issues like this and perhaps has a fix for this issue? The error code that is shown on Endeca Server is as below:
    "[Process watcher for 'DataStore']WARN [DGraph] 'DataStore' data store process ended with exit code 3. Automatically restarting."

    Andrassy it appears that your current User account's file permissions have become compromised for the C:\Program Files (x86)\Adobe\Adobe InDesign CS5 folder.  Please see Error "Exit 6" or "Exit 7" | Install log | Read, write, system file errors | CS5, CS5.5 - http://helpx.adobe.com/creative-suite/kb/error-exit-6-exit-7.html for information on how to adjust your file permissions.

  • Week End Date calculates dates in table issues

    Greetings All,
    I'm working on a LiveCycle Designer ES4 document that has a Week Ending Date MM-DD-YYYY (which need to always be a Saturday) selected in a subform.
    I need this Week End Date to then calculate and display the selected Saturday and the previous days in a seperate subform with a table. The days need to display in seperate columns below the header.
    This is what I have so far:
      TopmostSubform.Page1.Requestor.WeekEndDate::exit - (FormCalc, client)
    var endDate = Date2Num($,"MM-DD-YYYY")
    var dayOfWeek = Num2Date(endDate, "E")
    if (dayOfWeek <> 7) then
       xfa.host.messageBox("Ending date must be a Saturday")
       $ = null
       xfa.host.setFocus("$")
    endif
    Page1.#subform[1].InputTable.Row1[0].Date7 = Num2Date(endDate - 0, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date6 = Num2Date(endDate - 1, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date5 = Num2Date(endDate - 2, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date4 = Num2Date(endDate - 3, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date3 = Num2Date(endDate - 4, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date2 = Num2Date(endDate - 5, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date1 = Num2Date(endDate - 6, "DD")
    However I keep getting an error on the WeekEndDate when selecting a Saturday.
    Does anyone have any idea what I'm doing wrong?
    Thank you for any help!
    -Michelle

    Well, I never got an answer from the forum here, but to help out others - here is what I did:
    This was all done in FormCalc.
    The object WeekEndDate Date/Time Field has a set pattern date{MM/DD/YYYY} in the Object Field Pattern in LiveCycle.
    BUT, the Scripting required the pattern to be YYYY-MM-DD
    Why? I have no flipping clue. It won't work any other way for me.
    Also this item requires a Saturday Date to be chosen. Days of the week are designated by numbers (Sunday = 1, Monday = 2, etc.)
    The line <>7 means that if the day is not Saturday (7) then the error message "Ending date must be a Saturday" will appear.
    This is the Exit event Script:
    TopmostSubform.Page1.Requestor.WeekEndDate::exit- (FormCalc, client)
    var endDate = Date2Num($,"YYYY-MM-DD")
    var dayOfWeek = Num2Date(endDate, "E")
    if (dayOfWeek <> 7) then
         xfa.host.messageBox("Ending date must be a Saturday")
         $ = null
         xfa.host.setFocus("$")
    endif
    The individual Date cells are set to a Date/Time Field with no pattern set in the Object Field Pattern in LiveCycle.
    The coding below designates a MM/DD pattern.
    Each individual field has it's own scripting, with the appropriate minus calculation  - #
    This is the Calculate script for the Sunday cell:
    TopmostSubform.Page1.#subform[1].InputTable.Row1[0].Date1::calculate - (FormCalc, client)
    var dateNum = date2num(TopmostSubform.Page1.Requestor.WeekEndDate.formattedValue,"MM/DD/YYYY") - 6
    $.rawValue = num2date(dateNum,"MM/DD")
    And the Saturday cell, that needed to display the Saturday End Date has the following Script, with NO minus number:
    TopmostSubform.Page1.#subform[1].InputTable.Row1[0].Date7::calculate - (FormCalc, client)
    var dateNum = date2num(TopmostSubform.Page1.Requestor.WeekEndDate.formattedValue,"MM/DD/YYYY")
    $.rawValue = num2date(dateNum,"MM/DD")
    Why did I include this all here?
    Because this whole project has been gawd-awful, and hopefully these insights can help another struggle forms designer understand the FormCalc scripting used.
    -M

  • How to calculate first date and end date of this year in Query

    Hi Expert
    I want to calculate following dates with inputted date in query.
    I have no knowledge on ABAP and I just can create a query with simple logic.
    Could you teach me how to calculate following date?
    (If inputted date is April 12 2009)
    - First date of this year (Ex January 1 2009)
    - End date  of this year (Ex December 31 2009)
    - First date of last year (Ex January 1 2008)
    - End date of last year  (Ex December 31 2008)
    - First date of this month (Ex April 1 2009)
    Thank you!
    Take

    HR_JP_MONTH_BEGIN_END_DATE   use this FM to get the begin and end date of the Date you are passing. eg when u give input as 04/12/2009, it will return
    04/01/2009 as begin date
    04/30/2009 as end date
    pass the Year in this FM HR_E_GET_FISC_YEAR_DATES, you will get the Fiscal year Begin and End Dates
    Abh

  • Can't Install Adobe Air "Runtime installer end with exit code 0"

    Can't get Adobe AIR to Install.  Any Suggestions?
    Windows 7 Home Premium
    Dell Inspiron
    [2012-01-26:09:32:07] Runtime Installer begin with version 3.1.0.4880 on Windows 7 x86
    [2012-01-26:09:32:07] Commandline is:
    [2012-01-26:09:32:07] Installed runtime (3.1.0.4880) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2012-01-26:09:32:09] Launching subprocess with commandline c:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\Adobe AIR Updater -installupdatecheck
    [2012-01-26:09:32:09] Runtime Installer end with exit code 0
    [2012-01-26:09:32:09] Runtime Installer begin with version 3.1.0.4880 on Windows 7 x86
    [2012-01-26:09:32:09] Commandline is: -installupdatecheck
    [2012-01-26:09:32:09] Installed runtime (3.1.0.4880) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2012-01-26:09:32:10] Performing pingback request
    [2012-01-26:09:32:11] Pingback request completed with HTTP status 200
    [2012-01-26:09:32:11] Starting runtime background update check
    [2012-01-26:09:32:11] Begin Background update download from http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.1.0.4880/update
    [2012-01-26:09:32:11] Unpackaging http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.1.0.4880/update to C:\Users\MarkGrieseDellInspir\AppData\Roaming\Adobe\AIR\Updater\Background
    [2012-01-26:09:32:11] Runtime update not available
    [2012-01-26:09:32:11] Unpackaging cancelled
    [2012-01-26:09:32:11] Runtime Installer end with exit code 0
    [2012-01-26:09:32:17] Runtime Installer begin with version 3.1.0.4880 on Windows 7 x86
    [2012-01-26:09:32:17] Commandline is: -arp:uninstall
    [2012-01-26:09:32:17] Installed runtime (3.1.0.4880) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2012-01-26:09:32:19] Relaunching with elevation
    [2012-01-26:09:32:19] Launching subprocess with commandline c:\program files (x86)\common files\adobe air\versions\1.0\resources\adobe air updater.exe -eu
    [2012-01-26:09:32:19] Runtime Installer begin with version 3.1.0.4880 on Windows 7 x86
    [2012-01-26:09:32:19] Commandline is: -stdio \\.\pipe\AIR_2360_0 -eu
    [2012-01-26:09:32:19] Installed runtime (3.1.0.4880) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2012-01-26:09:32:19] Starting runtime uninstall. Uninstalling runtime version 3.1.0.4880
    [2012-01-26:09:32:19] Uninstalling product with GUID {FE23D063-934D-4829-A0D8-00634CE79B4A}
    [2012-01-26:09:32:20] Runtime Installer end with exit code 0
    [2012-01-26:09:32:20] Elevated install completed
    [2012-01-26:09:32:20] Runtime Installer end with exit code 0
    [2012-01-26:09:32:35] Runtime Installer begin with version 3.1.0.4880 on Windows 7 x86
    [2012-01-26:09:32:35] Commandline is:
    [2012-01-26:09:32:35] No installed runtime detected
    [2012-01-26:09:32:39] Relaunching with elevation
    [2012-01-26:09:32:39] Launching subprocess with commandline c:\users\markgr~1\appdata\local\temp\air6613.tmp\adobe air installer.exe -ei
    [2012-01-26:09:32:41] Runtime Installer begin with version 3.1.0.4880 on Windows 7 x86
    [2012-01-26:09:32:41] Commandline is: -stdio \\.\pipe\AIR_2720_0 -ei
    [2012-01-26:09:32:41] No installed runtime detected
    [2012-01-26:09:32:42] Starting silent runtime install. Installing runtime version 3.1.0.4880
    [2012-01-26:09:32:42] Installing msi at c:\users\markgr~1\appdata\local\temp\air6613.tmp\setup.msi with guid {FE23D063-934D-4829-A0D8-00634CE79B4A}
    [2012-01-26:09:32:43] Runtime Installer end with exit code 0
    [2012-01-26:09:32:43] Elevated install completed
    [2012-01-26:09:32:44] Launching subprocess with commandline c:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\Adobe AIR Updater -installupdatecheck
    [2012-01-26:09:32:44] Runtime Installer end with exit code 0
    [2012-01-26:09:32:44] Runtime Installer begin with version 3.1.0.4880 on Windows 7 x86
    [2012-01-26:09:32:44] Commandline is: -installupdatecheck
    [2012-01-26:09:32:44] Installed runtime (3.1.0.4880) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2012-01-26:09:32:45] Performing pingback request
    [2012-01-26:09:32:45] Pingback request completed with HTTP status 200
    [2012-01-26:09:32:45] Starting runtime background update check
    [2012-01-26:09:32:45] Begin Background update download from http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.1.0.4880/update
    [2012-01-26:09:32:45] Unpackaging http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.1.0.4880/update to C:\Users\MarkGrieseDellInspir\AppData\Roaming\Adobe\AIR\Updater\Background
    [2012-01-26:09:32:45] Runtime update not available
    [2012-01-26:09:32:45] Unpackaging cancelled
    [2012-01-26:09:32:45] Runtime Installer end with exit code 0

    I ran across a suggestion here:  http://kb2.adobe.com/cps/403/kb403150.html  that sent me to a Microsoft fix here:  http://support.microsoft.com/mats/Program_Install_and_Uninstall/en-us.  That seemed install.  It seems to run Adobe Air Launchpad.  That's all I know so far.  Still learning all this.

Maybe you are looking for

  • I cant open my applications folder due to insufficient privileges

    we just got hooked up to new internet, now only one profile can open any application. Including safari... what could it be? i tried deleting the account and reopening one....

  • Regarding creating task using BAPI_ACTIVITYCRM_CREATEMULTI

    *w_partner-REF_GUID           = g_guid. *w_partner-REF_HANDLE         = c_ref_handle.              "reference handle '0000000001' w_partner-REF_KIND           = c_ref_kind.                " object type A(admin header),B,C,D,E w_partner-REF_PARTNER_HA

  • Can't Export after Mountain Lion Upgrade

    A few days ago I was happily working along in FCPX, the day before yesterday I upgraded to Mountain Lion, I return to my projects and now the Share/Export features are all Greyed Out. I've seen some mention reinstalling but many more say that has not

  • Possible solution to your Optical Drive failure

    Hey everyone. So I've been having the same issue that it seems like everyone else has been having with their optical drive spitting out DVDs and CDs. Well first off here are the specs of my drive: HL-DT-ST DVDRW GSA-S10N: Model: HL-DT-ST DVDRW GSA-S1

  • Windows Vista & Canvio 3.0

    Hello, I set up my Canvio 3.0 - 1TB - and the software. Problem is Microsoft (Vista) keeps saying the EZ Module stopped working & they shut it down. Can I override the software & just drop my files in? The light is on & what files I did drag & drop s