How to change the variable value in fox formula?

Hi All,
    Please help me achieve this scenario,
         in the variable selection screen , i wil give some i/p like, calyear(0calyear) = 2008.
      In planing function using FOX formula, i must be able change the variable value to 2009.
  Will it be possible to achieve this, can we change a variable value using FOX formula, if possible
please let me knw how to achieve this.
Thanks n Regards,
Priya.

Hi Priyadarshini,
i dont know what is your requirement exactly.If you can give a better explanation of ur requirement we can help you. But to answer your question yes we can get new values for the variable in the planning function.
for this you need to couple the planning function together with the planning filter in a planning sequence. This planning filter should have the variable that you wanted to change. In the WAD when you want to call this planning sequence there is an option to call variable screen. If you enable this, it will pop up the variable screen to get this value again.
Guess this was helpful.
Regards.
Shafi.

Similar Messages

  • How to change the variable value for the SCript in debugging

    I have a variable &KNA1-NAME4&
    i want to change the value of this variable in debugging mode
    can any one please tell me how to do in step by steb mode.

    Hi Ravi,
    In script u can't change the value in debigging. Open ur print program(If u don't know check TNAPR table).
    Search for the element name where u r printing this variable. U can see some thing like
    CALL FUNCTIOn 'WRITE_FORM'
    element = ur element name.
    Keep break point here and when u issue output control stops here. Now change the value as we does in normal reports.
    Thanks,
    Vinod.

  • How to change the variable value format in Ip workbooks

    Dear Experts,
    How to add zeros to a vaiable value before passing to a planning function in BEx analyzer?
    eg: 'ZPRCTR_VAR1' (For Infoobject 0PROFIT_CTR)
    User enters value 20 for 'ZPRCTR_VAR1' , but the system know only '0000000020'. I wrote a user exit like this, but nothing happens and I get variable value 20 is incorrect, planning function cannot execute. Please advice .
    DATA ZDIVISION   TYPE /BI0/OIPROFIT_CTR.
    DATA ZDIVISION1   TYPE /BI0/OIPROFIT_CTR.
    WHEN 'ZPRCTR_VAR1'.
         IF i_step = 2.
          LOOP AT i_t_var_range INTO loc_var_range
            WHERE vnam = 'ZPRCTR_VAR1'.
            zdivision = loc_var_range-low.
           MOVE l_s_range-low to zdivision.
          ENDLOOP.
        ENDIF.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
       EXPORTING
         INPUT         = zdivision
      IMPORTING
         OUTPUT        = zdivision1.
        CLEAR l_s_range.
        l_s_range-sign  =  'I'.
        l_s_range-opt   =  'BT'.
        MOVE zdivision1 TO l_s_range-low.
        APPEND l_s_range TO e_t_range.
    Thanks,
    Gnana

    Hi Gnana,
    you can use de "area value" option when define a button with planning function and variables for passing values to function. These values are in excell cells so you can modify it as you want.
    So imagine that your planning function has only one variable, the command sequence looks like
    CMD                                           1       EXECUTE_PLANNING_FU
    PLANNING_FUNCION_NAME       1       YOUR_FUNCTION
    DATA_PROVIDER_FILTER           1       DATA_PROVIDER_1
    VAR_NAME_1                             1       YOUR_VARIABLE
    and now you delete row with VAR_VALUE_1 and in result area you use for example
    $A$1:$C$1
    Now, cell A1 = VAR_VALUE_1
    cell B1 = 1
    cell C1 = Reference to another cell with your variable value (text item). You can use any excell function for fill 0's
    And now, when you execute planning function you're passing cell C1 as value of your variable.
    Hope it helps.
    Enrique
    Edited by: Enrique Delgado on Jun 3, 2008 7:00 PM

  • How to change the variable value at run time in logical column in RPD

    for e.g..
    i have used a session variable in logical column in rpd in case statement. now in dashboard prompt i am using that variable to store data which user is passing but the data captured is not getting reflected in the logical column.
    its been always populated with the default value passed through the initilization block..

    resolved myself

  • How to change the profile value in the pl/sql code without making change in the database

    How to change the profile value in the pl/sql code without making change in the database.

    I have program ,where if the profiles 'printer and nunber of copies ' are set at the user level, by default when the report completes the O/p will be sent to the printer mentioned in the set-up. but what user wants is
    if these Profiles are set for the user running this program automatic printing should not be done.

  • How to clear the variable value in session store?

    I'll try to build form for search. There are LOV and
    search button on form. When user don't select anything then push
    search button, I'd like the report to show query everything. I
    mean the report will show like condition where id like '%'.
    And I send variable between form to report by using session
    store.
    I select nothing in LOV but value that return by LOV is
    not null. It's in stead of old value of LOV.
    Please tell me.. How to clear the variable value in
    session store? I'd like to set it to null. If you have greater
    way to do like this, please tell me.
    Thank you.

    Please suggest on this..
    Thanks.

  • How to change the Unitprice value from 2 decimals to 3 decimals in script

    Hi Gurus,
    how to change the Unitprice value from two decimals to three decimals for each item level for PO in script.
    Please provide some possible solutions.
    Thanks,
    V.V.

    Hi,
    Check the options available like
    &VAR(.2)&  this will print 2 decimals
    &VAR(.3)&  this will print 3 decimals
    need to change the value for how many decimals you need
    Thanks & Regards
    Sarves Sombhatla

  • How to show the variable values in key format in the information tab

    Dear all
      in the information tab of the query, we can see all the filters and the variable value. But we can only see the infoobject <b>text</b> of this variable, how can we do if the user needs to see the <b>key</b> of this variable?

    I've referred to the Web API, and find a way to display some specified variable, but since this is the standard webtemplate and we need to show all the possbible variable used in the query. Anybody has better solution?
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="StaticFilter"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="CAPTION" value="SAP_BW_TEXT?program=SAPLRRSV&amp;key=722"/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="WIDTH" value="330"/>
             <param name="ELEMENT_TYPE_100" value="VARIABLE_KEY" />
             <param name="ELEMENT_NAME_100" value="0P_WBSO"/>
             <param name="ELEMENT_TYPE_101" value="VARIABLE_KEY" />
             <param name="ELEMENT_NAME_101" value="0P_PRJ"/>
             ITEM:            FILTERS
    </object>

  • How to pass the  variable value to reports as a parameter

    hi
    i have facing a problem that i want to pass the value of a variable that i had calculate in a procedure like
    SELECT nvl(BASIC_PAY,0) INTO v_basic FROM EMP WHERE EMP_ID=P_EMP_ID;
    so i want to send the variable value v_basic as a parameter through form to report...and simlarly other variables values which i have calculate in procedure....
    need ur help to solve this problem
    thanks in advance

    it's the exact posting from your last post. Please don't duplicate the postings, so that we can help you in one thread and not so many different threads

  • How to change the characteristic value in a item of sales order by FM?

    Hi experts,
    I guess the FM BAPI_SALESORDER_CHANGE can implement my requirement. But I have made many testing program, that's all failed. I don't know which part is not correct. So could you give a very simple sample to me? Just change the characteristic value in a item of sales order, not do any change for other parts. Thanks in advanced.
    Regrads

    Hi Birendra,
    Thanks for you explain. I follow your guide to wirte abap program. But related characteristic value still not changed in SO main screen. could you give me some suggestion? Thanks a lot!
    type-pools: IBCO2,
                IBXX.
    data: l_CUOBJ type CUOBJ_VA,
          l_ibase type IBCO2_IBASE_REC,
          l_CONFIGURATION type IBCO2_INSTANCE_TAB2,
          w_CONFIGURATION type IBCO2_INSTANCE_REC2,
          l_ROOT_OBJECT type IBXX_BUSINESS_OBJECT.
    data: t_IBCO2_VALUE_TAB type IBCO2_VALUE_TAB,
          w_IBCO2_VALUE_REC type IBCO2_VALUE_REC.
    select single CUOBJ
      into l_CUOBJ
      from VBAP
      where VBELN = '0020030609'
        and POSNR = '000020'.
      CALL FUNCTION 'CUCB_GET_CONFIGURATION'
        EXPORTING
          INSTANCE                           = l_CUOBJ
        IS_BUSINESS_OBJECT                 =
        IV_MOMENT                          =
        IV_WITH_DB_INSTANCE                =
       IMPORTING
         IBASE                              = l_ibase
         CONFIGURATION                      = l_CONFIGURATION
        EO_CBASE_REF                       =
      EXCEPTIONS
        INVALID_INPUT                      = 1
        INVALID_INSTANCE                   = 2
        INSTANCE_IS_A_CLASSIFICATION       = 3
        OTHERS                             = 4
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    loop at l_CONFIGURATION into w_CONFIGURATION.
      l_ROOT_OBJECT = w_CONFIGURATION-OWNER.
    t_IBCO2_VALUE_TAB[] = w_CONFIGURATION-values[].
      read table w_CONFIGURATION-values into w_IBCO2_VALUE_REC with key ATINN = '0000000222'.
      w_IBCO2_VALUE_REC-ATWRT = 'TMP'.
      modify w_CONFIGURATION-values from w_IBCO2_VALUE_REC index sy-tabix.
      modify l_CONFIGURATION from w_CONFIGURATION index 1.
      clear: w_CONFIGURATION.
    endloop.
    CALL FUNCTION 'CUCB_SET_CONFIGURATION'
      EXPORTING
        ROOT_INSTANCE                      = l_CUOBJ
      IS_CBASE_HEADER                    =
      CHANGING
        CONFIGURATION                      = l_CONFIGURATION
    EXCEPTIONS
      INVALID_INPUT                      = 1
      INVALID_INSTANCE                   = 2
      INSTANCE_IS_A_CLASSIFICATION       = 3
      OTHERS                             = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'CUCB_CONFIGURATION_TO_DB'
      EXPORTING
        ROOT_INSTANCE                       = l_CUOBJ
        ROOT_OBJECT                         = l_ROOT_OBJECT
      FORCE_NEW_INSTANCE                  =
      IV_WITHOUT_COMMIT_UPDATE            = ' '
      IV_MATERIAL                         =
      IV_LOCATION                         =
      IV_TECHS                            =
    IMPORTING
      NEW_INSTANCE                        =
    TABLES
      EXP_NEW_NESTED_CUOBJS               =
    EXCEPTIONS
      INVALID_INSTANCE                    = 1
      INVALID_ROOT_INSTANCE               = 2
      NO_CHANGES                          = 3
      ALREADY_REGISTERED_FOR_UPDATE       = 4
      INSTANCE_IS_A_CLASSIFICATION        = 5
      OTHERS                              = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How to change the column value upto 68000 rows

    Hi,
    I want to change the column value.
    I have table called RefDoc
    Select distinct r.int_ref from refdoc r where r.int_ref like '\\dxb%'
    Int_Re__f
    \\dxb\Sample\BFE B777\2008\PO2025225.tif
    \\dxb\Sample\RO\SFR\26-01-2009j\RO2022098.pdf
    \\dxb\Sample\RO\SFR\26-01-2009j\RO2040831.pdf
    \\dxb\Sample\BFE B777\2008\PO2025253.tif
    \\dxb\Sample\RO\UM INV\26-01-2009\RO2018358.pdf
    up to 68000 rows
    I want to change to \\AUH instead of \\dxb.
    I want the table like
    Int_Re__f
    \\AUH\Sample\BFE B777\2008\PO2025225.tif
    \\AUH\Sample\RO\SFR\26-01-2009j\RO2022098.pdf
    \\AUH\Sample\RO\SFR\26-01-2009j\RO2040831.pdf
    \\AUH\Sample\BFE B777\2008\PO2025253.tif
    \\AUH\Sample\RO\UM INV\26-01-2009\RO2018358.pdf
    Thanks
    Nihar

    user REPLACE function and change it
    UPDATE refdoc
       SET int_ref = REPLACE(int_ref, '\\dxb\', '\\AUH\')
    WHERE int_ref like '\\dxb\%'

  • How to change the initial value of the list.

    Hi,
    I have to change the initial value of the list.In the 'When-new-block instance' trigger, i wrote the following:
    set_item_property(list_id,initial_value,
    '2000');
    But when I run the form, it says this property is not recognised.
    I need to change the initial value.
    Please help me out.
    Thanks
    Viji.

    Do you mean the default value ?
    Set_item_property('list_item_name', default_value,2000);

  • How to change the suggest value in ME11uFF1F

    in ME11,when i  creat a  purchase info record, i need to change the suggest value of  field u201CVendor Mat. No.u201D  according the material NO. which i input in the initial screen.
    I have found the user exit in ME11,but they are not helpful.
    anyone can give me some advice or resolution?
    thanks.

    I have program ,where if the profiles 'printer and nunber of copies ' are set at the user level, by default when the report completes the O/p will be sent to the printer mentioned in the set-up. but what user wants is
    if these Profiles are set for the user running this program automatic printing should not be done.

  • How to get the variable value in description if I am writing a condition

    I have created a query for TOP N Customers and
    and for N  I am passing as a varaible
    & I want the same value to be displayed in the description
    I tried a lot but I dont  know how to do it
    can any one tell me the solution for this
    Thx & regards

    Hi,
    You have to define a Text Variable of type customer exit and pass the value of the Variable you have created for the condition in the Exit Code.
    You have to use the correct I_Step = *.
    Cheers.
    Ranga.

  • How to use the variable value "ALL"

    Hello all,
    I'm trying to use the value "all" for a selection variable in a Web Interface so that to have no restrictions for that specific variable and that all the rows are shown on the interface.
    Unfortunately it does not seem to be working because when I select the value "all" the system seems to go back to the latest rows saved under a specific value for that variable and does not show all the rows saved under any variable's value.
    Anyone knows how to make this work? One option is to remove the variable from the web interface altogether, but that's my last option.
    Thanks in advance.
    Best regards,
    Francesco

    Hi Francesco,
    why is leaving out the variable your last option? If you want to select "all" then you don´t need a variable.
    Cornelia

Maybe you are looking for