Variable with default Vales

Hi,
I have a posting date field in my cube and in my report i have with user selection on Posting Date.
My requirement is to populate that User interval with default date range of previous month.
For example if i run the report from today to 30 Apri....i should see 01.03.2014 - 31.03.20114 or
If i run the same report anytime after 1st may i should see 01.04.2014 - 30.04.2014
I am sure i need to write User exit ...is it I_Step 1 or IStep 2 and any code is greatly helpful
Thanks in advance

As per your requirement you need to have the variable based on posting date populated by the start and end date of previous month (Current month -1).
Create a customer exit variable on posting date of type interval.Entry should be mandatory.Ready for input.
Write the following code.
DATA:DT type SY-DATUM,
         DT1 type SY-DATUM.
WHEN 'VAR_1'.
IF I_STEP = 1.
        CALL FUNCTION 'DATE_CREATE'
                                   EXPORTING
                                    ANZAHL_JAHRE         = 0
                                    ANZAHL_KALTAGE       = 0
                                     ANZAHL_MONATE        = -1
                                    ANZAHL_TAGE          = 0
                                     DATUM_EIN           = sy-datum
*                                   DATUM_EIN_ULT        = ' '
*                                   ULTIMO_SETZEN        = ' '
                                  IMPORTING
                                    DATUM_AUS            = DT.
*                                   E_TT                 =
*                                   E_ULTKZ
CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
            EXPORTING
              day_in            = DT
            IMPORTING
              last_day_of_month = DT1.
Concatenate DT+0(6) '01' into l_s_range-low
l_s_range-high = DT1.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
ENDIF.
This will give you the desired output.In case any issues then let me know.
Regards,
AL

