About screen designing

hi,
   I have designed a tablecontrol screen with 2 tabstrip buttons as Reservation and Cancellation. and also having the push buttons with icons like 'ADD', 'Change Hotel', 'PageDown' and 'Page Up',
    Here, my problem is While I am clicking ADD push button it should append new rows to the table. How to code it in Module user command?
   and also want for the other radio buttons as well.
Can any one please helpme out in this regard, because I am very new to Module pool programmes.
Thank you,
-kanthi.

Hi,
check this sample program:
*& Module pool       ZSUDHA_TRANS4_PRACTICE                            *
PROGRAM  zsudha_trans4_practice                  .
TABLES:knbk.
CONTROLS tc TYPE TABLEVIEW USING SCREEN 200.
DATA:v_kunnr LIKE knbk-kunnr,
     v_ucomm LIKE sy-ucomm,
     sel TYPE c.
DATA:BEGIN OF itab OCCURS 0,
     banks TYPE knbk-banks,
     bankl TYPE knbk-bankl,
     bankn TYPE knbk-bankn,
     bkont TYPE knbk-bkont,
     koinh TYPE knbk-koinh,
     chk TYPE c,
     END OF itab.
*&      Module  mod1  INPUT
      text
MODULE mod1 INPUT.
  IF v_kunnr IS INITIAL.
    MESSAGE e000(zz) WITH 'Please enter the customer number.'.
  ENDIF.
  IF v_kunnr <> ' '.
    SELECT  SINGLE kunnr FROM knbk INTO (v_kunnr) WHERE kunnr = v_kunnr.
    IF sy-subrc NE 0.
      MESSAGE e000(zz) WITH 'Please enter a valid customer number.'.
    ENDIF.
  ENDIF.
ENDMODULE.                 " mod1  INPUT
*&      Module  USER_COMMAND_0100  INPUT
      text
MODULE user_command_0100 INPUT.
  CLEAR  : itab,v_ucomm.
  REFRESH: itab.
  CASE sy-ucomm.
    WHEN 'DISPLAY' OR 'CHANGE'.
      IF v_kunnr IS NOT INITIAL.
        SELECT banks
         bankl
         bankn
         bkont
         koinh
         FROM knbk
         INTO TABLE itab
         WHERE kunnr = v_kunnr.
      ENDIF.
      v_ucomm = sy-ucomm.
      LEAVE TO SCREEN 200.
    WHEN 'BACK'.
      LEAVE TO SCREEN 0.
    WHEN 'EXIT'.
      LEAVE TO SCREEN 0.
    WHEN 'CANC'.
      LEAVE TO SCREEN 0.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT
*&      Module  USER_COMMAND_0200  INPUT
      text
MODULE user_command_0200 INPUT.
  CASE sy-ucomm.
    WHEN 'DELETE'.
      DELETE itab WHERE chk = 'X'.
      CLEAR itab-chk.
      DESCRIBE TABLE itab LINES tc-lines.
    WHEN 'SAVE'.
      MODIFY  itab INDEX tc-current_line.
    WHEN 'INSERT'.
      CLEAR itab.
      APPEND itab.
      DESCRIBE TABLE itab LINES tc-lines.
    WHEN 'LIST'.
      LEAVE TO LIST-PROCESSING.
      LOOP AT itab.
        WRITE:/ itab-banks,itab-bankl,itab-bankn,itab-bkont,itab-koinh.
      ENDLOOP.
    WHEN 'BACK'.
      LEAVE TO SCREEN 100.
    WHEN 'EXIT'.
      LEAVE TO SCREEN 0.
    WHEN 'CANC'.
      LEAVE TO SCREEN 0.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0200  INPUT
*&      Module  STATUS_0200  OUTPUT
      text
