Forms personalization and global variable

Hi,
I'm trying to call a procedure in forms personalization and using a defined global variable. The data in the global variable is number. In the procedure, some of the parameter has a number datatype and I'm converting the global variable using to_number eg (to_number(:global.XX_LINE_NUM). This fails with error message ora-01403 no data found. I've tried putting the above into a variable with datatype number in the declare statement, and it errors as well.
Does anyone knows the syntax to convert the global variable to number datatype in personalization.
Thanks

Ask in this forum : OA Framework

Similar Messages

  • Function REUSE_ALV_GRID_DISPLAY, events and global variables

    Hi everybody,
    in a report I use FM REUSE_ALV_GRID_DISPLAY with a registered callback for event 'USER_COMMAND'.
    In the callback-form I want to change the internal table, which I provided for displaying to REUSE_ALV_GRID_DISPLAY.
    How can I access the internal table in the callback-form without using global variables?.
    Kind regards,
    Hubert
    Edited by: Hubert Heitzer on Feb 23, 2011 4:13 PM
    This is not the solution I asked for, but I found a workaround.
    I created a function group, which encapsulates the internal table.
    A function provides the service for colleting data for the internal table and displays the ALV.
    The callback-form is also a member of my function group and is therefore able to access the internal table.

    Hi everybody,
    in a report I use FM REUSE_ALV_GRID_DISPLAY with a registered callback for event 'USER_COMMAND'.
    In the callback-form I want to change the internal table, which I provided for displaying to REUSE_ALV_GRID_DISPLAY.
    How can I access the internal table in the callback-form without using global variables?.
    Kind regards,
    Hubert
    Edited by: Hubert Heitzer on Feb 23, 2011 4:13 PM
    This is not the solution I asked for, but I found a workaround.
    I created a function group, which encapsulates the internal table.
    A function provides the service for colleting data for the internal table and displays the ALV.
    The callback-form is also a member of my function group and is therefore able to access the internal table.

  • Local and global variables in ABAP Debugger

    hi guys.
    we have the following support package:
    SAP_BASIS     640     0025     SAPKB64025     SAP Basiskomponente
    I would like to use in the debugger the local and global variables tab strip, but I can not find it. Is it possible. that our support package is too low for this functionality?
    Thanks a lot.
    rudit
    Edited by: Rudolf Tremmel on Aug 17, 2010 8:35 AM

    Starting with SAP NetWeaver 6.40, SAP released a new version of the Debugger.
    The Debugger available in Release 6.40 was not considered complete (and was
    not the default debugger as a result)
    The Variable Fast Display tool currently has four tabs . The first
    two are provided empty, and you can either type or double click a name in the
    source code to add it to the list. The third tab (Locals) shows all local variables
    for the current program modularization unit, and the fourth (Globals) shows all
    global variables in the current program.

  • What is the difference between Instance variable and Global variable?

    Hi folks,
    Could you please explain me, "what is the difference between Instance variable and Global variable?"
    Are they really same or not?
    --Subbu                                                                                                                                                                                                                                                                                                               

    Hi flounder,
    I too know that there is no such a term GLOBAL in java.
    generally people use to say a variable which is accessible throught out the class or file has global access
    and that will be called as a global variable...
    my point is very much similar to what Looce said.
    In simple that is not a technical term, but just a causual term.
    In technically my question is, "What is the difference between a instance variable and public variable?".
    Hi looce,
    Thanks for the reply. even thats what my understanding too....in order to confirm that i raised this question..
    Your reply has given a clear answer...... thanks again.
    --Subbu                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Shared and Global Variable Issue with Motor VI

    Hello,
    I have written a VI that will command a stepper motor to follow the desired profile and loop the profile until the user pushes the stop button. I modified the state machine example from LV to achieve this. I now want to connect a linear potentiometer to the linear actuator to verify that the distance I commanded the motor to travel is the actual distance that it traveled. I am using a NI 9219 module to collect the data from the potentiometer.
    When I added the potentiometer to the program, the cRIO-9073 chassis that I am using immediately crashes and looses connection with the computer when I click the Run VI button. I looked into this a little more and it seems that the chassis will crash only when I add shared and global variables to the VI. I think it has something to do with the Network Variable Engine; I don’t have it installed on the chassis because the motor program alone will not run if it is installed on the chassis. Also, I have the chassis configured to the RT setting and not the FPGA setting.
    I have attached a snippet of the code. I am using LV 2014 SP1 along with the SoftMotion module. The motor is connected to LV through a P70530 stepper drive which is connected to a NI 9512 module with the proper connectivity bundle. Is there something wrong with the VI that would cause the chassis to crash? Why will the simple motor VI not work when the Network Variable Engine is installed on the chassis? Thank you in advance for your help!

    Follow up to this post:
    Sometimes when I try to connect the project to the chassis I get the following error: "Failed to load shared library taggerrt.out. Ensure that the library is present on the RT target. Use either MAX to install NI software or FTP to transfer custom librarier to the RT target."
    I have tried re-installing the NI Device Drivers and reconfiguring the software on the cRIO chassis using MAX; however, the error keeps showing up. I read somewhere that the taggerrt.out library is a part of the Network Variable Engine but I don't know why it wouldn't be found when the NVE software is installed on the chassis. This message only comes up when I also have the SoftMotion Module software installed on the chassis. Has anybody else encountered this problem or know why this could be happening? Any ideas would be greatly appreciated! Thanks!

  • Difference between Form Interface and Global definitions in Smartforms.

    Hi guys!
    I'm learning about Smartforms.
    I would like to know which is the difference between Form Interface from the Global Settings and Global Definitions from Global settings as well, because in both of them I have to declare tables, structures, variables, etc. Could you please explain to me when should I use them?
    Thanks!
    Gaby

    Two ways to use Smart Form:
    1.     by using Application Program
    2.     By coding in Smart form itself.
    Now, if the 1st method is used then same interface can be used  for multiple requirements. For eg two different programs Z1 and Z2, may use same interface. Hence a lot of efforts are reduced.
    On the other side in 2nd method, multiple forms have to be created to fulfill different requirements.
    Now, Global Definiton is something that is irrespective of which Program is being used, the form nodes can use the Global definition in all cases.
    Also all tables etc must be declared in the Global setting.
    Regards,
    Sana

  • Problem with .DLL and global variables

    Hi,
    I need some helps to figure out my problem.
    I wrote a .dll file to open and run a GUI. When I run it at the first time, it is ok. When I call it again, there is an error "Pointer to free memory passed to library. It will be ok if I completely exit the program that calls the .dll before re-call it. I think there is some problems with global variables when I call another thread. How can I free global variables between threads. Is there any solution for this problem?
    Thanks

    Vinh Pham:
    Are you doing anything intentionally that frees your globals?
    CVI ships with an example program that demonstrates calling a DLL to create a user interface: guidll.cws.
    I made two simple modifications to guidll.cws.
    1. In guidll.c, I made hpanel global by moving its declaration from RunDLLUI() to right below the #include statements.
    2. In useguidll.c, I duplicated the lines calling RunDLLUI () and MessagePopup() to call the DLL gui twice.
    I built the project and ran it.  I had no problems with free'ed globals.
    Take a look at the guidll example.
    Can you either post your code or a modification to guidll that demonstrates the problem you're having?

  • DASYLAB QUERIES on Sampling Rate and global variable

    hola
    i'm new user of dasylab and i would like to manipulate the sample rate through a layout ;
    using global variable seems good idea but the adress of sample rate is unknown .
    Hope that someone would be able to help.!
    also other small things when i use coded swich and i want modify  the text in the Switch Window i don't know how
    Lots of thanks!

    Hi,
    There is a dedicated place in this forum where you'll certainly get more answers than here :
    http://forums.ni.com/t5/DASYLab/bd-p/50
    Regards,
    Da Helmut

  • Web Services: runBatchJob and global variables

    Dear all,
    I'm facing a problem when I try to call web method runBatchJob defined by port BatchJobAdmin of the Web Service interface published by DS. 
    I have defined a job TestWSCall characterized by global variable $G defined as varchar(50) and I have written the following code to invoke job  TestWSCall with variable $G set to a given value (e.g. u2018Testu2019):
    RunBatchJobRequest runBatchJobRequest = new RunBatchJobRequest();
    runBatchJobRequest.setJobName(jobNameCall);
    runBatchJobRequest.setRepoName(repoName);
    GlobalVariables variables = new GlobalVariables();
    Variable gvariable=new Variable();
    gvariable.setName(varName);
    gvariable.setValue(varValue);
    variables.getVariable().add(gvariable);           
    runBatchJobRequest.setGlobalVariables(variables);
    BatchJobResponse res = batchJobAdmin.runBatchJob(runBatchJobRequest);
    After running this code, the job is executed with the default value and not with value u2018Testu2019. Since the variable type is varchar, I've also tested with value Test written between '', but it is ignored as well.
    When I check the XML generated by my call, I obtain the following XML code:
    <globalVariables><variable name="$G">'Test'</variable></globalVariables>
    or without ''
    <globalVariables><variable name="$G">Test</variable></globalVariables>
    which seems to comply with the description provided by the WSDL.
    Notice that job TestWSCall (and in particular the value of variable $GVAR) works as expected when I launch it from Designer or the web interface.
    Any idea?

    Hi,
    I have done the same scenario as you.
    For e.g.
    If your global variable is $gv, then your java code would be use gv as the global variable name (without the $)
    You would also emit the '' from the value in the global variable text.

  • FixValues and Global Variable

    hi,
    Is there a functionality which does exactly like FixValues but stores the value thorugh out the mapping?
    I have a requirement where i have to map 2 different values to other values but i have to repeat this for all the fields using FixValue instead if there would be a Global Variable i could use that instead.
    Any ideas.
    Thanks,
    KP

    Hi Tirumal,
    For your requirement you can define a HashMap in Java Sections Tab of Graphical mapping and refer the values from UDF.
    Steps
    1. Goto MessageMapping (Design TAB)-> Edit JAVA Sections (Found on top-right side)
    2. Declare a HashMap in Global variables section.
        Eg.
    HashMap materialNumMap = null;
    3. Initialize the same variable and fill some values.
        Eg.
    materialNumMap = new HashMap();
                materialNumMap.put("MAT-01","10001");
                materialNumMap.put("MAT-02","10002"); 
                materialNumMap.put("MAT-03","10003");
                materialNumMap.put("MAT-04","10004");
    4. Write UDF to retrieve value from Global container
    public void chkExists(String materialNUM,ResultList result,Container container){
      String valueFrmMap = (String)materialNumMap.get(materialNUM);
      return valueFrmMap;
    Hope this solves your problem.
    Regards,
    Ananth

  • Import/export to memory and global variables

    Hi,
    Im working on some functionality using import/export to memory. One of the statements is:
    import gf_memid_exit = g_exit_flag gf_memid_result = t352r from memory id 'ZREV_EXT'.
    Im using global variables to contain the cluster names. But this is not working. When I change the global variables into local variables, it works. It this normal? Because I would like to have global variables (even better I would like to have global constants) to declare in order to use them within the program.
    Any ideas?
    With regards,
    Mike

    Hi Mike...
    I think with import u can use global or local variables..in debug mode pl. check when u r using global variables..whether it is getting cleared or overwritten by some other values or not. Or try with global constants..it should work...
    Regards,
    Joy.

  • DTEXEC and Global Variable

    Hi,
    I have written a stored procedure where I want to call/execute a DTSX. In SQL2000 this was possible using DTSRun /A [GlobalVariable]=[Value] . How to in SQL2005 (DTEXEC /[?] , what is the parameter for the ? for a global variable?
    Thx for your help,
    Johan

    Found the answer, it should be:
    /Set PropertyPath;Value
    Thx for looking into it (if you did)!
    Ps: if you have more info, please let me know anyway

  • Forms - redirect and from variable

    I have 2 questions on forms:
    Question 1
    I am having problems with the results of a form which are
    being sent into the recipient's spam folder since the senders
    address isn't showing up.
    I tried adding in <input type="hidden" name="from"
    value="[email protected]">
    but I am not sure that is the correct way to get the form to
    have some recognizable email address or
    where this should be placed in the code.
    Question2
    I also want to have the form go to a customized thank you
    page rather than the general one that formmail provides.
    I added in <input type=hidden name="redirect" value="
    http://www.center4creativity.org/temp/thankyou.htm">,
    but again I am not sure where this should goin the code of
    the form.
    You can see the most recent version of the form at:
    http://www.center4creativity.org/temp/contact2.htm
    Any help would be really appreciated, I have been trying to
    figure this out for a while now!
    Thanks

    change the name of the email field in the form from
    Email
    to
    email
    and formmail clone will use it as the "from" and "reply to"
    in the outgoing
    email. You'll probably have to also change the case in the
    javascript
    validation behavior.
    <input name="Email" type="text" id="Email" size="50">
    <input name="email" type="text" id="email" size="50">
    on the next problem- I think it's a syntax problem in the
    table structure.
    find this, at the start of the form code.
    <table width="325" border="0" cellpadding="2"
    cellspacing="4">
    <input type="hidden" name="recipient"
    value="[email protected]">
    <!--This is what will appear in subject line of email
    with response sent
    to Jeannie-->
    <input type=hidden name="subject" value="Contact Form
    Response from
    Center for Creativity"><br>
    <!--This is will appear in subject line of email with
    response sent to
    Jeannie-->
    <input type=hidden name="redirect"
    value="
    http://www.center4creativity.org/temp/thankyou.htm">
    <input type="hidden" name="from"
    value="[email protected]">
    <p>
    <tr valign="top">
    <td colspan="2">
    the stuff between <table> and <tr> is in no man's
    land. There can't be other
    tags there. Move it to after the <TD> tag, so it's
    inside a table cell. And
    remove the <P> tag. And remove the hidden field for
    "from" because it ain't
    gonna do nuthin'.
    <table width="325" border="0" cellpadding="2"
    cellspacing="4">
    <tr valign="top">
    <td colspan="2"> <input type="hidden"
    name="recipient"
    value="[email protected]">
    <input type=hidden name="subject" value="Contact Form
    Response from
    Center for Creativity">
    <input type=hidden name="redirect"
    value="
    http://www.center4creativity.org/temp/thankyou.htm">
    google on formmail clone instructions
    or go to
    http://scriptarchive.com
    -->formmail-->readme for details of all
    the form field names that can control the behavior of the
    form script.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Forms Personalization:Global variable Error

    Hi,
    Two Forms one is AR transactions and 2nd is AR TO AP,
    navigating from ACTIONS menu in Transactions window to call AR TO AP form
    Have defined Global Variable for Transaction Number in AR R12, AS,
    Object Type - Global variable
    Target object - MAIN_TRX_VALUE
    Property name - Value
    Value - :TGW_HEADER.TRX_NUMBER_MIR
    And want to use this global variable in another calling form AR TO AP but not getting value of generated transaction Number in my form field TRANSACTION_NUMBER which is defined as in personalization
    Object Type - ITEM
    Target object - BLK_CTRL.Transaction_number
    Property name - Value
    Value - :GLOBAL.MAIN_TRX_VALUE.
    Any Syntax error?have done all trial n error menthod.
    Using followin syntax in form 10g WHEN NEW FORM INSTANCE,
    :Blk_Ctrl.Transaction_Number := :global.MAIN_TRX_VALUE ;
    Any other way to fetch TRX_NUMBER_MIR value?
    On Priority.THANKS.

    hi
    u did not mention error and u r forms version?
    sarah

  • Global and Local Variable

    Hi Gurus, I was unable to see where I can define local and global variables? I see that help.sap.com documentation but where do I create. All variables that I create, are global because, they are visible to all and they all can use it? Any help would be greatly appreciated.

    As far as I know, Variables are re-usable objects that are not dependent upon InfoProvider. When I look at this link
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/8db07d555411d189660000e829fbbd/frameset.htm
    it talks about Global and Local variable? Is this different than what we use in Query Designer?

Maybe you are looking for

  • CCA 3.2.2 Software Pack 8.6.1 and Windows 8

    Hi there, Anyone done this upgrade with Windows 8?  We completed the upgrade successfully and everything updated (it seems), except we cannot connect to the phone system on any vlan at this point.  Cisco told me it was because my laptop i performed t

  • Use of forecast planning function in Integrated planning

    Hai , Can I Know What is the use forecast planning function in Integrated planning. Give me One Example. Please tell What i hv to select in aggregation level, Filter, and Planning function for doing forecast. Regards Kishore.

  • Ow do I resolve an incorrect name or password error?

    Salut! I have two comps. All were connected to FirefoxSync. After last update to v.19, the second computer stoped sync - incorrect name or password error. I have set new password on the main computer and copyed recovery Key. Then I have done the next

  • Initial Load Decentralized WM with HU active

    Hi, I want to know the procedure to make the initial data load in decentralized WM where both systems are SAP, and we have HU management active, and HU number assignation needs to be external. Thx

  • Process list failed

    Hellow everyone, while opening SAPMMC i got message like "Get process List Failed" Unknown error. How can solve this problem Regards Ganesh