I need a date

I'm trying to pull a date out of a MS SQL 2000 db and make it readable and place it onto a webpage. What's the best way to separate and obtain the day, the month, and the year from the db retrievel. And once I have those three separate objects, should I use a dateformat object to display them to the screen?
thanks in advance
e miller

You can get the date as timestamp using getTimestamp() and then construct a Date Object from this
by getting the millisec and pass that Date Object to SimpleDateFormat to convert to the format you want.
Here is the code you have to include in you JSP
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yy hh:mm a");
// Get the timestamp from result set
Timestamp ts = rs.getTimestamp();
// The date will return as a string in the specified format
String date_to_display = sdf.format(new Date( ts.getTime()));

Similar Messages

  • How to update need by date in Purchase order using an API?

    Hi All,
    Is there any API available in 11i which can be used to update the need by date in purchase order?
    There is a API PO_CHANGE_API1_S.UPDATE_PO, but it updates only the promise date and not the need by date.
    Please help !!
    Thanks & Regards
    Anuj

    Your error comes from Sybase, so I suggest you post your question to a Sybase forum.  And be aware that Sybase does not use the same tsql dialect as sql server, so you must use their dialect (if, indeed, there is any difference in this particular situation). 
    One note - there should be no space between "N" and the Unicode string literal to which it applies in tsql.  E.g.,
    = N'Executive Chair эюя'
    not
    = N 'Executive Chair эюя'

  • Is there any method to stop rescheduling of the PO Need By date from ATP if there is any holiday specified in shipping calender. The requirement is to update the schedule ship date on Sales Order but the lead time of  Purchase Order should not increase

    We are currently not able to manage schedule ship date proposed by ATP when our warehouse is closed. For example , we would like that ATP doesn't propose any schedule ship date for the first of May , which is a non working day in France. The constraint is that we don't want our purchase need by date to be impacted by the process.
    I tried to closed one day in FR1 calendar and, after testing with order management, it appears that ATP didn't propose the closed day, so that's fine, but, our purchase order lead time was increased of 1 day and this is not what we expected.
    Can you help us to find the right process.
    Thanks

    Hi Sandeep,
    when we try to Rescheduled out the PO and the request is errored out the with the error:-
    Start of log messages from FND_FILE
    reschedule fails
    old date in planner workbench: 19-MAY-11
    new date: 07-JUN-11
    header: 417474
    line: 605652
    po number: 2049031859
    shipment no: 1
    The need by date/promised date in the source instance is not the same as the need by date/promised date in the destination instance.
    In the source instance,
    The need by date is 19-MAY-11, and the promised date is 19-MAY-11
    End of log messages from FND_FILE
    ---------------------------------------------------------------------------

  • I need a data transfer from intact hard drive of older macbook that won't boot. Can Apple provide this service even though my one to one membership has expired?

    I need a data transfer from a 2005 Macbook to my new one (2010). I damaged the old laptop and although it wouldn't turn on, when I brought it to the Apple Store they ascertained that the hard drive was still intact. They said I needed to purchase a one to one membership to get a data transfer, which I did, but somehow forgot about it and now it's expired. Is there any way I can still get the data from the old hard drive transferred to my new macbook? Can Apple provide this service even though my one to one membership has expired?

    Go to OWC where you can purchase a suitable enclosure for the drive. You will need an enclosure for a SATA notebook drive. This is assuming the old computer is a MacBook and not an iBook. I make this observation because the first MacBook was released in 2006, not in 2005. If yours is a 2005 model then it's an iBook and uses an ATA interface.
    Install the old drive in the enclosure, connect to your new computer. You can then transfer your data.

  • Need current date embedded in scheduled request parameter

    Hi Experts,
    Need current date embedded in scheduled request parameter
    I have a concurrent program
    This is scheduled to run every day.
    One of the requests has a parameter that I need to set with the current date (YYYYMMDD), I tried fnd_standard_date, date value sets in the parameter..
    I tried using a SQL Statement (select to_char(sysdate, 'YYYYMMDD') from dual), but it appears to only run this when the request if first submitted and not on subsequent resubmissions. So the date never changes.
    The box is checked to "Increment date parameters each run" but since this is a date value in a regular parameter, it is not getting incremented.
    Any ideas how I can get this value to change every day?
    Please help it's very urgent.
    With Regards,
    Kumar.

    Hi,
    Please see if the following documents help.
    Note: 861953.1 - Request Set Date Parameters Are Not Defaulted As Per Setup
    Note: 339849.1 - Unexpected Behavior Using Increment Date Parameter Each Run
    Regards,
    Hussein

  • Need current data and time stamp in Java mapping

    Hi All,
      I am doing the scenario as file to mail. so here i am using java mappings for sending the file in mail attachment.
      I have done my java mappings and its executed successfully. File is going successfully to third party.
      Business wants date and timestamp in subject line.
    Currently i am using mail subject line as EDI File. 
    But business needs the date and time in the subject line after EDI File as EDI File <yyyymmddhhmm>.
    So my requirement here is adding the date and timestamp.
    Can any one suggest how can write java code to acheive.
    Thanks
    Bhaskar
    Thanks,
    Bhaskar

    Hi Bhaskar,
    >   Business wants date and timestamp in subject line.
    1. Add the import statments at beginning
    import java.util.Date;
    import java.text.SimpleDateFormat;
    2. Add these statments to get timestamp and Concatenate the subject line with string currentdate.
    SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmm");
    String currentdate = sdf.format(new Date());
    subjectline = subjectline.concat(currentdate);
    Regards,
    Sunil Chandra

  • PO Workflow: PO needs to approved automatically when need-by-date changed

    Hello All,
    Please help me in suggesting ideas on below requirement.
    Requirement: PO needs to be approved automatically when ever Need-By-Date/Promised-Date changed by buyer.
    Currently it is going and checking for the buyer approval limit and keeping the PO in 'Requires_Re_approval' status.
    Please suggest me on this.
    Thanks/ReddyS

    Hello Team,
    Please give us some suggestions/ideas on how to proceed furthur.
    Thanks/

  • Scheduled ship date not taking PO need by date

    1. Please consider following case -
    a. Sales order is created for org UK for item A for 10000 qty 24-Mar-2011 with order request date as 29-Mar-2011.
    a1. There is no on-hand in UK for item A.
    a2. The item lead time for item A, as defined in UK org in item attributes’ Lead times tab, is as following -
    a21. Pre-processing time - 4 days
    a22. Processing time - 20 days
    a23. Post-Processing time - 1 day
    a3. A standard purchase order for item A is created for 15000 quantity on 25-Mar-2011 with Need by date as 10-Apr-2011.
    a4. The ATP rule that is attached to the item, is having Purchase orders checked, under supply sources.
    Observation : Before purchase order creation, the scheduled ship date on SO was 28-Apr-2011 (item lead time of 25 days).
    Then the PO is created as in point a3 and ASCP plan was run. The sales order line for item A is unscheduled and Rescheduled, the scheduled ship date becomes 25-Apr-2011.
    Questions :
    1.     Why did the scheduled ship date change to 25-Apr-2011?
    2.     What all things it is taking into consideration?
    3.     As per our understanding, the scheduled ship date should have been changed to PO Need by date. But this didn’t happen. Is our understanding flawed?

    Hi Sandeep,
    when we try to Rescheduled out the PO and the request is errored out the with the error:-
    Start of log messages from FND_FILE
    reschedule fails
    old date in planner workbench: 19-MAY-11
    new date: 07-JUN-11
    header: 417474
    line: 605652
    po number: 2049031859
    shipment no: 1
    The need by date/promised date in the source instance is not the same as the need by date/promised date in the destination instance.
    In the source instance,
    The need by date is 19-MAY-11, and the promised date is 19-MAY-11
    End of log messages from FND_FILE
    ---------------------------------------------------------------------------

  • Restriction of Need by Date in Planner workbench release against blanket PO

    Hi ,
    Needed some information on this query below :
    ==================================================
    For normal blanket PO, if the effective date is till 31-Jul-06 and if a release is done on this Blanket PO , with the need by date as ( example 02-Sep-06) , it still goes and does a release . There is no problem.
    But in the planner workbench release, if the need by date is greater than the BPO effective date , it does not allow to release ...
    Is this a constraint or any setup or any Profile blocking from doing this release ?
    Thanks
    Anil

    Sandeep,
    Thank yo for your information. Are you suggesting that we write an SQL report to identfy the POs which we want to update the PO Need By Date, then we utilize the Purchasing Documents Open Interface to update the PO Need By Date?
    Or would there be another way to do it from the ASCP workbench?
    We are talking about a few thousand POs ... so we need to automate.
    Thanks,
    Joe

  • Mdx query to get the last date of every month if the month is current month need current date..

    i have a scenario where i need the data of last date of every month and if the month is current month need current date data...
    is it possible using MDX...

    Hi Shashi,
    According to your description, you want to return the last day for each month except current month, right?
    In MDX, we can use ClosingPeriod function to return the member that is the last sibling among the descendants of a specified member at a specified level, here is a sample query for you reference.
    with member [measures].[a]
    as
    ClosingPeriod ([Date].[Calendar].[Date],[Date].[Calendar].currentmember).name
    select {[measures].[a]} on 0,
    [Date].[Calendar].[Month].members on 1
    from
    [Adventure Works]
    And then use the IIF function to evaluate if the month is current month. Please refer to the links below.
    http://msdn.microsoft.com/en-us/library/ms145584.aspxhttp://msdn.microsoft.com/en-IN/library/ms145994.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Need By Date Should be equal or after the effective start date- error in po_requisitions_interface_all

    Hi All,
    We have created a manual planned order for one buy item in ASCP workbench for some qty and released it.
    But, we are not able to get its requisition created in source.
    When we check the PO_Interface _Errors table, we found that it is errored out with error as --
    Need By Date Should be equal or after the effective start date .
    Can anyone please help me out to find the cause of this issue. Any help/pointer in this regard will be highly appreciated.
    Thanks,
    Avinash

    Hi Abhishek,
    We found the root cause of the issue.
    Its BPA was not having any Effective start date mentioned in its terms. So we put it as BPA creation date and ran the data collection and plan run.
    After that we were able to see its BPA release created without any error.
    Thanks,
    Avinash

  • Do I need a data plan for my IPod Touch to use FaceTime?

    I have FaceTime on my IPod BUT don't know if I need a data plan to run it. My uncle says I do and I'm not sure. HELP.

    Well, it isn't even possible to have a data plan for the iPod Touch. You can just use wifi to use FaceTime.

  • Grouping reqs by Need by Date using Requisition Import

    Requisition import is not considering need by date for grouping requisitions. Is there a way to achieve this?
    Thanks
    HT

    Requisition import is not considering need by date for grouping requisitions. Is there a way to achieve this?
    Thanks
    HT

  • Sad smiley after update. Need my data!!!

    Now when its turned on its showing a smiley on a blue screen and then it turns off. My understanding from reading online is that the update did not install correctly. I NEED A FIX AND I NEED MY DATA!!!
    Soft reset makes no difference.
    Details:
    So, suddenly my phone shows there's an update. I am ecstatic coz I have *always* has issues getting updates and here this time it was showing up on my phone as its supposed to.... I should have known better...
    I am beyond sick and tried of windows now. I am 10 year Nokia user and I am pretty sure this is my last Nokia and first and last windows phone. I was one of the earliest Lumia 920 users... And have had a horrible experience. For the first 6 months, it couldn't be unlocked to be used outside the US. And I was moving out.... So I carried a brick with me that whole time. Ever since then one or another thing had not been working... and every time I would look up for a fix, it turned out there was an update but some how my phone not only misses it but couldn't get it no matter what I do. Finally I was able to go to one of the rare Nokia centers in Brazil. The guys were nice enough to get the US version of the much delayed Lumia update for my phone. After that I was sure my problems were over and it worked pretty good.... And now this.... I am sick of not being able to rely on a device that is supposed to work pretty good. I am lost confidence now for good. I would appreciate if some how I can find a way to recover my data so I can leave this **bleep** phone behind. If not... then this is the last time windows phone is hurting me... I am determined not to give it another chance... I have had to wait, loose my data or work with a degraded device for far too long now.

    Provided you followed best practice and keep a backup of media files your data is safe on your Microsoft account and will sync back as soon as you set up your phone again using your account login. Contacts are at http://people.live.com and it may also be helpful to know which  phone we're talking about here, it seems from your post it is a US model?
    Use the Nokia Software Recovery Tool to recover your phone if you have software or software update problems. If your phone is not responding, it appears to be stuck or is not starting you can try to recover it at home before initiating a repair.
    Nokia Software Recovery Tool
    Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..

  • From where Requistion Need By Date Value is coming?

    Hi All,
    we r using R11
    While creating Requisition when we click on checkout, we are taken to a page called "Checkout: Requisition Information"
    In this page Need by date is filled automatically. We need to know from where is this value coming?
    And if possible change it.
    Thanks!!!!

    Following is the controller code and need by date entries in page xml file. I m actually not able to figure out where it is getting set.
    <oa:messageTextInput id="NeedByDate" prompt="Need-By Date" dataType="DATETIME" viewName="ReqSummaryVO" viewAttr="NeedByDate" tipType="dateFormat" required="yes" columns="20" serverUnvalidated="false">
    <ui:primaryClientAction>
    <ui:firePartialAction event="PPRUserEvent" unvalidated="true"/>
    </ui:primaryClientAction>
    </oa:messageTextInput>
    public class CheckoutSummaryCO extends CheckoutInfoBaseCO
    protected String getBusinessView(OAPageContext oapagecontext, OAWebBean oawebbean)
    return "DefaultBizView";
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    OAWebBean oawebbean1 = oapagecontext.getRootWebBean();
    if(oawebbean1 != null && (oawebbean1 instanceof OABodyBean))
    ((OABodyBean)oawebbean1).setBlockOnEverySubmit(true);
    String s = oapagecontext.getParameter("porMode");
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processRequest().begin", 1);
    logParam(this, oapagecontext, "CheckoutSummaryPG - mode", s, 1);
    showHelperMessage(oapagecontext);
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
    executePrepareForDisplay(oapagecontext, oaapplicationmodule, s);
    prepareBoundValuesForSpelAttributes(oapagecontext, oawebbean);
    prepareUI(oapagecontext, oawebbean, oaapplicationmodule);
    protected void executePrepareForDisplay(OAPageContext oapagecontext, OAApplicationModule oaapplicationmodule, String s)
    if("fromOneTime".equals(s))
    String s1 = oapagecontext.getParameter("porOneTimeLocationAdded");
    if("true".equals(s1))
    ArrayList arraylist1 = new ArrayList(2);
    arraylist1.add("processAddOneTimeLocation");
    arraylist1.add("summary");
    executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutSummarySvrCmd", arraylist1);
    return;
    } else
    ArrayList arraylist = new ArrayList(3);
    arraylist.add("prepareForDisplay");
    arraylist.add("summary");
    arraylist.add(oapagecontext.getParameter("porSummaryPageFromCart"));
    executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutSummarySvrCmd", arraylist);
    protected void prepareBoundValuesForSpelAttributes(OAPageContext oapagecontext, OAWebBean oawebbean)
    BoundValueUtil.bindRenderedAttr("DeliveryCell", oawebbean, "IsGoodsServicesRequisition", "ReqSummaryVO");
    BoundValueUtil.bindRenderedAttr("UrgentCheckBox", oawebbean, "IsUrgentFlagRendered");
    BoundValueUtil.bindRenderedAttr("UrgentMultiple", oawebbean, "IsUrgentFlagMultiple");
    BoundValueUtil.bindRenderedAttr("NeedByDate", oawebbean, "IsNeedByDateRendered");
    BoundValueUtil.bindRenderedAttr("NeedByDateMultiple", oawebbean, "IsfByDateMultiple");
    BoundValueUtil.bindRenderedAttr("Requester", oawebbean, "IsRequesterRendered");
    BoundValueUtil.bindRenderedAttr("RequesterMultiple", oawebbean, "IsRequesterMultiple");
    BoundValueUtil.bindRenderedAttr("Phone", oawebbean, "IsRequesterRendered");
    BoundValueUtil.bindRenderedAttr("Fax", oawebbean, "IsRequesterRendered");
    BoundValueUtil.bindRenderedAttr("Email", oawebbean, "IsRequesterRendered");
    BoundValueUtil.bindRenderedAttr("DeliverToLocation", oawebbean, "IsDeliverToLocationRendered");
    BoundValueUtil.bindReadOnlyAttr("DeliverToLocation", oawebbean, "IsDeliverToLocationReadOnly");
    BoundValueUtil.bindRenderedAttr("DeliverToLocationMultiple", oawebbean, "IsDeliverToLocationMultiple");
    BoundValueUtil.bindRenderedAttr("EnterOneTimeAddr", oawebbean, "IsAddOneTimeLocationRendered", "ReqSummaryVO");
    BoundValueUtil.bindRenderedAttr("EnterOneTimeAddrDummy", oawebbean, "IsAddOneTimeLocationRendered", "ReqSummaryVO");
    BoundValueUtil.bindRenderedAttr("EditOneTimeAddr", oawebbean, "IsEditDelOneTimeLocationRendered", "ReqSummaryVO");
    BoundValueUtil.bindRenderedAttr("EditOneTimeAddrDummy", oawebbean, "IsEditDelOneTimeLocationRendered", "ReqSummaryVO");
    BoundValueUtil.bindRenderedAttr("DeleteOneTimeAddr", oawebbean, "IsEditDelOneTimeLocationRendered", "ReqSummaryVO");
    BoundValueUtil.bindRenderedAttr("DeleteOneTimeAddrDummy", oawebbean, "IsEditDelOneTimeLocationRendered", "ReqSummaryVO");
    BoundValueUtil.bindRenderedAttr("DestinationTypeMultiple", oawebbean, "IsDestinationTypeMultipleRendered");
    BoundValueUtil.bindRenderedAttr("InventoryCheckBox", oawebbean, "IsInventoryCheckboxRendered");
    BoundValueUtil.bindRenderedAttr("ShopFloorCheckBox", oawebbean, "IsShopFloorCheckboxRendered");
    BoundValueUtil.bindRenderedAttr("DestinationTypeChoice", oawebbean, "IsDestinationTypeChoiceRendered");
    BoundValueUtil.bindRenderedAttr("SubInventory", oawebbean, "IsSubInventoryRendered");
    BoundValueUtil.bindRenderedAttr("SubInventoryMultiple", oawebbean, "IsSubInventoryMultipleRendered");
    BoundValueUtil.bindRenderedAttr("WorkOrder", oawebbean, "IsWorkOrderRendered");
    BoundValueUtil.bindRenderedAttr("WorkOrderMultiple", oawebbean, "IsWorkOrderMultipleRendered");
    BoundValueUtil.bindRenderedAttr("OperationReference", oawebbean, "IsOperationReferenceRendered");
    BoundValueUtil.bindRenderedAttr("OperationReferenceMultiple", oawebbean, "IsOperationReferenceMultipleRendered");
    BoundValueUtil.bindRenderedAttr("SuggestedBuyer", oawebbean, "IsSuggestedBuyerRendered");
    BoundValueUtil.bindRenderedAttr("SuggestedBuyerMultiple", oawebbean, "IsSuggestedBuyerMultipleRendered");
    BoundValueUtil.bindRenderedAttr("UnNumber", oawebbean, "IsUnNumberRendered");
    BoundValueUtil.bindRenderedAttr("UnNumberMultiple", oawebbean, "IsUnNumberMultiple");
    BoundValueUtil.bindRenderedAttr("HazardClass", oawebbean, "IsHazardClassRendered");
    BoundValueUtil.bindRenderedAttr("HazardClassMultiple", oawebbean, "IsHazardClassMultiple");
    BoundValueUtil.bindRenderedAttr("PCard", oawebbean, "IsPCardRendered");
    BoundValueUtil.bindRenderedAttr("ProjectOnSummary", oawebbean, "IsProjectRendered");
    BoundValueUtil.bindReadOnlyAttr("ProjectOnSummary", oawebbean, "IsProjectTaskReadOnly");
    BoundValueUtil.bindRenderedAttr("ProjectMultiple", oawebbean, "IsProjectMultipleRendered");
    BoundValueUtil.bindRenderedAttr("Task", oawebbean, "IsTaskRendered");
    BoundValueUtil.bindReadOnlyAttr("Task", oawebbean, "IsProjectTaskReadOnly");
    BoundValueUtil.bindDisabledAttr("Task", oawebbean, "IsTaskDisabled");
    BoundValueUtil.bindRenderedAttr("TaskMultiple", oawebbean, "IsTaskMultipleRendered");
    BoundValueUtil.bindRenderedAttr("Award", oawebbean, "IsAwardRendered");
    BoundValueUtil.bindDisabledAttr("Award", oawebbean, "IsAwardDisabled");
    BoundValueUtil.bindRenderedAttr("AwardMultiple", oawebbean, "IsAwardMultipleRendered");
    BoundValueUtil.bindRenderedAttr("ExpenditureType", oawebbean, "IsExpenditureTypeRendered");
    BoundValueUtil.bindRenderedAttr("ExpenditureTypeMultiple", oawebbean, "IsExpenditureTypeMultipleRendered");
    BoundValueUtil.bindRenderedAttr("ExpenditureOrg", oawebbean, "IsExpenditureOrgRendered");
    BoundValueUtil.bindRenderedAttr("ExpenditureOrgMultiple", oawebbean, "IsExpenditureOrgMultipleRendered");
    BoundValueUtil.bindRenderedAttr("ExpenditureItemDate", oawebbean, "IsExpenditureItemDateRendered");
    BoundValueUtil.bindRenderedAttr("ExpenditureItemDateMultiple", oawebbean, "IsExpenditureItemDateMultipleRendered");
    BoundValueUtil.bindRenderedAttr("Taxable", oawebbean, "IsTaxStatusRendered");
    BoundValueUtil.bindReadOnlyAttr("Taxable", oawebbean, "IsTaxStatusReadOnly");
    BoundValueUtil.bindRenderedAttr("TaxableMultiple", oawebbean, "IsTaxStatusMultiple");
    BoundValueUtil.bindRenderedAttr("TaxCode", oawebbean, "IsTaxCodeRendered");
    BoundValueUtil.bindReadOnlyAttr("TaxCode", oawebbean, "IsTaxCodeReadOnly");
    BoundValueUtil.bindRenderedAttr("TaxCodeMultiple", oawebbean, "IsTaxCodeMultipleRendered");
    BoundValueUtil.bindRenderedAttr("ChargeAccount", oawebbean, "IsChargeAccountRendered");
    BoundValueUtil.bindRenderedAttr("ChargeAccountMultiple", oawebbean, "IsChargeAccountMultipleRendered");
    BoundValueUtil.bindRenderedAttr("EnterChargeAccount", oawebbean, "IsEnterChargeAccountRendered");
    BoundValueUtil.bindRenderedAttr("TransactionCode", oawebbean, "IsTransactionCodeRendered");
    BoundValueUtil.bindRenderedAttr("TransactionCodeMultiple", oawebbean, "IsTransactionCodeMultipleRendered");
    BoundValueUtil.bindRenderedAttr("TransactionNature", oawebbean, "IsTransactionReasonCodeRendered");
    BoundValueUtil.bindRenderedAttr("TransactionNatureMultiple", oawebbean, "IsTransactionReasonCodeMultipleRendered");
    BoundValueUtil.bindRenderedAttr("GLDate", oawebbean, "IsGLDateRendered");
    BoundValueUtil.bindRenderedAttr("GLDateMultiple", oawebbean, "IsGLDateMultipleRendered");
    BoundValueUtil.bindRenderedAttr("ReqLineDFF", oawebbean, "IsReqLineDFFRendered");
    BoundValueUtil.bindRenderedAttr("ReqLineDFFMultiple", oawebbean, "IsReqLineDFFMultiple");
    BoundValueUtil.bindRenderedAttr("ReqDistDFF", oawebbean, "IsReqDistDFFRendered");
    BoundValueUtil.bindRenderedAttr("ReqDistDFFMultiple", oawebbean, "IsReqDistDFFMultiple");
    protected void prepareUI(OAPageContext oapagecontext, OAWebBean oawebbean, OAApplicationModule oaapplicationmodule)
    prepareButtons(oapagecontext, oawebbean);
    prepareTrainAndNavigation(oapagecontext, oawebbean);
    prepareDescriptiveFlexFields(oapagecontext, oawebbean);
    preparePCardDropdown(oapagecontext, oawebbean);
    OACellFormatBean oacellformatbean = (OACellFormatBean)oawebbean.findChildRecursive("ReqLineDFFCell");
    if(oacellformatbean != null)
    oacellformatbean.setColumnSpan(2);
    OACellFormatBean oacellformatbean1 = (OACellFormatBean)oawebbean.findChildRecursive("ReqDistDFFCell");
    if(oacellformatbean1 != null)
    oacellformatbean1.setColumnSpan(2);
    protected void prepareDescriptiveFlexFields(OAPageContext oapagecontext, OAWebBean oawebbean)
    OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("ReqHeaderDFF");
    if(oadescriptiveflexbean != null)
    oadescriptiveflexbean.setContextListRendered(false);
    oadescriptiveflexbean.mergeSegmentsWithParent(oapagecontext);
    OADescriptiveFlexBean oadescriptiveflexbean1 = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("ReqLineDFF");
    if(oadescriptiveflexbean1 != null)
    oadescriptiveflexbean1.setContextListRendered(false);
    oadescriptiveflexbean1.mergeSegmentsWithParent(oapagecontext);
    OADescriptiveFlexBean oadescriptiveflexbean2 = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("ReqDistDFF");
    if(oadescriptiveflexbean2 != null)
    oadescriptiveflexbean2.setContextListRendered(false);
    oadescriptiveflexbean2.mergeSegmentsWithParent(oapagecontext);
    protected void prepareButtons(OAPageContext oapagecontext, OAWebBean oawebbean)
    OASubmitButtonBean oasubmitbuttonbean = (OASubmitButtonBean)oawebbean.findChildRecursive("IcxPrintablePageButton");
    oasubmitbuttonbean.setRendered(false);
    PorAppsContext porappscontext = ClientUtil.getPorAppsContext(oapagecontext);
    String s = porappscontext.getCurrentFlow();
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "prepareButtons().begin", 1);
    logParam(this, oapagecontext, "currentFlow", s, 1);
    if("ApproverCheckoutFlow".equals(s))
    OAWebBean oawebbean1 = oawebbean.findChildRecursive("Cancel");
    oawebbean1.setRendered(false);
    OAWebBean oawebbean2 = oawebbean.findChildRecursive("Save");
    oawebbean2.setRendered(false);
    protected void prepareTrainAndNavigation(OAPageContext oapagecontext, OAWebBean oawebbean)
    OAPageLayoutBean oapagelayoutbean = (OAPageLayoutBean)oawebbean;
    OANavigationBarBean oanavigationbarbean = (OANavigationBarBean)createWebBean(oapagecontext, "NAVIGATION_BAR", null, "CheckoutNavigationBar");
    oanavigationbarbean.setValue(1);
    oanavigationbarbean.setMinValue(1);
    oanavigationbarbean.setMaxValue(3);
    oanavigationbarbean.setFormSubmitted(true);
    OAPageButtonBarBean oapagebuttonbarbean = (OAPageButtonBarBean)oapagelayoutbean.getPageButtons();
    oapagebuttonbarbean.addIndexedChild(oanavigationbarbean);
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processFormRequest(oapagecontext, oawebbean);
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
    String s = oapagecontext.getParameter("event");
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processFormRequest().begin", 1);
    logParam(this, oapagecontext, "event", s, 1);
    if(oapagecontext.isLovEvent())
    processLovEvents(oapagecontext, oaapplicationmodule, "summary", true);
    return;
    if("PPRUserEvent".equals(s))
    processPPREvents(oapagecontext, oaapplicationmodule, "summary", true);
    return;
    if("goto".equals(s))
    processNextButton(oapagecontext, oawebbean, oaapplicationmodule);
    return;
    if("editLines".equals(s))
    processEditLines(oapagecontext, oawebbean, oaapplicationmodule);
    return;
    if("save".equals(s))
    processSaveReq(oapagecontext, oawebbean, oaapplicationmodule);
    return;
    if("submit".equals(s))
    processSubmitReq(oapagecontext, oawebbean, oaapplicationmodule);
    return;
    if("cancel".equals(s))
    processCancelReq(oapagecontext);
    return;
    if("multipleLink".equals(s))
    processMultipleLink(oapagecontext, oawebbean, oaapplicationmodule);
    return;
    if("addOneTimeAddr".equals(s))
    processAddOneTimeLocation(oapagecontext, oaapplicationmodule);
    return;
    if("editOneTimeAddr".equals(s))
    processEditOneTimeLocation(oapagecontext, oaapplicationmodule);
    return;
    if("deleteOneTimeAddr".equals(s))
    processDeleteOneTimeLocation(oapagecontext, oaapplicationmodule);
    protected void processNextButton(OAPageContext oapagecontext, OAWebBean oawebbean, OAApplicationModule oaapplicationmodule)
    ArrayList arraylist = new ArrayList(2);
    arraylist.add("populateValidateAndImplicitSave");
    arraylist.add("summary");
    executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutSummarySvrCmd", arraylist);
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processNextButton().after populateValidateAndImplicitSave", 1);
    if(hasErrors(oapagecontext))
    processErrorRedirectsForCheckoutSummary(oapagecontext, oawebbean, oaapplicationmodule);
    return;
    } else
    oapagecontext.setForwardURL("ICX_POR_REQAPPRV_LIST", (byte)0, null, null, true, "N", (byte)99);
    return;
    protected void processEditLines(OAPageContext oapagecontext, OAWebBean oawebbean, OAApplicationModule oaapplicationmodule)
    ArrayList arraylist = new ArrayList(3);
    arraylist.add("populate");
    arraylist.add("summary");
    arraylist.add("Y");
    executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutSummarySvrCmd", arraylist);
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processEditLines().after populate", 1);
    ArrayList arraylist1 = new ArrayList(3);
    arraylist1.add("validateHeader");
    arraylist1.add("summary");
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processEditLines().before validateHeader", 1);
    executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutSummarySvrCmd", arraylist1);
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processEditLines().after validateHeader", 1);
    if(hasErrors(oapagecontext))
    logMsg(this, oapagecontext, "validateHeader has errors", 1);
    processErrorRedirectsForCheckoutSummary(oapagecontext, oawebbean, oaapplicationmodule);
    return;
    } else
    HashMap hashmap = new HashMap(2);
    hashmap.put("porMode", "display");
    hashmap.put("OA_SubTabIdx", "0");
    oapagecontext.forwardImmediately("ICX_POR_CHECKOUT_LINES", (byte)0, null, hashmap, true, "N");
    return;
    protected void processSaveReq(OAPageContext oapagecontext, OAWebBean oawebbean, OAApplicationModule oaapplicationmodule)
    ArrayList arraylist = new ArrayList(2);
    arraylist.add("populateValidateAndSave");
    arraylist.add("summary");
    executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutSummarySvrCmd", arraylist);
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processSaveReq().after populateValidateAndSave", 1);
    if(hasErrors(oapagecontext))
    processErrorRedirectsForCheckoutSummary(oapagecontext, oawebbean, oaapplicationmodule);
    return;
    } else
    HashMap hashmap = new HashMap(1);
    hashmap.put("porMode", "display");
    setReturnUrl(oapagecontext, "ICX_POR_CHECKOUT_SUMMARY", hashmap);
    oapagecontext.setForwardURL("ICX_POR_SAVE_CONFIRMATION", (byte)0, null, null, true, "N", (byte)99);
    return;
    protected void processSubmitReq(OAPageContext oapagecontext, OAWebBean oawebbean, OAApplicationModule oaapplicationmodule)
    oracle.jbo.domain.Number number = ClientUtil.getPorAppsContext(oapagecontext).getOrigReqHeaderId();
    ArrayList arraylist = new ArrayList(2);
    arraylist.add("populateValidateAndSubmit");
    arraylist.add("summary");
    executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutSummarySvrCmd", arraylist);
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processSubmitReq().after populateValidateAndSubmit", 1);
    if(hasErrors(oapagecontext))
    processErrorRedirectsAfterSubmitReq(oapagecontext, oawebbean, oaapplicationmodule);
    return;
    } else
    displaySubmitConfirmation(oapagecontext, number);
    return;
    protected void processCancelReq(OAPageContext oapagecontext)
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processCancelReq().begin cancelling req", 1);
    oapagecontext.setForwardURL("ICX_POR_SHOPPING_CART", (byte)0, null, null, false, "N", (byte)99);
    protected void processMultipleLink(OAPageContext oapagecontext, OAWebBean oawebbean, OAApplicationModule oaapplicationmodule)
    ArrayList arraylist = new ArrayList(3);
    arraylist.add("populate");
    arraylist.add("summary");
    arraylist.add("Y");
    executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutSummarySvrCmd", arraylist);
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processMultipleLink().after populate", 1);
    ArrayList arraylist1 = new ArrayList(3);
    arraylist1.add("validateHeader");
    arraylist1.add("summary");
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processEditLines().before validateHeader", 1);
    executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutSummarySvrCmd", arraylist1);
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processEditLines().after validateHeader", 1);
    if(hasErrors(oapagecontext))
    logMsg(this, oapagecontext, "validateHeader has errors", 1);
    processErrorRedirectsForCheckoutSummary(oapagecontext, oawebbean, oaapplicationmodule);
    return;
    } else
    HashMap hashmap = new HashMap(2);
    hashmap.put("porMode", "display");
    hashmap.put("OA_SubTabIdx", "-1");
    oapagecontext.forwardImmediately("ICX_POR_CHECKOUT_LINES", (byte)0, null, hashmap, true, "N");
    return;
    protected void processAddOneTimeLocation(OAPageContext oapagecontext, OAApplicationModule oaapplicationmodule)
    ArrayList arraylist = new ArrayList(3);
    arraylist.add("populate");
    arraylist.add("summary");
    arraylist.add("N");
    executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutSummarySvrCmd", arraylist);
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processAddOneTimeLocation().after populate", 1);
    HashMap hashmap = new HashMap(1);
    hashmap.put("porMode", "fromOneTime");
    setReturnUrl(oapagecontext, "ICX_POR_CHECKOUT_SUMMARY", hashmap);
    HashMap hashmap1 = new HashMap(2);
    hashmap1.put("porMode", "add");
    hashmap1.put("porUsage", "all");
    oapagecontext.setForwardURL("ICX_POR_ONE_TIME_LOCATION", (byte)0, null, hashmap1, true, "N", (byte)99);
    protected void processEditOneTimeLocation(OAPageContext oapagecontext, OAApplicationModule oaapplicationmodule)
    ArrayList arraylist = new ArrayList(3);
    arraylist.add("populate");
    arraylist.add("summary");
    arraylist.add("N");
    executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutSummarySvrCmd", arraylist);
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processEditOneTimeLocation().after populate", 1);
    OAViewObject oaviewobject = (OAViewObject)oaapplicationmodule.findViewObject("PoRequisitionLinesVO");
    oaviewobject.first();
    HashMap hashmap = new HashMap(1);
    hashmap.put("porMode", "display");
    setReturnUrl(oapagecontext, "ICX_POR_CHECKOUT_SUMMARY", hashmap);
    HashMap hashmap1 = new HashMap(1);
    hashmap1.put("porMode", "edit");
    oapagecontext.setForwardURL("ICX_POR_ONE_TIME_LOCATION", (byte)0, null, hashmap1, true, "N", (byte)99);
    protected void processDeleteOneTimeLocation(OAPageContext oapagecontext, OAApplicationModule oaapplicationmodule)
    if(isLoggingEnabled(oapagecontext, 1))
    logMsg(this, oapagecontext, "processDeleteOneTimeLocation().begin", 1);
    ArrayList arraylist = new ArrayList(2);
    arraylist.add("processDeleteOneTimeLocation");
    arraylist.add("summary");
    executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutSummarySvrCmd", arraylist);
    public CheckoutSummaryCO()
    public static final String RCS_ID = "$Header: CheckoutSummaryCO.java 115.21.11510.11 2009/04/03 06:18:36 rojain ship $";
    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: CheckoutSummaryCO.java 115.21.11510.11 2009/04/03 06:18:36 rojain ship $", "oracle.apps.icx.por.req.webui");
    }

  • I need between Date's

    Hi Experts,
    i am using this logic it comming month data,
    i need particular date data. 
    V_MONTH = S_DATE-LOW+0(6).
    V_MONTH1 = S_DATE-LOW+0(6).
    Regards,
    Sreedhar.

    HI Sreedhar
    If i have understood your problem, you are trying to get the date where as you are viewing Month, is it???
    FYI, Variable of type DATS will be stored internally as YYYYMMDD.
    YYYY - Denotes the 4 Chars for Year
    MM - Denotes 2 Chars of Month
    DD - Denotes 2 Chars of Date.
    So use this info and manipulate with OFFSETS to collect as you require.
    Eg:
    SY-DATUM is of type DATS.
    V_YEAR = SY-DATUM(4).
    V_MONTH = SY-DATUM+4(2).
    V_DATE = SY-DATUM+6(2).
    Hope this helps you.
    Kind Regards
    Eswar

Maybe you are looking for