Creating a module level variable??

Greetings,
I'm trying to create a variable that stays in memory during the duration of the current open module. I want to be able to access it and also change it in multiple blocks. I tried using a Global Variable, but learned finally that it can only hold up to 255 characters. I need about 1,000 (for a HUGE where clause joining about 15 tables). I'm sure there's a simple resolution, but I've not found it yet. Please help! thanks!

You can also use a package variables:
PACKAGE my_package IS
variable_1 Varchar2(2000);
variable_2 my_tab.col_1%TYPE;
END my_package;

Similar Messages

  • Environment variables (user) created at OS level dont show up in BIDS 2008

    Environment variables (user) created at OS level don't show up in BIDS 2008.
    I had a variable ConfigLocation created and it is not showing up when I am trying to configure it in BIDS
    Is this a known issue or a bug?
    Now in BIDS it doesnt show up
    Mudassar

    Yes it shows up after restart of BIDS .
    But during design time this is a bug I hope Microsoft fixes this bug in the future releases
    Mudassar
    It's not really a bug. Visual Studio loads the environment variables when starting up.
    In future releases you use projects and parameters instead of environment variables, so the issue goes away ;)
    MCSE SQL Server 2012 - Please mark posts as answered where appropriate.

  • How can I use Server level variables in a business model based report

    hi gems..
    I have declared one server level variable in the BI Analytics repository.
    Now I have made one business model based report.
    In one column I want to use that server level varible.
    I go to the formula tab of that column and then clicked on variable--> session --> put the name of the variable and click ok.
    But when i viewed the report, it is not showing the dates, rather it is showing the date format I chosed i.e DD-MMM-YYYY.
    please help..

    actually the previous problem got resolved...
    Now when I am trying to apply a filter on a particular column using that server variable, then it is showing that the varible has no value definition.
    I have clicked on the filter tab of that column-->add-->variables-->session variables-->then I put the name of the variable-->click OK.
    the following error is comming-
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 23005] The repository variable, Variable_name, has no value definition. (HY000)
    I have made that server variable from manage-->variables-->(right click) create new initialisation block-->gave the name and wrote the query and aslo gave the connection pool name and test that and it worked fine..

  • How to create a Hierarchy Node Variable to be used in Infopackages ?

    Hello,
    I use BW 3.5.
    I need to create a hierarchy node variable (filter) to be used further in Infopackages as OLAP Variable.
    How can I do ?
    Please give a step-by-step answer,
    Thank you very much,
    Thomas

    Hi Again,
    You can use ABAP program in the process chain.
    I guess there are some OS level commands in ABAP which will allow you to open, close, read , write and move files.
    Serach in ABAP help or on net.
    Bes regards,
    Sunmit.

  • Non-admin user cannot access Essbase server level variables

    Version 11.1.1.3
    Essbase Substitution variables are created at server level. Users are getting error in FR report that uses the Subsitution Variable -- Essbase Error(1051085): You do not have sufficient access to get this substitution variable. Also, users cannot access Substitution variable in SmartView. However, users can access variables created at database level. Users are provisioned as "Server Access" to Essbase and filter access to ASO application "MGTRPTG", where MGTRPTG is an ASO essbase application for reporting. We tried the same provisioning in two other environments and it seems to be working fine.
    User is type "Essbase and Planning" provisioned with essbase "server access", application mgtrptg "filter", Reporting and Analysis "analyst", "dynamic viewer" and "Explorer". In addition, it is given a filter "REP_DME_GALB" which restricts 2 dimensions (Division and Geography).
    Steps taken to resolve:
    1. Existing users were deprovisioned and reprovisioned with no effect.
    2. Created brand new identically provisioned users in Prod and QA. QA user can access the server level var and Prod user cannot
    3. Created a brand new server level variable in Prod and this cannot be accessed.
    4. All services have already been restarted several times.
    5. SR has been opened.
    Temporary workaround:
    By creating a duplicate of the same set of variables at the database level, the reports work. This can only be a temporary workaround as the client cannot be expected to maintain two sets of substitution variables since there are 3 applications using these server level variables.
    Thank you for any ideas!
    Jennifer

    You have stumbled on a defect which is resolved in the Hyperion Planning 9.3.1 patch 6 and above. If you have your planning preferences set to indent members it will cause forms which have page selections to show as invalid in SmartView.
    You can either patch Planning or turn off the preference. The patches are available from http://metalink3.oracle.com and require account which has been associated with your client ID.
    P.S. Usually it's not a good practice to use the admin id.
    Regards,
    -John
    Edited by: Jbooth on Nov 3, 2008 2:12 PM

  • How to create function module in abap for VirtualProvider in bi

    how to create function module in abap for VirtualProvider in bi ???????????????
    can any one help me with simple example ?????????????????
    Moderator message : Duplicate post locked. Read forum rules before posting.
    Edited by: Vinod Kumar on Jun 15, 2011 4:40 PM

    Hi ,
    Thanks for replies about my question??.
    If i am using the exit in my char relation ship how can i debugg that exit???
    if i am using BPS0 how to do it???If i am using BPS_WB how to do it??
    Case1.Variable (type Exit) I known how to do debugg this one in BPS0 but i'm not sure in BPS_WB??
    Case2:Char Relation Ship(Type Exit) how to do in BPS0 and BPS_WB??.
    Thanks.

  • Error in creating oracle module

    hi,
    I work with oracle warehouse builder 10g and my database is 10g too.
    I try to create oracle module. in the last step I made new location and click finish. I recieve following error :
    Internal Error :SQL Exception.Please contact Oracle Support with the stack trace and details on how to reduce it.
    Repository Error :SQL Exception..
    Class Name : CAcheMediator.
    Method Name :executeTransactionControlStatement.
    Method Name:-1.
    Repository Error Message :ORA-01086:savepoint 'SP' never established.
    what should I do ??
    what the problem is ???

    Hi Shima,
    This looks and smells like a database error. In order to post this transaction it must set a savepoint. However that seems to fail, so there is something wrong at the database level.
    Can you do any inserts into tables on that database? Did anything happen on the DB, restores or something like that?
    Best advice is to check out metalink...
    Jean-Pierre

  • Want to create a module pool pr by se38..

    hi everyone.. I want to create a module pool program by SE38 tr code n going by modular programm rather than executable pr..can anyone tell me from very begining how to do this... also send me screenshots regarding this or link..plz....

    Hi Shekhar,
    REPORT ZBHMOD1 .
    DATA:OKCODE1 LIKE SY-UCOMM,
    OKCODE2 LIKE SY-UCOMM.
    DATA:N1(10) TYPE N,N2(10) TYPE N,RES(12) TYPE N.
    MODULE USER_COMMAND_1000 INPUT.
    CASE OKCODE1.
    WHEN 'NEXT'.
    RES = N1 + N2.
    SET SCREEN 1001.
    WHEN 'CLEA'.
    CLEAR:N1,N2.
    WHEN 'BACK'.
    SET SCREEN '0'.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1000 INPUT
    MODULE STATUS_1000 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'TIT1'.
    ENDMODULE. " STATUS_1000 OUTPUT
    MODULE USER_COMMAND_1001 INPUT.
    CASE OKCODE2.
    WHEN 'BACK'.
    SET SCREEN 1000.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1001 INPUT
    MODULE STATUS_1001 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'TIT2'.
    ENDMODULE. " STATUS_1001 OUTPUT
    FLOW LOGIC:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1000.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1000.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1001.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1001.
    2)
    REPORT ZBHMOD2.
    DATA: OKCODE1 TYPE SY-UCOMM,
    OKCODE2 TYPE SY-UCOMM,
    ENAME(10) TYPE C,
    DNAME(10) TYPE C.
    MODULE STATUS_1000 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'TIT1'.
    ENDMODULE. " STATUS_1000 OUTPUT
    MODULE STATUS_1001 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'TIT2'.
    ENDMODULE. " STATUS_1001 OUTPUT
    MODULE USER_COMMAND_1000 INPUT.
    CASE OKCODE1.
    WHEN 'BACK'.
    SET SCREEN '0'.
    WHEN 'NEXT'.
    DNAME = ENAME.
    SET SCREEN '1001'.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1000 INPUT
    MODULE USER_COMMAND_1001 INPUT.
    CASE OKCODE2.
    WHEN 'BACK'.
    SET SCREEN '1000'.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1001 INPUT
    FORM ON_CTMENU_FORM USING ZDEMO1 TYPE REF TO CL_CTMENU.
    CALL METHOD ZDEMO1->LOAD_GUI_STATUS
    EXPORTING
    PROGRAM = 'ZDEMO1'
    STATUS = 'ZDEMO1'
    MENU = ZDEMO1.
    ENDFORM. " ON_CTMENU_FORM
    FLOW LOGIC:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1000.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1000.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1001.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1001.
    Every Screen has a pbo and a pai.
    Screen elements are the textbox, buttons, radio buttons and check boxes .....
    If we want to pass data from a abap program to a screen element, we have to create a variable with the name we have given in the screen.So whatever the value is present in that variable is reflected on to the screen element.
    Here is an example :
    Using subscreens and some of the screen elements
    REPORT demo_dynpro_subscreens.
    DATA: ok_code TYPE sy-ucomm,
    save_ok TYPE sy-ucomm.
    DATA: number1(4) TYPE n VALUE '0110',
    number2(4) TYPE n VALUE '0130',
    field(10) TYPE c, field1(10) TYPE c, field2(10) TYPE c.
    CALL SCREEN 100.
    MODULE status_100 OUTPUT.
    SET PF-STATUS 'SCREEN_100'.
    ENDMODULE.
    MODULE fill_0110 OUTPUT.
    field = 'Eingabe 1'(001).
    ENDMODULE.
    MODULE fill_0120 OUTPUT.
    field = field1.
    ENDMODULE.
    MODULE fill_0130 OUTPUT.
    field = 'Eingabe 2'(002).
    ENDMODULE.
    MODULE fill_0140 OUTPUT.
    field = field2.
    ENDMODULE.
    MODULE cancel INPUT.
    LEAVE PROGRAM.
    ENDMODULE.
    MODULE save_ok INPUT.
    save_ok = ok_code.
    CLEAR ok_code.
    ENDMODULE.
    MODULE user_command_0110 INPUT.
    IF save_ok = 'OK1'.
    number1 = '0120'.
    field1 = field.
    CLEAR field.
    ENDIF.
    ENDMODULE.
    MODULE user_command_0130 INPUT.
    IF save_ok = 'OK2'.
    number2 = '0140'.
    field2 = field.
    CLEAR field.
    ENDIF.
    ENDMODULE.
    MODULE user_command_100 INPUT.
    CASE save_ok.
    WHEN 'SUB1'.
    number1 = '0110'.
    WHEN 'SUB2'.
    number1 = '0120'.
    CLEAR field1.
    WHEN 'SUB3'.
    number2 = '0130'.
    WHEN 'SUB4'.
    number2 = '0140'.
    CLEAR field2.
    ENDCASE.
    ENDMODULE.
    flow logic for screen 100
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_100.
    CALL SUBSCREEN: AREA1 INCLUDING SY-REPID NUMBER1,
    AREA2 INCLUDING SY-REPID NUMBER2.
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    MODULE SAVE_OK.
    CALL SUBSCREEN: AREA1,
    AREA2.
    MODULE USER_COMMAND_100.
    flow logic for screen 110
    PROCESS BEFORE OUTPUT.
    MODULE FILL_0110.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0110.
    flow logic for screen 120
    PROCESS BEFORE OUTPUT.
    MODULE FILL_0120.
    PROCESS AFTER INPUT.
    flow logic for screen 130
    PROCESS BEFORE OUTPUT.
    MODULE FILL_0130.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0130.
    flow logic for screen 140
    PROCESS BEFORE OUTPUT.
    MODULE FILL_0140.
    PROCESS AFTER INPUT.
    Kindly Reward Points If You Found The Reply Helpful,
    Cheers,
    Chaitanya.

  • Project level variables in OSB

    Is there any way we can declare project level variables or global variables that are visible to all the projects in OSB?? If yes,the how can they b used??

    OSB is stateless and can not remember variables outside a running process instance.
    However you can have a solution similar to global/project level variables if they are static.
    What you can do is create an XSL or XQuery with your variables defined as elements in the XML and inside Proxy service if you need to refer to these variables just call that XQuery/XSLT for that element.
    A use case where this scenario can be used is for defining log levels. You can have a config XQ for each project and define the value of log level element for each project in that XQuery. Inside a Proxy service just call this XQ and fetch the LogLevel and log accordingly. This is also useful in migrating between dev/test/production environments. You can have different values of LogLevel in the XQ in different environments so that you dont need to change the code in proxy service when you move from one environment to other and also you dont need to change in each and every proxy if you need to change the level of logging.

  • Authorization at module level

    Dear experts,
    We are in the  blue print phase and customization has not started yet.
    our project Mngr wants to have module level authorization to all consultants,
    I mean to say , SD consultant should be able to do SPRO Configurations only is SD , he/she must not be allowed by himself to enter into MM or FI or other,
    Hope you people got my query please help to attend this issue.
    I am wondering whether it is possible or not,  even then is this a best practise ?
    Thanks
    SM

    Dear Irfan,
    You can follow the below process.
    First,Create an project in IMG for the area that you want to restrict (tcode SPRO_ADMIN, create a project with a desired name and then select the components you want to use.) like you mentioned SD, PP etc.
    Then, you create a role using the following steps. On the menu tab,Select menu option Utilities->customizing auth...Click on Add and select IMG project . Select the project that you want to build a role for & it will pull in all the respective transactions within that project node.
    This is posted in reply to one of the past queries in this forum. please search the forum for more details.
    Regards,

  • Creating function modules

    Hi Friends,
    Is it true to say that creating function modules in BPS is easier than the normal way of creating it in BW / R3 where you have to link it to the function group and all the usual steps?
    Hope you can clarify. Thanks.
    Michael

    Hi Michael,
    pressing F1 when you define an EXIT Funtion on the field "Function Module" BPS will show you a Performance Assistant window that explains the guide line to define Importing and Exporting parameters to be defined in you FM. You will see that these are different from the ones requested when implementing a BPS Variable replaced by Used Exit.
    Hope it helps
    GFV

  • Swc / accordion problem, trying to create a 3-level dynamic nav

    Hi!
    First time poster, long-time troller. I've been working on a
    CMS system and having a little trouble creating a three level
    navigation, that's uses the functionality of the accordion
    component, but styled with dynamically loaded fonts.
    I'm using the "flexlibs" swc (and was playing with degrafa,
    but think it's a little much for what I'm trying to do). What I'm
    doing is:
    - pulling the three level navigation (1st level - brand, 2nd
    - campaign, 3rd - job),
    - a VBOX holds the entire nav, the first level is an
    accordion with:
    -- a header (that somehow draws the data (this is my first
    question) to put in a swc I created, in a Header.mxml component.);
    and a
    -- repeater that does the same thing for "campaign" (2nd
    level): vbox, vaccordion (header + repeater), that holds:
    -- a swc component, called "JobComp" (I've been playing
    swapping it with a flash-made swc but can't seem to figure out how
    to pass initialization variables in the constructor)
    I used "swc"'s for the nav components, because the fonts are
    "AGBuchBQ-Bold" and I thought it'd be easier this way.
    I guess my question(s) are:
    1. How do I pass a variable in the constructor of a swc
    Component?
    2. Am I doing this right? Or should I construct the
    navigation ALL in flash, export as a swc, and just pass in the xml
    to the flash component (which means I need to understand #1...)
    3. Is there a way to load / set font in the accordion / list
    components that are not the basic fonts? If I can style it all in
    the .css, that'd be really really helpful, I think, since it's 90%
    there.
    Thanks again, for any input,
    Dom

    My bad i didn't see that you want to create a swc.
    Well, as i said earlier, for me, the only way to pass
    parameter to a constructor (i suppose you mean like new Label("my
    title")) is using actionscript.
    What you can do if you want to create an MXML file is
    creating public parameters (or getters) in the script tag and use
    the [bindable]. As far as i understood Flex, properties in an MXML
    will have no action on your component if you don't use this tag.
    You can as well create a method that will apply these
    parameter after its creation, example :
    You create a MyComponent class which has different properties
    like displaySubComponent and maximumValue. In your class, you
    create a method called "applyParameters" which will do something to
    initialize it.
    Then you call use it like this:
    <c:MyComponent id="a_component" displaySubComponent=[ A,
    B, D] maximumValue=5
    onCreationComplete={a_component.applyParameters()} />
    And yes, i thought
    "dataProvider="{repeatCampaign.currentItem..job }" was strange but
    it's good to know that we can do that ;)
    Hope, i was understandable ^^"

  • Form Level Variable

    I want to declare a form level variable and want to assign a value at WHEN-NEW-FORM-INSTANCE trigger and i want to use the same value in Program units as well as other form level and block level triggers. How to achieve this? Do i need to refer the variable with :Symbol? Thanks!

    Chris,
    There are a couple of ways to do this. As Ammad suggested, you can use a Global variable, but as you point out - Globals are visible to your Forms session unless you destroy the global. You can also use a Parameter as you have done or you can use a Control Block with a block item that will accept the type of data that will be stored in the variable. There are limitations with each of these options however.
    With Globals, all variables are of CHAR datatype and are limited to 4000 bytes in Forms 10g and higher and 255 in Form 9i and lower. Any non-character value stored in a global must be converted back to it's native datatype when you read the value to ensure it is evaluated correctly. When globals are declared, they always reserve the max amount of memory needed to support the 255 or 4000 characters. If you use Globals, it is a good habit to use the Erase() built-in to destroy the Global when you are finished with it. Also with Globals it is possible to get a Runtime error if the Global has not been initialized before you reference it, but will NOT produce a compile time error.
    Parameters and Control Block items are a little more flexible in that you can define the parameter's datatype as CHAR, DATE or NUMBER (check Forms Help for the max datatype values they can store). Parameters and Control block items also have properties which means they take up more memory resources because the properties of these items have to be loaded into memory in addition to the data.
    I would recommend using Parameters over Globals for Forms specific variables because you have greater flexibility with the data types supported, however, I personally prefer to use a Forms Package Specification with Package Variables declared as this more flexible and only allocates the amount of memory needed to support the variable. When I have a situation that requires a variable be visible to the entire form, but doesn't need to be Global to the session, I will create a Package Spec called FORM_VARS in the Program Units node of the Object Navigator and declare the variables I need. I do not create a Package Body. For example:
    PACKAGE FORM_VARS IS
       n_User_ID      NUMBER;
       v_User_Name  VARCHAR2(25);
    END;You then reference the variables the same as you would for any Forms program unit.
    BEGIN
       Forms_Vars.n_User_ID := 1234546;
       Forms_Vars.v_User_Name := 'John Doe';
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Jun 28, 2010 11:17 AM

  • Item created at site level can not be seen in other responsibilities

    Hi,
    I've made changes to one of the iProcurement pages.
    I added an item (type : Tip) at the site level . The context is as follows:
    scope : page
    site : include
    organization : A
    responsibility : B
    The Tip item's rendering properties are as follows:
    Site : True
    Organization : Inherit
    Responsibility : Inherit
    Now, I go to another responsibility C and when I looked for this item, it can't be seen.. The item could not even be searched in the personalizations page.
    The context for this as follows:
    scope : page
    site : include
    organization : D
    responsibility : C
    I just want to know that when an item created at site level should be seen by all the responsibilities right?
    why is that it is not getting displayed here?
    Thanks in advance

    Hi Ram,
    I could clearly see that the item got created at site level.
    The function in the context window is left blank.
    site: include
    organization : A
    responsibility : B
    I could see the item in the B responsibility.
    But when I go to some other responsibility ( with a different organization), I could not see the item.
    This page I'm talking about is NonCatalogShoppingPG (iProcurement).

  • How to create a module for File Adapter

    Hi,
    I read somethings about module in Adapters.
    What I need to create a EJB? I need to generate a jar? Where I put it?
    Do they have anything about this or a step by step? I want to create a module fpr File Adapter
    Tks.

    Hi,
       >>>What I need to create a EJB?
           If you have NDS or Ecclipse you can create them automatically.
       >>>I need to generate a jar?
          Yes you need to generate a .Jar for that Ejb.
       >>>Where I put it?
          Put that .Jar in .Ear file. and then deploy it on to the Xi server or PCK or Decentralised Adapter Engine where ever u want to use.
       >>>Do they have anything about this or a step by step?
          Yes.Step by step procedure for creating module is available.You can get them at the links given above by others.
    Regards,
    Gowtham K.

Maybe you are looking for

  • How can I get ArcSoft Photostudio 6 to open pictures from iPhoto?

    Moving from PC to iMac.  On PC, I could load and also save to my photo library from Photostudio 6.  But when I see my iPhoto library when trying to open from Photostudio 6, it's pale and I can't open it.  Is there a way to unlock this, or be able to

  • How to modify the field symbol

    Hello Every1, I have a internal table and field symbol with the below structure. Data : begin of itab occurs 0,            matnr like mara-matnr,            ersda like mara-ersda,        End   of itab. FIELD-SYMBOLS: <Matnr>    TYPE STANDARD TABLE. I

  • Problem in Error Message

    Hi Abappers, I have coded as LOOP AT lt_toa01 INTO ls_toa01.   INSERT INTO toa01 VALUES ls_toa01.   IF sy-subrc NE 0.     MESSAGE ID 'ZIXMESSAGE' TYPE 'E' NUMBER '000'.     CONTINUE.     WRITE:/ ls_toa01-mandt,             ls_toa01-sap_object,       

  • Unable to check usage on iPad  (Settings General Usage)

    Hello, My iPad mini won't allow me to check how much space I have left but I was notified (forgot how) that there was not much space left. I originally thought that it kept crashing because my iPad wasn't updated to the latest version so I downloaded

  • Photos iCloud Duplicates

    I purchased Aperture before it was updated to include any iPhoto program. I therefore imported into Aperture all my photos from iPhoto (unfortunately losing some data in the process such as faces and places and requiring significant work to redo. Lat