How to create formula variable on system date.

i want to calculate inventory age as on today. i have create formula variable on inventory creation date. i want to create <b>formula variable on system date.</b>

simply create a formula variable and set the processing to "by user exit"
in the user exit assign sy-datum to the variable

Similar Messages

  • For Mayank Guptha : how to create formula variable in IP

    Hi,
    How to create formula variable, such that it will appear in the variable screen.

    Hi,
    the variables you create in formula function are local to the function.
    Ex., DATA  CST_ELMNT TYPE 0COSTELMNT.
           DATA QTY TYPE 0QUANTITY.
    To get the variables listed in the variable screen you need o create variables at aggregation/filter level for the required characteristics.

  • How to use formula variable in customer exit

    Hi all,
            I just want to use formula varible in customer exit
    For eg,
             I have created formula variable with user manual lnput eg: ZFM_V01 = 30
    Another char variable  with user manual input eg: 0keydate = 28/02/2011
    Required output,
    I just want to read my ZFM_V01 value in customer exit
    Result = 0KEYDATE - ZFM_V01
    EG:
    result = 28/02/2011 - 30
    Required result = 29/01/2011
    Kindly guide me how u get formula varibale value into customer exit(CMOD) and find the required result. please help me.
    Thanks & Regards,
    R. Saravanan

    Sorry, Bhanu,Ashwin need more info
    As my understand ::
    Function module RSW_CURRENCY_TRANSLATION uses the following parameters
    Import parameters
    I_CTTNM : Currency translation key (optional)
    I_AMOUNT: Amount in source currency  (not optional !!) (data type: floating point !!)
    I_SCUR : Source currency (optional) I_TCUR : Target currency (optional)
    I_TIME_IOBJVL : InfoObject for determination of the time reference (optional)
    I_SCUR_IOBJVL : InfoObject for determination of the the source currency (p.eg. 0COMP_CODE) (optional)I_TCUR_IOBJVL : InfoObject for determination of the the target currency (p.eg. 0COMP_CODE) (optional)
    I_PERIV : Fiscal year variant (optional)
    I_RATE : Exchange rate (optional)
    Export parameters
    E_AMOUNT : Amount in target currency (data type: floating point !!)
    E_RATE : Exchange rate
    E_SCUR : Source currency
    E_TCUR : Target currency
    I created a Currency key(ZXX) which takes CAD and converts to GBP on Planned Exchange rate (P) with time reference 0CALMONTH.
    In my case :
    Currency Key : ZXX (Confused here)
    Source Curr :CAD
    Target Curr :GBP
    I need a Variable ,which takes time reference and gives back the exchange rate .
    ,,I am I missing some thing ?
    Sudh

  • Error in creating Formula Variable

    Hi All:
    I'm having problems in creating formula variable. Trying to create FV on a characteristic using replacement path with attribute value , but the wierd part is it's not giving me any attributes it's just blank. Any help would be appreciated....
    Thanks,
    Manasa.

    Right click on the FM, create -> Characteristic -> attribute value -> but the attribute are not showing up.  This happens if the attribute is of key figure type. I was able to do this in another system (ASIA DEV) but now trying in Europe Dev.

  • How to create Presentation variable for columns and to use it in Narrative?

    Hi All,
    Anybody know how to create presentation variable for a column (i.e., i need to create it in edit formula section itself). And then, I should use it in Narrative section to display that column value. Is it possible? Or do i need to use any other variable for this requirement? If so please let me know, how to create it? This is very urgent requirement.
    Thanks in Advance
    Thenmozhi

    Hi Satya,
    I just want to create a table that should horizontally display the values like below:
         SUID Tag # :123456               Year Mfg: 2007                                                                                     
         Description: computer corporation FA ID#: 4576
         Model Number: 4569 hESC: #ert
         Serial Number: 78945 Flags: c
    Department: Hematology
    User: thenmozhi
    Database: OLAP
    I think we can create this type of report using either Narrative or Static Text. But I am not sure whether it is possible or not? And also another thing is that sectioning is applied for SUID Tag # column. So, depending on the dashboard prompt if the SUID Tag # retrieves two or more values.
    Then the first value for example 123456     and the values for the other columns related to this SUID Tag # value should display in the first page (i.e., page 1). And if the next value of the SUID Tag # for example say 678901 then the values should move to second page that is like this:
         SUID Tag # :678901               Year Mfg: 2008                                                                                     
         Description: Computer Manufacturing FA ID#: 4577
         Model Number: 4570 hESC: #eth
         Serial Number: 78946 Flags: G
    Department: Hematology
    User: Rehman
    Database: OLAP
    Thanks
    Thenmozhi

  • How to create selection variables on the KF

    Hi,
        i need to create a variable on the CKF and the user is going to give the selections like >90% or <100%  in the variable screen before runing the report.on the report should show the values based on the selection.
    1.how to create the variables on the CKF.
    2. how to restrict the values and give the selections(like >90%,<100%) values in the selections.

    Hi Venkat,
    You can achieve this by the following way:
    1. Create a CKF or a local formula(based on which queries it needs to be used)
    2. Then go to BEX Query Designer -> View -> Conditions
    3. Create New Condition -> select 'New' -> Select your CKF/Local Formula -> Define your Operator ( BT, GT, LT, Top % etc.) -> Create a Formula variable (Ready for input with Processing type as ;manual Input')
    4. DO the char. assignement for the condition with your condition definition
    4. Execute the report with your values.
    This will solve your prob.
    Cheers,
    VA

  • How to use Bind Variables in Essbase data control

    Hi,
    I am trying to use Bind Variables in MDX query while creating the Essbase Data Control. I have used the below query with the Bind Variable.. this query is working in Essbase admin console..but it is throwing error (*Invalid MDX Query)* while creating Essbase Datacontrol in JDeveloper.
    MDX Query : SELECT {[Measures].Msr_2} ON COLUMNS, [Time].Children ON ROWS FROM cube
    where ($name)
    Could any body suggest me on how to use bind variables with Essbase Data control.
    Thanks,
    Swathi

    Hello Swathi, can you please help me how you created Essbase DataControl? Also were you able to figure out this?
    Thanks, Praveen.

  • How to create a DB Source system in BW

    Hi Guys,
      Can anybody explain me how to create DB Connect  source system in BW.
    Points will be awarded.
    Thanks,
    Chinna

    Hi Chinna,
    Below are the steps to be followed for the SS creation in BW :
    Prerequisites :
    1.System Number
    2.System IP address
    3.ALEOLTP like userid and password – this is the RFC user ID in the R/3 system. Usually set to communication - must be set to dialog in the R/3 Source System for the duration of the create/restore connection process.  Note: the password must be in capital letters.(If all instances are in unicode system)
    1.At the time of making the connection, the R/3 source system will need to be opened for client independent configuration.
    2.If it is a connection create or restore, the personal userid of the person doing the work must have SM59 access.
    Follow the naming convention which is being used in your system.
    1.     Logon to r/3 source system using the r/3 RFC userid to check that the userid has been set to dialog user. It is mandatory that the r/3 source system userid be setup temporarily as dialog to create the connection. If not contact the requester to have this done before continuing with the next step.
    Note: When re-checking to ensure that the r/3 userid is a dialog user, you may get prompted for new password. Change password, and make a note of the new password. Use this new password in the steps that follow for the r/3 RFC userid.
    2.     Logon to BW system using your own userid.
    3.     Enter transaction RSA1, In Source Systems, right-click on Source Systems as shown below to create new connection.
    4.     In the screen select the appropriate Source System connection type. Suppose your  are creating connection for r/3 instance, so in this case we pick the very first option.
    5.     A popup window will get displayed asking for the necessary information. To fill in the appropriate information in the that screen you need the following information concerning the r/3 source system.
    •     IP address (Application Server) &
    •     System Number
    Get this information for the r/3 source system from the SAP Logon Pad.
    6.     If Parameters have been incorrectly entered  then  the following error message will appear : “Check connection parameters for the source system”.
    7.     Re-check and re-enter correctly. If all is good then You will see the following prompt : Please log on as an administrator in the following screen.”Click green check to continue.
    8.     This will bring you to the r/3 logon screen. Logon using the r/3 RFC id. Once logged on click Check in ‘Check RFC destination’ dialog box.
    9. Consider the r/3 RFC destination screen.
    10. Check to make sure that BW system information (Userid, IP address, System Number etc) is correctly showing in the Technical Settings and Logon/Security tabs. Next do the following,
         Step 1: Enter password for the BW RFC userid id.
         Step 2: Save Settings
         Step 3: From Test Menu , click on authorization. Ensure there are no errors
         Step 4: Back out of screen.
    11.     System may ask you to logon as administrator again. Logon as in Step 10. This time click on Use in ‘Check RFC destination’ dialog box.
    Connection related processing will start up at this time, and continue for a little while (can be a couple minutes or more).
    12.     Subsequently, a dialog box will show up on the screen.
    13. Pick option, Replicate As Well.
    Replication and activation of data sources & transfer structures will begin.
    With the completion of this step you will have successfully established this source system connection. To confirm, right-click on the new source system entry and click on check
    14. If the connection is good, the following message with the source system ID will display at bottom left corner of screen : Source system connection is Ok”.
    Hope this will be helpful to you.
    Thanks & Regards,
    suchitra.V

  • How to calculate week number from system date

    Hi experts,
    how to calculate week number from system date  ?
    thanks.
    SK

    hi,
    The above FM can be used for BADI or customer exit, if it is design level then you can use formula as well, under formula date functions you can use DATE_TO_WEEK.
    regards,
    Arvind.

  • HOW TO CREATE A VARIABLE IN SAP SCRIPT

    HI ALL,
    CAN ANYONE TELL ME HOW TO CREATE A VARIABLE IN SAP SCRIPT.
    THANK YOU,
    BYE
    TAKE CARE.

    Hi Ravi,
    You can use like this
    A text in the editor contains the following DEFINE commands:
    /: DEFINE &mysymbol& = 'xxx xxx xxxxx xxxx'
    &mysymbol&
    /: DEFINE &mysymbol& = 'yyyyy yyy yyyy'
    / &mysymbol&
    The printed text appears

  • How to create a variable in BEx 7.0

    Hi,
    Can anyone please tell me how to create a variable in BEx 7.0
    In 3.5, when we right click on a characteristic, we used to get an option for restrict.
    I cant find any such option in 7.0

    Hi,
    Right click on the characteristic 0CALMONTH in the default values or drag it to char. restriction section and say restrict.Pull the drop down menu in that to select variables. There u will get a create icon.Click on that...then in details tab u can specify whether mandatory,interval and all..
    Regards,
    Rathy

  • How to create a line type in data dictionary

    How to create a line type in data dictionary?Please explain step by step?
    Thanks & Regads,
    Sairam

    Hi,
    the details abbout the line type.
    The line type of a table type can be defined by:
    o Specification of a type that already exists (data element,
    structure, table type, table, view) whose properties are then copie
    as properties of the defined table line.
    o Direct type input, where data type, number of positions, and, if
    required, decimal places, are entered directly.
    o Specification of a reference type.
    and SE11 and click on datatype and click on table type and enter the line type.
    Thanks
    Shiva

  • How to create Formula based value field in COPA

    Hi,
    I want to know how to create formula based  value field in COPA
    My Requirement is i want to collect some value in formula based value field and want to use in copa allocation cycle as a tracing
    factor.
    anybody give some light on the same topic or requirement ?
    Thanks
    Nilesh R

    The key figure you are creating in KE2K is not a value field, i.e. you can't post to it and you can't use it in a report. It is a caluculated value that can be used only in assessment and top-down-distribution.
    In Ke2K, enter a name for your key figure, then click on the the white sheet button to create it. Now the formular area is open for input. Input your formular (e.g. VV001 + VV002 - VV003 .... where VVXXX are the technical names of value fields).
    Now click the "check formuar"-button. Then save.
    Before you can use the key figure in assessment, execute TC KEUG.
    Now the key figure is available as any value field in the tracing factor selection of your assessment cycle.
    I hope this made it clearer.
    Regards
    Nikolas

  • How to create test database in system (have downloaded mxdb)

    how to create test database in system (have downloaded mxdb)...Can someone pls help as I am new to SAP

    Hi amit,
    the maxdb documentation gives all information which is needed:
    Install the software with SDBSETUP:
    <a href="http://maxdb.sap.com/currentdoc/4c/da3b3c51bd4b3ae10000000a114084/frameset.htm">Installation</a>
    Create a database with DBMGUI
    <a href="http://maxdb.sap.com/currentdoc/84/d8d192570411d4aa82006094b92fad/frameset.htm">Create Instance</a>
    Reagrds, Christiane Hienger

  • Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type a

    Dear Team,
    Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type. Could you please do needful. Thank you

    Hello,
    most recent patches for IGS and kernel installed. Now it works.

Maybe you are looking for