Forms 6i- Good variable naming convensions

Could you suggest any good naming conventions on Forms 6i

Thanks for your time Brian,
This morning I solved,
If I tell you what it was you won't believe it.
To Oracle Forms 10g don't like that global variables comes in this way:
PACKAGE TGLOBAL IS
SEDE_AZIENDA VARCHAR2(1):= '1';
other variables
END;
but they have to be set before you call library Package, that is, set it, call library's function where you modify it !!!
TGLOBAL.SEDE_AZIENDA := '1';
CALL_FORM (......... SHARE_LIBRARY_DATA .....
Hope this helps other with same problem!!!!
Thanks again for your time, Brian and Have a good and Merry Christmas

Similar Messages

  • Web Dynpro for ABAP Naming Convension & Guide line

    Hi, everyone.
    I have a plan to implement Web Application as WDA(Web Dynpro for ABAP). but I don't know how can I give a name to Windows or Views or Custom controllers.
    If you have a naming convension or guid line document,
    Could you share the document with me? ^^

    As Rich said, there are no official naming conventions. Nonetheless, a few things have become quite popular, such as:
    - adding wnd_ in front of window names as they share the same namespace with views
    - adding m_ in front of member variables of controllers
    - adding s_ in front of supply methods and using the name of the node afterwards
    - adding lbl_ in front of labels and using the name of the labelled ui element afterwards like "lbl_customer" and "customer"
    Some developers also add certain prefixes to view elements to distinguish between them.
    Regarding the names of components, there is one thing that you should not do: Start them with WD_ or WDR_ as both are somehow preserved. The same is true for entities within a component, although there checks in place that prevent you from doing that.
    Best regards,
    Thomas

  • Copy data from a UDO form to Goods Receipt PO using UI API

    Hi, all
    I tried to copy data from a UDO form to Goods Receipt PO using UI API through following codes.
    It works fine while copying to a Item-type Goods Receipt PO.
    But when the doctype is set to service, I got errors.
    I use for-loop to copy two items, Description and LineTotal, into the matrix of Goods Receipt PO form, but both failed.
    any suggestion?
    Edited by: Chao-Yi Wu on Aug 25, 2009 5:50 AM

    Hi  Chao-Yi Wu ,
    SBO_Application.ActivateMenuItem("2306")
    Dim oFormGR As SAPbouiCOM.Form = SBO_Application.Forms.ActiveForm
    Dim omtxIQC, omtxGR As SAPbouiCOM.Matrix
    Dim oedIQC, oedGR, oed As SAPbouiCOM.EditText
    Dim ocbIQC, ocbGR As SAPbouiCOM.ComboBox
    oFormGR.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE
    oedIQC = oFormIQC.Items.Item("13").Specific
    oedGR = oFormGR.Items.Item("4").Specific
    oedGR.Value = oedIQC.Value
    oedIQC = oFormIQC.Items.Item("21").Specific
    oedGR = oFormGR.Items.Item("24").Specific
    oedGR.Value = oedIQC.Value
    oedIQC = oFormIQC.Items.Item("edComments").Specific
    oedGR = oFormGR.Items.Item("16").Specific
    oed = oFormIQC.Items.Item("3").Specific
    oedGR.Value = oedIQC.Value + ", Goods Recript PO:" + oed.Value
    ocbIQC = oFormIQC.Items.Item("cbDocType").Specific
    ocbGR = oFormGR.Items.Item("3").Specific
    If ocbIQC.Selected.Value = "I" Then
         ocbGR.Select(0, SAPbouiCOM.BoSearchKey.psk_Index)
    Else
         ocbGR.Select(1, SAPbouiCOM.BoSearchKey.psk_Index)
    End If
    omtxIQC = oFormIQC.Items.Item("mtx_0").Specific
    For i As Integer = 1 To omtxIQC.RowCount
    omtxGR = oFormGR.Items.Item("38").Specific
           If ocbIQC.Selected.Value = "I" Then
                oedIQC = omtxIQC.Columns.Item("c_ItemCode").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("1").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
                oedIQC = omtxIQC.Columns.Item("c_AQty").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("11").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
                oedIQC = omtxIQC.Columns.Item("col_19").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("14").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
       Else  
    omtxGR = oFormGR.Items.Item("39").Specific
               oedIQC = omtxIQC.Columns.Item("c_Descrp").Cells.Item(i).Specific
               oedGR = omtxGR.Columns.Item("1").Cells.Item(i).Specific
               oedGR.String = oedIQC.String
               oedIQC = omtxIQC.Columns.Item("col_16").Cells.Item(i).Specific
               oedGR = omtxGR.Columns.Item("12").Cells.Item(i).Specific
               oedGR.String = oedIQC.String
      End If
                Next
    for items the matrix is 38 and for service the matrix is 39
    Rgds
    Micheal

  • Beginners question - making sense of form, item, pane & variable (with relation to where data is stored in the SQL database)

    Hi Everyone,
    I am new to writing reports (SQL code) for SAP, however I am aware that inside SAP Business One it is necessary to enable System Information (from the View menu) in order to see which tables (and related table attributes / column names) are related to various aspects of the various SAP 'modules' (e.g.: A/R Invoice).
    Using an A/R Invoice as an example I can see at the row (or line) level that an item with the description of 'Opening Balance Transfer' is contained in the table INV1, within the attribute (or column) called Dscription.
    However not every 'on screen object' shows a table / attribute. For example in the same A/R Invoice if I hover my mouse over the Balance Due field all I see is Form related information.
    My question is 'How do I make sense of the Form, Item, Pane, Variable information?', with relation to where data is stored within the SQL database?
    Links to online tutorials explaining how this feature of SAP Business One will be much appreciated, along with any personal advice regarding working with this information.
    Any (and all) help will be greatly appreciated.
    Kind Regards,
    David

    Hi David,
    1.Here I am explaining use of each field except pane
    a. Form ---> Used in additional authorization creator
    b. Item, column--->Useful in creating Formatted search queries (FMS)
    c. Variable --> Some of the field values based on another values. ie. indirect values.
    d. INV1---Table name
    2. How to get variable?
    As per your second attachment, to get balance due ,you need doc total field from OINV table. For example,
    SELECT T0.[DocNum], T0.[DocTotal] FROM OINV T0 WHERE T0.[DocNum] = 612004797
    Thanks & Regards,
    Nagarajan

  • Very odd behavior regarding variable naming with DataService.fill()

    I'm experiencing this odd behavior in LCDS 2.5, wich pertains
    to variable naming for the objects returned by a DataService.fill()
    call. I ceated a simple destination with a Java adapter. the Server
    side Java data object is defined as follows)
    package test;
    public class RepositoryObject
    private String m_strObjectId;
    private boolean m_bIsValid;
    private long m_lSize;
    [public setters and getters here]
    On Flex side, the ActionScript value object is defined as
    follows:
    package test
    [Bindable]
    [RemoteClass(alias="test.RepositoryObject")]
    public class RepositoryObject
    public var m_strObjectId:String;
    public var m_bIsValid:Boolean;
    public var m_lSize:Number;
    public function RepositoryObject()
    The FDS destination definition (in
    data-management-config.xml):
    <destination id="testDs">
    <adapter ref="java-dao" />
    <properties>
    <source>test.TestDS</source>
    <scope>application</scope>
    <metadata>
    <identity property="m_strObjectId"/>
    </metadata>
    <network>
    <session-timeout>20</session-timeout>
    <paging enabled="false" pageSize="10" />
    <throttle-inbound policy="ERROR" max-frequency="500"/>
    <throttle-outbound policy="REPLACE"
    max-frequency="500"/>
    </network>
    <server>
    <fill-method>
    <name>getObjects</name>
    </fill-method>
    </server>
    </properties>
    </destination>
    What I figured while debugging into the client was is the
    data returned by the service (I'm using the mx:DataService call)
    returns objects whose variable names
    do not match my definition:
    m_strObjectId becomes objectId
    m_lSize becomes size
    m_bIsValid becomes isValid
    I wonder why that renaming??? Basically "m_str" prefix was
    stripped and capital "O" became lower case "o" for my first
    variable etc.
    For instance, in a datagrid cell renderer I could not
    reference the returned value as {data.m_strObjectId}, but if I use
    {data.objectId}, it works.
    Any ideas why this behavior (which I found confusing and odd)
    would be greately appreciated.
    Robert

    The latter, as "getM_strObjectId " is an ugly name... don't
    tell me that causes issue...ok kidding, I got you. The
    setter/getter names are important in this context.
    Thanks a lot.
    Robert

  • Variable naming conventions

    Hi all,
    I come from a mostly JAVA background. Big emphasis in that arena on encapsulation and modularization of code to help facilitate ease of maintenance and reuse...in theory I sometimes struggle with variable naming conventions within my ABAP code because I'm not all together certain there are any. In C or C++ I might use a derivation of Hungarian notation to name varaibles...and in JAVA I might observe certain object oriented rules regarding varaible naming...I find myself using a combination of those two protocols in my ABAP code. Does anyone have any suggestions for how I might name global and lcoal variables within my code?
    regards,
    Mat

    Hi,
    Please check this links perhaps they may help.
    http://help.sap.com/saphelp_nw04/helpdata/en/92/c2b084bc1d11d2958700a0c94260a5/content.htm
    https://websmp101.sap-ag.de/~sapdownload/011000358700004455192006E/NameConventions.pdf
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/6b0b1f547a11d189600000e829fbbd/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/011ccf90-0201-0010-92a7-b319adf89b73
    http://web.mit.edu/sapr3/dev/newdevstand.html
    Regards,
    Ferry Lianto

  • HTMLDB 2.0 bug - tabular forms - select list from named LOV

    Hi!
    Changing a column in a tabular form to 'select list (named lov)' gets the following error in HTMLDB 2.0 when you try to add a row (to an empty table in my case):
    PL/SQL error at column 133.
    Create a table and then create a tabular form on it. Then change a report column to be a 'select list (named lov)'. Save and run the form and the error occurs.
    Thanks!
    Dave Venus

    Brian,
    This example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:176
    and this example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:160
    may help you.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Where do you stand on variable naming in your application code?

    Just out of curisoity really, I've worked in a number of places over the years and encountered multiple coding styles.
    Just thought I'd throw it out there and see what your personal preferences are for variable naming??
    I've seen a lot just use v_ for any variable..
    v_name
    v_dateofbirth
    v_ageSome prefix with the scope instead of just v..
    l_localname
    g_globaldateThen some add the datatype..
    lv_localvarchar
    ln_localnumber
    gb_globalbooelanAnd some even use c/java stylee..
    vMyName
    dDateOfBirthp for parameters..
    p_param1or i/o
    i_in_param
    o_out_paramAnd so on...
    Me, I generally just fit in with the 'house style', unless I think it's that bad that it's unusable, but that's been pretty rare.
    You?
    Edited by: smon on Mar 17, 2011 2:21 AM

    smon wrote:
    Just out of curisoity really, I've worked in a number of places over the years and encountered multiple coding styles.
    Just thought I'd throw it out there and see what your personal preferences are for variable naming??
    I've seen a lot just use v_ for any variable..
    v_name
    v_dateofbirth
    v_ageSome prefix with the scope instead of just v..
    l_localname
    g_globaldateThen some add the datatype..
    lv_localvarchar
    ln_localnumber
    gb_globalbooelan
    Yes, I just tend to use "v_" for variables, "p_" for parameters, "c_" for constants, "cur_" for cursors, "pkg_" for packages etc.
    The problem with using e.g. "lv_" for varchars and "ln_" for numbers etc. is that at some point you'll get a requirement change such that something that was stored as a number now needs to be a varchar because the business has changed the "codes" being used and you would end up having to change the variable name throughout the code, or worse still leave the variable name but just change it's datatype and have something that looks inconsistent.
    And some even use c/java stylee..
    vMyName
    dDateOfBirth
    Yuk!
    p for parameters..
    p_param1or i/o
    i_in_param
    o_out_param
    just "p_". Keep it simple.

  • How to call a variable named "PI"

    I have a typedef that contains a variable named "PI" like the constant 3.1416... but it's an acronym for "Program Information".... I can't rename it since it's a corporate typedef...
    If I need to call it from an expression, TestStand takes it as the constant, but returns a syntax error due to variable notation... example "Step.Result.PI"
    Is there a way to call it?
    Thanks
    Jim
    Solved!
    Go to Solution.

    Hi,
    This type def called PI, you dont say what is made of, lets say its just a string containing information about your program. To use it you would insert it as a Local, FileGlobal, Parameter or StationGlobal in your Sequence/SequenceFile/Station Globals.
    eg Insert into Locals of MainSequence, Locals.my_pi (this is avariable of type PI) and you would enter some inital value.
    How this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • SSIS variable naming conventions?

    Anyone got a link for SSIS variable naming conventions?

    Although this an old post, replying for readers who may be interested.
    I use the following convention whenever possible -
    SSIS Variable Naming Convention Based on Origin of Value
    http://aalamrangi.wordpress.com/2013/04/06/ssis-variable-naming-convention-based-on-origin-of-value/
    - Aalamjeet Rangi | (Blog)

  • JSP Error: a variable named was previously declared

              Hi,
              I've installed my application from Tomcat to WebLogic.
              I got problem in my JSP:
              <%@ page import = "com.ml.gmi.pattern.*" %>
              <jsp:useBean id="JSPexample" scope="session" class="example.exampleBean" />
              <jsp:setProperty name="JSPexample" property="*" />
              <% AbstractPatternBean abstractBean = JSPexample; %>
              <%@ include file="inHeader.jsp" %>
              <title>Example</title>
              <body>
              test page
              JSP works
              <p>this is example</p>
              Value is: <jsp:getProperty name="JSPexample" property="value" />
              </body>
              <%@ include file="inFooter.jsp" %>
              exception is:
              weblogic.servlet.jsp.JspException: (line 2): a variable named "JSPexample" was
              previously declared at line 2 of /jsp/JSPexample.jsp
                   at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:782)
                   at weblogic.servlet.jsp.JspLexer.processBeanTag(JspLexer.java:1382)
                   at weblogic.servlet.jsp.JspLexer.mXML_OPEN_USEBEAN(JspLexer.java:3116)
                   at weblogic.servlet.jsp.JspLexer.mXML_THING(JspLexer.java:1902)
              Do you have some ideas??
              Thanks,
              Jenya
              

    use jspc with -keepgenerated to see the .java that fails to compile.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              Clustering Weblogic? You're either using Coherence, or you should be!
              Download a Tangosol Coherence eval today at http://www.tangosol.com/
              "Jenya Strokin" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi,
              > I've installed my application from Tomcat to WebLogic.
              > I got problem in my JSP:
              > <%@ page import = "com.ml.gmi.pattern.*" %>
              > <jsp:useBean id="JSPexample" scope="session" class="example.exampleBean"
              />
              > <jsp:setProperty name="JSPexample" property="*" />
              > <% AbstractPatternBean abstractBean = JSPexample; %>
              > <%@ include file="inHeader.jsp" %>
              > <title>Example</title>
              > <body>
              > test page
              > JSP works
              > <p>this is example</p>
              > Value is: <jsp:getProperty name="JSPexample" property="value" />
              > </body>
              > <%@ include file="inFooter.jsp" %>
              >
              > exception is:
              > weblogic.servlet.jsp.JspException: (line 2): a variable named "JSPexample"
              was
              > previously declared at line 2 of /jsp/JSPexample.jsp
              > at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:782)
              > at weblogic.servlet.jsp.JspLexer.processBeanTag(JspLexer.java:1382)
              > at weblogic.servlet.jsp.JspLexer.mXML_OPEN_USEBEAN(JspLexer.java:3116)
              > at weblogic.servlet.jsp.JspLexer.mXML_THING(JspLexer.java:1902)
              >
              > Do you have some ideas??
              > Thanks,
              > Jenya
              

  • Distributed application: Networked Shared Variables, Named Services (Raw TCP/IP) or Other?

    Happy New Year NI forums! 
    I am working on a project involving mobile interacting robots. In the future it is likely the application's components may need to run on different PCs (Targets). Note: at this point in time all the components are seperate but all running on the localhost machine. Thinking towards the future I want to pick the 'best' architecture to allow all these components (VIs performing various functions) in multiple locations. For example, several VIs on the Robots, VIs on serveral PCs. 
    I am  currently aware of using Server/Client TCP/IP using named services. My mock up works well, but is it time efficient (my time coding) I wonder.. ?  
    Whereas I am aware of networked shared variables which handle connections and all the parsing for the underlying tcp/ip communication. But will this be difficult the manage? I am unsure if I can associate shared variables with a VI similar to named services. I suppose I could pro grammatically create the variable upon initialization of the server component - and the client could just search the list of avaiaible variables to connect too. Downside this would require DSC module. 
    As you can see, I am rather unsure. Any advice would be great!
    Kind Regards,
    James  
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

    Hi Jason,
    Thanks for your reply. I hope your enjoying NI UK as much as I did.. fun times!
    I have seen the link you posted a few times before. But today, I took a better look at it.
    My issue is I need several multi-client severs, i.e. many servers which allow multiple clients to connect to them.
    Now the STM does have an example of this - STM mutli-client Example - Server.vi (used with the STM mutli-client.vi)
    However, when a make copies of these code (to have my second server) - it refuses to run. As in , it just stops itself.
    I DID change the port number, on the lister aspect of the server code. But I Am unsure what else I would need to change to get this setup to work?
    One thought I had was, the FIFOs all having the same name - this probably isn't a good idea between servers.
    Any suggestions would be grateful!
    *please could you provide me email support
    Kind Regards,
    James Hillman  
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • Variable naming method

    What is the good way to name the variable name? my method is first 3characters is datatype :
    int intNumber;
    String strName;
    JButton btnGo;Any comment for my naming conversion? I think all expert java programmers not like this right? why?

    This looks very MS standard.
    If you use an IDE, the type is displayed as you type the variable, so finding the type is much simpler than it used to be.
    If you change the type of a variable you would have to rename it as well.
    I would suggest just naming the variable based on what it does and why it is there.

  • Dynamic variables' naming from SendAndLoad

    Hello,
    Been chasing my tail for almost 2days now, I'm having
    problems on how to load dynamically named variables and place it on
    dynamically named movieclips. I'm loading variables from php/mysql
    query thru sendAndLoad (no problem with that). The loaded variables
    are names of swf files that i'm trying to load on dynamically
    numbered movieclips. The problem is it just wont load. I've
    searched the net for similar codes, but with no luck. I'm guessing
    that my error is in getting the exact variable name to load.
    Heylp...

    No problems, you're welcome.
    I think the eval should do the same thing as what I had. I
    can't remember, I don't tend to use eval in flash - don't really
    know why. I think loadMovie also accepts a string argument (which I
    assume it 'evals') for a target in which case it may also work
    without the eval and just with ,"_root.my_movieclip" + i; (didn't
    try it so don't know for sure).
    Good luck with it.

  • How to create a dynamic form with bind variables :schema & :table_name

    My application has two LOV's, one to select a schema, and the next to select a table within that schema. I then have a button which passes me to a report which displays the data in that table.schema.
    I now want to create a link to a form where I can edit the record based on the rowid of that table.schema, but it doesn't appear that I can create a dynamic form where I pass the schema.table_name and rowid. Is this possible? Can anyone advise how I can do this? The form builder only wants a fixed schema/table name.
    Thanks in advance.
    Stuart.

    Hi Stuart,
    In this sort of situation, you will need to be a bit creative.
    I would suggest a pipeline function called as if it was a report.
    Then you can pipe out the required fields.
    Since you will have a variable number of fields, you could use two of the multi row field names for your field names and values.
    Then after submit, you can create your own procedure to loop through the fields (stored for you in the Apex package) and update the table as required.
    Not very specific I'm afraid, but it should work.
    Regards
    Michael

Maybe you are looking for

  • Does anyone know what type of hdmi cable to get for the ellipse 7?

    I'm trying to find the HDMI cable for my ellipse 7 i need to know if itsa 5 pin or 11 pin? does anybody have the formation of this?

  • Pager Settings in sap

    Hi experts, I am using ECC 6.0 with Sql Server 2005, I have to create pager settings on my ecc 6.0 to receive messages on mobile phone through SAP. Can anyone giude me. how to do that? thanks in advance Regards Akshit sharma

  • Install file missing in tar archive - how to install?

    I want to update Flashplayer for Firefox on Linux. I downloaded the file install_flash_player_10_linux.tar.gz and unpacked it. The installation instructions on the website say that I should run now the install script. The tar file doesn't contain any

  • Changing keyboard / keycaps on Retina

    Hello, I have a MacBook Pro Retina 15", with French Canadian QWERTY keyboard, and I would like to change it to French AZERTY. Is it possible to remove just the right keycaps or do I need to change the whole keyboard ? Someone told me in an Apple Stor

  • Repeating parameter names in jsp:include

    Hi, I have this jsp code fragment: <div> <jsp:include page="fragment_1.jsp"> <jsp:param name="param" value="hello world!"/> </jsp:include> <jsp:include page="fragment_2.jsp"> <jsp:param name="param" value="good morning!"/> </jsp:include> </div> When