Passing the month dynamically for Calender

Hi,
I have date which is fetched from Database, which is in this format "dd/mm/yyyy" those value is 10/02/2010.
I have parsed these values and now using Calender class, i need to add another 110 days to it. Hence the final result should be 30/05/2010 (30th May, 2010)
Hence i thought of using Calender.add(Calender.DAY_OF_MONTH,110); this will fetch the right results, but i shouldnot hardcode the month as it is coming from DB(it can be any month). Hence i tried using the Calender.add(Calender.FEBRUARY,110) that doesnot work eitheir same is the case with
Calender.add(2,110) , here "2" is for the month of "FEB". Is there any way to pass the month and the day (coming from DB) along with the amount (110 days) to get the final date? Please shed some light into this.
Thanks,
Rithu

Rithanya wrote:
Thanks for the respone... the Calendar.add(Calendar.DAY_OF_YEAR, 110) will give the correct result, but the pbm here is the Calendar.DAY_OF_YEAR or
Calendar.DAY_OF_MONTH will take the current date month, which is "Feb". I dont need that to be specified using these contants, because i my case these
i will be getting the DB(it can be any month /day/year) like 10/25/2011 (mm/dd/yyyy), these i need to parse to get the respective "mm", "dd" and "yyyy" and for this date that is (10/25/2011) i need to add 110 days more and not for the current date (02/15/2010)? I hope you got it. hence the Calendar.DAY_OF_YEAR cant be used. Please respond.Perhaps this means that if your Calendar object contains the current date, then the result of that operation will be adding 110 days to the current date. Yes, this is true. However if the Calendar object contains some other date, then the result of that operation will be adding 110 days to that other date.
In which case, yes, you should set the Calendar Object to the correct date before you add 110 days to it. Otherwise, all that raving about the constants looks like nonsense if you read it literally.

