Passing Values to a User Form called from a button

Good Afternoon
Experts:
Recently, Edward Neveux pointed me in the direction of how to find information on displaying a Form when clicking a button on a screen.  I use this line of code to show a screen after clicking on a button on the Item Master Data screen:
<b>g_B1Connection.Application.ActivateMenuItem("ITEMBINMAINT")</b>
Now I need to pass information from the Item Master Data screen to this screen I am displaying from the button click.
Can this be done?
Thanks,
Ed

Hi Ed
What information do you need to pass ?  If is information from controls on the Item Master Data screen what you could do is ...
1.  On the load event of the Item Master Data capture Form with either
         mstrFormUID = oForm.UniqueID  ' string variable to use it later on expresion like below
     or
         moForm = SBO_Application.Forms.Item(oForm.UniqueID) ' SAP form type variable
2.  Notice that both variables are modal, so once you have uploaded your form the parent form (Item Master is kept on memory).  With these form you can then code your way to obtain the existing value on the Item Master screen to your screen.  For Instance,
        oForm.Items.Item("URText").Specific.Value = moForm.Items.Item("5").Specific.Value  ' Passing value from "Item Number" textbox to your text box on your screen.
hope it helps

Similar Messages

  • Query from the data abse  and pass values to a pdf form

    query from the data abse and pass values to a pdf form
    Hello
    Hello i have this html report that i have written to output a
    report.
    now, i am assigned to pass the same fields to a pdf form so
    the fields in the adaobe form can be populated or the term
    Pre-populate the form.
    can anyone help me get started.
    first i would like to know if it can be done.
    second, what do i need to get started (tools )
    third how do i do this.
    i am really lost at this point.
    can anyone give me tips in how to approach this
    subject??

    It can be one using Adobe Acrobat Designer which is packaged
    with Acrobat
    Professional Pro 7. It uses all XML to create and populate
    forms.
    If you had the time, you can also create <cfdocument
    type="pdf"> to have
    them ready and just pass the info to it so it autogenerates
    the PDF on the
    fly.

  • New Window for Form called from a form based on a procedure

    Hi
    I have a form that is based on a procedure that asks for an employee number. The number is then passed to the procedure. The procedure then calls the next form passing in the employee number.
    This works however I would like the form called from the procedure to open in a new window while still being able to pass in the employee number as a parameter.
    Is there a way to do this? I have tried looking at wwa_app_module.new_instance & wwv_media.show_newwindow but I these only take the moduleid, I can't see how to pass in the employee number at the same time.
    Any help would be appreciated.
    Thanks
    Belinda

    Hi,
    You can pass parameters like this
    wwv_redirect.url('SJAYARAM_9042F.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1060253649&p_arg_names=deptno&p_arg_values=10&p_arg_names=_deptno_cond&p_arg_values=%3d');
    In this example the parameter deptno is passed with a value 10 and conditional operator '='
    Hope that helps.
    Thanks,
    Sharmila

  • Adobe Form called from SAP Portal, not executing interface global init code

    Hello!
    I have an adobe form called from both R/3 and SAP Portal and I need to show long text dinamically calculated.
    The deal is at the SAP Portal execution, as scenario characteristics don't allow string definitions, I'm using 255 characters tables (QISR_TAB_TYPE), that I'm trying to convert inside form interface (Global init code).
    The problem is that the interface global init code is being executed when the form is called from R/3, but it is not at SAP Portal.
    Does anybody know how to manage this? It's kind of a problem that the BAdi method int_service_request_init doesn't allow types over 255 characters... and if it is not possible to access the form interface code section (maybe there's any way)... i need to find some code section where i can convert tables before the form context is filled!!
    Thanks a lot!!
    Regards,
    Diana.

    Hi,
    have you searched on SCN? There are some threads with same problem such as [this one|/message/9270216#9270216 [original link is broken];. There is more threads. They may help you to solve your issue.
    Cheers

  • Giving report format option to user while calling from Menu?

    Dear Gurus....How can we give our user the choice to choose the report format while it is being called from a drop-down menu (mmb file)? Plzzz be careful that giving the Desformat parameter on report parameter form is not a good option here. I'm looking someway to pass this optional parameter from the calling form or menu.

    Dear Magoo...I meant that I've a program unit (procedure) which takes all the required information to run a report (including report file name, parameters if necessary, destination, server name etc and report desformat). Initially I was giving the user a Poplist on entry forms to choose the report desformat and then passed it to the procedure to call a report. Now I've attached the reports on menu (mmb file) and attached that procedure to menu calling the report. but when I'm placing the poplist on the form to which menu is attached, then procedure gives the error of bad bind variable/expression due to that poplist. Is there anything wrong from my side? Got my words magoo?

  • Fields appear as "Read Only" in an Int.Form called from a WD

    Hi Experts!
    I am having a doubt in an Adobe Int.Form, that is called from a WD application.
    The fields that are in my Form, always appear as a "read only". It is not possible to modify anything there.
    Here, I describe the steps that I follow.
    I create a very simple WD application. In its WD View, exist an unique Object (Adobe Interactive Form).
    In that object, I set the properties:
    "Data source": a context variable type "my structure". "My structure", is a simple structure with a couple or three fields, let´s say PERNR, BUKRS, WERKS... It is linked to the Form Interface (ABAP DICTIONARY-BASED INTERFACE). So in this way, the link between my WD and the AdobeInt.Form is working.
    "PDF Source": a context variable type XSTRING.
    "Template Source": here I have set my Int.Form. Currently, it only contains a couple of fields
    "Enabled": True.
    "Read Only": False.
    In the AdobeForm, I have drag & droped those 2 or 3 fields, save it, and activate it. I guess nothing more is needed, for my test.
    And at last, in the View´s method WDDOINIT, I am reading one of those fields, let´s say the employee number (PERNR), and I set by hardcoding its number (let´s say -> 00000001).
    Until here, everything seems to work fine. When I launch the WD test, the Adobeform appears, at the moment, with only one of my fields (Employee - PERNR), and its value is filled in with '00000001'.
    But now, I would like to write something by myself. And when I try to do it, it is not possible! Field PERNR, is displayed as a "READ ONLY".
    Someone knows what is happening here? I guess it should be possible, to activate as a "EDITABLE" that field in my Form.
    So here is my doubt.
    Am I doing anything wrong? Or am I doing any mistake?
    Thank you very much in advance!

    Finally I think I have found the problem.
    In the View where I am printing the ADOBEFORM, it is needed this code under the method WDDOMODIFYVIEW.
    method WDDOMODIFYVIEW .
      DATA: LV_INTERACTIVE_FORM   TYPE REF TO CL_WD_INTERACTIVE_FORM,
                 LV_METHOD_HANDLER     TYPE REF TO IF_WD_IACTIVE_FORM_METHOD_HNDL.
      LV_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT( 'INT_FORM' ). "   adobeform object in view
      IF LV_INTERACTIVE_FORM IS NOT INITIAL.
          LV_METHOD_HANDLER ?= LV_INTERACTIVE_FORM->_METHOD_HANDLER.
          LV_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( ABAP_TRUE ).
          LV_METHOD_HANDLER->SET_HIDE_NAVIGATION_PANEL( ABAP_TRUE ).
          LV_METHOD_HANDLER->SET_DISABLE_PRINT_BUTTON( ABAP_TRUE ).
          WD_THIS->M_METHOD_HANDLER ?= LV_INTERACTIVE_FORM->_METHOD_HANDLER.
          WD_THIS->M_METHOD_HANDLER->SET_HIDE_TOOLBARS( ABAP_TRUE ).
        ENDIF.
    endmethod.
    Regards,
    Carles

  • How to Populate Database values in OIM user form

    Hi friends,
    I have created some groups in OIM and I have created a new field in OIM user form. Now i want the group values visible as new field values.
    How the database table values can be made visible in OIM field ..?
    please help me in doing it
    Regards
    sri

    Just follow this document and from fig 13 select LOV type as query.
    http://docs.oracle.com/cd/E21764_01/doc.1111/e14308/conf_mangmnt.htm
    Regards
    Shashank

  • URGENT: REGARDING SMART FORM CALLING FROM REPORT

    HI,
    I had made a report in which i have to display the output in smart form ,the problem is this i had delclared only 1 INTERNAL TABLE and i dont know how to display it in the smart form as i am new to it .
    if help me out with solution ,he or she will be definately rewarded.
    regards,
    ric.s
    Edited by: ric .s on Dec 21, 2007 10:22 AM

    Hi,
    You need to craete a SMARTFORM using transaction SMARTFORMS. In this trasaction under FORM INTERFACE give the variable which would be passed from your program.
    Then use these variables and pass the information in Windows which you will create in your smartforms.
    When you activate your SMART form it will create a Fucntion Module whihc you need to call from your report program.
    Please go through the information given in thread :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/16/a369b1800e4bdda978ee0fe3b7bd2c/frameset.htm
    /community [original link is broken] hreadID=187587&messageID=2096976#2096976
    /community [original link is broken]threadID=187587&messageID=2096976#2096976
    Refer to the following:
    http://esnips.com/doc/7e67af5c-6188-4252-8613-41816756d560/from-sappres.pdf
    http://esnips.com/doc/58566115-54a4-4405-8872-8de952e245e5/smartform.pdf
    http://esnips.com/doc/2276d194-dc47-4b1e-9c14-7af0ffe923ca/smartforms-xsf-output.pdf
    http://esnips.com/doc/13b7ae7a-b32c-4b96-b588-881859d4ac99/Template,Table,Loop,Command-in-Smartforms.doc
    http://esnips.com/doc/97acb00a-e513-4611-91f0-c626f460bfc5/Smart_Form_Overview.pdf
    http://esnips.com/doc/77a981b9-8fe3-4fbb-8101-67745c1fe60c/SMART-FORMS_shail.ppt
    Smartforms Step by Step...links
    Smartforms Step by Step...
    http://www.sapgenie.com/abap/smartforms_detail.htm
    Smartforms
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    This would give you information about smartform.
    Though the info is bit extensive but will surely help you.
    Reward if u find this useful.
    Regards,
    Lalit

  • Problem with Windows Form called from SAP

    I have a simple VB.NET windows form that I'm calling from a new menu click event from within SAP.
    The form loads, as expected, when the menu item is clicked, but the form will always load outside of the SAP window and thus cannot be seen by the user unless they see it in their toolbar.
    Has anyone run into this in the past?  I would normally use the UI-API, but this is a form from another program that can't use the UI-API.
    I've also tested this with simple test forms with another test project and get the same results.
    Any ideas?
    Thanks!

    This isn't merely a matter of viewing <i>new</i> windows.
    When the SBO window is active and in full screen mode and one switches, using the task bar, to another application, more often than not the other application's window won't be displayed, or will be displayed but partially. One has to deactivate and re-activate the second window to see it correctly.
    It's the whole bloody SBO graphical engine that's bogus, if you ask me. Talk about reforging <i>that</i> to a profit-oriented company...
    @Marc Roussel:
    BTW, System.Windows.Forms.Form#ShowDialog() is a blocking method, AFAIK. So the following statements won't be executed ere the "dialog"'s closed.
    But this doesn't change the problem. The Activate() and BringToFront() don't help resolve the matter, in my experience. Sometimes the new form will appear on Z-top, sometimes it won't. Or maybe the true problem is that the window <i>is</i> on top, but doesn't get painted.
    ADDENDUM:
    Come to think of it, it might be worth a try to programmatically iconify/deiconify the new window. Something along the lines of:
    Dim f as Form = ...
    f.Show()
    Application.DoEvents()
    f.WindowState = FormWindowState.Minimized
    Application.DoEvents()
    f.WindowState = FormWindowState.Normal
    Application.DoEvents()
    (all in System.Windows.Forms Namespace)

  • Calling Forms/Reports from a button

    How to call a Report or a Form which had been developed using the Wizard from a button created in a region of a page flow?
    National Steel
    Harirajan

    There are two ways to achieve this.
    1) Assign a URL for the button to redirect to. You will have to use the f?p syntax to do this, so for example, if your FlowID is 100 and your page ID is 4, you could redirect to:
    f?p=100:4:&SESSION
    Note the use of the substitution variable for the user's session.
    2) Create a branch that is fired by the button when the page is submitted. A branch is an instruction that tells the Flow which page to go to next. You only need to specify the page ID which has your form or report on it when you create the branch.
    Team Project Marvel

  • Adobe form called from WDA - Translation Problem

    Hi,
    I have maintained French translation for the Adobe form using GOTO->Translation inSFP transaction.
    when i check in the developement system it is working fine.I have captured the translations in transport request using program
    RS_LXE_RECORD_TORDER and moved it to testing system.
    The changes are available in SFP but not visible when we execute the WDA HRASR00_PROCESS_EXECUTE as it is called from this application.
    Please let me know how to resolve this issue.
    Thanks
    Martina

    Hi ,
    As the form is related to ISR scenario in customizing client , I saved the adobe form there and transported customising request which resolved my issue.

  • "Users " Form Name from "User Definied Field Definition" does not showing

    Hi everyone!
    I start to implement the new SAP Connector on OIM 9.1.0 and one of steps is configure the lookup Lookup.SAP.HRMS.AttributeMapping.
    I need to add more fields beyond those already exists, and in accord to Documentation, I need to create the UDF of these fields, but when I search of "Users" form name form "User Definied Field Definition" option, I receive the follow response:
    "Query Failed: No Record For this Query"
    Thinking about it, I think that necessary create one User Form, but...this form isn't a standard form?
    What I do in scenarios like this?

    Can you share your environment details. Are you trying it out in a newly installed OIM ?_
    Yes, it's a newer fresh installation of OIM 9.10. We use the old version (9.03) in production environment and would like to upgrade to 9.10. This issue occur in a fresh installation in Development Environment.
    The one possible reason for this may be due an improper upgrade to 910X. I actually faced this issue while I was installing/upgrading my OIM. I did the process all over again and it was just perfect. I am not sure that this might be an issue with you or not. But there is simply no othe reason for the Users from not showing uo in the "User Definied Field Definition"._
    If you have taken a fresh backup of the schema just after installation, then import that backup dump and see if you are able to view the Users form. If in case you are not able to view it then your installation / upgrade is corrupt._
    No, we don´t have a fresh dump of environment. We just follow the documentation and all the steps was done without problem. The SAP connector import the fields from the reconciliation using flat IDOC file, just only the standard fields. We need to add newer fields and attributes and after, we face this problem.

  • How to pass values to a module pool program from another Report Program

    Hi ..
    Please let me know how I can pass values to a MODULE POOL selection screen field from another Report Program.
    Thanks
    RK

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/frameset.htm

  • R/3 User Exit Call from ITS

    Hi ,
    In an user exit i want to find out if a call has been made from ITS ..
    is there any FM or system variable set.. based on which I could find out ?

    call function 'ITS_PING'
           exceptions
                its_not_available = 1
                others            = 2.
      if sy-subrc eq 0 .
    ******* called from ITS
    else .
    **** not called from ITS
    endif .
    Raja

  • Calling from java buttons in an applet

    ok i made this program here and now i'am tryin to call certain certain classes from each button. i can't figure out how to do that.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class JDemoGridLayout extends JApplet
    JLabel greeting = new JLabel("SAMPLE", JLabel.CENTER);
    Font HeadlineFont = new Font("Helvetica",Font.BOLD, 24);
    private JButton b1 = new JButton ("Button 1");
    private JButton b2 = new JButton ("Button 2");
    private JButton b3 = new JButton ("Button 3");
    private JButton b4 = new JButton ("Button 4");
    private GridLayout layout = new GridLayout(6,6,6,6);
    JLabel personalGreeting = new JLabel("");
    Container con = getContentPane();
    public void init()
      greeting.setFont(HeadlineFont);
    personalGreeting.setFont(HeadlineFont);
    con.add(greeting);
    con.setLayout(new FlowLayout());
    setLayout(layout);
    add(b1);
    add(b2);
    add(b3);
    add(b4);
    }Edited by: javastudent101 on Mar 4, 2009 7:12 AM

    javastudent101 wrote:
    ok i made this program here and now i'am tryin to call certain certain classes from each button. i can't figure out how to do that.You don't call classes from buttons. What you can do is add a java.awt.event.ActionListener to each button. This ActionListener's actionPerformed() method will get called whenever the button is clicked. An example:
    MyActionListener listener = new MyActionListener();
    JButton button = new JButton("Do My Taxes");
    button.setActionCommand("DoTaxes");
    button.addActionListener(listener);
    JButton button2 = new JButton("Take a Shower");
    button2.setActionCommand("TakeShower");
    button2.addActionListener(listener);
    private class MyActionListener implements ActionListener {
       public void actionPerformed(ActionEvent e) {
          String command = e.getActionCommand();
          if ("DoTaxes".equals(command)) {
             // Whatever processing is necessary to do taxes
          else if ("TakeShower".equals(command)) {
             // Whatever it takes to take a shower.
    }See [How to use Buttons|http://java.sun.com/docs/books/tutorial/uiswing/components/button.html] for more information.
    Alternatively, you could use an Action specific to each JButton. Once you understand ActionListeners, it's pretty easy to understand Actions.

Maybe you are looking for

  • Is HDCP protection always on when using Mini DisplayPort to HDMI adapter?

    I'm trying to capture my MacBook Air (2010) desktop for use in a Podcast. So I purchased a Mini DisplayPort to HDMI adapter and plugged that into a HDMI capture card on another machine. Unfortunately it keeps telling me the stream is protected and it

  • My computer is slower than usual...

    My mac G4 has gotten slower... it takes more time for files to download or programs to open... (like simple things that used to take no time at all are taking time to load now) and that "beachball" comes out often... what can i do to fix this? also..

  • ITunes radio now requires a username and password to listen to radio!

    I recently noticed that when I try to listen to radio via iTunes it asks me for a "Members Only on pri.kts.-af.net" username and password. I have never had this issue before. Anyone know what happened or know where I can get a username and password?

  • Clearing hard drive memory

    'Finder' on desk top shows 'Search for' with sub-headings of.....today....yesterday....past week.... all images....all movies....all documents. Can I delete items in these sub-headings to help free up hard drive space ?  Will deleting items in these

  • Loading Air installer through swfloader

    Hi,      I am loading adobe air installer through swfloader from my appliaction to install it from web. In IE7 i was not able to click the 'yes' or 'no' button. Is it a problem in flex.Please help me. Regards, Jayagopal.