Error in Displaying Default Value calculacted by Service

Hi Experts,
  In my VC Model i had a Drop down on Week No with Static List of week no from 1-52.
  Which is working fine,User selects the Week No he wants and that week no is sent an a variable to query....
  And my requirment is to display Current Week no as a Default Value of the Week No drop down list.
  I defined a Data service in VC which is  based on Function Module in BI ...which give the current week no.
When i included the Data Service to model...Its input is connected to Start and output is connected to Store.
Now i connected out put of service which is connected to Store to In put of variable form and Week no dropdown button in default Value formula i included the week no which is out put of service
But when i executed the iview its not displaying current week (which is output) of service as a default value
Please update where i was wrong
Thanks

Hi,
  I am using the same FM DATE_GET_WEEK
Could you please explain me in detail..
Currently i had a Variable form with that connects to 2 diff queries.
I had a user entry variable on Cal week/year on those 2 queries.
My requirment is to create a drop down on week...so the user selects the desired week (from the static list) and that week is concatenated with current year (from now()) and go to variable of query.
it is working correctly........
Now for this week drop down the default value should be current week no.
Please explain on how to do this
I used service DATE_GET_WEEK .....
How do you connnect the input and output ports of this service
Thanks

Similar Messages

  • Is it possible to display default values in input ready query.

    Hi Guys,
    Is it possible to display default values in input ready query.

    HI,
    Select the particular Variable.....in the right hand side u will find the default values tab....in that u can give the values...and save...if u run the query then it will show the default values for that Variable.selection....
    Thanks/Tarak

  • Displaying default value for a field in ALV table

    Hai all,
         I am having an ALV table in which I want to display Requisition number by default using a value which i generated randomly and it is stored in a variable.
    While displaying ALV table my req number field should display that value by default when ever user is inserting a row( all the coloumns n my alv are editable.
    Is it possible?? 
    Kindly give some suggestions.
    Thanks in Advance,
    Nalla.B

    Hai Kris,
        I took help from ur link and i declared a global attribute request_number.
    and i created an event handler ON_ALV_INSERT and did the follwing coding for giving default value wen ever am inserting new row.
    FIELD-SYMBOLS: <wa_row> LIKE LINE OF r_param->t_inserted_rows.
      DATA bill_details TYPE REF TO zdom_bill_detail.
      LOOP AT r_param->t_inserted_rows ASSIGNING <wa_row>.
        bill_details ?= <wa_row>-r_value.
        IF bill_details->REQ_NUMBER IS INITIAL.
      DATA lo_nd_bill_detail TYPE REF TO if_wd_context_node.
      DATA lo_el_bill_detail TYPE REF TO if_wd_context_element.
      DATA ls_bill_detail TYPE wd_this->Element_bill_detail.
    navigate from <CONTEXT> to <BILL_DETAIL> via lead selection
      lo_nd_bill_detail = wd_context->get_child_node( name = wd_this->wdctx_bill_detail ).
    lo_el_bill_detail = lo_nd_bill_detail->get_element( index = <wa_row>-index ).
          lo_el_bill_detail->set_attribute(
            EXPORTING
              name  = 'REQ_NUMBER'
              value = wd_comp_controller->request_number
    Wen am  setting the value of wd_comp_controller->request_number to my context attribute am getting NULL object ref error.
    lo_el_bill_detail->set_attribute(
        name =  `REQ_NUMBER`
        value = wd_comp_controller->request_number ).
    Pls give some suggestions,
    Thanks in Advance,
    Nalla.B

  • Error giving a default value to a date column in the attribute settings.

    When im giving a default value to a date column in the attribute settings i get this error when im running my jsp page (bc4j web application):
    Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value: 31-dic-2099
    How can i fix that?
    Thank u

    The default date format for oracle.sql.DATE which oracle.jbo.domain.Date extends is "YYYY-MM-DD"

  • Null Error in Displaying a value through view attribute

    I just want to display a value through message styled text bean from view attribute .
    For that i use the code in PR:
    But it gives null error: Please any one help me.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("StaffInfoVO1");
    if(vo!=null)
    OARow row = (OARow)vo.getCurrentRow();
    System.out.println("vo is not null");
    String str1 = row.getAttribute("FullName").toString();
    OAMessageStyledTextBean stext1 = (OAMessageStyledTextBean)webBean.findChildRecursive("RFStaffName");
    stext1.setText(str1);
    While getattribute("FullName") executed it gives null error. Why?
    how to rectify?

    Hai,
    I can execute the query in toad which returns 1 row of data. It is not null rows.
    But my vo object, why it is not executed. Returning null. I dont know.. Too many hours i spent.
    VO query:
    select distinct papf.person_id,papf.FULL_NAME,
    papf.EMPLOYEE_NUMBER,
    papf.EMAIL_ADDRESS,
    papf.WORK_TELEPHONE,
    hla.COUNTRY,
    sysdate,
    pap.NAME,
    haou.NAMe department,
    ood.ORGANIZATION_NAME
    from
    per_all_people_f papf,
    per_all_assignments_f paaf,
    per_all_positions pap,
    per_jobs pj,
    per_grades pg,
    per_person_types ppt,
    hr_all_organization_units haou,
    hr_locations_all hla,
    org_organization_definitions ood
    where
    papf.PERSON_TYPE_ID=ppt.PERSON_TYPE_ID and
    papf.PERSON_ID=paaf.PERSON_ID and
    paaf.POSITION_ID=pap.POSITION_ID and
    paaf.JOB_ID=pj.JOB_ID and
    paaf.BUSINESS_GROUP_ID=haou.BUSINESS_GROUP_ID and
    papf.person_type_id=13 and
    haou.business_group_id=202 and
    haou.NAME like '%Global%Sales%' and
    papf.FULL_NAME like '%Stand%' and
    paaf.LOCATION_ID=hla.LOCATION_ID and
    paaf.ORGANIZATION_ID=ood.ORGANIZATION_ID and
    sysdate between papf.EFFECTIVE_START_DATE and papf.EFFECTIVE_END_DATE and
    sysdate between paaf.EFFECTIVE_START_DATE and paaf.EFFECTIVE_END_DATE
    Help Me.
    Thanks & Regards

  • Vendor Line Item Display-Default value for customer items

    Is it possible in selection screen of transaction FBL1N (Vendor line item display) the default value of field "customer items" to be checked?
    Thanks in advance.

    hi Tsiami
    it's not possible. if u want check customer line items go throw this TC:FBL5N
    plz assign points
    regards
    sivareddy.

  • How to display default value on ADF UI?

    How can I display a default value on ADF UI? means upon a web page loaded, the default value should appear in a certain control (e.g. input text) without any user action.
    I tried to assign a value through the backbean constructor but seems not working.
    Thanks

    The natural way would be to set the default value in the underlying model (which you did not mention). If you are using adfbc you can set default values e.g. in EO or VO. These values are then transferred into the UI.
    This would be my preferred method.
    You can also set default values in a bean method, but not in the constructor. Use a public method (e.g. init) to set the default values and call it as start activity in a bounded task flow. This ensures that each time you start the task flow the values are set.
    Timo

  • Access migration - error handling field default value "=Now()"

    Hi All,
    I'm doing an Access - Oracle Migration.
    I've exported the structure, captured the model and generated the SQL.
    When I run the SQL I get:
    SQL Error: ORA-00907: missing right parenthesis
    00907. 00000 - "missing right parenthesis"
    It looks like it's related to a default value in Access of =Now()
    The access table has a field "Creation Date" type Date/Time and default Value =Now()
    The generated SQL looks like this:
    CREATE TABLE Offer_Detail (
    HotDealID NUMBER(11,0) NOT NULL,
    Creation_Date DATE DEFAULT 0w(),
    Which causes the error message.
    If I change this to:
    CREATE TABLE Offer_Detail (
    HotDealID NUMBER(11,0) NOT NULL,
    Creation_Date DATE DEFAULT SYSDATE,
    it succeeds.
    I'm using SQL Developer 1.2.1.3213 with extension "Oracle Migration Workbench - MS Access" version 10.2.0.32.13
    Thanks,
    Greg H

    Hi Greg,
    Thanks for this feedback,
    I will add this testcase to an existing bug related to this issue
    6453282 : DEFAULT VALUE CONVERT INCORRECTLY
    We hope to have this resolved in our next release.
    Regards,
    Dermot.

  • Runtime error with column default value settings

    I have one SP2010 (enterprise) document library which gives me a runtime error if I click on "column default value settings" in the settings. Other document libraries' column default value settings are working fine. I use managed metadata
    and created libraries from templates. I deleted all custom columns from the site, only title is left over (content types are document and link to a document) but runtime error still shows up. How can I fix this?
    Server Error in '/' Application.
    Description:
    An application error occurred on the server. The current custom error
    settings for this application prevent the details of the application error from
    being viewed remotely (for security reasons). It could, however, be viewed by
    browsers running on the local server machine.
    Details: To enable
    the details of this specific error message to be viewable on remote machines,
    please create a <customErrors> tag within a "web.config" configuration
    file located in the root directory of the current web application. This
    <customErrors> tag should then have its "mode" attribute set to
    "Off".
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>
    Notes:
    The current error page you are seeing can be replaced by a custom error page by
    modifying the "defaultRedirect" attribute of the application's
    <customErrors> configuration tag to point to a custom error page
    URL.
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>
    Runtime Error

    Thanks for your suggestions. I found the log but don't know what it means. Can anybody help?
    System.ArgumentOutOfRangeException:   startIndex cannot be larger than length of string. Parameter name: startIndex  
      at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length,   Boolean fAlwaysCopy)
      at   Microsoft.Office.DocumentManagement.MetadataNavigation.PerLocationViewManager.HumanReadablePath(SPList   list, Guid fieldId, String uniqueNodeId, String pathDelimiter)
      at   Microsoft.Office.Server.WebControls.MetaDataNavTree.TreeViewDataBound(Object   sender, EventArgs e)
      at System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e)
      at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect()
      at   Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationContext.OnTreeViewLoad(SPTreeView   spTreeView)
      at Microsoft.Office.Server.WebControls.MetaDataNavTree.PerLocationPageLoad()
      at   Microsoft.Office.DocumentManagement.Pages.ColumnDefaultsPage.OnLoad(EventArgs   e)
      at System.Web.UI.Control.LoadRecursive()
      at System.Web.UI.Page.ProcessRequestMain(Boolean   includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 

  • Default values for service provider in transaction TRIP

    Hello Gurus...
    We are implementing travel management and I have a problem... here's the scenario
    Tha gl account that should be used for a specific trip recepit depends on the following:
    The expense type
    The company specific type of trip
    The Employee grouping for Travel Management
    What we have done so far is :
    create a service provider for every combination of trip_type/employee_grouping
    create entries in V_T706B4 for every valid combination of expense_type/service_provider
    configure transfer to accounting
    With this configuration the gl account is determined correctly. However this way of solving the situation means that the user must enter the service provider for every recepit entered in the expense report. Given that in our particular scenario the service provider depends on data that has been already entered (type of trip) or that "the system should know" (employee grouping), users are not happy about having to enter the service provider.
    ¿Is there a way to assign default values to the service provider, and would it be possible to code/configure somewhere how to set those default values? I tried doing it through the trip schema, but apparently it is not possible to set a default service provider that way. I also tried setting the values in the user exit (b4 assigning trip number) but this doesn't work since the user exit is called after the standard validation. I also tried implementing subroutine USER_EVAL_RECEIPT, but this doesn't seem to work in transaction TRIP.
    Thanks in advance for any help you may provide!
    Juan Ramon

    Hello AP.
    Thogh your suggestion is helpful (I might use profile parameters somewhere else) thre is no parameter for the field I need. In any case It wouldn't have solved the issue completely, since the default value I need depends on both the employee(user) and the type of trip that's selected.

  • How  to find a default value to AutoComplete Control

    Hi,
    I am using AutoComplete control where i populate it with data from an oData service
    var control= new sap.ui.commons.AutoComplete({
      displaySecondaryValues: true,
      items: {
      path: "/",
      template: new sap.ui.core.ListItem({text:"{NAME}", key:"{HOSPITAL_ID}", additionalText:"{STATE}"})
    This is my implementation in fragment and in on after rendering I want to bind a default value to it.How can I achieve this?
    for e.g.:
    In drop down box I can achieve this with the below code
    _myController.dropDownBox.bindProperty("selectedKey","HOSPITAL_ID");
    I tried with similar approaches for AutoComplete control but I cannot bind value to it..Anyone can suggest a possible solutions please?
    Best Regards,
    Amala Suganya

    Hi,
    if you want to display default value in AutoComplete then you can do it as below,
                    var oAuto1 = new sap.ui.commons.AutoComplete("TextField-1", {
                                    tooltip: "This is an Auto Complete TextField",
                                    change: onChange,
                                   value: aData[5].name,
                                    maxPopupItems: 2,
                                    ariaDescribedBy: "MyDesc",
                                    ariaLabelledBy: "MyLbl"
    value property is used to display default value. alternatively you can use setValue method.
    also refer this example AutoComplete - sap.ui.commons
    Regards,
    Chandra

  • How to change default value in contract by T-code ME32K?

    Dear my freinds,
    If you have one exist contract and then you use ME32K to change it, you will get default value for material group, plant and storage location in contract.
    If you have one materail 1002 at plant AUXX and storage location 0001 in contract already, then you can see these value will be in contract below:
    10     M     1     EA     0.00     1     EA     2B0880700     AUXX     0001                                       
    20     M                                                                                  2B0880700     AUXX     0001                                       
    30     M                                                                                  2B0880700     AUXX     0001                                       
    Our user does not want to display default value for filed material group, plant and storage location in contract by T-code ME32K.
    Could you give me kind idea how to avoid it? which is really appreciated!
    Thanks in advance!

    Hi Nick,
    Thanks for your idea, I agree with you that it may be fixed by user exit and is not worth to do it, but i only want to know how to do it easily, hopefully I can get answer from you...
    Thanks!

  • To maintain default values in generation of operation

    HI Experts
    While converting planned orders co41 planned orders are not getting converted to production orders.The error is no default values maintained for generation of operation
    1)There are different order types hence in OPPQ we cannot maintain single  order type
    2)There is routing for the material but why the error is showing "no default values maintained for operation generation"
    Any suggestions to resolve the issue
    Regards
    venkat

    Hi experts
    Thanks all for ypur suggestions and prompt replies.The issue is resolved
    The problem is there are 3 operations in routing and there is object dependencies for the operations and since there is error in procedure and based on that the routing is getting selected when we convert planned order to production order.Since there is error in selection condition the system could not pick up the routing and planned order is not converting to production order and hence the system is throwing message no defaut value maintained for operation generation.
    venkat

  • Dropdown list default value  in Visual Composer

    Hi all  ,
    i have dropdown list in my Visual composer layout  i have values coming like 2001 to 2014 ,everything is fine . i need to display default value in the dropdown list should be curent year like 2009when i deploy the application by default the current year should be displayed in input field.

    Hi Venkatp,   
    To Assign the function into the dropdown inputfield DSTR(NOW(),'YYYY') and you can to display the current year
    Followings links are available to display the dateformat,
    http://www.sdn.sap.com.ngrs.net/irj/scn/index?rid=/library/uuid/60535002-571c-2c10-58b6-cc27faa7be4d&overridelayout=true
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/7556c6b7-0e01-0010-878b-cbf4dbe859eb&overridelayout=true
    Regards,
    Prabha

  • User exit variable I_STEP=1 does not show default value WebI selection scr

    Hello,
    We have a BW query with a user exit variable. We have written user exit code under I_STEP = 1 so that the default value for the field is displayed on the selection screen to the user. Works very well on the BW side.
    We based a universe on top of the query and then created a WebI report.
    When the WebI report is executed the default value is NOT seen on the selection screen,
    Note:
    1. If the user exit variable is optional and we execute the report, the default value is NOT seen on the selection screen. However if the report is executed without entering any value for the field the logic under I_STEP = 1 is picked up and the report gets the correct output
    1. If the user exit variable is mandatoryand we execute the report, the default value is NOT seen on the selection screen. The user now has to enter the value for the field.
    The scheduled reports will work in case of optional user exit variable.
    However this amounts to loss of functionality.
    Is this a known bug?
    Is there a way to display default values based on user exit variables on the WebI selection screen?
    Kindly advice. Btw we are on XI 3.1 SP3
    Rgds
    Edited by: Anup Deshmukh on Jun 29, 2010 11:13 PM

    OSS Note 1285993 - "Support of Customer Exit Variables from BEx query into WebIntelligence via OLAP universe"  deals with this issue and has deemed it out of scope for XI 3.1 SP3.
    Rgds

Maybe you are looking for

  • HT4623 Please help update ipad

    I am really struggling to update my iPad to iOS 5 or higher.  I don't know what version I have it's the original iPad. I have looked at the instructions to install iOS 5 and it says go to settings then to general and then software update.  Easy BUT I

  • Not a single cocoa app opening after the 10.5.6 update

    I have a serious problem. Not a single cocoa application (Safari, Mail, Pages, etc.) will open for me. It will bounce in the dock and then crash. The Carbon apps are fine (iTunes, FFox, Finder) I have no idea why. Any ideas?

  • My 60 gb Ipod worked great till last night (4/23/06) now... not so much

    ok, maybe somebody can help me with this... cause as much as I doubt it, it could be a software issue... I went to update with the nifty Ipod Updater app. last night and it said that the was a "disk read error, cannot read or write to disk." then my

  • Sending iBook off

    I have the scrambling problem with my display as I read many of you have. I took mine into a store and have to now send off. How long will I be without my laptop? Anyone have a ballpark figure? For whatever reason, the store can't seem to tell me. Mi

  • A testimonial and thanks to Apple Quality & Service!

    In the course of more than 6 years of _heavy_ daily use the battery of my 1st generation iPod Nano (2GB, White) had all but given out. In the end, with less than a half an hour of charge being maintained, it was only practically possible to operate w