Similar Messages

  • Passing the Opening Balance for the 1st peroid of the quater

    HI ,
    Passing the Opening Balance for the 1st peroid of the quater: The report format is as follows
    Code-Desc-Amount
    1001-AAAA-1000
    1002-BBBB-2000
    1003-CCCC-3000
    The output is based on quaterwise. If I enter the first period of the particular quater, it will show the reports for the whole quater. I created the report and working fine.
    But the problem is that, if it is AAAA, i need to pass only first period of that quater else total of the quater.
    Can you please, explain me how to do this....
    Thanks and Regards
    Rajesh

    Hi Pooja,
    RSA3 only shows records in setup table, which is collected by MCNB.
    by MCNB, you could only get the current opening stock, and in order to calculate the open stock in previous month,
    you'd have to load the history movement via 2lis_03_bf.
    Thanks & B.R.
    Vince

  • I have just recieved the error message when trying to enter my AI, and PS.I have been paying for the monthly membership for 3 months and still havent been able to use these softwares. they are already installed it just wont let me acess them anymore?

    i have just recieved  the error meassage when trying to open up both my AI and PS. I have paid the monthly payments for the membership and i have both softwares installed. what can i do to work on them and why are they giving me this error message?

    Sign in, activation, or connection errors | CS5.5 and later
    For anything else you have to be more specific. you have not provided any system information nor told us, what the error message actually is.
    Mylenium

  • Hi there, I made the monthly payment for the Adobe apps, i managed to download Illustrator and Photoshop but can't seem to download Indesign. It says that "file seems to be corrupted... try later". How do I solve this problem?

    Hi there, I made the monthly payment for the Adobe apps, i managed to download Illustrator and Photoshop but can't seem to download Indesign. It says that "file seems to be corrupted... try later". How do I solve this problem?

    Hi shuster9,
    It seems the downloaded setup for InDesign has got corrupt.
    Could you please clear the TEMP from your computer and then retry.
    Thanks,
    Manish Sharma

  • How to pass the arguments dynamically to a Oracle procedure.

    Hi all..
    How to pass the arguments dynamically to a procedure.
    Thanks in Advance.

    I have a concurremt program which has 5 parameters right now. The user can add more parameters from front end as per their requirement.
    So that time.. the 6th parameter has to add to my procedure dynamically.
    Thanks.

  • Passing the fields dynamically by bdc prog to the infotype

    hi,
         I have a requirement to pass the fields dynamically to the infotype database through bdc program from flat file or data set.
                   Here I will give the field values in irregular way but it has to be sort before uploading to the data base of infotype.
            I hope any body can helpl me.
    thanks and regards,
    Sekhar.

    Hi Sekhar,
    1. define the type
    2. internal table & Work area declerations.
    3. use function modules KD_GET_FILENAME_ON_F4 & ALSM_EXCEL_TO_INTERNAL_TABLE to upload the data from excel file.
    4. Loop the internal table which is loaded from ALSM_EXCEL_TO_INTERNAL_TABLE fm and Sort the table based on the field which you required to sort.
    Thanks & Regards,
    Ganesh R K

  • Switching to the monthly plan for photographers. Trying to downloading the Photoshop CC. What are the steps? Where do I find the app on my desktop?

    I have the free Creative Cloud, which ends Sept. 5, 2014. I have switched to the monthly plan. Do I just update the Creative Cloud for just PhotoshopCC and Lightroom 5 or do I have to download PhotoshopCC again?
    I tried to download Photoshop, but it asks my to choose the place on my hard drive (C). I can't seem to find it to open it up. I need help.  Can someone please guide me through this?
    I also have Lightroom 5 under the Creative Cloud that I have to switch.

    Geez, don't mix up everything! The free CC access may or may not include full access to all apps. Now, with the monthly subscription for photographers, you will only have access to PS, LR and BR. So it seems, you already have all the apps installed, so no need to download anything again. With the beginning of your new subscription, you change the account details in your CC account manager and then either it deletes the apps which are not licenced or you just won't be able to start them anymore.

  • Does the monthly fee for photoshop cover installation on only one PC?

    Does the monthly fee for Photoshop cover installation on more than one PC?

    You can install and use CC on 2 computers.
    Mylenium

  • How to pass the "path" dynamically to KM navigation iView ?

    HI Experts.
    This is my issue:
    I have a WD Java iView, with a data table.
    In the same page, I have a KM navigation iview too.
    Conceptually, each row in this table, have some documents in a CM Repository asociated.
    This repository has subfolders for each master data in the table.
    (example: imagine a table with material master data, and a repository with a subfolder for each material,
    and inside of it, several unstructure documents about this material.
    Then, I need to call a KM Navigation iview when click a table row, passing parameters, in special the "path".
    I am using this code in my action (triggered from webdynpro iview)
         WDPortalNavigation.navigateAbsolute("ROLES://portal_content/com.stk.demos.folders.zz_demos/com.stk.demo.ch.TEST_CH/com.stk.demo.ch.Listar_Docs",
         WDPortalNavigationMode.SHOW_EXTERNAL, (String)null, (String)null,
         WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS, "test",
         (String)null, (String)null );
    Partially it works, the window open and show the navigation iview, but...
    in the root directory (or directory indicated in iView harcoded properties);
    But I need pass the path !
    How can I call that iView, dinamically using a parameter, the path (property ID: path)
    to the KM navigation iView, in order to open initially in a indicated path?)
    I have read this link
    http://help.sap.com/saphelp_nw04s/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
    but, I still can't understand how to use this parameters.
    Thanks in Advance.
    Leandro.

    Hi Leandro,
    You can create your own proxy IView and then redirect it to KM Navigation IView.
    This way you can dynamically change the path.
    Check this to know about proxy IView:
    KM Document Iview Source Code
    /thread/190600 [original link is broken]
    Regards,
    Praveen Gudapati

  • How to pass the value dynamically in exp/imp utilities of oracle

    I want to pass the value of org_grp_i dynamically,instead of passing the value
    19.Can you please tell how to write the script to this
    exp fas/xxxxxx@fasbd001 file=audit_grn_28aug.dmp tables=audit_grn query=\"where org_grp_i=19 \"
    where xxxxxx is the password
    Thanks

    You need to make use of command line arguments. You can go through this link for example.
    http://www.freeos.com/guides/lsst/ch02sec14.html
    In your shell script(say test.sh) you can have
    exp fas/xxxxxx@fasbd001 file=audit_grn_28aug.dmp tables=audit_grn query=\"where org_grp_i=$1 \"$1 indicates it accepts the first argument from command line. if you want to pass 19, add that next to the script you're executing.
    From command line you can call this shell script say test.sh 19

  • How to Pass printer details dynamically for bursting query in BI Publisher

    Hi All,
    We are splitting our invoice details by bursting option but we want to print the invoices based on printer selection of the user.
    can any one explain me how can we pass the printer details dynamically for bursting query in BI publisher.
    Thanks & Regards,
    Manohar Reddy

    Hi Saurabh,
    we can do it, ultimately u will end of changing the product code, which wont be supported :)

  • Unable to open the month view for May in Palm desktop

    My Palm Desktop will not open the May calendar in the month mode.  I can access that month in either daily or weekly mode but not in the monthly one.  May seems to be the only month that is affected.  It opens properly on my Treo 680 but not on the desktop.  I have reinstalled the desktop and resynced without any correction in the problem.
    Thanks for any assistance.
    RAB
    Post relates to: Treo 680 (Cingular)

    Hi. Is there any chance that ACCESS might produce a version of the software that is immune to this problem. If it is due to data corruption, it would seem to me that this corruption is being caused by the ACCESS software. As far as I know, there is no other software on my system with access to these files. It seems to me that the software should either not create the corrupted records in the first place, or alternatively, be able to tolerate them. I would be happy to send you a dump of my calendar file if that would help to diagnose the problem (assuming I can ever open it again). Thanks.

  • How to pass the User Group for a SQ00 Transaction iView

    Hello,
    To start off, I am relatively new to SAP technology in general.  I may be missing something obvious.
    I am trying to create an SAP Transaction iView in our EP Portal that will call the SQ00 transaction (start query) and run a particular query against our R/3 backend.  I set the Transaction Code to: SQ00, the application parameters to: RS38R-QNUM=<my query> and the OK Code to: SHOW and the System to the System alias for our R/3 system.
    My problem is that the query that I need to run is not in the default User Group that comes up by default.  So I get a screen that has the query field (RS38R-QNUM) correctly populated but the error that the query has not been created.  From that screen I can navigate to the correct User Group and then run query.  There does not seem to be a User Group field on the screen, you change it by accessing a different menu, so I do not know how to call the screen for a particular User Group.
    Is their an application parameter that I can initially pass to set the User Group?
    Thank you.

    And my lecturer is suck, every lectures she just read
    the slices and never explains why and how they are.
    (If ask her, she talks and talks rubbish and
    eventually I get nothing)Maybe you should drop the class and complain to the administration.

  • How to pass the standard value for the entire datapackage in the routine

    Hi Gurus,
    I have timestamp field in the target. In endroutine , i assigned system date to the tiemstamp field . If i assign sy-datum to that field, if i get 4 datapackage im getting 4 different timestamp for each of the datapackage...
    But my requirement is the timestamp should not vary for each of the datapackage.
    For eg.
    Timestamp
    20111212060205 - Datapackage 1
    20111212060602 - Datapackage 2
    But i need as
    Timestamp
    20111212060205 - Datapackage 1
    20111212060205 - Datapackage 2
    How to pass it?
    Thanks in advance

    you can use tvarv table.
    if the datapackage number = 1,
             use the current timestamp
             overwrite the existing entry in tvarv.
    else
      use timestamp of tvarv

  • Change the description dynamically for formula variable in Bex

    Hi Everyone ,
    I need to change the description of my formula variable that i have created in coulmns.
    My requirement is as follows:
    Depending on the date it must show for next 5 days . So i have created 5 formulas and i need to change the description dynamically.
    22 july 2013
    23 july 2013
    24 july 2013
    25 july 2013
    26 july 2013
    XXX
    XXX
    XX
    XXXX
    XXXX
    Please help me in this.
    Thanks in Advance.
    JC

    Hi,
    Please follow this doc to create text variables to display texts dynamically.
    http://scn.sap.com/docs/DOC-11187
    Regards,
    Suman

