Iteractive Form Add button

Hi All,
I created an interactive form by using sfp i added button to table line items in preview i can add new  line item but when i download the same form using my report i can't add new item, if i click its not showing new line item i checked previous threads but it not full filled my requirement.
Please let me know if any one have the solution
I checked all properties like sub form - flowed on page break .
Thanks,
Kumar

Hi Vaibhav,
Thanks for reply .
Yes i am passing those parameters here is my code.
*fill output parameters to display pdf documet
      fp_docparams-langu = 'X'.
      fp_docparams-country = 'US'.
      fp_docparams-fillable =  'X'.
      fp_docparams-dynamic =  'X'.
*send data to interactive form
      CALL FUNCTION fm_name
        EXPORTING
          /1bcdwb/docparams  = fp_docparams "
          p_cont             = gv_cont
          s_date             = gv_date
          p_plant            = gv_plant
          bednr              = bednr
          t_mdez             = gt_out
        IMPORTING
          /1bcdwb/formoutput = fp_formoutput
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.

Similar Messages

  • Designer 8.2.1 - dynamic form - add button -

    Cannot get dynamic form to add additional lines as needed.
    Created simple dynamic form with "Add Item Button" designed to add an item line. Item line only has one text field. Used the "instanceManager.addInstance(1);" javascript line for the button.
    Form Properties have the following items:
    Preview type: interactive form
    Preview adobe xml form as: Dynamic xml form
    The Hierarchy pallette shows:
    form1
    (Master Pages)
    page1
    (untitled Content Area)
    rootSubForm
    Button1
    detail (subform)
    TextField1
    Referenced Objects
    rootSubForm Object Items:
    Subform:
    Content: Flowed
    Flow Direction: Top to Bottom
    Allow Page Breaks within Content
    Presence: Visible
    Pagination:
    Place: Following Previous
    After: Continue Filling Parent
    Binding:
    Default Binding: Normal
    Button1
    JavaScript language:
    form1.rootSubForm.Button1::click - (JavaScript, client)
    _detail.addInstance(1);
    detail:
    Subform:
    Content: Positioned
    Allow Page Breaks within Content - Checked
    Presence: Visible
    Pagination:
    Place: Following Previous
    After: Continue Filling Parent
    TextField1:
    Field:
    Type Text Field
    Allow Page Breaks within Content - Checked
    Field Format: Plain Text Only
    Binding:
    Default Binding - Normal
    It simply doesn't work. When I click the Button, it does not add an additional line.
    There was some trouble with the initial installation of Acrobat 9 Pro Extended, requiring assistance from technical support. I don't know if I am having continuing installation/operations problems or if it is programmer error.
    I have been told by Adobe Technical Support that they "don't"/"won't" support javascript issues, so I am left on my own to determine the issue. Any help would be appreciated.

    I should also mention that I can call up the sample forms provided by the program and those samples work, but as I try to create a form from the beginning, it does not work.

  • Add button not saved binded data

    The below code call when my forms Add button clicks.
    The issue is it runs only procedure and not saved binded value to the table.Pls suggest me any alternative code to this
    If pVal.ItemUID = "1" And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) And pVal.BeforeAction = True And pVal.FormMode = 3 Then
                    If Soft_Application.MessageBox("Is the GPP-GCP Confirmed ?", 1, "OK", "Cancel") = 1 Then
                            Call Card_Num
                            Call Createjournal
                    End If
    End if

    Hi Dhanraj,
    If objMain.objApplication.MessageBox("Advance Payment Not Recieved.Do you want to Proceed Further !!!", 1, "Continue", "Cancel")= "2" Then
                                                BubbleEvent = False
                                                Exit Sub
                                            End If
    ''''''write ur code here
    Rgds
    Micheal

  • Qurery on Add Button of Sales A/R Invoice form

    Hello sir
    I want to  do the Update query on add button of Sales A/R From, to update the satus of my user form
    plz  suggest

    If pVal.ItemUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And pVal.FormMode = SAPbouiCOM.BoFormMode.fm_ADD_MODE And pVal.BeforeAction = False Then
                        Dim oForm As SAPbouiCOM.Form
                        oForm = SBO_Application.Forms.Item(FormUID)
                        If oForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
                            If pVal.ActionSuccess = True Then
                                Try
                                    ' setVisibilityForControlPQ()
                                    SetInitialDataPQ()
                                Catch ex As Exception
                                    ShowErrMsg("Event Error et_ITEM_PRESSED: " & ex.Message)
                                Finally
                                End Try
                            End If ' action close
                        End If 'mode close
                    End If 'else if

  • Add Buttons to load other forms

    I have an Adobe form created; however, on that form, I want to add buttons to that form. Once I click on a specific button, I want that to pull in another Adobe form that I created. Can Adobe LiveCycle do that?

    No, is not possible.
    You have to incorporate all sections that you need in only one form.
    After that you can use a button to hide or show the correct sections.
    To save time you can use the fragments.
    Bye,
    Roberto Bellarmino.

  • How to automatically click add button on Process child form?

    During automatic provisioning of SAP CUA resource defined using access policy, how do I automatically click the "add" button to add the pre-populated role and system?
    Auto-save is already checked in the process definition of provisioning process.
    Thanks!

    Thanks for the detailed steps. None of the information I specify in the child form is getting saved and I am getting the following errors. Bits from the log:
    2009-04-20 11:42:12,297 ERROR [STDERR] java.lang.Exception: The length of the string '$tart,409' is too long for the field length of size 8
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.rulegenerators.tcBaseRuleGenerator.finalizeAdapter(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.rulegenerators.adpPREPOPULATESAPCUAFORM.implementation(adpPREPOPULATESAPCUAFORM.java:58)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.rulegenerators.tcBaseRuleGenerator.run(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.rulegenerators.tcAdapterExecuter.executeRuleGenerators(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.util.tcPrePopulateUtility.setDataFromAdapter(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.util.tcPrePopulateUtility.prePopulate(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.util.tcOrderPackages.computeProcessFormData(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.util.tcOrderPackages.createOrder(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.util.tcOrderPackages.orderPackageForUser(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.tcOIU.provision(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.tcOIU.eventPostInsert(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.tcUserProvisionObject.insertImplementation(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.util.tcProvPolicyUtils.provisionObject(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.util.tcProvPolicyUtils.provisionObjects(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.util.tcProvPolicyUtils.doProvisioning(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.util.tcProvPolicyUtils.evaluatePolicies(Unknown Source)
    2009-04-20 11:42:12,297 ERROR [STDERR]      at com.thortech.xl.dataobj.util.tcProvPolicyUtils.evaluatePolicies_UGP(Unknown Source)
    Thanks for your help!

  • Add data to the table in the database with the use of add button

    The name of my database is Socrates.
    The name of the table in the database is Employees
    I want to be able to add data to the database. i am presently working on the add button such that when i enter date into the textfield and press the add button it should automatically register in the table.
    The error upon compilation is with this line of code
    If (ae.getSource() == jbtnA)// it says that ";" is expected
    Below is the entire code
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Mainpage extends JFrame implements ActionListener
         JTextField jFirstName = new JTextField(15);
         JTextField jSurname = new JTextField(12);
         JTextField jCity = new JTextField(10);
         JTextField jCountry = new JTextField(12);
         JTextField jSSN = new JTextField(8);
         JLabel jFirstLab = new JLabel("First Name");
         JLabel jSurnameLab = new JLabel("Surname");
         JLabel jCityLab = new JLabel("City");
         JLabel jCountryLab = new JLabel("Country");
         JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
         JButton jbtnA = new JButton ("Add");
         JButton jbtnPrv = new JButton ("Previous");
         JButton jbtnNt = new JButton ("Next");
         JButton jbtnDl= new JButton ("Delete");
         JButton jbtnSrch = new JButton ("Search");
         public Mainpage (String title)
              super (title);
              Container cont = getContentPane();
              JPanel pane1 = new JPanel();
              JPanel pane2 = new JPanel();
              JPanel pane3 = new JPanel();
              pane1.setLayout (new GridLayout (0,1));
              pane2.setLayout (new GridLayout(0,1));
              pane3.setLayout (new FlowLayout());
              pane1.add(jFirstLab);
              pane1.add(jSurnameLab);     
              pane1.add(jCityLab);
              pane1.add(jCountryLab);
              pane1.add(jSSNLab);
              pane2.add(jFirstName);
              pane2.add(jSurname);
              pane2.add(jCity);
              pane2.add(jCountry);
              pane2.add(jSSN);
              pane3.add(jbtnA);
              pane3.add(jbtnPrv);
              pane3.add(jbtnNt);
              pane3.add(jbtnDl);
              pane3.add(jbtnSrch);
              cont.add(pane1, BorderLayout.CENTER);
              cont.add(pane2, BorderLayout.LINE_END);
              cont.add(pane3, BorderLayout.SOUTH);
              jFirstName.addActionListener(this);
              jSurname.addActionListener(this);
              jCity.addActionListener(this);
              jCountry.addActionListener(this);
              jSSN.addActionListener(this);
              jbtnA.addActionListener(this);
              jbtnPrv.addActionListener(this);
              jbtnNt.addActionListener(this);
              jbtnDl.addActionListener(this);
              jbtnSrch.addActionListener(this);
              validate();
              setVisible(true);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              pack();
              setResizable(false);
         public void actionPerformed(ActionEvent ae)
                   If (ae.getSource() == jbtnA)
                                    fst = jFirstName.getText();
                        srn = jSurname.getText();
                        cty = jCity.getText();
                        cnty = jCountry.getText();
                        int sn =
    Interger.parseInt(jSSN.getText());
                                    String ad = "Insert into Employees
    (Firstname,Surname,City,Country,SSN)" +
    "values('"fst"','"srn"','"cty"','"cnty"','"sn"')";
                        Statement stmt = con.createStatment();
                        int rowcount = stmt.executeUpdate(ad);
                        JOptionPane.showMessageDialog("Your
    details have been registered");
                        Statement stmt = con.createStatment();
                        int rowcount = stmt.executeUpdate(ad);
    public static void main (String args[])
              Mainpage ObjFr = new Mainpage("Please fill this
    registration form");
              try
                   Class.forname("sun.jdbc.odbc.JdbcOdbcDriver");
                   String plato = "jdbc:odbc:socrates";
                   Connection con =
    DriverManager.getConnection(plato);
              catch(SQLException ce)
                   System.out.println(ce);
    }

    i have restructured the code, but the following line of code is giving error:
    String plato = jdbc:odbc:socrates;
    the entire code is below:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class Mainpage extends JFrame implements ActionListener
         JTextField jFirstName = new JTextField(15);
         JTextField jSurname = new JTextField(12);
         JTextField jCity = new JTextField(10);
         JTextField jCountry = new JTextField(12);
         JTextField jSSN = new JTextField(8);
         JLabel jFirstLab = new JLabel("First Name");
         JLabel jSurnameLab = new JLabel("Surname");
         JLabel jCityLab = new JLabel("City");
         JLabel jCountryLab = new JLabel("Country");
         JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
         JButton jbtnA = new JButton ("Add");
         JButton jbtnPrv = new JButton ("Previous");
         JButton jbtnNt = new JButton ("Next");
         JButton jbtnDl= new JButton ("Delete");
         JButton jbtnSrch = new JButton ("Search");
         Statement stmt;
            String ad;
            public Mainpage (String title)
              super (title);
              Container cont = getContentPane();
              JPanel pane1 = new JPanel();
              JPanel pane2 = new JPanel();
              JPanel pane3 = new JPanel();
              pane1.setLayout (new GridLayout (0,1));
              pane2.setLayout (new GridLayout(0,1));
              pane3.setLayout (new FlowLayout());
              pane1.add(jFirstLab);
              pane1.add(jSurnameLab);     
              pane1.add(jCityLab);
              pane1.add(jCountryLab);
              pane1.add(jSSNLab);
              pane2.add(jFirstName);
              pane2.add(jSurname);
              pane2.add(jCity);
              pane2.add(jCountry);
              pane2.add(jSSN);
              pane3.add(jbtnA);
              pane3.add(jbtnPrv);
              pane3.add(jbtnNt);
              pane3.add(jbtnDl);
              pane3.add(jbtnSrch);
              cont.add(pane1, BorderLayout.CENTER);
              cont.add(pane2, BorderLayout.LINE_END);
              cont.add(pane3, BorderLayout.SOUTH);
              jFirstName.addActionListener(this);
              jSurname.addActionListener(this);
              jCity.addActionListener(this);
              jCountry.addActionListener(this);
              jSSN.addActionListener(this);
              jbtnA.addActionListener(this);
              jbtnPrv.addActionListener(this);
              jbtnNt.addActionListener(this);
              jbtnDl.addActionListener(this);
              jbtnSrch.addActionListener(this);
              validate();
              setVisible(true);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              pack();
              setResizable(false);
              try
                   Class.forname(sun.jdbc.odbc.JdbcOdbcDriver);
                   String plato = jdbc:odbc:socrates;
                   Connection con = DriverManager.getConnection(plato);
                   stmt = con.createStatment();
              catch(SQLException ce)
                   System.out.println(ce);
              catch(ClassNotFoundException ce)
                   System.out.println(ce);
         public void actionPerformed(ActionEvent ae)
                   try
                        if(ae.getSource().equals(jbtnA))
                                         fst = jFirstName.getText();
                             srn = jSurname.getText();
                             cty = jCity.getText();
                             cnty = jCountry.getText();
                             int sn = Interger.parseInt(jSSN.getText());
                                         ad = "Insert into Employees
    values('"+fst+"',"+srn+"','"+cty+"','"+cnty+"','"+sn+"')";
                             stmt.executeUpdate(ad);
                             JOptionPane.showMessageDialog(this, "Your details have been
    registered");
                   catch(SQLException ce)
                        System.out.println(ce);
    public static void main(String args[])
              Mainpage ObjFr = new Mainpage("Please fill this registration form");
    }

  • How can I add buttons that do different things to each row of an rpt result

    Hi there,
    I'm trying to figure out how to add buttons to each row of a report. Here is the scenario:
    report query returns a set of data that needs to be "approved". The options are "Append", "Replace", or "Reject" (I want to make the results look like so:)
    Person1 today blah, blah blah... Append button Replace button Reject button
    Person2 today blah, blah, blah... Append button Replace button Reject button
    PersonA today something, blah... Append button Replace button Reject button
    and so on.
    I'd like to set up the page so that there is an append, replace, reject button for each row returned by the report. So when the "Approver" clicks on the append button, something happens for that row, etc. How does one do this? So far I can only get the buttons to show up in the region. I also thought it might be possible to somehow turn the append, replace, reject text into links that called a plsql proceedure that would handle the action, but I'm not having any success with that idea either.
    Edited by: user10361829 on Sep 29, 2009 12:10 PM

    What I've done is make my report query as follows:
    select field_a, field_b, field_c, 'Append', 'Replace', 'Reject'
    from table_x
    where field y = :PX_ID
    That gives me the words (append, replace, reject) in the report. Then I go to the report attributes section and make a link out of the columns (append, replace, reject) so far, so good.
    Next question is how to make clicking on those links activate an update action on tableN. In the column_link section there is a box marked "Request" that looks like it might be relevant because Request is a term connected to buttons, but I've no idea how to use it. Or, can one use the tabluar form element section of the report attributes page to connect the Append (pseudo column) to an action? I've looked at your example (Sam) with the delete button, but what I really need to see is the Apex menu that sets it up because there are so many levels in the interface it is not intuitive (at least for me). I know exactly what I want it to look like but I'm missing the crucial step to get there... Thanks for your help so far.
    Column link section is described below :
    Column Link     Top
    Link Text      flashlight          
         [*Append*][Icon 1][Icon 2][Icon 3][Icon 4][Icon 5]
    Link Attributes      
    Target: *"Page in this application"*     Page: *10*     
    Reset Pagination
    Request Clear Cache      
    Name     Value
    Item 1      Px_page_item flashlight *#????#*          flashlight
    Item 2      flashlight          flashlight
    Item 3      flashlight          flashlight
    URL      
    Page Checksum

  • Javascript code to enable an ADD button to create duplicate tables and pages for multiple entries

    I am using Adobe XI Pro. I have created a multi-page fillable pdf questionnaire that I want to make interactive to the user. Within each page, I have multiple tables that can have ADD buttons to duplicate the table if the client wants more than one test. I would like this table to insert directly below the previous table and they may be able to add upto 5 of these table.
    I also have a couple pages in the questionnaire that require duplication for multiple samples. Eg. One page per sample, and I may have upto 10 samples. I would like the javascript to have an ADD button and then add each page behind the previous related sheet (Original and duplicates together)
    I am not a javascript coder so I would need some examples and a walk through. I did take some developer courses in engineering but it has been almost two decades
    I have search on several forums and cannot find a good resource so I appreciate the help.
    Sincerely
    Tara

    Some of what you want to do can be done using template features and a bit of JavaScript, but if your users will be using Reader, version 11 will be required. You can dynamically add new pages, but adding new tables to existing pages with reflow of content that comes after is not possible with a form created in Acrobat. If you have access to Adobe's LiveCycle Designer form creation software, you can create what's known as a dynamic XFA form that can do all of what you want. You can ask in the LiveCycle Designer forum for more information: http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es?view=discussions

  • How to use mp3 files on a form standard button, instead of wav-files. Need to save space.

    I would like to use mp3 files instead of Wav-files on the standard button, in the forms edit menu. I know it is possible in the interactive menu to add buttons with mp3 sound. But those buttons has not the same options and appearance as the forms buttons. We create learning books with lots of sound files in each PDF, so with wav-files the PDF gets quite heavy in Gb.

    Smokerz – Thanks for the feedback. I managed to get iTunes to find the movie files on my TC by simply dragging the icons of the files on the TC into the Movies folder in iTunes. This immediately made them available for streaming on my Apple TV. Also, I learned with great relief that, despite their large size, dragging icons of my movie files into iTunes did not copy them to the C: drive on my desktop computer. Thus, it looks as if the job is pretty much done. Thanks again for your advice.

  • How to add button in reuse_alv not in gui status

    hi guys,
    my question how can i add button to reuse_alv not in gui_status or pf_status ? and also i have an internal table which contains a checkbox field when user select one or more check box and push button , new table will be sended to batch input program.how can i do add button part, the rest of it is done.?

    Hi,The following sample report ZUS_SDN_ALV_BUTTON_CLICK_LTXT shows a possible way how to handle the BUTTON_CLICK event in order to retrieve a longtext for a ALV entry. Please note that for the sake of simplicity I have choosen an obsolete function module for text editing (only enter numerical values otherwise the function module crashes).
    *& Report ZUS_SDN_ALV_BUTTON_CLICK_LTXT
    *& Screen '0100' contains no elements.
    *& ok_code -> assigned to GD_OKCODE
    *& Flow logic:
        * PROCESS BEFORE OUTPUT.
        * MODULE STATUS_0100.
        * PROCESS AFTER INPUT.
        * MODULE USER_COMMAND_0100.
    *& PURPOSE: Demonstrate event BUTTON_CLICK for entering long text
    REPORT zus_sdn_alv_button_click_ltxt.
    TYPE-POOLS: icon.
    TYPES: BEGIN OF ty_s_outtab.
    INCLUDE TYPE knb1.
    TYPES: button TYPE iconname.
    TYPES: line TYPE bapi_line.
    TYPES: END OF ty_s_outtab.
    TYPES: ty_t_outtab TYPE STANDARD TABLE OF ty_s_outtab
    WITH DEFAULT KEY.
    DATA:
    gd_okcode TYPE ui_func,
    gd_repid TYPE syst-repid,
    go_docking TYPE REF TO cl_gui_docking_container,
    go_grid TYPE REF TO cl_gui_alv_grid,
    gt_fcat TYPE lvc_t_fcat,
    gt_variant TYPE disvariant,
    gs_layout TYPE lvc_s_layo.
    DATA:
    gs_outtab TYPE ty_s_outtab,
    gt_outtab TYPE ty_t_outtab.
        * CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
    PUBLIC SECTION.
    CLASS-METHODS:
    handle_button_click FOR EVENT button_click OF cl_gui_alv_grid
    IMPORTING
    es_col_id
    es_row_no
    sender.
    ENDCLASS. "lcl_eventhandler DEFINITION
        * CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
    METHOD handle_button_click.
        * define local data
    DATA:
    ld_answer(1) TYPE c,
    ls_outtab TYPE ty_s_outtab.
    CHECK ( sender = go_grid ).
    READ TABLE gt_outtab INTO ls_outtab INDEX es_row_no-row_id.
    " Note: This function module is obsolete and crashes if
    " non-numerical values are entered. Choose a more
    " appropriate way of entering the longtext.
    CALL FUNCTION 'POPUP_TO_GET_VALUE'
    EXPORTING
    fieldname = 'LINE'
    tabname = 'BAPITGB'
    titel = 'Enter Longtext'
    valuein = ls_outtab-line
    IMPORTING
    answer = ld_answer
    valueout = ls_outtab-line
    EXCEPTIONS
    fieldname_not_found = 1
    OTHERS = 2.
    IF sy-subrc 0.
        * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF ( ld_answer NE 'C' ). " 'C' = cancel
    MODIFY gt_outtab FROM ls_outtab INDEX es_row_no-row_id
    TRANSPORTING line.
    ENDIF.
        * Triggers PAI of the dynpro with the specified ok-code
    CALL METHOD cl_gui_cfw=>set_new_ok_code( 'REFRESH' ).
    ENDMETHOD. "handle_button_click
    ENDCLASS. "lcl_eventhandler IMPLEMENTATION
    START-OF-SELECTION.
    SELECT * FROM knb1
    INTO CORRESPONDING FIELDS OF TABLE gt_outtab
    WHERE bukrs = '1000'.
    CLEAR: gs_outtab.
    gs_outtab-button = icon_change_text.
    MODIFY gt_outtab FROM gs_outtab
    TRANSPORTING button LINE
    where ( bukrs NE space ). " modify all lines
    PERFORM build_fieldcatalog.
        * Create docking container
    CREATE OBJECT go_docking
    EXPORTING
    parent = cl_gui_container=>screen0
    ratio = 90
    EXCEPTIONS
    OTHERS = 6.
    IF sy-subrc 0.
        * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
        * Create ALV grids
    CREATE OBJECT go_grid
    EXPORTING
    i_parent = go_docking
    EXCEPTIONS
    OTHERS = 5.
    IF sy-subrc 0.
        * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
        * Set event handler
    SET HANDLER: lcl_eventhandler=>handle_button_click FOR go_grid.
        * Display data
    gs_layout-grid_title = 'Customers'.
    CALL METHOD go_grid->set_table_for_first_display
    EXPORTING
    is_layout = gs_layout
    CHANGING
    it_outtab = gt_outtab
    it_fieldcatalog = gt_fcat
    EXCEPTIONS
    OTHERS = 4.
    IF sy-subrc 0.
        * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
        * Link the docking container to the target dynpro
    gd_repid = syst-repid.
    CALL METHOD go_docking->link
    EXPORTING
    repid = gd_repid
    dynnr = '0100'
        * CONTAINER =
    EXCEPTIONS
    OTHERS = 4.
    IF sy-subrc 0.
        * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
        * NOTE: dynpro does not contain any elements
    CALL SCREEN '0100'.
        * Flow logic of dynpro (does not contain any dynpro elements):
    *PROCESS BEFORE OUTPUT.
        * MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
        * MODULE USER_COMMAND_0100.
    END-OF-SELECTION.
    *& Module STATUS_0100 OUTPUT
        * text
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'STATUS_0100'. " contains push button "DETAIL"
        * SET TITLEBAR 'xxx'.
    CALL METHOD go_grid->refresh_table_display
        * EXPORTING
        * IS_STABLE =
        * I_SOFT_REFRESH =
        * EXCEPTIONS
        * FINISHED = 1
        * others = 2
    IF sy-subrc 0.
        * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDMODULE. " STATUS_0100 OUTPUT
    *& Module USER_COMMAND_0100 INPUT
        * text
    MODULE user_command_0100 INPUT.
    CASE gd_okcode.
    WHEN 'BACK' OR
    'END' OR
    'CANC'.
    SET SCREEN 0. LEAVE SCREEN.
        * Refresh -> pass PAI and PBO where flushing occurs
    WHEN 'REFRESH'.
    WHEN OTHERS.
    ENDCASE.
    CLEAR: gd_okcode.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    *& Form BUILD_FIELDCATALOG
        * text
        * --> p1 text
        * <-- p2 text
    FORM build_fieldcatalog .
        * define local data
    DATA:
    ls_fcat TYPE lvc_s_fcat,
    lt_fcat TYPE lvc_t_fcat.
    REFRESH: gt_fcat.
    CLEAR: lt_fcat.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
    i_structure_name = 'KNB1'
    CHANGING
    ct_fieldcat = lt_fcat
    EXCEPTIONS
    OTHERS = 99.
    IF sy-subrc 0.
        * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    APPEND LINES OF lt_fcat TO gt_fcat.
    CLEAR: lt_fcat.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
    i_structure_name = 'BAPITGB'
    CHANGING
    ct_fieldcat = lt_fcat
    EXCEPTIONS
    OTHERS = 99.
    IF sy-subrc 0.
        * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE lt_fcat INTO ls_fcat
    WITH KEY fieldname = 'LINE'.
    IF ( syst-subrc = 0 ).
    INSERT ls_fcat INTO gt_fcat INDEX 4.
    ENDIF.
    CLEAR: lt_fcat.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
    i_structure_name = 'ICON'
    CHANGING
    ct_fieldcat = lt_fcat
    EXCEPTIONS
    OTHERS = 99.
    IF sy-subrc 0.
        * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE lt_fcat INTO ls_fcat
    WITH KEY fieldname = 'NAME'.
    IF ( syst-subrc = 0 ).
    ls_fcat-fieldname = 'BUTTON'.
    ls_fcat-style = cl_gui_alv_grid=>mc_style_button.
    INSERT ls_fcat INTO gt_fcat INDEX 4.
    ENDIF.
    LOOP AT gt_fcat INTO ls_fcat.
    ls_fcat-col_pos = syst-tabix.
    MODIFY gt_fcat FROM ls_fcat INDEX syst-tabix.
    ENDLOOP.
    ENDFORM. " BUILD_FIELDCATALOG[/code]
    Reward If Found Useful.

  • Document Add button - change a UDF so B1 writes value to  tables

    When the user presses the add button on a document, like an invoice, I want to loop through the items matrix and update a UDF on each row, so that Business one will write my values in the UDFs to the line item table (INV1), but I can't figure out how.
    2 problems: The first is all the message boxes that B1 sometimes displays (like document total is zero, or error messages like 'no tax code entered'.  I need to do my work AFTER these all occur, but just BEFORE the document is created.  WHEN do I do this?
    The other problem is that it seems like when I've tried something like this before, My changes to anything on the screen cause B1 to re-fire the events and then cancel the Add.
    I don't want users to change these fields after I've loaded them, and I'd rather not retrieve the document after it's added and then change the values.  I've found similar problems in the forum but none of them speaks exactly to this
    Any ideas?
    Thanks/Gracias/Dankeschoen/Merci/Danyavad/Toa chie

    Hi John,
    Hope you're doing well.
    I suggest the formdataevent.
    There is a example in the sdk.
    This is what I use:
    Public Sub FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles UIAPP.FormDataEvent
                'Occurs when the application performs the following actions on forms connected to business objects:
                '            Add()
                '            Update()
                '            Delete()
                'Load form data via browse, link button, or find
                'The event provides the unique ID (BusinessObjectInfo.ObjectKey) of the modified business object.
                'You can use the value of this property as an input parameter in the DI API DataBrowser.GetByKeys method to get a DI object.
                Dim form As SAPbouiCOM.Form = UIAPP.Forms.Item(BusinessObjectInfo.FormUID)
                Dim bisObj As SAPbouiCOM.BusinessObject = form.BusinessObject
                Dim uid As String = bisObj.Key
                FormDataEventCommon.FormDataEventLogic(BusinessObjectInfo, BubbleEvent, bisObj, form)
                System.Runtime.InteropServices.Marshal.ReleaseComObject(form)
                System.Runtime.InteropServices.Marshal.ReleaseComObject(bisObj)
                form = Nothing
                bisObj = Nothing
                GC.Collect()
            End Sub
    calls this function.
    Public Function FormDataEventLogic(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean, ByRef bisobj As SAPbouiCOM.BusinessObject, ByRef form As SAPbouiCOM.Form) As Boolean
                Dim Test As Integer = form.Mode
                Dim mat As String = ""
                Dim Fld As String = ""
                Dim rep As String = ""
                Dim ColFlag As Boolean = False
                If BusinessObjectInfo.BeforeAction Then
                    Select Case BusinessObjectInfo.EventType
                        Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD
                            Select Case BusinessObjectInfo.Type
                                Case "COMMISSION OBJ UDO"
                                    Dim CommTblClass As New CommAdj_Class(form.UniqueID)
                                    Dim StrLN As String = CommTblClass.GetFieldValue(form.UniqueID, "EMONLN")
                                    If StrLN = "" Then
                                        CommTblClass.Displayerror("Please enter a load number")
                                        BubbleEvent = False
                                    End If
                                    CommTblClass.release()
                            End Select
                    End Select
                Else
                    Select Case BusinessObjectInfo.EventType
                        Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD
                            ' Addnew information for a new document
                            Select Case BusinessObjectInfo.Type
                                Case SAPbobsCOM.BoObjectTypes.oDeliveryNotes
                                Case SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes
                                Case SAPbobsCOM.BoObjectTypes.oOrders
                                Case SAPbobsCOM.BoObjectTypes.oInvoices
                                Case SAPbobsCOM.BoObjectTypes.oCreditNotes
                                Case SAPbobsCOM.BoObjectTypes.oReturns
                                Case SAPbobsCOM.BoObjectTypes.oQuotations
                                Case SAPbobsCOM.BoObjectTypes.oPurchaseInvoices
                                Case SAPbobsCOM.BoObjectTypes.oInventoryGenEntry
                                Case "COMMISSION OBJ UDO"
                            End Select
                        Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE
                            ' Update exisitng Document
                            Select Case BusinessObjectInfo.Type
                                Case SAPbobsCOM.BoObjectTypes.oDeliveryNotes
                                Case SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes
                                Case SAPbobsCOM.BoObjectTypes.oInvoices
                                Case SAPbobsCOM.BoObjectTypes.oCreditNotes
                                Case SAPbobsCOM.BoObjectTypes.oReturns
                                Case SAPbobsCOM.BoObjectTypes.oOrders
                                Case SAPbobsCOM.BoObjectTypes.oQuotations
                                Case SAPbobsCOM.BoObjectTypes.oInventoryGenEntry
                                Case "COMMISSION OBJ UDO"
                            End Select
                        Case BoEventTypes.et_FORM_DATA_LOAD
                            Select Case BusinessObjectInfo.Type
                                Case SAPbobsCOM.BoObjectTypes.oDeliveryNotes
                                Case SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes
                                Case SAPbobsCOM.BoObjectTypes.oInvoices
                                Case SAPbobsCOM.BoObjectTypes.oCreditNotes
                                Case SAPbobsCOM.BoObjectTypes.oReturns
                                Case SAPbobsCOM.BoObjectTypes.oOrders
                                Case SAPbobsCOM.BoObjectTypes.oQuotations
                            End Select
                    End Select
                End If
                Return True
            End Function

  • Link Document Library Add Button to home page

    Let me know if it is possible to link the document library add button to homepage or any other page, if possible add a new icon to it, as part of customization.
    I am using sharepoint 2013.
    If possible please let me know the steps, as well as few articles related to the above would be helpful.
    Thanks

    As you are not displaying your new item form into a dialog you can remove the IsDlg=1 from your link and you can append a &Source="PageWhereYouWantToGoBackAfterUpload".
    <a href="/sites/Contracts/_layouts/15/Upload.aspx?List=%7b89225CDC-B61A-45FC-8DC3-AC7DD97578CA%7d&amp;RootFolder=&amp;Source=http://www.yourSite.com"> Upload a doc</a>
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Placement of cursor - when ADD button, place cursor on first item in row

    I have several collections on a page. The third collection CATCH_C is usually empty. The user can tab to ADD button. Currently, the cursor is then placed at the first item on the page. I would like it to be place in the first item in that collection. Is that possible?
    ps. when the page is pulled up, the page attributes HTML body has the command onload="html_GetElement('f3_0001').focus()"
    could I do something similiar for c042 in CATCH_C? and if so, where would I place such a statement? again, very new to java/html so all help appreciated.
    karen

    indeed. thanks!
    so, now I have two processes....but neither work. Upon entering the form, the cursor is on the FILE menu (top left of window):
    start_cursor is PROCESS after footer condition REQUEST != ADD
    BEGIN
    HTP.p ('<script>');
    HTP.p ('html_GetElement(''f03_0001'').focus();');
    HTP.p ('</script>');
    END;
    add_cursor is PROCESS after submit condition REQUEST = ADD
    BEGIN
    HTP.p ('<script>');
    HTP.p ('html_GetElement(''f42_9901'').focus();');
    HTP.p ('</script>');
    END;

  • Pick Ticket Printing when Pressing Add Button in Order ENtry

    Simple question ...
    All I need to do is when I press the Add button when entering and Order is automatically print a Pick Ticket
    Not an Order and I do not want to Prompt the Order Entry person if they Want to print a Pick Ticket or an Order or Both. 
    How do I get Pick Ticket and ONLY the Pick Ticket to print without the prompts?   I know I can make an Order look like a Pick Ticket and and go to Print Preferences and Un Check Pick tickets,  but I am trying to avoid creating a new form,  and whe might want to print both forms again in the future.  I am sure it is something simple
    Thanks in advance!!!

    The options window where you Choose Pick ticket / Sales Order cannot be avoided.  By system design this window will appear when ever you have Print Picking sheet checked

Maybe you are looking for

  • App+IIS server role, WCF data problems with Shrepoint Foundation 2013 install on 2012 R2

    Hi I am having tremendous trouble installing Sharepoint Foundation on a Windows 2012 R2 domain controller. The server has just been added to our domain, promoted and this is the first piece of software I am trying to install. I had run Windows Update

  • SQL Join with a MIN condition

    Hello, I have two tables with the following data: Table DESIGN DOC_NO  DOC_TITLE                         CLIENT_DOC_NO    240     MT/a Process Plant Site Grading General Plan    300-10C-011Table TRACK FK_TRANS_NO     FK_DOC_NO     DUE_DATE     FK_CLI

  • HT1918 Do i have to have a credit card to update my apps

    Do i have to have a credit card to update my apps

  • T-code: RSCRM_REPORT to see MDX statement

    Hi All, When you go to T-code: RSCRM_BAPI or RSCRM_REPORT, and when you select a query and in the menu bar you will see "display MDX statement." For some reason I cannot see any statement when I do that. Can anyboby tell me how to solve this or is th

  • Order confirmation in EBP

    Hi, I am trying to do a multiple GR/confirmation in EBP but the system is posting double the GR quantity in R/3. For example, if the total PO quantity is 100 & if I am doing the first GR for 10 nos, then in the backend R/3, two material documents are