Call smart form on button click

Hi Experts,
I have a screen. In screen a button is available. I need when i clicked on button my smartform should be open. Plz provide me ur appreciated solution.
Regards,
Swapniks

Hi Swapnika,
You forgot a small code in between.
data: v_formname type tdsfname value 'zmem',
v_fmname type rs381_fname
Case sy-ucomm.
when 'okbut'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
FORMNAME = v_formname
IMPORTING
FM_NAME = v_fname
call function v_fname.
exporting
pernr = itab-pernr.
tables
itab = itab.
Regards,
Prakash Pandey

Similar Messages

  • How to call a form with dabble clicking on a record with one time where

    Hi All,
    How to call a form with dabble clicking on a record with one time where clause. I mean when i dabble click on the current record i want to call another form with details of the
    record with onetime where clause. Can anyone help me in this regard.
    Now i am calling a form with parameter with onetime where but this should avoid.
    Thanks in advance
    Arif

    Hello,
    I mistakenly mark it as solved. There is a problem remain. when i placed the code below it do not execute with the where condition. I mean the condition to execute is not work.
    All records executes. Please correct my code--
    Here the WHEN-BUTTON-PRESSED-trigger on the Edit-Button:
    :GLOBAL.MODE:='EDIT';
    :GLOBAL.REQ_ID:=:PROBLEM_REQUEST.REQ_ID;
    CALL_FORM('REQUEST_ID_PARAM',NO_HIDE,DO_REPLACE,NO_QUERY_ONLY);And also, WHEN-NEW-FORM-INSTANCE-trigger of REQUEST_ID_PARAM:
    DEFAULT_VALUE(NULL, 'GLOBAL.MODE');
    DEFAULT_VALUE(NULL, 'GLOBAL.REQ_ID');
    IF :GLOBAL.MODE='EDIT' THEN
    GO_BLOCK('PROBLEM_REQUEST');
    EXECUTE_QUERY;
    SET_BLOCK_PROPERTY('PROBLEM_REQUEST', INSERT_ALLOWED, PROPERTY_FALSE);
    END IF;Arif

  • Professional way to call that frame on button click?

    Hi
    Nice to get new look and feel for forum :)
    Wel my question is I have a frame which has many buttons textfields labels and other components too.
    On clicking one of the button I am opening a frame which is like calculator(display is same as calculator)
    I am using frame for that calculator.
    My question is that what will be the most professional way to call that frame on button click?
    All you java professionals your kind attention will be appreciated
    Regards

    Good question, I've often wondered this myself!
    Personally, I don't like to use anonymous inner classes for handling events. I generally handle events two ways:
    1. Make the main class implement lots of interfaces and use action commands. eg
    public class MyFrame extends JFrame implements ActionListener {
        public static final String CALC_BUTTON = "cb";
        public MyFrame() {
            super();
            JButton cButton = new JButton("Calculator");
            cButton.addActionListener(this);
            cButton.setActionCommand(CALC_BUTTON);
        public void actionPerformed(ActionEvent ae) {
             if (ae.getActionCommand().equals(CALC_BUTTON) {
                 //do something
    2. Subclass AbstractAction.
    public class MyAction extends AbstractAction {
        //create a constructor specific to the goal
        public MyAction(/*Some arguments*/) {
            //set  variables
        public void actionPerformed(ActionEvent ae) {
             //handle the action
    //and in the main class
    JButton cButton = new JButton("Calculator");
    cButton.setAction(new MyAction());I tend to use the first method more often, but if there's some specific kind of action, then I use the second method.
    I'm interested to know what other people do though. :)
    -Muel

  • Hide/show a form upon button click

    Hi
    I want to show/hide different form upon button clicks. Also I want to clear the data from a form upon button clicks. How can I achecive this? Thanks in advance.

    Hi,
    Create one boolean variable in your datastore. Click of the button should set the value to false and you can bind the same variable to the visibility property so that you can hide and display accordingly. For making the values blank, you can put condition on the detault value formula IF(!<your datastore variable>,"",<value needed>)
    Regards,
    Murtuza

  • Show image on the form Java WS gets image. Call this WS on button click

    Hi,
    Is there a way to show an image on the form. On the form I have along with the data I have a button that when clicked get and show the image itself on the form. I have a Java WebService that gets the image from the remote location. How can I make the button click event to call this Web Service and show the image on the form itself. Any help is appreciated.
    Thanks

    WHiteSox, are you on client/server or web version.
    which version of forms are you using.
    something i can think of is.
    during the click to call the webservice, copy the image to the local system.
    next step is, using READ_IMAGE_FILE built in which reads the image from the local file system and displayed on the forms image item.

  • How to Call smart form in Action

    Hi All,
    Could some one tell me how to call the smart form in action.
    Eg. PB40 - Offer Contract Action.
    Appreciate your respnse.
    Regards
    Raj

    Hi ,
    attached you find  some  abap code to call a smartform with some comments in it. Hope that helps:
    DATA: l_fn_name               TYPE rs38l_fnam
          , l_devtype               TYPE rspoptype
          , ls_output_options       TYPE ssfcompop
          , ls_control_parameters   TYPE ssfctrlop
          , ls_job_output_info      TYPE ssfcrescl
          , l_pdf_fsize             TYPE i                      "#EC NEEDED
          , lt_otf_tab              TYPE tsfotf
          , lt_pdf_lines            TYPE TABLE OF tline
    To do
       The mapping from the UI structure to the Smortform structure has to be
       implemented here or in a pirvate method.....
    Call function module u201CSSF_FUNCTION_MODULE_NAMEu201D to get the name of the smartform.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = zh38tm_cl_zz_2gen_bl_constants=>c_smartforms_hipo
        IMPORTING
          fm_name            = l_fn_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
       Call function module u201CSSF_GET_DEVICE_TYPEu201D to get the print parameter
        CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
          EXPORTING
            i_language             = sy-langu
          IMPORTING
            e_devtype              = l_devtype
          EXCEPTIONS
            no_language            = 1
            language_not_installed = 2
            no_devtype_found       = 3
            system_error           = 4
            OTHERS                 = 5.
        IF sy-subrc = 0.
        Fill label structure to smartform
         ls_labels = zh38pm_cl_zz_bl_perf_plan=>set_sf_label( ).
         Set output parameters u201CLANGUAGEu201D, u201CNO_DIALOGu201D and u201CGETOTFu201D
          ls_output_options-tdprinter     = l_devtype.
          ls_control_parameters-no_dialog = abap_true.
          ls_control_parameters-getotf    = abap_true.
          ls_control_parameters-langu     = sy-langu.
         Call smartform with the structures u201CIMP_S_PERF_PLANu201D, u201CCHG_S_PRINT_PLAN
          CALL FUNCTION l_fn_name
            EXPORTING
              control_parameters      = ls_control_parameters
              output_options          = ls_output_options
              s_doc_processing        = gs_doc-s_doc_processing
              s_header_display        = gs_doc-s_header_display
              s_header_texts          = gs_doc-s_header_texts
              s_header_status         = gs_doc-s_header_status
              t_header_appraiser      = gs_doc-t_header_appraiser
              t_header_appraisee      = gs_doc-t_header_appraisee
              t_header_part_appraiser = gs_doc-t_header_part_appraisers
              t_header_other          = gs_doc-t_header_others
              s_header_dates          = gs_doc-s_header_dates
              t_header_add_data       = gs_doc-t_header_add_data
              t_body_columns          = gs_doc-t_body_columns
              t_body_element_descr    = gs_doc-t_body_element_descr
              t_body_elements         = gs_doc-t_body_elements
              t_body_cells            = gs_doc-t_body_cells
              t_body_cell_notes       = gs_doc-t_body_cell_notes
              t_body_cell_val_values  = gs_doc-t_body_cell_val_values
              t_body_cell_val_ranges  = gs_doc-t_body_cell_val_ranges
              t_body_cell_val_c_like  = gs_doc-t_body_cell_val_c_like
              t_body_cell_val_descr   = gs_doc-t_body_cell_val_descr
            IMPORTING
              job_output_info         = ls_job_output_info
            EXCEPTIONS
              formattinl_error        = 1
              internal_error          = 2
              send_error              = 3
              user_canceled           = 4.
          IF sy-subrc = 0.
            APPEND LINES OF ls_job_output_info-otfdata TO lt_otf_tab.
            exp_t_otf = lt_otf_tab.
           Call function module u201CCONVERT_OTFu201D to convert the smartform data
          to exporting parameter u201CEXP_PDF_XSTRING
            CALL FUNCTION 'CONVERT_OTF'
              EXPORTING
                format                = 'PDF'
              IMPORTING
                bin_filesize          = l_pdf_fsize
                bin_file              = exp_pdf_xstring
              TABLES
                otf                   = lt_otf_tab
                lines                 = lt_pdf_lines
              EXCEPTIONS
                err_max_linewidth     = 1
                err_format            = 2
                err_conv_not_possible = 3
                OTHERS                = 4.
            IF sy-subrc ne 0.
              CLEAR exp_pdf_xstring.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    First you have to determine the smartforms function modules name the wxecute it.

  • Calling Smart Form using Driver Program

    Hi, I'm a new ABAP developer. I've recently been studied about Smart Forms and I didn't understand what are the benefits to call a smart form using driver program.
    Could anyone help me, please?

    Bruno, it works like this.
    Lets says you attach a Z output to a sales order which sends the details of the SO to the customer in a PDF format. For this purpose you have developer the o/p using smartforms or scripts. Now there are few configs that you will perform in order to send the PDF to the customer AUTOMATICALLY once the SO is saved. This is done thru the transaction NACE where you will attach the smartform, the o/p, partner function and driver program.
    This driver program will get kicked in when the order is saved and will perform the logic and then call the smartform.
    Hope this give a little bit better picture.
    Vikram.M

  • Open system form on button click

    Hello Expert,
    How to open system form(invetery transfer from) on button click
    Regards,
    Abhinav Lalpurwala

    Hi Abhinav
    Try This.....
    'In Button pressed event
       sbo_application.ActivateMenuItem("3080") 'For Inventory Transfer form
    Thanks
    Shafi

  • Opening system form on button click

    I have a user button on Sales Opportunity form.
    On click of button, I want to open the respective Sales Quotation form.
    The sales quotation for the corresponding docnum should be opened. DocNum is defined at the Stages tab on Sales Opportunity form.
    Please provide the solution ASAP.

    Hi,
    I think your discussion should be posted at SDK forum. Please repost in,
    SAP Business One SDK
    Thanks & Regards,
    Nagarajan

  • Calling default browser on button click in swings

    Hi all,
    I have built a window with tab page in it having a button on tabpage in java SWING. Now i want that when ever i click on button it calls my default browser i.e. IE6 with a predefined URL. The browser should open with in the tabpage area not beyond that. Please help........ Many people have helped till now because i am very new to this.......
    Again looking for help from experts................

    I feel like I answer this almost everyday
    search the web for JDIC and webbrowser

  • Submitting form via button click

    Hi, i have a following code and it doesnt work and i dont know why
    <jsp:useBean id="pageinfo" class="zrna.PageInfo" scope="session"/>
    <jsp:setProperty name="pageinfo" property="*"/>
    <html>
    <head>
    <script type="text/javascript">
         function clickEvent(form,md,wrkOn)
              form.mode.value = md;
              form.workingOn.value = wrkOn;
              form.submit();
         function m(form){return true;}
    </script>     
    </head>
    <form action="index.jsp" method=get >
         <input type="hidden" name="mode" value="">
         <input type="hidden" name="workingOn" value="">
         <input type="submit" value="Add" onclick="clickEvent(this.form,'add','Student')">
         <input type="submit" value="Alter" onclick="clickEvent(this.form,'alter','Student')">
         <input type="submit" value="Done" onclick="clickEvent(this.form,'general','')">
    </form>          
    So im trying to change jsp bean properties of pageinfo thru submiting form and it doesnt work. when button is clicked the page goes blank. What am i missing?

    is this page you posted "index.jsp"?
    Not sure offhand, but could the form submit before onclick fires? If so, change them to button types, not submit types.
    The bean has those named fields? Public get/set methods?
    Does useBean have to be this?
    <jsp:useBean id="pageinfo" class="zrna.PageInfo" scope="session">
    <jsp:setProperty name="pageinfo" property="*"/>
    </jsp:useBean>

  • Show form on button click

    Hello, I am using JDeveloper 11.1.2.3.0
    I have one button and one form on my jsf page. I want the form to be rendered when I click the button (to be visible). How can this be done in ADF?
    Thank you

    No offence, but have you read the post? I shows exactly your use case. OK, the title and the content is more about creating page variables. If you store the flag to hide/show the panel at a different place this is OK, still the actions you need to do are the same.
    Timo

  • Calling SAP Tcode on Button click

    Hello All,
    i want to call SAP Tcode on click of button.
    below is the code for the same,
    data l_componentcontroller type ref to ig_componentcontroller .
      data l_api_componentcontroller type ref to if_wd_component.
      data l_sapgui_manager type ref to cl_wdr_sapgui_integration.
      l_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
      l_api_componentcontroller = l_componentcontroller->wd_get_api( ).
      l_sapgui_manager = l_api_componentcontroller->get_sapgui_manager( ).
      if l_sapgui_manager is not initial.
        l_sapgui_manager->fire_start_transaction( transaction = 'SE38' ).
      endif.
    But the object l_sapgui_manager  is not getting instantiated. please let me know if i am calling the right method or  the code is wrong???
    Regrads,
    Chandra

    Hi Chandra,
    You need to Initialise the  l_sapgui_manager before you are accesing. see the folowing code i initialised my select options component.This code can be obtained from Wizard also. I hope this will help you.
    Please do this in the WDDOINIT of component controller. So that it will be inistatiated before you are accessing the component.
    ** initialize select options component for query creation
      lr_cmp_usage = wd_this->wd_cpuse_sel_options( ).
      wd_this->usage_name = lr_cmp_usage->name.
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      l_ref_interfacecontroller = wd_this->wd_cpifc_sel_options( ).
      wd_this->mr_selopt_helper   = l_ref_interfacecontroller->init_selection_screen( ).
    Warm Regards,
    Vijay.
    Message was edited by:
            Vijaya Bhaskarudu Gangisetty

  • How to Dispose/Remove/Clear/Delete Rectangleshape created on Form by button click

    Hi Guys,
    I have a windows form where there are few textboxses and buttons.
    One of the button when clicked creates few rectangles to depict sort of design(its working)
    Now my problem is that I want to clear the form for the user to enter again.
    I am able to clear textbox but I am not able to remove the rectangles made.
    Could anyone suggest how to do it?
    I have tried searching for the example but could not find any.
    I have not used paint to draw my drawing so any graphic related answer wont work it seems.
    I found this but it is giving error :Unable to cast object of type 'System.Windows.Forms.Button' to type 'Microsoft.VisualBasic.PowerPacks.RectangleShape'"
    CType(sender, PowerPacks.RectangleShape).Dispose()
    what should I do?
    Thanks in Advance!
    Mak

    Hi Guys,
    I was able to find out how to remove the all the rectangles which I created
    If we just use this
    Invalidate()
    It will clear the entire surface of the control.
    But......
    The problem is how to remove specific Rectangles!
    Still looking for answers!!, all ideas welcome!
    Cheers
    Mak
    Hello,
    You could define that control variable outside that method, and hide them by setting its parent to nothing.
    Here is a simple sample.
    Imports Microsoft.VisualBasic.PowerPacks
    Public Class Form1
    Dim canvas As New ShapeContainer
    Dim Rect1 As New RectangleShape
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    canvas.Parent = Me
    Rect1.Parent = canvas
    Rect1.Size = New System.Drawing.Size(140, 140)
    Rect1.Location = New System.Drawing.Point(2, 2)
    Rect1.BackStyle = BackStyle.Opaque
    Rect1.BackColor = Color.White
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    canvas.Parent = Nothing
    End Sub
    End Class
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Calling another form from current form

    Hello everyone,
    After entering information into a form, I want to call another form then I want to return to the previous form without loosing the information I entered into it....
    Whats the pl/sql code to do this...how do i do it?
    Thank u...
    Edited by: user10746194 on Jan 16, 2010 9:30 AM

    You should put this code at the place where you want to appear the called form. that is the child/first form.
    if you want to call the form on button click, place the code in when-button-pressed trigger of the respective button in the first form.
    Edited by: Dora on Jan 17, 2010 10:54 AM

Maybe you are looking for

  • SharePoint 2013: Error when clicking on Title, description, and logo

    Hi. I'm in the process of upgrading from SharePoint 2007 to 2013 and have come across an error which I think has occurred since trying to deploy a new feature to implement our "Company Theme" (Custom look). Please note, everything is otherwise behavi

  • Oracle 9i monitoring scripts in HACMP 5.4

    Hi, I have installed Oracle 9.2.0.8 on AIX 5.3 (HACMP 5.4) in active passive cluster. I have made startup and shutdown scripts for Oracle. Can anyone please guide me or point me to some link for the monitoring scripts for Oracle in HACMP so that fail

  • Fuzzy noisy colors in ps windows background

    Hello, I haven't fully tested all the combinations regarding this issue yet, but I had some strange behavior by PS apparently when opening RAW images in 16bits. All works ok a part for a very annoying and weird pattern of fuzzy noisy colors in the gr

  • IPod Mini refuses to sleep when unplugged from power

    Hello, I have a problem with the Sleep function in my Mini. The whole of the context is as follows: After a period of inactivity (two weeks approx.) I wanted to use my Mini. However, after rousing it from sleep, it immediately froze. When it did resp

  • How do I get my entire library onto one playlist

    I am new to this and have not been able to get my entire library onto the playlist.  How do I do that?