Variables in SAP  Rporting

Please advise what is the difference between Variables and Filters.

Hi,
they are two different stuffs altogether ....filters if excluded will not show that data in the report for those values...if included will show data only satisfying that condition.....variables on the other hand are used to give input  values or values derived from other characteristics based on the logic thrugh exits at the runtime of the query...these input can be used to restrict key figures and also in the global filter values...that is the values of the global filters can be dynamic too... populated thrugh variables.....
Thanks

Similar Messages

  • 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

  • Customer Exit Variable in SAP BI

    Hi to all,
    Please can any body tell me , What is Customer Exit Variable in SAP BI , how to use it , why we use it.
    please also sned any website link , or any PDF or DOC file that have example to explain Customer Exit Variable in SAP BI.
    I shall be thankfull to you for this.
    Regards
    PAVNEET RANA

    Hi,
    Customer Exit Variable in SAP BI : is used to calculata MTD,YTD, and some other calculations.
    You can define variables with Customer Exits and then write code in CMOD. See the Article/Blogs in the same
    https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    CHeck the Following Articles.
    Customer Exit Variables in BW/BI Reports
    Using Customer Exit Variables in BW or BI Reports Part - 1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/s-u/using%20customer%20exit%20variables%20in%20bw%20or%20bi%20reports%20part%20-%201.pdf
    How to use Customer Exit Variables in BW Reports: Part - 2
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/g-i/how%20to%20use%20customer%20exit%20variables%20in%20bw%20reports%3a%20part%202.pdf
    Using Customer Exit Variables in BW/BI Reports Part - 3
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10fc4382-afa6-2c10-1380-fa224fe4324f&overridelayout=true
    Using Customer Exit Variables in BW/BI Reports: Part - 4
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0fefc77-40e3-2c10-8da3-d4bfcb013387?quicklink=index&overridelayout=true 
    Calculating the Ageing of the Materials
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/a-c/calculating%20the%20ageing%20of%20the%20materials.pdf
    Thanks
    Reddy

  • Session variables in sap personas 2.0

    Hi ,
    Is there any way i can able to store values to a variable as global and use the same variable in different tcodes for sap personas flavors?
    Regards,
    Sivaganesh

    The technique Tamas Hoznek is referring to is described in this blog - Data caching in Personas scripts.
    Essentially you use "Calculate in JavaScript" actions to store data "globally", in other words in the browser window object. Those values persist between scripts and even between transactions. The disappear when the browser page is refreshed. I think this is what you are looking for.
    Be aware that this technique does still work in Personas 3 when run in a browser. However, Personas 3 is also supported in the native Windows and Java versions of SAPgui, and there this technique doesn't work. There is no "window" JavaScript object in the Windows SAPgui. There is a new mechanism supported in Personas 3 for storing data more persistently, so if you are building flavours that you want to be usable in the GUIs as well as in a browser, you'll need to plan to convert to this standard technique when you upgrade to Personas 3.
    Steve.

  • Webi  Bypassing BEx Authorization Variable with SAP Exit

    BEx query has Hierarchy Node Variable with Authorization as processing type. Its set as User Input ready
    When the Webi report is refreshed, the LoVs appear as per the Authorization. However, if user doesn't select any value (pushes from right to left in variable screen) he gets NOT_AUTHORIZED error. Which is not intended, it should check the authorization in the background via SAP exit and populate the result. This is how it runs inBEx query.
    However, in Webi it's giving NOT_AUTHORIZED error? This is how the product is designed to work or is it a bug.
    I see several forum threads and SAP KBAs/notes but they are not answering my question. Could anyone please help.
    I am ready to provide more details on this error.
    Thanks,
    Tilak

    Hi,
    this is how authorization variable would work in any of the clients and not just Web Intelligence.
    You created an authorization variable which is configured as "read for input", so the user is getting prompted.
    So In Web Intelligence the LoV shows up.
    if the user does not select a value, then you are not sending a value, so you basically asking for all data and you are not allowed to see all data and therefore you are getting the message "no authorization".
    if you are making authorization variables as ready for input then the user needs to select the proper values - regardless of the BI tool.
    if you want the authorization to be check in the background then the authorization variable should be configured to not have ready for input.
    regards
    Ingo Hilgefort

  • List of Variables in SAP BI BEx

    Dear ALL,
    Can any one provide me list of variables with processing type SAP EXIT
    I know that we can get it from Business content.But i also need some Description i.e it Pusrpose or Scenario of usage.
    For 0calmont,0fiscperiod....
    Some docu's or pdf  or  in help.sap.com..also beacuase i don't find any documentation in this
    Regards
    Laxman

    Hi ram
    I guess there are aournd 77 sap exit variables.
    Follow the below steps to get the list of SAP EXIT variables in the system.
    se11/16 -->RSZGLOBV
    in the selection screen enter the
    Version - A
    Processing type - 4(SAP exit)
    execute it will display the Sap exit variables.
    The other way to get the list is goto SE37 --> type "RSVAREXIT_*" ->F4 it will display all the SAP Exit variable function module.here if u want you can check the Codes used for SAP Exit variables as well.
    for example
    Check in Se37 --> enter "RSVAREXIT_0P_KEYDT2" and click on display it will display the code.
    here u can get what exactly the sap exit variable does.
    Regards
    KP

  • Variable in SAP SCRIPT

    Hi Guys,
    I want to print a variable Value from Print Program to SAP SCRIPT, I tried to print it in between && but they still dont have any value while debugging SAP SCRIPT and not also in print out....Suggest somthing.
    Cheers....!!
    Sid

    Hi,
         Debug your program and c whether you are getting your value there. If yoes, check if you have used the function module OPEN_FORM and passed the correct name of the SAP script. Then check if you have used Write_Form and are you passing the correct Text Element Name.
    You would  not have used one of them. Hence the problem.
    Check and revert back.
    Thanks
    Nayan

  • Displaying variable in sap-script

    Hi folks,
           I need to pass a variable to an existing sap-script. But that window is not calling form the print program. It just called dynamically, which contains current date and time. In that window i need to pass the variabe. But the value to the variabel is coming from the print program. How can i pass this variable to the script now...pls help me.
            Thanks,
            Shyam.

    Hi
    Create the window and pass these system symbols
    &date&
    &time&.
    Regards,
    Sravanthi

  • Current Year Formula Variable with SAP-Exit

    Hi Experts ,
    Is there any SAP Exit Formula Variable avaliable that we can use in BEX which gives us the Current Calander Year?
    I am able to find the current fiscal period ie "0F_CUFPE" which provides the current posting period/month.
    On similar basis, I need a FV which provides me the Current Calender Year.
    Please note that I do not need Characteristic Variables for Fiscal Year .
    Regards
    Dipali

    Hi,
    If you're refering to the InfoObject 0CALYEAR, there is an exit variable available called: 0CYEAR - Current Calendar year
    Which will filter on the current year.
    br
    Mikael

  • Variables in SAP

    Hi,
    I would like to ask how is the variable being interpreted in a query?
    SELECT T0.AcctName FROM OACT T0 WHERE T0.AcctCode = $[$39.2.0] FOR BROWSE
    I'm an accountant by profession but would like to know the technical side of this. I believe the "$39" is the item while "2" is the column.  What is "0"? Is this the syntax/format to be used that will apply to all forms of SAP? I'm trying to create a query in a different window using this pattern but wasn't successful to show the correct result.
    Thanks,
    Jacque Escabilla

    Hi Jacquelou,
    You have the 39 and 2 correct (Matrix/Grid and Column). The 0 specifies that it is a string value or the system must read the value as a string. You can have different variations of the last "parameter". It can be
    0 = String
    Number = Read as numeric value to do calculations
    Currency = Retrieves the currnecy symbol if a currnecy value
    Date = Read as date value
    Hope it helps,
    Adele

  • Set a variable in SAP/ABAP memory

    Hi,
    We run a transaction in asynchronous mode or synchronous mode. When we set a variable in the SAP memory when running in synchronous mode, it is getting stored and we are able to get it back.
    But when we run the transaction in default asynchronous mode, it is not setting the variable in the SAP memory and not getting it back.
    Note: By default it runs in asynchronous mode, we set it to synchronous mode only through debugging.
    Can someone please tell me how we can store the variable in the SAP memory when it runs in asynchronous mode ?
    Thanks
    Priya.

    Hi Priya,
    Import and Export parameters cannot be used directly to implement in asynchronous transactions.
    You program an asynchronous method in the implementation program between the macro instructions BEGIN_METHOD <Method> and END_METHOD .
    The system generates an implementation from the specifications you made when defining the method. The unique ID of the object is available in the structure of the key fields under the variable OBJECT-KEY .
    An asynchronous method can be implemented with a transaction. The transaction is called in the program with the ABAP command CALL TRANSACTION . The input fields in the first screen of the transaction are assigned values from the key fields of the object and possibly from the import parameters of the method via processing parameters ("SET/GET parameters"). This first screen is then skipped when the transaction is called (... AND SKIP FIRST SCREEN ).
    Example
    Implementing the method EditAsynchron ( Change quality notification asynchronously ).
    The method operates on an object of the type BUS2078 ( quality notification). This object type has the key field Number ( notification number ). This method has no import parameters.
    You implement this method by calling transaction QM02 .
    When called, the transaction requires the sales document that is available as key of the object from the variable OBJECT-KEY-NUMBER .
    Method Edit (simplified)
    BEGIN_METHOD EditAsynchron CHANGING CONTAINER.
      SET PARAMETER ID 'IQM' FIELD OBJECT-KEY-NUMBER.
      CALL TRANSACTION 'QM02' AND SKIP FIRST SCREEN.
    END_METHOD.

  • How to use Variable in SAP HANA Information Modeller?

    Hello Folks,
    I have created a variable in Information modeller of SAP HANA Studio on top of an Analytical view (Regional Sales).  This variable is SingleValue (Multiple Value Selections).  This variable should prompt me the name of Country/Regions but somehow this is not working when I am using data preview and Analysis tab of data preview.
    Could you please enlight me where I am going wrong? or Let me know if is there any other forum for this.
    P.S : I am using SAP HANA studio on Cloud.
    Regards
    Muffazzal Fani

    Hi,
    After you created that variable as mentioned above, did you apply this variable on your LAND1 attribute.
    How: Open Analytic View --> on right-side you see the attributes,measures etc. >right click on 'LAND1' and select>
    'Apply Filter'--> In the drop-down  select your created variable and activate.
    I assume the above should resolve your issue. Please let me know if it helps.
    Revision: I mean the HANA version you are using.
    Regards, Rahul

  • Allowed variables in SAP GRC RAR messages

    Hi experts,
    I'm using SAP GRC AC 5.3.
    In RAR, I want to configure message 0269 in cc_messages.txt file in order to change text including the description of the mitigation control.
    Does anybody knows what's is this variable name ? Or even, where can I find a list of allowed variables for insertion in messages ?
    Thanks,
    Roque.

    Roquevalder,
    I understand your question now. I see the message you are talking about:
    VIRSA_CC_MSG     0269     EN     error     The mitigating control was updated by #_!USERID#_! on #_!DATE#_! at #_!TIME#_!. This email serves a notification that you have been #_!STATUSCHANGED#_! as the monitor for : #_!LINESEP#_! #_!LINESEP#_! #_!LINESEP#_! #_!CONTROLIDTEXT#_! #_!CONTROLID#_! #_!LINESEP#_! #_!HROBJTYPELINE#_! #_!LINESEP#_! #_!OBJECTTYPE#_! #_!OBJECTID#_! #_!LINESEP#_! #_!ORGRULELINE#_! #_!LINESEP#_! #_!RISKIDTEXT#_! #_!RISKID#_! #_!LINESEP#_! #_!LINESEP#_! #_!MONTEXT#_! #_!MONITOR#_! #_!LINESEP#_! #_!LINESEP#_! #_!VALIDFROMTEXT#_! #_!VALIDFROM#_! #_!VALIDTOTEXT#_! #_!VALIDTO#_! #_!LINESEP#_! #_!LINESEP#_! #_!STATUSTEXT#_! #_!STATUS#_!
    But at the end of the file you have something like this:
    D     VIRSA_CC_MSGPRMS     0269     EN     CONTROLIDTEXT     CONTROLIDTEXT
    D     VIRSA_CC_MSGPRMS     0269     EN     CONTROLID     CONTROLID
    D     VIRSA_CC_MSGPRMS     0269     EN     HROBJTYPELINE     HROBJTYPELINE
    D     VIRSA_CC_MSGPRMS     0269     EN     ORGRULELINE     ORGRULELINE
    D     VIRSA_CC_MSGPRMS     0269     EN     RISKIDTEXT     RISKIDTEXT
    I guess if you want to add a value in the message you have also to define it at the tail of the file.
    My advice is to open a OSS message to ask for this functionality. You shouldn´t change it manually. Take into account that this file must be uploaded each time you update your GRC java components. So, if you make a custom change, you have to repeat that change every time you update. So I think you should ask SAP for this. They will probably include this field in next patches.
    Regards,
    Diego.

  • Q: variable 0CWD / SAP exit program code

    hi guys, actually i want to create a variable like 'last work day'. my idea is to look up in the SAP-Exit coding how 0CWD (current workday) is being processed. can someone please give me directions where i should start exploring? programs sth. like the custom user exit, or some special function module? have already spent some time searching. 
    any contribution is highly appreciated, THX! Harald

    All standard SAP exit variable, have their respective function modules…
    For example consider standard variable exit 0P_COAPP.
    Then in se37 search for RSVAREXIT_* (* = 0P_COAPP).
    Similarly we can search for other relevant standard variables with exit. From the description in the search, you can look for the exit that you want.
    Hope this helps.
    Awarding points on SDN is a way of saying thanks!
    Prakash

  • Using user defined variables in SAP BPC 7.0 NW

    Hi,
    I am using BPC 7.0 SP2 NW version. I want to do some calculatioins and/or comparision in the script logic by using user defined variables.
    For Ex: I want to assign the property TIMEID of TIME dimension to a variable and then use this variable in my IIF statement.
    I have tried a lot but not getting any solution.
    Can anyone guide me in how to use user defined variables in Script Logic.
    Your valuable reply is appreciated.
    Thanks & Regards
    Manoj Damle

    Hi,
    Thanks for the valuable reply.
    But i want to define variables in the Script Logic and not in the Data Manager.
    The scenario is like this:
    I want to check the value of the DUMMYACC1 member of GL_ACCOUNT dimension with a constant and depending on the condition i want to update a user defined variable. This variable will further be used in the *SELECTCASE statement for decision making.
    The Code is as follows:
    *XDIM_MEMBERSET COMP_CODE = COMP_CODE_1
    *XDIM_MEMBERSET BUS_AREA = BUS_AREA_1
    *XDIM_MEMBERSET VERSION = VERSION_1
    *XDIM_MEMBERSET CURRENCY = AUD
    *XDIM_MEMBERSET DATASRC = DATASOURCE_1
    *XDIM_MEMBERSET GL_ACCOUNT = SALESREVENUE,PRICE,QUANTITY,DUMMYACC1
    *XDIM_MEMBERSET TIME=2009.MAY,2009.JUN
    *XDIM_MEMBERSET CUSTOMERCATEGORY = CUSTOMER_CAT_1
    *XDIM_MEMBERSET PROFIT_CTR = PROFIT_CTR_1
    *XDIM_MEMBERSET SEGMENT = SEGMENT1
    *XDIM_MEMBERSET MEASURES = PERIODIC
    *FUNCTION PRO(%VAR1%,%VAR2%)
        [%VAR1%].CURRENTMEMBER.PROPERTIES("%VAR2%")
    *ENDFUNCTION
    *FOR %GL_ACC% = DUMMYACC1
        *FOR %CV_TIM% = 2009.MAY,2009.JUN
            #CUR_MTH = IIF(([GL_ACCOUNT].[%GL_ACC%],[TIME][%CV_TIM%]) = 1.,1,NULL)
        *NEXT
    *NEXT
    *SELECTCASE #CUR_MTH
    *CASE 1
        #CURRENTMTH = PRO(TIME,TIMEID)
    *ENDSELECT
    The errors which system gives is:
    1. Duplicate formula found
    2. Invalid MDX statement
    3. #CUR_MTH & #CURRENTMTH is not a valid member
    Please give your valuable suggestion.
    Thanks and Regards
    Manoj Damle

Maybe you are looking for