MODULE status_0200 OUTPUT.
  IF v_ucomm = 'DISPLAY'.
    LOOP AT SCREEN.
      screen-input = 0.
      MODIFY SCREEN.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      screen-input = 1.
      MODIFY SCREEN.
    ENDLOOP.
  ENDIF.
  SET PF-STATUS 'XXX'.
  IF v_ucomm = 'DISPLAY'.
    SET TITLEBAR 'XXX'.
  ELSE.
    SET TITLEBAR 'CHNG'.
  ENDIF.
ENDMODULE.                 " STATUS_0200  OUTPUT
*&      Module  mod2  INPUT
      text
MODULE mod2 INPUT.
  IF sel = 'X'.
    itab-chk = sel.
    MODIFY itab INDEX tc-current_line.
  ELSE.
    CLEAR itab-chk.
  ENDIF.
ENDMODULE.                 " mod2  INPUT
*&      Module  STATUS_0100  OUTPUT
      text
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'XX1'.
  SET TITLEBAR 'XX1'.
ENDMODULE.                 " STATUS_0100  OUTPUT
regards,
keerthi

Similar Messages

  • I would like to inquire about the design of iphone 5 .. why, iphone 5 is designed with a slightly wider screen ..?

    I would like to inquire about the design of iphone 5 .. why, iphone 5 is designed with a slightly wider screen ..?

    Apple's design team was looking to build an iphone with a screen that had a 16:9 aspect ratio. Call it pressure to keep up with the competition.
    Plus, LTE is so FAST! Time to turn up the speed!

  • Visual studio lightswitch takes very long time (hangs for 20 sec) when changing entities properties in screen design

    hi, I have lightswitch project that is growing up every day. Now it has 200 database table and about 450 default screens. When I first started the lightswitch project with few tables
    (about 50 tables), it responses very fast. Gradually when I created the screens, the response takes 10 seconds for any changes I made in the screens or on the tables (*.lsml). Now, it takes 20 seconds (-+2 sec) to be able to do the next change!. For example,
    changing the group name, entity input type, width, table summary property ,arrange fields in the groups, change display name (which I change the most),,etc. Just imaging that I can change 3 things on a minute! I am using lightswitch with VB coding , but no
    programing codes (yet), I uses only HTML screens, no extensions, connected with SQL express 2012 (but I think that has nothing to do with the slowness since the problem is on the screens design time), I have created the project from scratch three times, with
    visual studio 2013 ultimate update 3, update 4, and now with Update 5 CTP 1 !! Yet, the same result. Strange that the freezing time is always about 20 seconds!! Any idea why this is happening? Any resolution?! Regards, Hasan

    Hi Michael 
    again i appreciate your answer ... 
    i was trying to implement your suggested workaround of my problem, unfortunately, it won't work with me !  i cannot split the
    project to smaller modules because of:
    all screens are connected to each other's with buttons and clicks (view selected) 
    i have changed all the "display names" of tables fields (translation). i would have problem in translation whenever i
    need to add tables or fields in the database, then i need to repeat that for all modules. i know that i can use other translation method, but i have already translated thousands of words !
    i have spent 2 months in 2013 to learn MVC, but i did not like it. it is somehow complex for me. i am a volunteer developer (actually i
    am network designer ). 
    i may lose the authentication , as i need to log-in to each module separately.
    is there any root solution to this problem ; the VS Lightswitch (or IDE) slowness when there
    is a lot of screens? maybe in VS2015?
    i had great hopes for the lightswitch, and still it is the only IDE that i can use for the "Charity
    ERP" project.
    regards,
    Hasan

  • Screen Design in BPA 11g

    Hi
    I am trying to design a screen in BPA 11g
    i am unable to do so but i can create a screen object and use it in access diagram and EPC but unable to specify the exact screen design
    Let me know how to design a screen in BPA
    Thanks & Regards
    Bala

    Dear Indiranjithn,
    all you have to do is type "webdynpro" on SDN and press the "search" button.
    ;o)
    There's a whole sea of links about what you're looking for.
    You could start here for example:
    [http://www.sdn.sap.com/irj/sdn/nw-wdabap]
    Kind Regards
    /Ricardo Quintas

  • How to show screen design in .srf (from Screen Painter) using SDK?

    How to show screen design in .srf (from Screen Painter) using SDK?

    You need to use the LoadBatchActions method of the Application object to load .SRF files.
    John.

  • My new iPod touch is getting really warm while I use it. Is it normal? I mean, I have silicone cover, maybe it's the reason for iPod being so HOT?... How do you think, is it too important to have a cover on the iPod? How about screen protector? :S

    My new iPod touch is getting really warm while I use it. Is it normal? I mean, I have silicone cover, maybe it's the reason for iPod being so HOT?... How do you think, is it too important to have a cover on the iPod? How about screen protector? :S

    My new iPod touch is getting really warm while I use it. Is it normal? I mean, I have silicone cover, maybe it's the reason for iPod being so HOT?... How do you think, is it too important to have a cover on the iPod? How about screen protector? :S

  • A question about screen updation of T61

    Hi there
    I got a question about screen updation. 
    Currently, my T61's screen is 14.1 XGA TFT 1028x768, and it can't work, thus I am considering to replace it with the better 14.1" SXGA+ LCD SCREEN .
    However, I am a little concerned about the compatiblility problem, hence I just wonder whether the new SXGA+ screen can fit for my current T61 laptop or not?? Thanks a lot for your answers!
    Regards
    Peng

    you can buy it from IBM parts, and it will then sure to work for your laptop.
    Here is the manual that shows you how and what parts you need:
    http://www-307.ibm.com/pc/support/site.wss/MIGR-67979.html
    P.S. If you have warranty this upgrade will void your remaining laptop warranty, as the LCD is not CRU (customer replaceable unit). 
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • Need opinion about new design of my site

    Hi,
    please can you tell me what do you think about new design of my site http://www.francistravel.com
    I still work on it and still try to improve it.
    Thanks a lot,
    Petr

    I would check the navigation -- when you click e. g. German version there is no link back to the English version. If you try the Czech version and then click the English version link you will not get back to the .com domain but to the .ch domain.

  • Screen design

    hi,
    i have to design some data entry screens and update custom tables. what are the tips for screen design or the process flow ?  any tip will be helpful..
    thks

    hi,
    I didnt get your question exactly but if you want to design screen  , open the transaction se51( Screen painter). Mention your program name and a screen number ( 4 digit number) and click on 'create' and give its description.
    First create the layout ( layout tab ) of your screen ie. the various components ( raadiobutton, text , any table ) and give unique name to all the components. for creating these component , just use drag and drop.
    now comes the programing part, first click on the 'Flow Logic' of the screen. you have two standard events here ie PAI and PBO which includes two commented module.  In PBO ( process before output) create a module for what ever operation you want to do on screen before displaying it. In PAI ( process after input) create a module for what ever operation you want to do on screen after displaying it or any user action.

  • Documentation about Screen, Menu and Field Exits

    Hi all!!
    I need some documentation about Screen, Menu and Field Exits.
    I´m very interested specially on steps by steps.
    My mail is [email protected]
    Helpful posts will be rewarded.
    Thanks in advance and regards,
    Manuel.

    <b>Types of Exits </b>
    There are several different types of user exits. Each of these exits acts as hooks where you can attach or "hang" your own add-ons.
    <b>Menu Exits</b>
    Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
    SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item’s text when activating the item in an add-on project.
    <b>Screen Exits</b>
    Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.
    <b>Function Module Exits </b>
    Function module exits add functions to R/3 applications. Function module exits play a role in both menu and screen exits. 
    When you add a new menu item to a standard pull down menu, you use a function module exit to define the actions that should take place once your menu is activated. 
    Function module exits also control the data flow between standard programs and screen exit fields. SAP application developers create function module exits by writing calls to customer functions into the source code of standard R/3 programs. 
    These calls have the following syntax: 
    CALL CUSTOMER-FUNCTION ‘001’.
    Field Exits
    Field exits allow you to create your own programming logic for any data element in the Dictionary. You can use this logic to carry out checks, conversions, or business-related processing for any screen field.  Example: The data element BBBNR identifies a company’s international location number. You might want to set up your R/3 System so that all international location numbers are larger than 100. 
    The field exit concept lets you create a special function module that contains this logic. 
    You assign the special function module to the data element BBBNR. You then assign the module to any programs and screens in which users can add new international location numbers. When you activate your field exit, the system automatically triggers your special routine whenever a user enters a company location number. 
    In 4.6c, you can use "RSMODPRF" program to create field exits.
    An example of a user exits :-
    MODULE user_exit_0001 INPUT 
        CASE okcode.
            WHEN 'BACK OR EXIT'.
                CASE sy-dynnr.
                        WHEN '100'.
                             SET SCREEN 0.
                             LEAVE SCREEN.
                        WHEN '200'.
    **** Note that you can write any code that satisfy your needs.                                                     ****
    **** But in this case, this was wrote as a sample code for reference sake.                                    ****
    **** And you can test it.                                                                                ****
                             SET SCREEN 100.
                             LEAVE SCREEN.
                 ENDCASE.
          ENDCASE.
    reward  points if it is usefull..
    Girish

  • Error in About Screen

    Hi
    I am using SQL Developer version 1.1.1.25, (Build main25.14) and it has error in About Screen,
    i am gettign "null" in front of Version number on about screen.
    here is the exect text what i am getting
    (null) Verision 1.1.1.25
    BUILD MAIN- 25.14
    so what is the null mean.
    Ravi

    Null means no value for the string in java. They forgot to set the product name somewhere. Not a big deal, but they should obviously get it fixed. (And yes, mine is broken too)
    Eric

  • STUCK in About Screen

    Help
    my playbook is sort of stuck. Basically i can swipe and take pictures etc, but in the settings screen, it is stuck on the About screen.
    i cant do anything else in the settings menu.
    i tried the already mentioned reset, by holding down the power button for 10-15 seconds.....and nothing happens.
    if i try to turn it off from the power button in the main menu, it just sits at a black screen
    i wonder if my power button is screwed. i dont really feel it move, but still i hold my finger on it for over 20 seconds and nothing happens
    thanks in advance for any help
    "[b][URL=http://www.rsoutlet-4u.com/rosetta-stone-portuguese-c-4.html]Rosetta Stone Portuguese[/URL][/b]
    [b][URL=http://www.rsoutlet-4u.com/rosetta-stone-russian-c-15.html]Rosetta Stone Russian[/URL][/b]"

    Reset the Playbook by holding down ALL three power, volume up and volume down keys for about ten seconds.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • About bought Design CS6 on US store, can I install to HK windows PC??

    About bought Design CS6 on US store, can I install to HK windows PC??

    This post initially appeared in the Adobe Captivate forums. It has since been moved to the InDesign forums.

  • Concerned about screen burn in with alarm clock app

    I recently downloaded Night Stand HD, then it occurred to me that the clock display would remain on all night. The auto-lock feature needs to be disabled for the alarm to work. Do I need to be concerned about screen burn with the iPad display? I know the latest LCD displays are not susceptible to it, but I want to be sure before I start using it. The app has a dimming feature, but I'm not sure if that is enough protection.
    Thanks

    Only CRTs and Plasma screens are subject to burn in. The iPad won't.

  • Concerned about Screen

    I know that apple says that the screen is scratch "resistant" but does anyone have any suggestions (beside the obvious.."dont scratch it) about screen protectors. Will they limit the functions or sound of the phone? Any suggestions on which one might be better or are they all the same basically

    I bought this along with the iPhone: http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=B31 9498&nplm=TN612LL/A
    It's easy to apply and it doesn't interfere with the screen functions at all. Best of all it works via static cling so there's no adhesive to mess the screen.

Maybe you are looking for