Table controlls in module pool programming

Hi all.
I have an issue in module pool program.
I created a table controll in the screen through table controll wizard.
In that if I enter the data for 10 records(more than 1),then I(pressed)clicked on ENTER . then only first record is staying in the table controll.all other recods are
going(disappering) from the table controll.
Can any body help me to solve this problem.
Thanks in Advance,
Regards.
Eswar

you are not storing the entries given in the table control.
i can give you an idea.
declare an internal table which has the same structure as of the table control.
in the PAI event, refresh the internal talbe.
loop at the table control. move all the entries of the table control to the internal table.
in the PBO event, refresh the table control. count the number of lines in table control. insert all the lines of internal table to the table control one after another.
hope this helps you.
thanks
pavan

Similar Messages

  • CURRENCY FIELD IN TABLE CONTROLLS OF MODULE POOL PROGRAM

    Hi All.
    I am fasing an issue in module pool.
    I am using a table controll to display the data on the screen.
    There is  one field of currency type .
    the amount in that field is -ve(Negative) then the program giving a short dump by saying that the problem is  in the conversion.
    if the field is + ve(means  no sign) it's executing fine.
    Can any body help me to solve this issue,
    Thanks in advance,
    regards,
    venkat

    Hi Venkat,
    Open the screen painter (SE51) and go to the currency field in the table control on the screen. In the "TEXT" field in the toolbar, delete a character (_) and type in "V" as the last character. The issue should be solved.
    Regards,
    Manoj

  • Use of "Pool Table(s)" in Module Pool Program

    Hi,
    I often see/hear that Pool tables play an important role in Module Pool Programs.
    anybody please explain me how Pool tables are used in Module Pools?? => Did you look for any documentation?
    if possible with code snippets. =>NO.
    Thanks,
    Kranthi.
    Edited by: kishan P on Nov 14, 2010 7:23 PM

    Hi,
    I often see/hear that Pool tables play an important role in Module Pool Programs.
    anybody please explain me how Pool tables are used in Module Pools?? => Did you look for any documentation?
    if possible with code snippets. =>NO.
    Thanks,
    Kranthi.
    Edited by: kishan P on Nov 14, 2010 7:23 PM

  • Table Control in Module Pool Programming

    In my Module Pool program I have created a Table Control on my screen. In my Table one column is the Checkbox. When I make changes in any of the Checkbox and scroll the Table or scroll with mouse,the data is lost.I am updating the database table and for that I have created a 'SAVE' button.But to make the changes I have to Scroll the Table on the screen and the changed data is lost.
    Please guide me or if possible then tell me the Flow Logic of Module Pool with Table Control??
    Thanks for the Help....

    PROCESS BEFORE OUTPUT.
    MODULE INITIALIZE.
    *&spwizard: pbo flow logic for tablecontrol 'TBLALLOC_CYC'
      module TBLALLOC_CYC_change_tc_attr.
    *&spwizard: module TBLALLOC_CYC_change_col_attr.
      loop at   GT_NEW_ALLOC
           into GT_NEW_ALLOC_WA
           with control TBLALLOC_CYC
           cursor TBLALLOC_CYC-current_line.
        module TBLALLOC_CYC_get_lines.
    *&spwizard:   module TBLALLOC_CYC_change_field_attr
      endloop.
    MODULE STATUS_9003.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_9003.
    *MODULE USER_COMMAND_9003.
    *&spwizard: pai flow logic for tablecontrol 'TBLALLOC_CYC'
      loop at GT_NEW_ALLOC.
        chain.
          field GT_NEW_ALLOC_WA-/BIC/ZALLOCCYC.
          field GT_NEW_ALLOC_WA-/BIC/UFACT_FLG.
          field GT_NEW_ALLOC_WA-CHANGEDBY.
          field GT_NEW_ALLOC_WA-CH_ON.
          field GT_NEW_ALLOC_WA-/BIC/ECHAT.
          module TBLALLOC_CYC_modify on chain-request.
        endchain.
      endloop.
    module TBLALLOC_CYC_user_command.
    *&spwizard: module TBLALLOC_CYC_change_tc_attr.
    *&spwizard: module TBLALLOC_CYC_change_col_attr.
    module TBLALLOC_CYC_user_command.
    MODULE USER_COMMAND_9003.
    MODULE INITIALIZE OUTPUT.
    At the time of initialization of the screen data is to be displayed
    by calling Function Module ZUFACTS_FETCH_ALLOC_CYC.
    CALL FUNCTION 'ZUFACTS_FETCH_ALLOC_CYC'
      TABLES
        T_ALLOC       = GT_NEW_ALLOC
    Pass the value displayed in Internal Table GT_OLD_ALLOC.
    GT_OLD_ALLOC[] = GT_NEW_ALLOC[].
    MOVE GT_OLD_ALLOC TO GT_OLD_ALLOC.
    *****Initialize the ok_code.
    CLEAR OK_CODE .
    ENDMODULE.                 " INITIALIZE  OUTPUT
    MODULE USER_COMMAND_9003 INPUT.
    CASE : OK_CODE.
      WHEN 'SAVE'.
        CALL FUNCTION 'ZUFACTS_UPDATE_ALLOC_CYC'
          TABLES
            T_OLD_ALLOC                 = GT_OLD_ALLOC
            T_NEW_ALLOC                 = GT_NEW_ALLOC
          EXCEPTIONS
            NO_FIELD_UPDATED            = 1
            UNSUCCESSFUL_UPDATION       = 2
            OTHERS                      = 3
        IF SY-SUBRC = 1.
          MESSAGE I005 .
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        IF SY-SUBRC = 2.
          MESSAGE E006.
        ENDIF.
      WHEN 'CANCEL' OR 'BACK' OR '%EX' OR 'RW'.
        LEAVE TO SCREEN 0.
      ENDCASE.
      CLEAR OK_CODE.
    ENDMODULE.                 " USER_COMMAND_9003  INPUT

  • Table control of Module Pool Program

    Hi,
    I need a help in the table control of Module pool.
    Here I am using 40 columns in the table control. Out of 40, 30 columns are numeric type.
    Now the client need only 5 columns total in the last row. I made it as per requirement.
    But it is giving 5 columns total and the remaining 25 columns are filled zero value of total row.
    Now the client doesn’t want to display the zero for these 25 columns in the Total row.
    It’s very urgent. Please help on this.
    Reward points will be providing for useful answers.
    Advance Thanks 4 all.
    Regards,
    KBS REDDY

    Hi,
    In your PBO, inside LOOP ENDLOOP, have a module for screen modifications and for the last row that has totals, you set screen-invisible = 1 inside LOOP AT SCREEN. ENDLOOP.
    For example,
    If your screen has following PBO Logic,
      MODULE ...
      MODULE ...
      LOOP ...
    ****New module here for screen modification if does not ****exist already.
        MODULE modify_screen.
      ENDLOOP.
    and then in MODULE modify_screen.
      MODULE modify_screen.
    ****Basically check MATNR EQ 'TOTAL' or some thing like ****that
        IF <your condition for totals line>.
          LOOP AT SCREEN.
    ****Note instead of screen-name, you can assign a screen ****group to all columns w/o totals and then use
    ****SCREEN-GROUP1 EQ <your grp> logic
            IF screen-name EQ <your column name w/o totals>.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDMODULE.
    On another note, since you are already disabling this fields in the last row, you have all the screen modification logic already I guess, so just add SCREEN-INVISIBLE = 1 for all fields w/o totals..
    Hope this helps..
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • Table control in Module pool Program

    Hi All,
    here i have a small requirement on module pool application.
    i will explain my scenario more in detail.Here i have one delivery number.if i give this delivery number and click on capture it will capture all the materials for that delivery numeber in a table control.here the material may be one or more than one.we can select table control records.so if the material is more than one user has to select only one material once.if he will try to select the second material we want to display an error message will display.how to handle this requirement.
    please give me suggestions regarding coding also.
    Thanks in advance,
    swami
    Edited by: swaminath kamasani on Oct 1, 2008 11:50 PM

    Do you need to know how to display an error message if multiple lines are selected or the coding for the entire requirnment??
    For error message part:
    Dont set the Table control attributes - multiple selection.

  • How to use table control in module pool programming

    Hi
    I want to use a table control to fetch some data from mara table.
    Please guide me with the procedure and the steps which I can follow to complete my program correctly.
    thanks
    Lalit Gupta

    As [vinraaj|http://forums.sdn.sap.com/profile.jspa?userID=3968041] wrote, call transaction SE51, there is a Wizard to help you generate the table control, it will create the table control and some includes with PBO/PAI modules > Read [Using the Table Control Wizard|http://help.sap.com/saphelp_bw/helpdata/en/6d/150d67da1011d3963800a0c94260a5/frameset.htm]
    Also there is a tutorial in the wiki, read [Learn Making First Table Control |http://wiki.sdn.sap.com/wiki/display/ABAP/LearnMakingFirstTableControl] by [Krishna Chauhan|http://wiki.sdn.sap.com/wiki/display/~nc0euof]
    Regards,
    Raymond

  • Suppress table control in module pool programming

    Hi Frnds
    I need your help to find out if is possible to suppress a table control by configuration in SPRO.
    I am able to suppress all the other fields on the screen using the configuration in SPRO,but for table control it is not working that ways.
    By programming in PBO I am able to proceed  but I need to find out if it possible to do the same through configuration.
    Thanks
    Mitesh
    null

    add  module vertical_scroll in PBO and try.
    module vertical_scroll output.
    data n type i.
      describe table it_div lines n.
    tabctrl-lines = n.
    endmodule.
    reward if useful.

  • Table controls in module pool programing

    hello all,
         i am a novice in ABAP. i am not able to save the details i gave in the table control. i am giving the material number(MATNR) in a seperate text box and the fileds like ERNAM,LAEDA,AENAM in the table control. but when i am saving i am able to find only the MATNR value in the mara table.
        what is the syntax to save the values of the table control into the MARA table.
    thanks & regards,
    seenu

    HI,
      Step 1 : TO move the values from the screen to ABAP Program.
    The values of all the input fields will be available in ABAP when PAI event is triggered. To access the values in a table control, you will need to follow the below mentioned procedure....
    <b>in PAI Event
    ( ITAB is Table Control and WA_ITAB is work area)</b>
    LOOP AT ITAB INTO WA_ITAB.
    MODULE READ_SCRN_VALUES
    ENDLOOP
    MODULE READ_SCRN_VALUES INPUT
    move  WA_ITAB to WS_ITAB.
    WS_ITAB is another Work area.
    ENDMODULE
    This way you can moves from screen to ABAP Program. Pass WS_ITAB and MATNR (Matnr - material number on the screen) to MARA.
    After updating MARA Table, check the table to view the values of the required fields.
    Click the link below to know more about Passing Values from Screen to Program.
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba9e735c111d1829f0000e829fbfe/content.htm
    To know about controlling the data transfer from Screen to Program
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbabb035c111d1829f0000e829fbfe/content.htm
    Also check if you are using MODIFY or INSERT or UPDATE command in your program to update MARA Table, then click the link below to know more about these commands.
    Insert
    http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm
    Update
    http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3a94358411d1829f0000e829fbfe/content.htm
    Modify
    http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3ac8358411d1829f0000e829fbfe/content.htm
    Hope this answers your question.
    Regards,
    Vara

  • How to update a dbtab via table contols in module pool programs ?

    HI All ,
         I am creating a transaction with 2 screens.the 2nd screen displays the list of a dbtable according to some of the selections made on the 1st screen. In my 2nd screen I want to provide the option to the user to update the db table with a new row. Can anyone guide me in solving the problem?
    Thanks  in Advance ...
    Ranjita

    You can use the following code in the PAI of the screen.
    LOOP AT itab.
      MODULE modify_from_screen.
    ENDLOOP.
    MODULE modify_from_screen INPUT.
      MODIFY itab FROM wa INDEX tctrl-current_line.
      IF sy-subrc NE 0.
        APPEND wa TO itab.
      ENDIF.
    ENDMODULE.
    itab - The Internal table.
    wa - The name of the structure on the screen
    tctrl - Name of the table control
    Use this itab to save to your database table using the statement:
    MODIFY dbtab FROM TABLE itab.
    Regards,
    Manoj

  • Search help in table view of Module pool programming

    Hi SAP all.
    here i have created one screen in se80 and i have created one table control.
    in the table control i have created one field ,for that field i just want to have the search help refer to C_KUNNR.
    when i entered C_KUNNR in the search help box and click on from dictionary it is raising error message saying that table not active in ABAP Dictionary.
    can any body help me in this.
    regards.
    Varma

    Hi,
    In the main screen-.Goto Flowlogic->Goto Layout-->U can give Standard search help name DEBI.
    else.
    Use the Process on Value Request
    Regards
    Arbind

  • How can we select multiple rows in table control for module pool program?

    hi guru's
                 i cannt able to select multiple table control rows for deletion of records please give any code to select rows?
    regrards,
    satheesh.

    On the Table Control attributes there is a "Selectability" option where you choose one of: None, Single, or Multiple.  In your code you then need to pick up which rows have the selection column set to 'X'.

  • Function module / table which lists screen numbers in module pool program

    Hi everyone,
    I wish to make a list of all screen numbers used in my module pool program Is there any FM / table which maps module pool program name with all the screens used in it?
    For example, if my module pool is SAPMZPROG and it has screens 9001, 9002 and 9003, then I want to have a report as follows:
    Input to the report (selection screen): SAPMZPROG
    Output:
    9001
    9002
    9003
    Thanks,
    Shailesh

    Hello
    Try tables D020S, D020T

  • Using f4 help for table field in module-pool

    Hi All,
    I am using a table-control in module pool programing.
    Fields are coming from MAKT table.
    I am trrying to provide a functinality so that when choose
    a material no using f4 help for MAKT-MATNR field
    the corresponding value of MAKT-MAKTX should
    appear itself in corresponding table-control field.
    It's not happening right now.
    How I can create that functionality??
    Thanx in advance

    Hi
    Please write the custom F4 Help logic for material number in the block process on value-request. in PAI
    process on value-request.
    Search Help For UOM
      field wa_screen_fields-material  module Material_help.

  • Call Module pool program in report

    Dear guys,
    i have Module pool program ZSDMODPOOL,which is transaction ZSDORD(ADDON SCREEN),Which creates sales order and shipment.
    Now i want, one new screen to display before this ZSDORD Screen. In new screen i will have Table control having Internal table displaying in it.
    Now, My requirement is how to pass this New screen internal table datas into Module pool program.
    or i can put question as how to call module pool program
    from other report program or screen.
    Pls give me ideas.
    ambichan

    You can call the transaction using CALL TRANSACTION, or you can setup a DIALOG and call it using CALL DIALOG.  Using CALL DIALOG you will be able to pass values.  You create a DIALOG via transation  SE35.
    Regards,
    Rich Heilman

Maybe you are looking for