How to insert values in table control & how to place listbox in table ctrl

Dear all,
            I have created table control in Module pool program.  My requirement is first
               1)How to place list box in table control
               2)Based on listbox selection i have to enter values in table control row..
With Regards,
Baskaran

Hi Baskaran,
For displaing list box, use FM: VRM_SET_VALUES.
Code like that:
TYPE-POOLS: vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
PARAMETERS: ps_parm(10) AS LISTBOX VISIBLE LENGTH 15.
Instead of parameter for module pool , you declare data:
AT SELECTION-SCREEN OUTPUT.
  name = 'PS_PARM'.
  value-key = '3500000002'.
  value-text = '3500000002'.
  APPEND value TO list.
  value-key = '3500000003'.
  value-text = '3500000003'.
  APPEND value TO list.
  name = 'PS_PARM'.
  value-key = '3500000004'.
  value-text = '3500000004'.
  APPEND value TO list.
  name = 'PS_PARM'.
  value-key = '3000000007'.
  value-text = '3000000007'.
  APPEND value TO list.
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id     = name
      values = list.
make the necesary change for module pool.
Hope this can solve your problems.
Regards,
Tutun

Similar Messages

  • How to insert row in table control and save the data in tables

    Hi,
    I have one table control i am displaying data into table control ,
    my problem is : i want to display data into read mode in table control.
    but when i click on insert button on the same screen i want one blank line should inserted into table control , then i want to insert some data into table control on that row , when i click the save button . the new data inserted into the table control is insert that data into ztable ,
    please give me solution
    main problen is  how can know inserted line in table control and pass that data into ztable.

    Hi,
    Follow the below logic,
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0001.
      MODULE POPULATE_TABLE_CONTROL. --> Get the data from table store in 
                                                                          ITAB
      LOOP AT GT_CTRL_LP_D516 INTO GS_WA_CTRL_LP_D516
           WITH CONTROL CTRL_LP_D516
           CURSOR CTRL_LP_D516-CURRENT_LINE.
      The following module moves data to control
        MODULE MOVE_TO_CONTROL.--> Move data from ITAB to table control
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT GT_CTRL_LP_D516.
      ENDLOOP.
      MODULE EXIT AT EXIT-COMMAND.
      MODULE USER_COMMAND_0001.  --> Here you have to take out the values from table control and update database table
    Reward points if helpful.
    Thanks and regards,
    Mallareddy Rayapureddy,
    Munich, Germany.

  • How to pass value to a control file in sql loader

    Hello
    please want to know if i can pass a value to a control file?
    I have a table which i will populate using a control file but there is a field in the table which i will pass the date of the file.
    how can i archive this
    Thanks
    Edited by: kama021 on Apr 18, 2012 3:49 AM

    The content of the control file must be made dynamically to include desired value.
    Handle:     kama021
    Status Level:     Newbie
    Registered:     Jun 9, 2009
    Total Posts:     154
    Total Questions:     42 (25 unresolved)
    Why so many unanswered questions?
    Edited by: sb92075 on Apr 18, 2012 6:34 AM

  • In Table Control How to get only a single row .

    Hi
    In Table Control How to get only a single row .I am able to decrease it its height to 4 but then 2 rows is getting dsplayed .I want only one row to be display and 2nd row should be deactivated or not visible.
    regards
    Avik
    Edited by: Julius Bussche on Jan 30, 2009 1:10 PM
    Removed friendly greeting from the subject title

    Hi Avik
    use this code it will help you.
    MODULE passdata OUTPUT.
      READ TABLE it_revision INTO wa_rev INDEX tab_clc-current_line.
      IF sy-subrc = 0.
        LOOP AT SCREEN.
          IF screen-group1 = '111'.      " 111 IS THE GROUP NAME
            screen-input = 1.          " input mode
            screen-active = 1.         " input mode.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = '111'.       "GROUP NAME
            screen-input = 0.           " display mode
            screen-active = 1.          " DISPLAY MODE.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDMODULE.                 " PASSDATA  OUTPUT
    Make sure in group tou are passing the field name that you want in input mode on the base of other field
    Hope it will help you.
    Thanks
    Arun Kayal.

  • How does the value filled in Appointment Date field reflect in IE_SHIPMENTSTATUS table?

    Hi Team,
    Just wanted to know : How does the value filled in Appointment Date field reflect in IE_SHIPMENTSTATUS table in OTM.
    Please help.
    Regards,
    John

    Sorry, wrong forum: created in ABAP forum instead.

  • Module pool in table control how to add the data

    Hi
    I have created the table contrl.
    In table control editable rows, when ever i have enter the data than save it will update the data in data base.
    in table control 4 fields like
    sales number,sales director,sales manager,sales hirarchy.
    in three fields or editable
    first field or non editable only for numaric values disply.
    that way i have entered three fields.
    first field automatically reganarate heighest value +1.
    like that automatically reganarate.
    whn ever enter the new vaule
    first field autogenarate remaining i will enter the data.after save it will update the data in database.
    can u tell me logic for this.

    Hi Venkat,
    I think you have already posted this query with the subject line "Table control" with the thread below today.
    table control
    Try with the online link we have provided you will learn that way on your own.
    Nobody here will write the whole logic for you.
    Try to put in your efforts.
    Regards
    Abhii
    Edited by: Abhii on Sep 8, 2010 3:13 PM

  • How to insert values in table using ADF Task flow? I am not able to bind CreateInsert on my first page fragement

    Hi,
    In Jdeveloper 12c I am trying to create a task flow where I have taken 3 pages to insert values in a table. On first page when I put data control of 2 columns as input with label, then on bindings tab I created an action as CreateInsert.
    Now when I am trying to create invoke action in executables then this option is not available.
    How can I create this task flow where values can be inserted in the table on the 3rd page fragment on commit button???
    All 3 pages have data control input boxes to insert values in the table.

    Hi,
    Right click on the task flow page activity, click create page def and add there. If your activity is a page, then you can select the page and generate the pagedef as well.
    Then you can add the executables.
    Thanks.

  • How to insert  value in  UserDefine MasterData  table ?

    dear  all ,
            I have added a userdefine table ABC and   columns (Code,Name,DocEntry,Object,U_Code,U_Name).
             I  want to insert value in ABC table .i can't understand  how to assign 'DocEntry'  column value
    i am using
               SAPbobsCOM.UserTables      oUserTabItems = (SAPbobsCOM.UserTables)oCompany.UserTables;
               SAPbobsCOM.UserTable      oUserTabItem = (SAPbobsCOM.UserTable)oUserTabItems.Item("WITM");
               oUserTabItem .Code = SimpleProdEntity.sku;
              oUserTabItem.Name = "1ffd";
                   oUserTabItem.DocEntry =1; not work
                   oUserTabItem.UserFields.Fields.Item("DocEntry ").Value =1;  not work
                  how to assign 'DocEntry'  column  value 
              oUserTabItem.UserFields.Fields.Item("U_Code").Value = "ffhj dfsdf";
                        oUserTabItem.Add();
    plz help........

    Hi
    You have to register your UDO first. Then you can use this code for inserting values
    Dim oCompany As SAPbobsCOM.Company = B1Connections.diCompany
                Dim oGeneralService As SAPbobsCOM.GeneralService
                Dim oGeneralData As SAPbobsCOM.GeneralData
                Dim oGeneralParams As SAPbobsCOM.GeneralDataParams
                Dim oCmpSrv As SAPbobsCOM.CompanyService
                oCmpSrv = oCompany.GetCompanyService
                oGeneralService = oCmpSrv.GetGeneralService("UDO") ' UDO unique id
                oGeneralParams = oGeneralService.GetDataInterface(GeneralServiceDataInterfaces.gsGeneralDataParams)
                oGeneralData = oGeneralService.GetDataInterface(GeneralServiceDataInterfaces.gsGeneralData)
                oGeneralData.SetProperty("Code", "1")
                oGeneralData.SetProperty("Name", "1")
                oGeneralData.SetProperty("U_Code", "code")
                oGeneralData.SetProperty("U_Name", "Name")
                oGeneralParams = oGeneralService.Add(oGeneralData)
    Regards
    Arun

  • How to insert values in the standard table

    Hi Experts,
      I have a Standard table ( Info structure ), its called S551. It having 20 fields, Now i want to insert some 1000 records inthat table from Excel sheet, can any one plz help this.
      If i tried in se11, with create entries option its not allowing to insert the values manually inthat table.
    Plz help this. Point will be sure.
    Mohana

    Hi Mohana,
    U can't insert the records directly in to the standard data base table. Also it is not advisable. It is always better to use BAPI/BDC to upload mass data.
    I advise to write a small program for this.
    Upload the excell file to internal table which is having same structure of S551.
    use FMs TEXT_CONVERT_XLS_TO_SAP or GUI_UPLOAD for uploading data from excell to internal table.
    INSERT/MODIFY S551 FROM itab.
    Make sure that ur excell file structure and internal table structure matches and
    U have values for all the primary keys of the table and don't have duplicates(primary key).
    Thanks,
    Vinod.

  • How to insert values using pushputtons in text item & fetch data based on

    Dear friends,
    I want to insert values in the Text item using pushbutton e.g to insert 05CST884 into text item using pushbuttons '0' '5' 'C' 'S' 'T' '8' '8' '4' (alpha numeric buttons) in the layout editor and then fetch data based on the number entered with that of one in the table in the another text item2 in the layout editor.
    Suggestions regarding how to develop and use effective triggers are welcome.

    At the block level (for the control block where all your push buttons are, let's call it block1) create a WHEN-BUTTON-PRESSED trigger. Your [A-Z] and [0-9] buttons should be on a dedicated non-database datablock to reduce problems. As stated previously, this trigger should just contain the code:
    :block2.text_item := :block2.text_item||get_item_property(:system.trigger_item, label);
    Also on the pushbutton block, create a backspacve button with its own dedicated WHEN-BUTTON-PRESSED trigger containing:
    if length(:block2.text_item) > 0 then :block2.text_item := substr(:block2.text_item, 1, length(:block2.text_item)); end if;
    This will hopefully erase the last character entered.
    block2 should be based on the database table (see Property Palette --> Database) you wish to query and text_item should be based on the database item which contains the code you entered. All the other database items you wish to displayshould also be added to block2.
    Add another FIND push button to block1 with the code:
    go_block('block2');
    execute_query;
    Without writing the whole thing for you, I'd suggest you get a decent Forms tutorial book to guide you through the basics (Oracle Forms Developers Handbook).

  • How to insert a pdf file from a dynamic location into a table

    Hi friends
    Can any one please let me know how to insert a pdf file into a table from a dynamic location in server.
    suppose say i have a table CUST_BLOB(file_name, file_data). I have a file in directory c:\local having file_name test.pdf
    I want to insert this file in CUST_BLOB. Please help me.
    Thanks in advance.
    --Ahmed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    user620950 wrote:
    Hi friends
    Can any one please let me know how to insert a pdf file into a table from a dynamic location in server. Why dynamic locations on the server?
    Make it a business case that the files should be stored in specific location(s).
    Oracle uses directory objects to point to locations on the file system and, whilst these locations can be altered, it is better practice to set up specific locations and grant permission to the correct users for those locations so that there is full control over who is accessing what on the server. Whilst filenames may be dynamic, I wouldn't recommend using dynamic locations.

  • How to insert Data from a function on server A into a table on Server B.

    Hi,
    I have a function which is like this
    DECLARE @oldmax bigint, @newmax bigint
    SELECT @oldmax = max(exportTimestamp) FROM EXPORT_TIMESTAMPS
    IF @oldmax IS NULL
    SET @oldmax = 0
    SELECT * FROM ServerA.TableA.fnExportTrafficTS(@oldmax) ORDER BY storeID, TrafDate
    SELECT @newmax = max(timestamp) FROM TRAFFIC t
    IF @newmax > @oldmax
    INSERT INTO EXPORT_TIMESTAMPS
    VALUES(@newmax, GETDATE())
    And now i need to insert the data coming out of this function into ServerB Table B
    And the column names and everything coming out of the function is the same columns in Table B.So, no need to worry there.
    I have never worked with inserting data from function through linked server.
    Can someone please help me with this?
    Thanks,
    Sujith

    Well, first of all, your table structure doesn't match the structure of returned table by your table-valued function.
    This is what table valued function returns:
    [storeID] varchar(32) default('noRefID'),
    [TrafDate] [datetime] default(NULL),
    [QtyTraffic] [float] default(0)
    And this is what your table structure is:
    [tUTL_JobLogging_Key] [int] NOT NULL,
    [StoreId] [varchar](10) NULL,
    [TrafDate] [datetime] NULL,
    [Visits] [numeric](8, 2) NULL
    Apart from different size for the StoreID and using float vs. numeric and different name for the last column, there is one extra column in your table.
    So, this is the first problem you need to correct.
    Also, please post how exactly you're calling your procedure? E.g. the procedure has 2 parameters, but the values of them are not used as you're calculating them in the code. So, I assume they should not be parameters for the procedure.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • How get Inserted value Id in MySql ?.

    Hi,
        How to Get Inserted value Id in MYSQL.
    I am using " select LAST_INSERT_ID() " But its not working Properly.Can u provide any other  solution For this.Please Help me.
    Thanks &  Regards
    Madhava Reddy.

    How to Get Inserted value Id in MYSQL.
    Hello,
    This is a forum for Transact-SQL = Microsooft SQL Server, not for MySQL; you should post your question to a more related forum.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to insert  values to msexcel sheet via jsp

    currently I am using jsp ,and I am supposed to use ms excel sheet as a referal database, the problem is I tried to insert values to excel sheet but its running well but the datas r not written in excel sheel I tried the following aspwects also
    <%@ page language="java"%> <%@ page contentType="application/vnd.ms-excel" %> <% response.setHeader("Content-Type","application/vnd.ms-excel");%> <% response.setContentType("application/vnd.ms-excel");%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    but it is still a problem of not able to write in excel sheet

    JSPs do one thing well - generate HTML. There aren't intended as general purpose transaction handlers and they certainly don't know how to generate XLS files.
    To generate an XLS file try the POI package, which you'll find links to from www.sourceforge.org.
    To generate one in a web server environment use a servlet, and call the POI classes from that.

  • How to set value for Dropdown control using Querystring filter wepart

    Hi,
    I have a dropdown in my customized list form and need to set the value for the dropdown control using query string filter web part.
    I am able to set value for textbox control using Query String Filer web part.
    But, since the dropdown values are not populated on form load, the value is not set for dropdown control.
    How to load the values in dropdown control on form load and set a value using Query String filter webpart?
    Thanks,
    dhijit

    Hi,
    According to your post, my understanding is that you want to filter choice field using Query String Filter web part.
    To filter using query string filter web part, we can set the default value for the choice field in the query string filter web part panel as below, then connect to the list.
    Now it would be filter by the value you have set.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for