How to go to java section global variable declaration

Hi all
i am following this scenario
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID0446700150DB10376299506581707969End?blog=/pub/wlg/11287
in this scenario 3rd screen shot is about global variable declaration:
In order to build the content of the attachment (for this particular requirement) we use a global variable declared and initialized in the global sections :
can any body tell me how to go to this java section screen , as i am unable to find this java screen....
Thanks
sandeep

even i cant see this edit java section
i am working on PI 7.1. has this feature been removed in pi 7.1
this is replaced in PI7.1 ... check this blog on how to use the "global" variable in PI7.1:
/people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
Regards,
Abhishek.

Similar Messages

  • How to Set and Use a global variable within a session?

    Dear All,
    I'm new to jsp, and would like to ask how to set and use a global variable within a session?
    Thanks in advance.
    Regards,
    Cecil

    With session.setAttribute("name",object) you can store a Attribute in the session object.
    with session.getAttribute("name") you can get it.
    That's it.
    Regards,
    Geri

  • How do I see values of global variables in a SAP system

    Hi Guys
    How do I get to see the values of global variables DIR_GLOBAL etc.
    Actually I wanted to run an archive for some IDOCs, and I configured a filepath for the same and gave it an address to my local system, now when I use SARA and after customising the logical path it gives me an error stating that "Logical file path is not completely maintained".
    So I resorted to one of the predefined paths ARCHIVE_DATA_FILE and it archived successfully but I am not able to figure out the exact path of the archived file can you please help??
    Best regards
    Sujoy

    Hello Sujoy,
    Execute transaction FILE, double click on Logical File Name Definition, then, scroll down to find ARCHIVE_DATA_FILE - double click on ARCHIVE_DATA_FILE.  Note what is entered in the Logical path field and then, go to Logical File Path Definition.  Look for the path name from previous step and highlight/select it and click on Assignment of Physical Paths to Logical Path.  From there, you can double click on the relevant Syntax group.  This will give you the path for where the archive file has been written to.
    I hope this explanation is not too confusing :-).
    Best Regards,
    Karin Tillotson

  • 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?  

  • Timeline. How does (or does not) update global variables?

    Hello All,
    I am having problems to understand how a timeline updates values. In my case the timeline is supposed to change an index within a second always by incrementing it by one or decrementing by one. Basically I am trying to create a mosaic of images that when I press left key all the columns move to left and when I press right key all the columns move to right.
    To do this I have a deltaX constant that defines the translation.
    Then I have a global tracker initialized to 0 and then udated +1 if move to right, -1 if move to left.
    The Timeline is:
    public var tracker: Number = 0;
    var thumbnails: ImageView[] = bind for (column in [0..appModel.CATALOG_COLUMNS + 1]) {
                    for (row in [1..appModel.CATALOG_ROWS]) {
                        def imageView: ImageView =  ImageView {
                                    image: bind catalogData.dataAt(row, column)
                                    x:  bind (column - 1)*catalogData.maxThumbnailWidth + column*xSpacing
                                    y:  bind ySpacing + (row - 1) * (catalogData.maxThumbnailHeight + ySpacing)
                                    translateX: bind tracker*deltaX
                                    transforms:  bind [
                                        Rotate {
                                            angle: bind direction * rotation
                                            pivotX: bind imageView.x + imageView.boundsInLocal.width / 2
                                            pivotY: bind imageView.y + imageView.boundsInLocal.height / 2
        override public function create(): Node {
            return Group {
                        content: bind thumbnails
    public function rotateAndTranslateToRight(): Void {
            direction = 1;
            translateAndRotateTimeline.stop();
            translateAndRotateTimeline.play();
        public function rotateAndTranslateToLeft(): Void {
            direction = -1;
            translateAndRotateTimeline.stop();
            translateAndRotateTimeline.play();
        var translateAndRotateTimeline = Timeline {
            def initialValueTracker = tracker;
                    keyFrames: [
                        KeyFrame {
                            time: 0s
                            values: [
                                 rotation => 0,
                                 tracker => initialValueTracker
                        KeyFrame {
                            time: 1s
                            values: [
                                rotation => 360 tween Interpolator.LINEAR,
                                tracker => initialValueTracker + direction tween Interpolator.LINEAR
                }The problem is that if I first move to right the Timeline works correctly and tracker goes from 0 to 1 in one second, therefore I see a translation to right of tracker*deltaX pixels. So far so good.
    Then if I move to left, I am expecting the Timeline to change tracker from 1 to 0 in one second, but really it is changing tracker from 0 to -1... which of course messes up my translation to left.
    I thought Timeline updates global variables (define outside the Timeline in the context of the class the Timeline is defined) during the transition, but apparently from my observation it doesn't.
    Or maybe I am not defining correctly the Timeline itself and/or the tracker variables?
    Thanks.
    Edited by: sacchett88 on Jun 4, 2010 1:03 PM

    Thanks for the reply... but it didn't help me that much in finding the workaround. I wrote a simpler example to prove the point that can be easily copied and pasted and run. The example draw a circle and for every right key it should move the circle to right of a deltaX number of pixel. If left key is pressed then the circle should move to left of a deltaX number of pixels. The code is:
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.shape.Circle;
    import javafx.scene.paint.Color;
    import javafx.scene.input.KeyEvent;
    import javafx.scene.input.KeyCode;
    import javafx.animation.Timeline;
    import javafx.animation.KeyFrame;
    import javafx.animation.Interpolator;
    var deltaX: Number = 70;
    var direction: Number = 1;
    var tracker: Number = 0;
    var circle: Circle;
    var translate = Timeline {
        def initialValueTracker = tracker;
                keyFrames: [
                    KeyFrame {
                        time: 0s
                        values: [
                            tracker => initialValueTracker
                    KeyFrame {
                        time: 1s
                        values: [
                            tracker => initialValueTracker + direction tween Interpolator.LINEAR
    Stage {
        title: "Application title"
        scene: Scene {
            width: 900
            height:500
            content: [
                circle = Circle {
                    centerX: 100,
                    centerY: 100,
                    translateX: bind tracker*deltaX
                    radius: 40
                    fill: Color.BLACK
                    onKeyPressed: function (e: KeyEvent): Void {
                        if (e.code == KeyCode.VK_RIGHT) {
                            direction = 1;
                            translate.stop();
                            translate.play();
                        } else if (e.code == KeyCode.VK_LEFT) {
                            direction = -1;
                            translate.stop();
                            translate.play();
    circle.requestFocus();I understand how KeyFrame works. However the final value I'd like to be the initial value for next key press. I also tried to assign explicitely the final value to the tracker variable at the end of the timeline, but next time timeline still picks up the initial value 0 of tracker.
    Thanks.

  • How to get value for a global variable from an exel file?

    Hallo all,
    I am a beginner in LabVIEW and I have  a problem in reading datas from an exel file . I would like to import a group of data with timestamps from exel file to a global variable. for ex. speed, acceleration and position of 4 different sensors to each of its global variable.
    It will be very nice if anyone can give me some ideas.
    Thanking you in advance

    ...continued here

  • How can I make my mini global variable work in more than the default case?

    Hello, this seems so simple yet does not want to work. I created 2 simple read/write mini vi's and want to use them as global variables. Writing values based on a case selection. This method only seems to work in the default case. Where did I go wrong?  Thanks
    Attachments:
    Curs 0 Y.vi ‏13 KB
    Main.vi ‏19 KB
    Curs 0 X.vi ‏13 KB

    In case 1, you are writing to a second set of subVIs (Curs 1 X.vi vs Curs 0 X.vi). You only read from Curs 0 X.vi, and never from Curs 1 X.vi.
    LabVIEW Champion . Do more with less code and in less time .

  • Global Variables declaration in PI 7.1

    Hi All,
    In message mapping where can I declare global variables in PI 7.1.
    Thanks and regards
    Uma

    Hi Sarvesh,
    Thank you for the response.
    The blog given by you is on PI 7.0, But icon(Java Sections) is not present in PI 7.1 mapping editor .
    Please guide me how can I proceed further.
    Thanks & regards
    Uma
    Edited by: Uma Balasubramanya on Mar 20, 2009 1:11 PM

  • Global Variable declaration in Custom Infotype

    Hi All,
    I need to validate a custom infotype field, where i need to check for execution times. I need to override the field value only during first time of the run(PAI logic) and there after user can choose a value of his choice.
    I was looking out for Global variable to check if its first run. Can you please tell me how do i create global variable in custom infotype? The top include specified in the program is not editable, being standard (MPH5ATOP).
    Thanks,

    >
    Sachidanand B wrote:
    > Hi All,
    >
    > I need to validate a custom infotype field, where i need to check for execution times. I need to override the field value only during first time of the run(PAI logic) and there after user can choose a value of his choice.
    > I was looking out for Global variable to check if its first run. Can you please tell me how do i create global variable in custom infotype? The top include specified in the program is not editable, being standard (MPH5ATOP).
    >
    > Thanks,
    The system will generate an include with the naming convention ZP<Custom Infotype number>10(This program will be included in the custom infotype main program ZP<Customeinfty number>00). You can use this include for your data declarations.
    Ex: if the number of the custom infotype is 9010 the generated include name will be ZP901010.
    For more details check the link below
    http://help.sap.com/saphelp_47x200/helpdata/en/4f/d525ad575e11d189270000e8322f96/content.htm
    Regards
    Rajesh:

  • Global Variable Declaration in PI 7.1 EHP 1

    Hi Experts
    How can I declare the Global Variables in PI 7.1 EHP 1 , please let me know if there is any blog in Enhancement Pack 1
    Thanks
    PR

    On PI7.1 global variables have been removed.
    You can try one of the following:
    1. Create a global variable within an UDF;
    2. Use the solution from the blog below:
    /people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable

  • Apex- global variable declaration

    Dear Friends
    I am very new to Oracle applicaiton express,
    Please let me how to declare global variable in an applcation. The variable should be accessible throught ot all the pages in that applicaion. Any one can help?

    Hi,
    use an application item for that purpose.
    Just navigate to Shared Components->Application Items and create what you need.
    Regards,
    Moritz

  • Global Variable Declaration in ProcessRequest Method

    Hi All,
    i need to declare a variable(Global) in Process request Method and then i need to pass this variable value in ProcessRequest Method of Another Page.
    it is possible to declare a Global Variable in ProcessRequest Method.
    Process Request Method:
    if(pageContext.getSessionValue("varBatchID")!=null && pageContext.getSessionValue("varCustomerID")!=null)
    System.out.println("Second Else From Drill Down");
    String strCustID=pageContext.getSessionValue("varCustomerID").toString();
    String strBatchID=pageContext.getSessionValue("varBatchID").toString();
    System.out.println("CustomerID:"+strCustID);
    System.out.println("strngBatchID:"+strBatchID);
    Serializable[] parameters={strCustID,strBatchID};
    OAMessageStyledTextBean oamessagestyledtextbean=(OAMessageStyledTextBean)createWebBean(pageContext,"strCustID");
    oamessagestyledtextbean.setText(pageContext,"strCustID");
    pageContext.getApplicationModule(webBean).invokeMethod("backTocusttrxn",parameters);
    pageContext.removeSessionValue("varCustomerID");// Here i need to close this session Value and at the same time i need to pass this session value to another page PR Method. SO For that i need to Declare a variable(Global) and pass that variable value to another page.
    pageContext.removeSessionValue("varBatchID");
    Could you please any one give me the solution for this.
    Thanks,
    Mallik.

    Hi ,
    Create transaction variable and pass your value into that and get the same in other CO using below code,
    pageContext.putTransactionValue("IrcSelectedPersonId",value)
    pageContext.getTransactionValue("IrcSelectedPersonId");
    Regards,
    Vijay Reddy.

  • Global variable declaration in form routines

    Hi All,
    i am new of the smartforms, i have a small problem in smartforms.
    i need to display the one text based on the condtions, already i have putted the condtions in the condition tab for the text, i need to compare the one more condtion, the condtion is TB_INFORMATION IS NOT INITIAL.
    the code was devaloped in the formroutines , i need to implement the one condtion in the form routines,
    the condition is if TB_INFORMATION IS NOT INITIAL is not initial
                                  va_information = x.
                                endif.
    already i declared the variable in the global defination ,but i am getting the error.
    where can i declare the global variable in form routines.
    Please help me,
    Thanks & Regards
    charan

    declare in global data and it will be visible and available in form routines too.

  • Static used on global variable declaration

    I have inherited a CVI project that contains a single .C file and a couple of .UIR files with their associated .H files.
    Many of the global variables have STATIC in their declaration - I believe this is due to the fact the original developer originally had them inside various functions and at some point changed strategy to make them global, leaving the STATIC keyword in place when copy/pasting.
    As I understand it the ONLY implication of STATIC on a global variable would be to keep its visibility only to the .C file in which it is declared. In this instance that is moot since there is only one .C file in the project.
    Is there anything about LabWindows/CVI which I might not be aware of that makes this use of STATIC cause something different than if STATIC were not used?
    Thanks for any input you might have since I'm new to CVI

    Roberto and menchar said it well:
    "static variables are declared at compile time and survive when their block of code terminates. If declared at function level, their value survives from one call of the function to another, so that they can be used over time to store permanent values locale to the function. If declared at module level, they are common to all functions in the module and are allocated outside the stack so that their values are not lost during program life. In every case they can be accessed and modified in values by functions in the program. If arrays, they cannot be dinamically changed in size."
    "The static keyword can be used with a function name also, meaning the function name isn't exported to the linker, and the function is in scope only to code within the module."

  • How to retain the data in global variable.

    Hi all,
    i have one login view, when one user logs into it and press enter, then user name get displayed in table. but, when other user login, then that previous user name get flushed off. what i want is to display all the previously logged in users to get displayed in that table whenever new user logs in.
    for this, i have declared one node in login view named 'node_user'_login of cardinalty
    01 and then bind that node to component controller, After that, i have declared one other node 'node_user' of cardinality 0-n in component controller.i have written the method 'get_user'  in component controller through which i m trying to move that 'node_user_login'  name to 'node_user'  name.
    data: m_user type ref to if_wd_context_node,
               c_user type ref to if_wd_context_node,
              USER TYPE REF TO IF_WD_CONTEXT_ELEMENT,
          Stru_users type if_componentcontroller=>Element_NODE_USER.
    data: value1(15) type c,
    USER_COUNT TYPE I.
    m_user = wd_context->get_child_node( 'NODE_USER_LOGIN' ).
    m_user->get_static_attributes(
                           IMPORTING static_attributes = stru_users ).
    c_user = wd_context->get_child_node( 'NODE_USER' ).
    USER = C_USER->CREATE_ELEMENT( ).
    USER->set_static_attributes( exporting static_attributes = stru_users ).
    C_USER->BIND_ELEMENT( USER ).
    USER_COUNT = C_USER->GET_ELEMENT_COUNT( ).
    but, it does not shows all the login users, whenever new user logs in , that name get flushed and new user name is displayed. and user_count always returns value 1. whereas it should contain count of all previous users.
    Plz help asap. It's urgent.
    Points will be awarded.

    Hi,
    For your table, you should be having an internal table and not a structure.
    the declaration will be like:
    data: itab_users type if_componentcontroller=>elements_node_user.
    Now, what you should do is:
    node_user->get_static_attributes_table( importing table = itab_users ).
    append stru_users to itab_users.
    node_user->bind_elements(itab_users).
    This will solve your problem.
    Regards
    Nithya

Maybe you are looking for

  • How do I import google calendar to iCloud?

    Is there any easy way to import my Google calendar(s) into iCloud? Thanks, Randy B.

  • Sharing Location In Maps Not Working

    When I try to share my location via Maps using email I always get a bounce back to the account I was trying to send from saying: This message was created automatically by mail delivery software. A message that you sent could not be delivered to one o

  • If I restore a backup by mistake to my iphone , can I turn the state before restore

    by mistake  i make a restore to other profile from icloud and all my data are replaced can i get my original data back

  • Smartform Dynamic Ppage Format

    Hi All, I need answers to the following questions. 1.I have a smartform for which the page format is Letter, while printing the form depending on some conditions I want to print the form on A4 paper.How can I dynamically change the Page Format, i hav

  • Using destype=mail in reports server

    I am trying to send a report to an email address by using the following request string from IE 6.0: http://[local machine name]:8888/reports/rwservlet?cmdkey=test_report+desformat=html+destype=mail+desname=[email protected] The error I get is: Error