Similar Messages

  • I want to set a variable with default value and can be changed by the user

    hi,
    i want to set a variable with default value and can be changed by the user, so i new a variable with setting : customer exit, single value, optional, ready for input.
    in my customer exit code, i set a default value, eg. 20070530
    when the variable screen popup, it display the default value 20070530, i changed it to 20070529, but it doesn't work , it still display the data in 20070530, how can i solve this problem? 
    your help is appreciated.

    Liu,
       As mentioned by Anil, you need to restrict your customerr Exit code to I_STEP = 1.
    or.
       <u>Open your Variable in change mode, in the Last Page os the Variable Maintenance you can provide default value. Note: you are doing same thing in Customer Exit. In your case no need of Customer Exit.</u>
    Nagesh Ganisetti.
    Assign points if it helps.

  • Problem executing BEx query Hierarchy variable with default value

    My query has hierarchy variable on 0MOVETYPE char with a default value . The 0MOVETYPE variabale restriction is in Static filter area.
    I got timeout on query execution not because of amount of data but because of this hier. variable. Any ideas why?
    Notes:
    a) The hierarchy and the 0MOVETYPE characteristic are active and correct.
    b) I've tried RSRT check, but got the same timeout error.
    c) query executes fine on dev environment. I'm getting timeouts on PRD (as I say not because of amont of data)

    Hi,
    1. Try generating the report in RSRT and see if query runs correctly
    2. Looks like you are dafulating onto top node which contains whole data may be. This is not correct as it will definitely slow down the report based on amount of data it contains. Try to remove default and try first whether query is opening.
    3. You can put some lower level defualt to understand whether amount of data is the issue.
    4. Try to increase the server time out setting and see if it runs.
    Thanks and regards

  • Selection variable with default value as previous weeks mon through sun

    Hi Experts,
    1.)
    I need to create a Selection Variable ZTRANS_DT ( type Interval ), with the default value as  "Previous week, Monday Through Sunday" .
    Should we have to write a customer exit to populate these interval values dynamically every time the user runs the report ?
    If so can you please write a sample ABAP code.
    2.)
    The filter restriction for the date feild ZBUSINSDT has to be set to ">=#1/1/CURRENT YEAR#" ..
    How to set current year dynamically.
    Help done would be appreciated and would be assigned points.
    Thanks,
    Santosh..

    Hello,
    I dont remember of any standard variable but still you can wait to see if any1 comes up with one.
    Or else you can try the foll:
    Create the variable as per your requirement.
    Then in CMOD, write a simple code for i_step = 1.
    logic can be l_t_range-low = sy-datum - 1.
    Regards,
    Shashank

  • Populate variable with default (I_STEP=1)

    I created a variable P_CWEEK (mandatory, ready for input) and I want to populate it with a default week (week 22 in 2005). My problem is that the variable is not populated. It comes up empty.
    I wrote the code below in the customer-exit.
    CASE i_vnam.
      WHEN 'P_CWEEK'.
        IF i_step = 1.
          LOOP AT i_t_var_range INTO loc_var_range
            WHERE vnam = 'P_CWEEK'.   "Reporting week
            CLEAR l_s_range.
            l_s_range-low  = '200522'.
            l_s_range-sign = 'I'.
            l_s_range-opt  = 'EQ'.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    ENDCASE.

    Hi,
    code it like this:
    CASE i_vnam.
      WHEN 'P_CWEEK'.
        IF i_step = 1.
         LOOP AT i_t_var_range INTO loc_var_range
           WHERE vnam = 'P_CWEEK'.   "Reporting week
            CLEAR l_s_range.
            l_s_range-low  = '200522'.
            l_s_range-sign = 'I'.
            l_s_range-opt  = 'EQ'.
            APPEND l_s_range TO e_t_range.
          EXIT.
        ENDLOOP.
        ENDIF.
    ENDCASE
    regards
    Siggi

  • Issue with Default Variable in WAD after Java Patch 7.01.7.31

    Hello all,
    I'm running into an issue with the Web Application Designer Template execution for a particular default variable. This started occuring after Java Patch 7.01.7.31 we had implented over the weekend.
    The issue is when Executing the WAD Template, we have a selection screen with a variable with default values assigned to it. When leaving the default values and hitting Ok to execute  through the screen does not register and stays as is and I get a message at the top with the following: Characteristic Prob % Number has no master data for "1.00" or you do not have authorization.
    This only seems to occur for this default variable on info object Prob % Number, the other default variables seem to work fine. Also another note when clearing out the values it returns data and executes through. The value 1.00 is also a valid value in the cube and also in the output display. If we run this report in the BEx analyzer, the selection screen executes through with the default variable perfectly fine, this is only an issue with the Web Application Designer Template.
    Has anyone ran into this? I've searched and have not found any notes as of yet.
    Thank you,
    -Andy

    Dear Andy,
    Please raise this to SAP, seems like a strange problem this needs to be addressed by OSS note only.
    Close this thread once you get a solution.
    Regards.
    Den

  • How to use bind variables with XMLTABLE?

    I tried to use bind variables with xmltable statment. Here, my testcase:
    create or replace function wsdltest return xmltype as
    l_dummy xmltype;
    l_stt clob;
    l_name varchar2(500);
    l_xml clob;
    BEGIN
    l_xml :=
    '<definitions name="F1" targetNamespace="http://xmlns.oracle.com/orawsv/XFILES/F1" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/orawsv/XFILES/F1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/XFILES/F1" elementFormDefault="qualified">
    <xsd:element name="SVARCHAR2-F1Input">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="A-VARCHAR2-IN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="F1Output">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="RETURN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </types>
    <message name="F1InputMessage">
    <part name="parameters" element="tns:SVARCHAR2-F1Input"/>
    </message>
    <message name="F1OutputMessage">
    <part name="parameters" element="tns:F1Output"/>
    </message>
    <portType name="F1PortType">
    <operation name="F1">
    <input message="tns:F1InputMessage"/>
    <output message="tns:F1OutputMessage"/>
    </operation>
    </portType>
    <binding name="F1Binding" type="tns:F1PortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="F1">
    <soap:operation soapAction="F1"/>
    <input>
    <soap:body parts="parameters" use="literal"/>
    </input>
    <output>
    <soap:body parts="parameters" use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="F1Service">
    <documentation>Oracle Web Service</documentation>
    <port name="F1Port" binding="tns:F1Binding">
    <soap:address location="http://localhost:8080/orawsv/XFILES/F1"/>
    </port>
    </service>
    </definitions>';
    -- OK
    l_stt := 'select * from xmltable(XMLNAMESPACES(''http://www.w3.org/2001/XMLSchema'' AS "XSD", default ''http://schemas.xmlsoap.org/wsdl/''),
    ''//definitions/types/XSD:schema/XSD:element[@name="SVARCHAR2-F1Input"]''
    passing xmltype(:1)
    columns
    ab xmltype path ''.'' ) t';
    EXECUTE IMMEDIATE l_stt INTO l_dummy using l_xml;
    -- ERROR ORA-01006
    l_name := '"SVARCHAR2-F1Input"';
    l_stt := 'select * from xmltable(XMLNAMESPACES(''http://www.w3.org/2001/XMLSchema'' AS "XSD", default ''http://schemas.xmlsoap.org/wsdl/''),
    ''//definitions/types/XSD:schema/XSD:element[@name=:2]''
    passing xmltype(:1)
    columns
    ab xmltype path ''.'' ) t';
    EXECUTE IMMEDIATE l_stt INTO l_dummy using l_xml, l_name;
    return l_dummy;
    END;
    Any idea ?
    Thanks in advance
    Cyryl

    Why are you using dynamic SQL statements? Why not just use something like this instead in your PL/SQL. I also replaced the leading // in your Xpath with just / since you start from the root node.
    select *
      INTO l_dummy
      from xmltable(XMLNAMESPACES('http://www.w3.org/2001/XMLSchema' AS "XSD", default 'http://schemas.xmlsoap.org/wsdl/'),
                    '/definitions/types/XSD:schema/XSD:element'
                    passing xmltype(l_xml)
                    columns
                    ab xmltype path '.' ) t;Also, the above returns two rows, which I suspect is not what you want. Here is the pure SQL version for you to debug.
    select *
      from xmltable(XMLNAMESPACES('http://www.w3.org/2001/XMLSchema' AS "XSD", default 'http://schemas.xmlsoap.org/wsdl/'),
                   '/definitions/types/XSD:schema/XSD:element'
                   passing xmltype('<definitions name="F1" targetNamespace="http://xmlns.oracle.com/orawsv/XFILES/F1" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/orawsv/XFILES/F1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/XFILES/F1" elementFormDefault="qualified">
    <xsd:element name="SVARCHAR2-F1Input">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="A-VARCHAR2-IN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="F1Output">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="RETURN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </types>
    <message name="F1InputMessage">
    <part name="parameters" element="tns:SVARCHAR2-F1Input"/>
    </message>
    <message name="F1OutputMessage">
    <part name="parameters" element="tns:F1Output"/>
    </message>
    <portType name="F1PortType">
    <operation name="F1">
    <input message="tns:F1InputMessage"/>
    <output message="tns:F1OutputMessage"/>
    </operation>
    </portType>
    <binding name="F1Binding" type="tns:F1PortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="F1">
    <soap:operation soapAction="F1"/>
    <input>
    <soap:body parts="parameters" use="literal"/>
    </input>
    <output>
    <soap:body parts="parameters" use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="F1Service">
    <documentation>Oracle Web Service</documentation>
    <port name="F1Port" binding="tns:F1Binding">
    <soap:address location="http://localhost:8080/orawsv/XFILES/F1"/>
    </port>
    </service>
    </definitions>'
                   columns
                   ab xmltype path '.' ) t

  • User entry variable with exclude values

    Hello All,
    I created a  user entry/ default value variable, which allows multiple single values and is optional entry. And I also got to exclude few values from this infoobject as well as have a variable.  When I select and exclude my value from selsction and run the report, I get a system error and the varibale is converted to mandatory entry. The detail error message is displayed below.  Any useful input will be awarded
    Diagnosis
    Variable &V1& is used in the query in such a way, that an optional entry is not possible.
    For example, you might be using an "Exclude", or the variable might be connected using OR to additional selections for &V2& in the global filter, but is still displayed in the columns selections.
    It is also not possible to use an optional parameter variable to fill an interval selection in either the from-field or the to-field.
    System response
    Procedure
    If you are able to accept the mandatory entry, you need not do anything. Otherwise you must work with several variables in the query. You can use an optional interval variable to do this.
    Procedure for System Administration

    Hello ,
    I did try creating a variable with the foll details:
    Variable Type : User Entry / Default Value
    Variable Represents : Multiple Single values
    Variable entry optional
    When I run the query it converts my variable to mandotary entry.  but I want to have optional user entry variable.
    Any help will be awarded

  • Formula Variable with User Exit....Problem

    Hi
      My requirment is to create a Formula Variable on User Exit that will give me Current Cal Year...so that i can use that vale in Formulas
    Created Formula Variable with processing Type Customer Exit single Value,Mandator and Unchecked the Variable input ready
    The below code in CMOD
    WHEN 'XXXXXXX'.
    Year  = sy-datum(4).
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = Year.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND l_s_range TO e_t_range.
    But when i execute the query i am getting the below error
    No value could be determined for variable xxxxxxx.
    Incorrect call of OLAP layer CL_RSR_OLAP; error in BW-BEX-ET
    Diagnosis
    This error diagnosis is specific only to the variables 0P_FVAEX or 0P_CTPCA !
    Termination message BRAIN 632 appears:
    Could not determine value for variable 0P_FVAEX (or 0P_CTPCA).
    WHAT WRONG I AM DOING...please update me

    Use the code:
    WHEN 'XXXXXXX'.
         IF i_step = 2.
              Year = sy-datum(4).
              CLEAR L_S_RANGE.
              L_S_RANGE-HIGH = Year.
              L_S_RANGE-SIGN = 'I'.
              L_S_RANGE-OPT = 'EQ'.
              APPEND l_s_range TO e_t_range.
         ENDIF.
    Let me know, if it is work or not!
      - Balajee Kannan

  • Prompt with Default date (Current Date)

    Hi Experts,
    I have WEBI Report With Calendar Date (0CALDAY) Object on a OLAP Universe (OLAP Universe built on SAP BW BEx Query).
    I need to create a prompt on Calendar Date Object with default value as Current date (systemdate). I need to create this at universe level not at BEx level (No Exceptions).
    Looking forward to hear from you.
    -Thanks,
    Deepu

    Hi Ingo,
    Thanks for your response.
    >
    Ingo Hilgefort wrote:
    > this is because a EXIT VAriable doesn't have a DEFAULT value.
    >
    > Ingo
    But EXIT Variable has a DEFAULT value in BEx Designer. DEFAULT Value (Current system Date) is populated when a BEx Query is Run. How come it is not properly reflected into BOBJ?. It retrieves the data for Current system Date in BOBJ too when WEBI Query is run but it does not show Current system Date in prompt screen.
    I hope you understand my problem.
    -Thanks,
      DEEPU.

  • Best way to pre-populate material variable with values for users

    Hi,  I have a requirement to prepopulate a material variable with about 5 materials and that is the materials that will default when the query is called.  The users would also need the ability to change those values.
    My thought is to create a User-exit variable that derives the values from a user maintained table (infoobject). 
    Does anyone else have any suggestions or ideas on the best way to handle this?

    I don't know if there is a best solution...
    Infoobject
    With this option you have to create a new infoobject (ZMATERIAL) without attribute (you need only a list material codes) and then to set the authorization profile for the user in order to manage the content.
    The creation of an infoobject corresponds to a table creation, but you don't need any other specific options that belong to the infooject (as technical object)...
    Table
    With this option you have to create a Z table with only one field and then to allow the maintenance of the table by SM30....
    In the ending, if you want to be a purist use the table, otherwise use an infoobject (but there are no significant differences !
    Bye,
    Roberto

  • Input ready query with default data

    hi expert
    How do I make input ready query to have a default value when signing in using WAD?
    thanks.

    Hi,
    Use the following document for your query. If found useful do grant me number!
    Revaluating Planning Functions (with Analysis Web Item)
    Use
    You want to build a planning application with which you can enter turnover amounts for certain account numbers and revaluate them using a factor that can be set. If you select a row of the table, only the amount in this row is to be revaluated. If you do not select any rows, all values are to be revaluated. The planning application is to look roughly as follows on execution:
    This example serves in particular to clarify the interaction between a planning function and an Analysis Web item. Special properties here are:
    &#9679;      Variable handling in the planning function
    &#9679;      Row selection in the Analysis Web item
    Prerequisites
    In the planning modeler, you have created an aggregation level that contains the following InfoObjects: unit Currency Key, time characteristics Quarter and Calendar Year, key figure Amount, characteristics Version, Account Number, Cost Center.
    The planning function and the query are to use the same data of this aggregation level.
    Procedure
    Planning Modeler: Creating Planning Functions, Variables, and Filters
           1.      Choose the Planning Functions tab page and create a planning function of the type Revaluate with technical name REVALUATE and description Revaluate for your aggregation level.
           2.      On the To the Parameters tab page, use the input help for the revaluation factor to create the REVAL_FACTOR variable with the Revaluation Factor description. The variable is to be specified in detail as follows: The variable is to be a required variable and is to be input ready; it is to be of type Number, but is not to contain a standard default value.
           3.      Choose the Filter tab page and create a filter with technical name ACCOUNT_FILT and description Revaluation Selection for your aggregation level.
    Select the characteristics one after another and choose the input help icon in the column after Characteristic Restrictions. The dialog box for specifying characteristic restriction appears. Specify the required restrictions (in our example, Version = VERSION 1, Quarter = QUARTER 1, Calendar Year = 2007; Cost Center = 100002, Currency = Euro; for Account Number, all values are taken over), choose Add, and save the selections by clicking OK.
    Choose Show Extended Settings and ensure that the Version characteristic cannot be changed on execution. (It must be possible to change the Amount key figure).
    More information about creating planning functions, variables, and filters: Modeling Planning Scenarios
    BEx Query Designer: Creating Queries
           1.      In the BEx Query Designer, create a query Revaluate (technical name: QUERY_REVALUATION) for your aggregation level.
           2.      Drag and drop the ACCOUNT_FILT filter into the Characteristic Restrictions area for filter values. In doing so, all characteristics are restricted to single values.
    Drag and drop the Account Number characteristic into the area for default values.
           3.      Specify that the Account Number characteristic is in the rows. The values for this come from the master data.
    Specify that the Amount key figure is in the columns. The values for this can be changed; on the Planning tab page, choose the Data Can be Changed Using User Input or Planning Functions option.
           4.      Save your query definition.
    BEx Web Application Designer: Creating Web Templates
           1.      In the BEx Web Application Designer, create a Web template with technical name REVALUATION.
           2.      Create the following data providers:
    &#9675;       DP_PLAN_DATA of the type Query View Data Provider, based on query QUERY_REVALUATION
    &#9675;       DP_FILT_REVALUATION_FUNCTION of the type Filter. The data binding should come from the ACCOUNT_FILT filter.
           3.      Create the following Web items:
    &#9675;       INPUT_FIELD_REVALUATION_FACTOR. Specify 10 as the default value (Internal Display ® Text: 10).
    &#9675;       BUTTON_GROUP_ REVALUATION. Using Internal Display, create pushbutton1 with label Revaluation and, as Action, use the command wizard to assign the following commands (INSTRUCTION):
    Table of Commands
    Command
    Parameters
    Data provider-specific command: SET_SELECTION_STATE BY BINDING (Set Filter Values According to Different Sources)
    &#9679;      Command target: target data provider DP_FILT_REVALUATION_FUNCTION
    &#9679;      Data binding: selection binding using the Account Number (ZD_ACCNT) characteristic, where the value of the Web Item Selection binding type is to come from the ANALYSIS_ITEM_1 Web item, characteristic Account Number (ZD_ACCNT).
    Planning-specific command EXEC_PLANNING_FUNCTION_SIMPLE (Execute Planning Function )
    &#9679;      Data binding: Reference to data providers of type Filter DP_FILT_REVALUATE_FUNCTION, where the value from variable REVAL_FACTOR of connection type Web Item with Manual Input (ITEM_INPUT) is to come from INPUT_FIELD_REVALUATION_FACTOR.
    &#9679;      Command-specific parameter: planning function REVALUATE
    &#9675;       ANALYSIS_ITEM_1. Data provider DP_PLAN_DATA is assigned to the analysis grid as the (source) data provider.
    Choose Behavior ® Row Selection ® Multiple (MULTIPLE).
    In this case, it must be possible to select multiple rows and to execute the revaluation command on all selected rows. It is not therefore possible to give the command along with the row selection; the command must instead be given using pushbuttons.
           4.      Create a CONTAINER_LAYOUT_ITEM_1 (Web Items ® Enhanced ® Container).
    Divide the container into columns, choose the With Tray display option, and enter label Revaluation under Tray Settings.
    Add the following Web items to the container:
    &#9675;       1st row, 1st column: INPUT_FIELD_REVALUATION_FACTOR
    1st row, 2nd column BUTTON_GROUP_ REVALUATION
    &#9675;       2nd row, 1st column (with option Colspan=2, that is, with a merge of columns 1 and 2): ANALYSIS_ITEM_1
    The following figure illustrates the layout of the REVALUATION Web template:
    Execution on the Web
           1.      Execute the Web template on the Web.
           2.      For testing, extend the URL to include parameter &debug=X.
    If you have set this parameter, the selection is shown in the Executing Planning Function section.
           3.      Enter amounts for one or more account numbers, change the revaluation factor if necessary (default value = 10), select the required rows, and choose Revaluation.
    For example, enter amount 100 in the first row, retain revaluation factor 10, and choose Revaluation. The query outputs an amount of 110 in both the selected row as well as in the overall result (as long as you have not entered any other values).
    Regards,
    SUbha

  • Variable with low value as first day of year and high as  key date

    hi all,
                i need to create a variable with key date for which the low value should be 1st day of the year,
    means if i enter a key date (5/9/06) the values to  appear should be from 1/1/06 to  5/9/06.
    If i want the manipulation based on key date like key date + 90 etc. is it possible?
    i have written a customer exit as
    case i_vnam.
    when 'keydate'
    clear : e_t_range,
           l_t_range.
    DATA DAT(8)TYPE D.
    LOOP AT i_t_var_range INTO loc_t_var_range.
            IF loc_t_var_range-vnam = 'keydate'.
              loc_found = 'X'.
              EXIT.
            ENDIF.
          ENDLOOP.
    DAT = loc_t_var_range-vnam .
    if loc_found = 'X'.
       l_s_range-sign = 'I'.
            l_s_range-opt = 'BT'.
            CONCATENATE sy-datum(4) '01' '01' INTO l_s_range-low.
            l_s_range-high = DAT.
            APPEND l_s_range TO e_t_range.
          ENDIF.
    WILL THIS CODE WORK.
    I FEEL THERE IS PROBLEM WITH L_T_RANGE- HIGH.
    IS THERE A DICREPENCY IN THE CODE?
    IS THE CALLING SEQUENCE OF THE VARIABLE CORRECT?
    PLZ LET ME KNOW.
    THANK U ALL

    Hi,
    my mail bounced back. send vaild mail id.
    try this.
    1) create one customer exit variable say zcuvar
    2) create a USER entry variable Keydate 0date.
    3) in CMOD, in I_STEP  = 1 of zcuvar, make it default value ad 01/01/2006 as you have done.
    4) in use as range in Selection restrict.
    zcuvar;0date.
    hope i m clear.
    regards,
    San!

  • [SOLVED] Change environment variables with Shell scripts

    How can I change the "BROWSER" environment variable with a shell script; so I can change it on the fly?
    Last edited by oldtimeyjunk (2012-10-31 12:57:42)

    If you just want to do it for BROWSER so that you can change your default web browser on the fly, you could set BROWSER to e.g. ~/bin/mybrowser and create a symlink to the browser you want at ~/bin/mybrowser. Then you could change the symlink at will.
    EDIT: man xdg-settings
    Last edited by cfr (2012-10-31 02:20:16)

  • Error while creating a Characteristic Variable with Replacement Path

    Hi all,
        I am trying to create the Characteristic Variable ZVLOWDT (Low Date') with Replacement Path on characteristic ZSTARTDT (Start Date) and it gives the error 'Source to replace 'Low Date' is not defined.
       I have created a User Entry Variable VAR_DATE (Start Date) with interval like '01/01/2009 - 01/15/2009'  and  Customer Exit variable ZVCPDAY (does some calculation based on the input of VAR_DATE) on the same ZSTARTDT characteristic. I want to get the 01/01/2009 (lower range date of the selection) into this Characteristic Variable ZVLOWDT. We are in BI 7.0 and the following are it's properties:
    General Tab:
    Description: Low Date
    Technical Name: ZVLOWDT
    Type of Variable: Characteristic Value
    Processing by: Replacement Path
    Reference Characteristic: ZSTARTDT Start Date
    Details Tab:
    Variable Represents : Single value
    Variable is: Mandatory
    Variable is Ready for Input : unchecked
    Replacement Path Tab: Replacement Rule
    Replace Variable with : Variable
    Variable : VAR_DATE
    Replace with : KEY
    Why I am getting this error, PLEASE ?
    Thanks,
    Venkat.

    Hi Khaja,
       We could derive a Variable value from another Variable with out Customer Exit. There is a white paper.
    First have the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next create the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we could get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error  'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path, PLEASE ?
    Thanks,
    Venkat.

Maybe you are looking for

  • Ipod Mini no longer recognized - can't reload itunes 6

    We downloaded Itunes 6 this past Saturday but last night the system no longer recognizes that the Ipod Mini is there and says that the program for communication with the ipod is missing. When I try to download Itunes 6 to reinstall, the automatic dow

  • Maximum Image size for 21mp Canon Camera

    HI, I need advice and help please.  Can anyone tell me how big I can get my 21mp photos to go. I have a Canon 5D Mark II and am using a 16-35mm Pano lens. I also need to know how to work with these photos to get them to maximum size. I haver Cs3, Any

  • Customizing Light Framework and desktop

    We have an internal need for using the light framework and desktop.  I don't like to modify the SAP provided items but instead would rather create delta links and modify those.  I created a delta link of -Light Desktop (contains my CSS and my light f

  • Inserted value too long ...

    Hi, I tried to migrate a VARCHAR2 (2000) column into an other VARCHAR2 (2000) column in an other database. I get the error message "Inserted value too long ..." length (source) = 1998 The target database has a Unicode character set. Could you help me

  • ITunes Video Podcasts and Photoshop CS5 not playing together.

    i just got a MBP with all the trimmings and have been having a problem since i got it. As a photographer I need Photoshop CS5 and have installed it as normal on my new MBP. Every time I am playing a video podcast from my iTunes library and let's say