Global Variable in report

i am working with some global variables in all of my application including forms and reports. the global variables are created in the when new-form-instance trigger of the main form. the global variables are accessible throught the forms but i d,not know how i can access the same global variables in my reports. pls some one help me to solve the problem.

If you only want to read the global parameters in Reports, you can pass them as parameters. Otherwise, you must put your global variables into a database table, for forms and reports are not sharing the same session.

Similar Messages

  • Syntax for declaring global variable in report

    Hello all,
    Kindly let me know syntax for declaring global variable in report?
    Thnks,
    SUnny

    Hi Sunny,
    All data declaration in the main program is global.
    Only if you do some data declaration withtin the subroutines then the scope of the variable is limited to that FORM ....ENDFORM.
    As you read in the above reply for a global variable in FM you need to declare in the top include.
    This means that you want this variable to be made available to all the Function Modules in that Function Group.
    If you want to make the variabe be available only within that FM then do the declaration in the source code itself.
    hope this explaination helps,
    Taher.

  • Use global variable in reports which is declared in forms

    Hi All,
    I have declared and used a global variable in Forms and after that I'm running a report and I want to use the same variable in reports.
    How can I use that.
    Regards
    Praveen Kr. Arora

    Hi Rizwan,
    Thanks for prompt reply.
    Can you explain in more detail with example.
    Though I'm calling report from menu item and I have created report file with three parameters.
    In menu item I have created a parameter list with same three parameters but whenever I tried to run then it gives Invalid ID error for all three parameters.
    Regards
    Praveen Kr. Arora

  • BADI for BI  Global Variables in Reporting

    Hi all,
    We have requirement in our project like, we want to write BADI for all BI Global Variable. As already Customer exit is available for all the BI global variable , but as there is limitation of IF-ENIF Statements in Include program of Customer Exit Function module , So we are planning to go BADI. Does any one have idea on BADI for BI global variable.
    Thanks in advance

    Kindly check below link for your kind information.
    http://www.scribd.com/doc/40764652/SAP-BI-Global-Report-Variable-User-Exit-Modularization
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60e34f63-f44c-2c10-488e-c89b04e0ca7c?quicklink=index&overridelayout=true
    How to declare Global variable in BADI
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30de01e0-b6f5-2b10-fba1-b9193b82da2a?quicklink=index&overridelayout=true
    Re: virtual keyfigure using BADI
    Regards,
    Kamruz

  • Get names of global variables from report (like Tab "Globals" in debugger)

    Hello,
    is it possible to get a list from all available variables in a report at runtime like the tab "Globals" in the new debugger?
    The problem is that i don't know the names of the variables. So i could not do a dirty assign with field-symbols.
    best regards
    Marcel Gäbe

    Try RS_PROGRAM_INDEX
    table compo returns. filter with type = D
    Will you please check GET_GLOBAL_SYMBOLS & RS_PROGRAM_INDEX _SOURCE

  • ZXRSRU01 (RSR00001 BI: Enhancements for Global Variables in Reporting)

    Hi,
    we are using Userextit RSR00001 to define partproviders of a multiproviders by using variables and a custom table because our multiproviders contain more than 60 partproviders
    i_step = 1
    SELECT * FROM zvar_cube_userex INTO wa_zvar_cube_userex " 
          WHERE     bex_variable EQ i_vnam.                  
          IF sy-subrc EQ 0.                                   
            l_s_range-low    = wa_zvar_cube_userex-infoprovider.
            l_s_range-sign   = 'I'.                            
            l_s_range-opt    = 'EQ'.                           
            APPEND l_s_range TO e_t_range.                     
          ENDIF.                                              
        ENDSELECT.                                      
    At the end of  i_step = 1   in I_T_VAR_RANGE we get following entries
    ZINP_CP2     0infoprov   I  EQ  ZCPCRAG
    ZINP_CP2     0infoprov   I  EQ  ZCPCRAG01
    ZINP_CP2     0infoprov   I  EQ  ZCPCRAG02
    ZINP_CP2     0infoprov   I  EQ  ZCPCRAG03
    Now our question.
    Cubes ZCPCRAG ZCPCRAG01 and so on are yearly cubes, devided by 0fiscalper. Now we think about,  additional to our 0infoprov determination ( depending on query) using SAP standard possebility "Logical multiprovider partitioning" via table RRKMULTIPROVIDERHINT. 
    - Is that possible ?
    - Is ther somebody who used it in the same way?
    Harald

    Thanks rakesh&sangeetha
    In my senario
    I created one report,on report I created on custmor exit varible
    for calday
    when I execute the report in 3.x analyzer Iam getting break point screen(I will take u to cmod)
    If I execute same report in BI.7 It,s not displying  break point?
    (with out asking the variable values ,its directly executing the report)
    why like this ?

  • Global variable in reporting

    Hi
    RSZGLOBV is used to find all variable from this table? how can i get text for that variable? any t-code or table is there to get variable text also?

    You can copy the VARUNIID from RSZGLOBV  and enter in table RSZELTTXT where ELTUID = VARUNIID

  • What's BADI about Customer Exit Global Variables in Reporting?

    Dear Experts,
    In BW side, about BW variable enhancement, i alway writing code in CMOD  EXIT_SAPLRRS0_001/INCLUDE ZXRSRU01.
    when have many peoples change this exit, will have appear some management issues, such as when have a person changing this exit, i can't chang it. and request management also have management.
    Do you know which BADI can do it and replace CMOD's  exit? Please advise.
    Thank you very much.
    Best Regards
    Steve

    Hi,
    If you still feel that you are facing the issue, then you can create a new include for your project inside the
    Include ZXRSRU01 and you can handle the datasources for your projects there.
    You can also make use of this document Enhancing / Modifying Multiple Data Sources in Parallel which you can get by searching SDN
    Prathish

  • How do you reference a created global variable in a report text field?

    I have created a parameter using the Globaldim statement in a script file. when I reference this parameter in any other script file during the current DIAdem session the value is passed without any issue.  Call the variable parmxyz where I assign it a value of 25.3 
    The help section under Globaldim mentions that global variables can be referenced in all panels, scripts, and dialogue boxes.  When I try to insert a text box on a report page using the @@parmxyz@@ it returns NOVALUE where I expect to see 25.3 (for example).
    When I substitute @@CurrDate@@ I do get the date, so I know the text box is valid.  What am I doing wrong?
    Steve    M 

    Hello Steve!
    It should work the way you did it. But their are some circumstances wich might prevent it:
    You have reseted the global script engine. All variables will be lost.
    You have a Sub with the same name in a command extension script. There is no warning ;-)
    One Test you can make is to put in '@@TypeName(paramxy)@@' as the expression to see the variable type. You can also try a realy unique variable name. The last option is to use ItemInfoGet to get detailed infos about your variable.
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • Oracle Froms, Global Variables and Oracle Reports

    Hi all,
    We are developing a form that will call an Oracle report and we would like to test the value of a global variable that was set in the Oracle Forms in the "Before Parameter Form" in the Oracle report trigger. Can this be done?
    Thanks, Larry

    The "global" var. is global to either a report or a form, not both. You may pass them from one to the other but that's not the session-global thing.
    DC

  • Report global variable

    Hi everyone
    I want to calculate the balance quantity from the purchase order
    According to receiving document and display it in the report , is there global variable in the report this my script
    function CF_BALANCEFormula return Number is
    LOC_RECE NUMBER(12,3);
    LOC_BALANCE NUMBER(12,3);
    LOC_PO_CODE VARCHAR2(30);
    BEGIN
    SELECT NVL(ITEM_QUANTITY,0)
    INTO LOC_RECE FROM IM_GOODS_RECIEVE_DETAILS B
    WHERE B.PO_CODE = :PO_CODE
    AND ITEM_CODE = :ITEM_CODE
    AND B.DOC_CODE = :DOC_CODE
    AND LINE_NO = :LINE_NO;
    BEGIN
    SRW.MESSAGE(2001,'LOC_PO_CODE'||LOC_PO_CODE);
    IF LOC_PO_CODE = :PO_CODE THEN
    srw.message(2001,'LOC_RECE'||LOC_RECE);
    :CP_HOLD:=(NVL(LOC_RECE,0)+ NVL(:CP_HOLD,0));
    srw.message(2001,'CP_HOLD'||:CP_HOLD);
    LOC_BALANCE := (NVL(:CF_ORDER,0) - (:CP_HOLD)) ;
    :CP_BALANCE := LOC_BALANCE;
    srw.message(2001,'CP_BALANCE'||:CP_BALANCE);
    ELSE
         :CP_HOLD := 0;
         LOC_PO_CODE := :PO_CODE;
         SRW.MESSAGE(2001,'LOC_PO_CODE'||LOC_PO_CODE);
         srw.message(2001,'2 - LOC_RECE'||LOC_RECE);
    :CP_HOLD:=(NVL(LOC_RECE,0)+ NVL(:CP_HOLD,0));
    srw.message(2001,'2 -CP_HOLD'||:CP_HOLD);
    LOC_BALANCE := (NVL(:CF_ORDER,0) - (:CP_HOLD)) ;
    :CP_BALANCE := LOC_BALANCE;
    srw.message(2001,'2 -CP_BALANCE'||:CP_BALANCE);
    END IF;
    END;
    RETURN(LOC_RECE);
    exception
         when no_data_found then
         return('');
         when others then
         srw.message(2001,'CF_BALANCE'||sqlerrm);
         return('');
    END;
    Waiting for your valuable answer
    Best regards
    Jamil alshaibani

    Thank you everyone
    I already got the answer
    Thank very much
    Jamil

  • Crystal Reports - Global Variables

    hi,
    I want to know if we can define and use Global Variables in Crystal Reports ?
    -Priyanka

    'global' applies only within the report boundary.  If you need to share values across main report / subreport boundaries, you need to declare the variable as 'shared'.
    It you provide more context it would be easier to provide more specific help.

  • Replacing 20 fixstatements by Global Variable - Problem 255 bytes length

    Hello,
    we have an issue in businessrules with setting the fix statement on 1 dimension:
    we currently use Fix (@RELATIVE("CBU_ALL",0) ) - on level 0 are approx. 3000 members - on medium level are 20 CBUs Seat and 20 CBUs Door
    we have approx. 20-30 similar businessrules - which either calculate on seat or door CBUs
    the requirement is to either calculate with a rule the 20 CBUs for Seats or the 20 CBUs for Doors
    as we currently do not fix properly on either Seat or Door CBUs, we calculate approx. 1500 empty members (empty, if fix in another dimension done correctly) - tests showed, that this doubles the time which would be needed.
    I know we could easily set 20 fixes in each business rule:
    @RELATIVE("CBU_BMW_Seat",0)
    ....20 more....
    @RELATIVE("CBU_Ford_Seat",0)
    (the fix above would then exclude the 1500 members, which are below:
    @RELATIVE("CBU_BMW_Doors",0)
    ....20 more....
    @RELATIVE("CBU_Ford_Doors",0)
    unfortunately, the number of CBUs/Customers is frequently renamed or some are added, so I can not afford to built these 20 fixstatements into 20 different businessrules and maintain them all the time.
    I thought of using UDAs or Attribute Values -
    but it seems not to be possible in a fixstatment to combine a relative or Children fixstatement with UDAs, which are set on the upper member ?
    I assume it works, if I classify all 3000 level 0 members with UDA or attribute SEATS or DOORS - but that's inefficient
    @RELATIVE("CBU_BMW_Seat",0) AND @UDA(CBU,"SEATS")
    @CHILDREN("CBU_BMW_Seat") AND @UDA(CBU,"SEATS")
    @Descendants("CBU_BMW_Seat") AND @UDA(CBU,"SEATS")
    @UDA(CBU,"SEATS")
    generally, it seems not to be allowed to combine Children or descendant fixes with any other relations or conditions ?
    @CHILDREN(@Match(CBU," Seat") ) (attempt to search for all children of all CBUs with Seat in its name)
    So the idea is to define 2 global variables:
    1 for Seats and 1 for Doors:
    [SEAT] includes then then: @children("CBU_BMW_Seat") ... 20 more @children("CBU_Ford_Seat")
    advantage would be, we can maintain the list of CBUs in 1 place
    my problem is: length of global variable is limited to 255 bytes - I need 800 to 900 digits to define the 20 CBUs
    having 8 global variables instead of 40 CBUs referenced in Fixstatements is not really an advantage
    even if I would rename the CBUs to just S1,S2,S3,S4 D1,D2,D3 (S for Seat, D for Door) (and use aliases in Planning and Reporting with full name to have the right meaning for the users), it does not fit into 1 variable: @children("S1"), @Children("S2"), ..... is simply too long (still 400 digits)
    also other attempts to make the statement shorter, failed:
    @children(@list("CBU_BMW_Seat","CBU_Ford_Seat",.....)) is not allowed
    is there any other idea of using global variables, makros, sequences ?
    is there a workaround to extend global variable limit ? we have release 9.3.1 - is this solved in future releases ?
    are there any other commands, which I can combine in clever way in fixstatements with
    @relative
    @children
    @descendants
    with things like @match @list ?
    (Generation and Level are no approrate criteria for Separating Seat and Doors, as the hierarchy is the same)
    please understand, that as we use this application for 5 years with a lot of historic data and it's a planning application with a lot of webforms and financial reports, and all the CBU members are stored members with calculated totals and access rights and setup data on upper members,
    I can not simply re-group the whole cbu structure and separate Seats and Doors just for calculation performance
    CBU dimension details is like this:
    Generation:
    1 CBU_ALL
    2 CBU_BMW
    3 CBU_BMW_Seat
    4 Product A
    4 Product B
    ..... hundreds more
    3 CBU_BMW_Door
    4 Product C
    4 Product D
    .... hundreds more
    2 CBU_Ford
    3 CBU_Ford_Seat
    4 Product E
    4 Product F
    .... hundreds more
    3 CBU_Ford_Doors
    4 Product G
    4 Product H
    .... hundreds more
    20 more CBUs with below 20 CBUs Seat and 20 CBUs Door

    How hard would it be to insert 2 children under CBU_All? Name them CBU_Seats and CBU_Doors, then group all the Seats and Doors under them.
    Then your calc could be @Relative(CBU_Doors, 0).
    I know it's not always easy or feasible to effect change to a hierarchy, but I just had the thought.
    Robert

  • How to change Global variable in the query

    Hi,
    I have 6 reports which is using 0PDT as a global variable and has single option as a property. Now I want to change this property and have multiple selection but I am not able to change its property.
    I am able to see all the filter variables from the query property and from there I am getting edit option to change but the "single selection" option is grey/disable which is preventing me to make change in this variable. Is there any way that I delete this variable and create a local variable which has date range option.
    This is affecting all my reports and all the report needs date ranges instead of single select option.
    Thanks,
    Shivani

    Shivani,
        You can change the restrictions with new variable(right click on required infoobject and choose restrict -->> choose variables -->> move existing variable from right to left and move  new variable. Then you can see only one variable.
    You can not delete any variable if is using in some queries.
    how to restrict:
    Srini<a href="http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a563fe09411d2acb90000e829fbfe/content.htm">Restricting Characteristics</a>

  • Selection screen values in global variable user exit

    Hi all,
    I made a project report global variable of type 3 (User Exit) and I develop the related code in enhancement KKDR0001 component EXIT_SAPLKYP1_003. In this code I need the value of project definition that user entered on selection screen.
    Does anybody know how can I get this data?
    Thanks!

    Hi,
    You can do the following for getting project in Earlier screen
    Data: l_string(20) type c
    Field-symbols: <fs> type any.
    l_string = '(Screen)variable name'.
    assign l_string to <FS>.
    Just try above...

Maybe you are looking for

  • Using Transformations with Delta enabled Datasources

    Hi, I have a delta enables datasource which uses incremental update to my infoCube. In order to populate some fields in the cube I used a transformation routine for a couple of these fields to do some lookups from some tables. The problem that I am e

  • Bex Report display issue

    Hi Experts, I have a requirment where I want to display the details of my Service Order In and Out date wise. Like Ser. Order No...............Ser. Ord Date..............................................Delivery No.................Delivery Date 1000..

  • Host name not derived as FQDN (TH_GET_PLUGIN_INFO )

    Hello, we've got a problem in the CRM web UI, however, I assume it is more related to general BSP settings. When testing a CRM component ICCMP_HEADER which is a BSP application in the component workbench (tcode BSP_WD_CMPWB). The browser tells that a

  • How to pass rowset properties out of mapping

    I want to pass out the count of records inserted, and the value of a field out of a mapping to send an email with this information. I cannot see how to accomplish this. I tried setting up an aggregate, and passing result to an Output parameter, but I

  • ADF BC : many bc4j.xcfg files created

    hi Please consider this scenario using JDeveloper 10.1.3.3.0 to see that many bc4j.xcfg files are created when selecting a different connection: (1) First download Steve's example 116 (only 80 KB). (2) Unzip it and open MultipleLevelsOfReferenceAttri