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");
}

Similar Messages

  • From where to read the data in Product specification for creating the condi

    Hi,
    I am trying to right the condition for a function to be excuted for certain line items. But i am not sure from where to read the data.. That is the data from the Input XML or the data from Get order XML.
    If from Get Order XML then Do we need to traverse the complete path from Get order element or we need to start with the Order Line item element.
    Thanks

    Hi, this is described in the 7.2.2 documentation much better than before.
    For this particular expression the input seems to be the order item with its properties, something like
    <osm:orderItem
    xmlns:osm="http://xmlns.oracle.com/communications/ordermanagement/model"
    id="1288881040699">
    <osm:properties
    xmlns:im="http://oracle.communications.ordermanagement.unsupported. centralom">
    <im:typeCode>PRODUCT</im:typeCode>
    <im:parentLineId>3</im:parentLineId>
    <im:requestedDeliveryDate>2013-06-31T12:00:00</im:requestedDeliveryDate>
    <im:lineItemName>Commercial Fixed Service [Add]</im:lineItemName>
    <im:lineId>4</im:lineId>
    <im:ServiceActionCode>UPDATE</im:ServiceActionCode>
    <im:productClass>Fixed Service Plan Class</im:productClass>
    <im:serviceId>552131313131</im:serviceId>
    <im:productSpec>Service.Fixed</im:productSpec>
    <im:lineItemPayload> [34 lines]
    <im:region>Sao Paulo</im:region>
    <osm:properties>
    </osm:orderItem>
    (example from the concepts book)
    where im here is your orchestration namespace.
    Hope this helps.
    Viktor

  • From where the VBRK-STCEG field value in the invoice header gets filled.

    Hi Friends,
    I have a scenario in my client system. I have one sales organisation in Spain which sends a order to France based sales organisation. In the France based sales organisation the sales order will be created with sold to partner as the Spain sales organisation, and the delivery can happen either to same partner or sometimes to another ship to partner who is based in Spain.
    Now, my issue is whenever the France organisation creates invoice against Spain organisation for the sales order delivered, the VAT number of the customer in the VBRK-STCEG field is populated from Ship to partner's master data. The same value will be fetched into the table VEIAV-KUNDEUINR.
    In my case, I want the bill to partners VAT number to be populated in VBRK-STCEG field. How can it be done and where I need to maintain the config for this?
    Thanks
    Chandramouli

    Hello Chandramouli,
    Please find below some SAP Documentation for VAT set up in the IMG Config:
    Maintain Sales Tax Identification Number Determination
    In this IMG activity, you maintain how VAT registration numbers are determined in the sales order and billing document.
    Tax classification is included in this activity.
    Options available to assign to the Sales organization are:
    blank - according to priority rule
    A - generally from sold-to party
    B - generally from payer
    C - according to priority rule, destination country from ship-to party
    If you leave the field blank, the standard priority rule works as follows:
    1. If the payer has a VAT ID number and RG <> AG, then the tax number and tax classification are copied from the payer (in this case, the ship-to party is not relevant).
    The tax number is taken according to the 'tax country of destination'.
    2. If 1. does not apply:
    If the ship-to party has a VAT registration number and the sold-to party does not, tax number and tax classification are copied from the ship-to party.
    3. If 2. does not apply:
    Tax number and tax classification are copied from the sold-to party.
    If you enter A, tax number and tax classification are generally copied from the sold-to party.
    The tax number is copied according to the 'country of destination relevant for taxes'.
    If you enter B, tax number and tax classification are generally copied from the payer.
    The tax number is copied according to the 'country of destination relevant for taxes'.
    I hope this information is useful to you in your work.
    Best Regards
    Sitaraman

  • From Where MRM_XACCITCR_EXPORT is fetching the values in XACCIT in MIRO

    Hello all,
    I am debugging the MIRO transaction code in SAP, I want to know that from where does the function module
    MRM_XACCITCR_EXPORT fetches value in  XACCIT.
    i found that the table XACCIT is refreshed and has no records but o entering the function module it gets the records from somewhere which i am unable to find out. any help in this regards will be valuable for me. i am sharing the piece of code for your refrence and the program name is SAPLMR1M.
    CALL FUNCTION 'MRM_XACCITCR_EXPORT'
           TABLES
                T_ACCIT = XACCIT
                T_ACCCR = XACCCR
                T_CURR  = XCURR.
    Thanks And Regards,
    Sahai.S

    Hi,
    I think this internal table will be filled in fm MRM_INVOICE_POST (maybe in simulation mode, see import parameter I_SIMULATION for that).
    Regards,
    Klaus

  • From where the sales office data is fetched in Activity moniter for an empl

    Hello ,
    An activity is maintained for an employee who has been  maintained in CRM .So the sales office data that is displayed is fetched from which table or Tcode.It dislayed automatically while monitering the Activity in Activity Moniter.
    If i want to change the sales office where to change it.
    Regards,
    divya

    Hi Natarajan,
          Thanks for your reply.
         So what exactly you want me to do ,if i want to change the sales office which is displayed wrong for Bussiness partner ie. Employee.
    Please say me the procedure or path to change the Sales office.
    Could you please say me "what is Organisation Data profile?"
    Regards,
    Divya

  • When I sync my iPhone 4S to my computer, where is the baseline data and documents coming from? Is the iPhone's set of apps and data the default set or are the apps and data on the computer (in the backup? in iTunes?) the default set?

    I am having a great deal of trouble with the upgrade to ios 7 on my 4S. The syncing and the software updates always leave generic icon apps that I have downloaded in the past but have deleted from my phone. But they keep reappearing. A restart of the phone fixes the icons but they are loaded not at the last page of the home screen but on completely random pages, screwing up my app and folder layout.
    I want to completely wipe the phone and restore the apps one by one, but I am concerned about whether the data and documents for those apps that I reinstall will be intact. Does the syncing for the apps on the phone retrieve the data from the last backup on the computer? If so, does it only sync the apps on the phone or does it try and reinstall all the apps that there is data for in the backup? In other words, does the resulting set of apps and data reflect the current state of the phone or the saved state of the backup?

    Apple guys are deleting posts. I have found my posts have been deleted. Apple should MUST let us downgrade at least to previous release from current which was working fine.

  • From where i need to start new atg commerce web app ?

    What i did still:-
    1. I run CIM in that select B2C.
    2.Created schema for prod and Pub and in pub & inserted  initila data.
    3.All are run fine checking with Prod:dyn/admin & Pub :bcc,dyn/admin.
    4.After that i created two module for Backend and frontend.
    5.created both ear and run it.
    Problem comes here.
    6.I Created some catalog ,Category & Product  through acc now i want to sync this all data to pub server.
       on this point i get stuck.
    Before that I used B2C(CIM) only so in that there were no any CRS schema and data as well.
    So i am confusing in that should i used CRS SCHEMA of production and also CRS Schema of Publishing and Insert initilal data  for pub only.
    If i used this i get more option to create site & not need to create all the table again but if i not use CRS Schema i need create all the tables for prod and pub as well& t i need DBA as well.
    So plz give me some suggestion , i am very new to atg .
    -Kakasaheb

    Hi,
    So after that whatever my catalog ,can see in ACC..? : yes you will be able to see in ACC, When you publish assets form BCC it will go in PUB schema(in versioned form) and after deployment you can see all those data in switching schema(If you are not using switching, find data in Prod schema)
    I am not saying reverse is not possible( I haven't try by the way ) but if you interested you can try steps mentioned in post : How to sync new catalog , categories and products created in ACC to pub db
    Hope this will help.

  • How to track that, from Where the value is EXPORTing to MY_MEMORY_ID

    Hello,
    Previous programmer is IMPORTing some value into a variable from MY_MEMORY_ID, fine, this is happening in a Customer- Function of Purchase Req.
    But, I do not know, From where he is EXPORTing that value? pls. let me know, How to track/How to know from Where he is EXPORTing?
    I hv seen any comments/documentation of that user exit, I hv searched GLOBALLY for that memory ID in PO prog./Purchase Req. prog./Sales order prog!! but, did not find it!!
    Is there any table to store this data(EXPORT/IMPORT), i do not think so!! bcoz, its run time/buffer!!
    thank you

    thank you.
    After coming to home, I got the same thought.....again thout that, there might b 2 concerns, like,
    1 - we put these memory IDs in SINGLE quotes, like "MY_MEMORY_ID", so, in this case, that std. SAP prog. is really scans?
    2 - this client SAP system is a Monster!! so, i do not know, is it goes to outtage!!
    thank you

  • From where to Start

    Hi all,,I am new learner to ABAP. I want to know from where we need to start ABAP.Becaz as of now I am not following any order.Can anyone tell me the order to follow..
    thanks in advance

    Hi,
    http://cma.zdnet.com/book/abap/index.htm
    Here are the few links which covers topic by topic.
    http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm SAP Online Help For Dictionary.
    http://www.sappoint.com/abap.html
    for SAPscripts
    ABAP objects and control technology
    IDOC
    SapScript
    Performance tuning
    BAPI Programming
    Visual Basic Integration - Using the DCOM Connector and BAPI OCX (Only available in Danish)
    JAVA and the SAP java connector
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    for keywords
    very useful link for all
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    http://www.sapgenie.com/abap/index.htm
    http://www.sap-img.com/abap.htm
    http://www.sapdevelopment.co.uk/tips/tipshome.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
    http://sap.ittoolbox.com/nav/t.asp?t=322&p=322&h1=322
    http://sap.ittoolbox.com/nav/t.asp?t=448&p=448&h1=448
    http://www.thespot4sap.com/
    http://www.kabai.com/abaps/q.htm
    http://www.geocities.com/mpioud/Abap_programs.html
    http://www.sapgenie.com/abap/tips_and_tricks.htm
    http://www.sapassist.com/code/d.asp?whichpage=1&pagesize=10&i=10&a=c&o=&t=&q=&qt=
    For FAQ
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    http://www.sapgenie.com/faq/abap.htm
    Modulepool
    http://sap.mis.cmich.edu/sap-abap/abap09/sld007.htm
    BAPI-step by step
    http://www.sapgenie.com/abap/bapi/example.htm
    Weblog for receive email and processing it through ABAP
    /people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
    BADI
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    For Logical database
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/6a/8b14e2340d11d5b3ba0050dae02d7c/content.htm
    very useful
    http://help.sap.com/saphelp_46c/helpdata/EN/35/2cd77bd7705394e10000009b387c12/frameset.htm
    Useful link to websites
    http://www.hernangn.com.ar/sap.htm
    Useful for background
    http://www.sappoint.com/basis/bckprsng.pdf
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/08703713bf277ee10000009b38f8cf/frameset.htm
    http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.wbix_adapters.doc/doc/mysap4/sap4x41.htm
    Table control in BDC
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    For posting weblog,
    /people/sap.user72/blog/2005/06/28/sdn-weblogs-making-it-easier
    Dynamic Internal table -weblog in sdn
    /people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table
    Smartforms
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.allsaplinks.com/smartform_example.html
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    Workflow
    http://help.sap.com/saphelp_46c/helpdata/en/c5/e4b7eb453d11d189430000e829fbbd/frameset.htm
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    For examples on WorkFlow...check the below link..
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    ALV
    http://www.geocities.com/mpioud/Abap_programs.html
    http://72.14.203.104/search?q=cache:NjFXTBr5lX8J:www.sap-img.com/abap/an-interactive-alv-report.htmALVInteractivereportsABAP&hl=en&gl=in&ct=clnk&cd=5
    Mail
    http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm(for changing sender address)
    http://www.sap-img.com/fu016.htm
    http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
    http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
    http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
    Sending mail in background or spool mail
    http://www.sap-basis-abap.com/sapac018.htm
    BOM Explosion
    /people/prakash.singh4/blog/2005/05/15/explode-boms-in-enterprise-portal-using-htmlb-tree--part-1-abap
    BOM
    http://help.sap.com/saphelp_erp2005/helpdata/en/ea/e9b7234c7211d189520000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/d1/2e4114a61711d2b423006094b9d648/frameset.htm
    http://www.sap-img.com/sap-sd/sales-bom-implementation.htm
    http://www.sap-basis-abap.com/sappp007.htm
    OLE
    http://www.sapgenie.com/abap/ole.htm
    http://help.sap.com/saphelp_46c/helpdata/en/59/ae3f2e488f11d189490000e829fbbd/frameset.htm
    ALVGRID with refresh
    http://www.geocities.com/mpioud/Z_DEMO_ALV_REFRESH_BUTTON.html
    For language setting and decimal separator
    /people/horst.keller/blog/2004/11/16/abap-geek-7-150-babylonian-confusion
    Oracle queries
    http://sqlzoo.net/
    To format SQL
    http://www.sqlinform.com/
    SCOT settings
    http://www.sap-img.com/basis/basis-faq.htm
    Status Icon [ALV,Table Control,Tab Strip]
    http://www.sapdesignguild.org/resources/MiniSG-old/from_develop/norm_status_icons.htm#positioning_4
    ALV Group Heading
    http://www.sap-img.com/fu037.htm
    For multiMedia
    /people/thomas.jung3/blog/2005/05/11/using-classic-activex-controls-in-the-abap-control-framework
    Uploading LOGO in SAP
    http://www.sap-img.com/ts001.htm
    LSMW
    http://www.sap-img.com/sap-data-migration.htm
    http://www.sapgenie.com/saptech/lsmw.htm
    http://www.allsaplinks.com/lsmw.html
    http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
    http://www.sap.info/public/INT/int/glossary/int/glossaryletter/Word-17643ed1d6d658821_glossary/L#Word-17643ed1d6d658821_glossary
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
    OOPS ALV
    OOPS - Events.
    Editable ALV
    Tree
    TabStrip
    Multigrid
    Check this for basic concepts of OOPS
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/abap%20objects/abap%20code%20sample%20to%20learn%20basic%20concept%20of%20object-oriented%20programming.doc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
    Tabstrip
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20for%20tab%20strip%20in%20alv.pdf
    Editable ALV
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20edit%20alv%20grid.doc
    Tree
    http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm
    General Tutorial for OOPS
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf
    Function Module
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    My Links
    Smartforms
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287(subroutine)
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
    Table Control
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap-code-samples/table%20control%20in%20abap.pdf
    HRABAP
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
    http://www.atomhr.com/training/Technical_Topics_in_HR.htm
    http://www.planetsap.com/hr_abap_main_page.htm
    you can see some Standard Program examples in this one..
    http://www.sapdevelopment.co.uk/programs/programshr.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?Offer=SAlgwn12604#Certification
    These are the FAQ's that might helps you
    http://www.sap-img.com/human/hr-faq.htm
    http://www.sapgenie.com/faq/hr.htm
    RFC
    http://johnv.sapgenie.com/docs/RFC.pdf
    http://zerone.samcheok.ac.kr/Asp_pr/Language/.%5Cuploadfile%5CJCo%20Tutorial-1.pdf
    http://www.sapgenie.com/sapgenie/docs/SAP%20Connectors.doc
    BADI
    http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip
    http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
    Regards,
    Laxmi.
    Edited by: Laxmi on Mar 14, 2008 6:24 PM

  • 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

  • "SHOW ALL" command output comes from where?

    Hi,
    when we give command "SHOW ALL" it gives parameter values.
    actually from where it gathers this data?

    those are SQLPLUS settings. sqlplus is a CLIENT. it's an app, and it has it's own settings. read the SQLPLUS manual

  • Error while saving date value in Java dictionary

    Hello Everybody,
    I got following error while saving date value in one of the fields of the Java table.
    Internal error occured in submit request: Error in method updateRequestContact : The object of type java.sql.Date with the value '2005-12-04 08:00:00.0' assigned to host variable 9 is not normalized. It must not contain time components in the time zone running the virtual machine.
    I can't find why it is taking time value in the date object.
    This value is coming from the RFC as a date value, and I am saving this value in Java dictionary table.
    Same code for this was working fine earlier. But, now suddenly it gives error like this.
    Even if I provide date on the screen from webdynpro application, this date value can't save in the Java dictionary and gives same error.
    What should be the problem behind this?
    Regards,
    Bhavik

    Hi Satyajit,
    I am getting date value from the screen of the webdynpro application from date picker control and passing this value in Java dictionary.
    More Information:
    I have dat value in the Date object: <b>target_date</b>
    But Now I have made new Date object as following:
    Date target_Date1 = new Date(target_date.getYear(),target_date.getMonth(),target_date.getDate());
    Then I am passing this object to Java dictionary. Still it gives same error.
    Then I have changed code as following:
              int l_year;
              int l_month;
              int l_days;
              l_year = target_Date.getYear();
              l_month = target_Date.getMonth();
              l_days = target_Date.getDate();
         Date target_Date1 = new Date(l_year,l_month,l_days);
    Now it works for me.
    But I guess this is not the perment solution. It looks very strange. I have used so many date objects at various palces. So, this solution is not the final for me.
    I want to findout the main cause of it.
    One more thing: This code was working for a mornth or two. But, now suddenly it is giving this error.
    Please help me if anybody knows.
    Regards,
    Bhavik

  • From where to get "First day of the week" data for all the locales, is it present in CLDR spec 24?

    I am trying to get "First day of the week" data from CLDR spec24 but cannot find where to look for it in the spec. I need this data to calculate numeric value of "LOCAL day of the week".
    This data to implement "c" and "cc" day formats that equals numeric local day of the week.
    e.g if "First day of the week" data for a locale is 2 (Monday) , it means numeric value for local day of the week will be 1 if it is Monday that day, 2 if it is Tuesday that day and likewise.

    Hi
    If you want to week to be started with Sunday then use the following formula:
    TimestampAdd(SQL_TSI_DAY, 1-DAYOFWEEK(Date'@{var_Date}'), Date'@{var_Date}') if it's retail week(starts from Monday) then the follow below:
    TimestampAdd(SQL_TSI_DAY, 1-DAYOFWEEK(Date'@{var_Date}'), Date'@{var_Date}')
    I'm assuming var_Date is the presentation variable for prompt...
    Edited by: Kishore Guggilla on Jan 3, 2011 4:48 PM

  • Need a maximum date value using group by

    Create table student (dept number(10), dep_name varchar2(10),join_date date,years_attended number(10),end_date date);
    insert into student values (1,'I',to_date('3/7/1917','MM/DD/YYYY'),4,to_date('8/26/1987','MM/DD/YYYY'));
    insert into student values (1,'I',to_date('1/1/1900','MM/DD/YYYY'),4,to_date('8/26/1932','MM/DD/YYYY'));
    insert into student values (1,'D',to_date('1/1/1920','MM/DD/YYYY'),5,to_date('8/26/1994','MM/DD/YYYY'));
    insert into student values (1,'C',to_date('1/1/1920','MM/DD/YYYY'),6,to_date('8/26/1945','MM/DD/YYYY'));
    insert into student values (2,'I',to_date('7/1/1900','MM/DD/YYYY'),3,to_date('8/26/1932','MM/DD/YYYY'));
    insert into student values (2,'I',to_date('8/16/1916','MM/DD/YYYY'),9,to_date('8/26/1923','MM/DD/YYYY'));
    insert into student values (2,'D',to_date('8/16/1916','MM/DD/YYYY'),10,to_date('8/26/1987','MM/DD/YYYY'));
    insert into student values (3,'I',to_date('3/7/1917','MM/DD/YYYY'),4,to_date('8/26/1987','MM/DD/YYYY'));
    insert into student values (3,'D',to_date('7/28/1920','MM/DD/YYYY'),6,to_date('8/26/1945','MM/DD/YYYY'));
    insert into student values (3,'I',to_date('7/28/1920','MM/DD/YYYY'),8,to_date('8/26/1965','MM/DD/YYYY'));
    insert into student values (4,'I',to_date('12/31/1924','MM/DD/YYYY'),2,to_date('8/26/1998','MM/DD/YYYY'));
    insert into student values (4,'I',to_date('6/10/1929','MM/DD/YYYY'),1,to_date('8/26/1943','MM/DD/YYYY'));
    insert into student values (4,'C',to_date('1/17/1927','MM/DD/YYYY'),4,to_date('8/26/1955','MM/DD/YYYY'));
    insert into student values (4,'C',to_date('6/10/1929','MM/DD/YYYY'),30,to_date('8/26/1967','MM/DD/YYYY'));
    insert into student values (5,'D',to_date('2/10/1931','MM/DD/YYYY'),2,to_date('8/26/1943','MM/DD/YYYY'));
    insert into student values (5,'I',to_date('2/10/1931','MM/DD/YYYY'),24,to_date('8/26/1962','MM/DD/YYYY'));
    commit;I need a maximum date value join_date for each department. If max(join_date) has two records for each dept then max(end_date) should be considered. I have used a below select query
    select * from student where join_date in (select
    max(join_date) from student group by dept);which gives me the following result
    1     D     1/1/1920     5     8/26/1994
    1     C     1/1/1920     6     8/26/1945
    2     I     8/16/1916     9     8/26/1923
    2     D     8/16/1916     10     8/26/1987
    3     D     7/28/1920     6     8/26/1945
    3     I     7/28/1920     8     8/26/1965
    4     I     6/10/1929     1     8/26/1943
    4     C     6/10/1929     30     8/26/1967
    5     D     2/10/1931     2     8/26/1943
    5     I     2/10/1931     24     8/26/1962But I am looking for the result which gives me only one maximum value for each dept column. First it should look for maximum value of join_date, if two records has same join_date then max(end_date) should be considered. The result should be sumthing like this
    1     D     1/1/1920     5     8/26/1994
    2     D     8/16/1916     10     8/26/1987
    3     I     7/28/1920     8     8/26/1965
    4     C     6/10/1929     30     8/26/1967
    5     I     2/10/1931     24     8/26/1962Can you please tell me how to rewrite the select query to get the above results.
    Edited by: user11872870 on Aug 2, 2011 5:29 PM
    Edited by: user11872870 on Aug 2, 2011 5:36 PM

    Hi,
    That's called a Top-N Query , and here's one way to do it:
    WITH     got_r_num     AS
         SELECT     student.*
         ,     ROW_NUMBER () OVER ( PARTITION BY  dept
                                   ORDER BY          join_date     DESC
                             ,                end_date     DESC
                           )      AS r_num
         FROM    student
    SELECT       dept, dep_name, join_date, years_attended, end_date
    FROM       got_r_num
    WHERE       r_num     = 1
    ORDER BY  dept
    ;Another way is similar to what you originally posted:
    SELECT    *
    FROM       student
    WHERE        (dept, join_date, end_date)
                   IN (
                        SELECT    dept
                   ,       MAX (join_date)
                   ,       MAX (end_date) KEEP (DENSE_RANK LAST ORDER BY join_date)
                   FROM      student
                   GROUP BY     dept
                   );I suspect the first way (using ROW_NUMBER) will be faster.
    Also, the ROW_NUMBER approach is guaranteed to return only 1 row per dept. Using the GROUP BY approach,if there is a tie on join_date and end_date, then it will return all contenders in that dept. Using ROW_NUMBER, it's easy to add as many tie-breaking expressions as you want, and, if there is still a tie, it will arbirarily pick one of the rows involved in the tie as #1.
    Thanks for posting the CREATE TABLE and INSERT statments! That's very helpful.
    Edited by: Frank Kulash on Aug 2, 2011 9:00 PM
    Added GROUP BY alternative

  • How to retrieve start and end date values from sharepoint 2013

    Hi,
    How to retrieve start and end date values from new event form of calendar in SharePoint foundation2013
    Thanks
    Gowri Balaguru

    Hi Srini
    Yes i need to have parallel flow for both and in the cube where my reporting will be on monthly basis i need to read these 2 master data and get the required attributes ( considering last/first day of that month as per the requirement).......but i am just wondering this is common scenario....while there are so many threads written for populating 0employee from 0person......don't they have such requirement.....
    Thanks
    Tripple k

Maybe you are looking for

  • Black background in app

    while trying to close a kindle app on my iphone I changed to background in that app to black with white letters and cannot get it to change back.  Invert colors is off

  • Producer Consumer with a state machine within the consumer

        Hi All, I have been trying to develop a data acquisition system with the producer consumer architecture.  To the left of the two main loops I initialize the serial port and any constants and variables im using.  I also have an obtain queue VI nee

  • Block IP with OS X's FTP server after number of failures?

    Sarah from my bbs.bdaqua.net posted this question and info... "Every few days I get someone spamming my FTP server trying to log in with random names (stephen, steven, teo, stefany, Administrator, etc). Since it's different names (of accounts that do

  • Items in itunes randomly disapearing

    Ive had my mac for just less than a month now, and I've just noticed that day by day certain items are being deleted from my iTunes, so far I've lost 3 films, around 20 songs, and the majority of my TV programmes, how do i stop this?

  • URI handler creativecloud

    I just signed up and I'm trying to see the trial of Illustrator. The trial download process triggers a popup, it reads: - "This link needs to be opened with an application. Send to: CreativeCloud(URIHandler) Chose an Application Which program is reco