Maybe you are looking for

  • How to Avoid Save As dialog when Saving

    We recently upgraded Adobe Reader X to XI.  One difference between the two is the behavior of the Save function the first time it is performed.  In Reader X, when Save was selected, the file would simply save the current file, overwriting the origina

  • Wrong Profit Center on Material document (Goods Receipt PO for Asset)

    Dear SAP Expert, When our company upgrade our SAP version from 4.6C to ECC6, all Profit Center on Material document (Goods Receipt on Purchase Order for Asset) is filled by profit center DUMMY. This condition not happend in our previous version (4.6C

  • Clear_document FM not working to clear customer open item.

    Hi Experts, 1) I need to develop a report to clear the customer open items, the report has to display whether the Customer open items cleared or not?      As we do f-30 transaction to clear documents.    I have developed the report in this ways but i

  • Writing Image files from Applet to Servlet

    How to write ImageFiles from an Applet to a Servlet? I draw a image on a JComponent in Applet and wanted to save the image file in the server. I am unable to write an Image Object to the Servlet as the BufferedImage class is not serialized. I tried w

  • Steps to follow while creating new report...

    HI friends, Can any one please help me with the things to keep in mind and the process to follow while going for creating new reports in BI 7.0. We are about to create some new reports ., also the things to keep in mind while getting the requirement