Adding input box to screen painter

Hi abapers,
my question is...... is it possible to add input box to screen painter though code,
NOT by drag and drop?

Well it would probably be technically possible to create a complete dynpro "on the fly" in memory and then save and generate it (i.e. replicate everything SAP does in SE80) and then display it to the user... however the risks are high, and the user might not like the delay while your program does this.  The usual practice is to define the field on the screen, and then hide it if it is not required under some circumstances, using the usual "loop at screen. screen-active = '0'. endloop." technique.

Similar Messages

  • How to create a drop down box and text box in screen painter?

    Hi i am totally new to this concept of screen painter..please can any tell me
    how to create drop down box in screen painter?
    How to create or display default date and time values?
    How to create text box for giving comments?
    How to store the records that we are entering in a table?
    Please can any one send me the procedure for creating all these its very urgent useful information will be surely rewarded.

    Hi,
    Check all these.
    1.how to create drop down box in screen painter?
    To get Drop Drown Box on screen .
    Follow these steps.
    1.
    Go to T.Code SE51 and Select Laypout for the Screen.
    2.
    Double click on the field for which u want Dropdown box.
    3.
    Then U will see Name ,Text ,DROPDOWN.Click on that and select List Box or ListBox with key . Better to to select first one.
    4.
    Save and Activate ur screen .
    5.
    Enter the following piece of code in the PBO of the screen.(Change for ur requirement).
    6.
    The following code should be written under PROCESS BEFORE EVENT in the MODULE.
    TYPE-POOLS :vrm.
    DATA:
      i_natio TYPE vrm_values, "-->Table that is passed through FM vrm_set_values
      w_natio LIKE LINE OF i_natio.
    DATA:
    BEGIN OF i_t005t OCCURS 0,
        land1 TYPE t005t-land1,
        natio TYPE t005t-natio,
    END OF i_t005t.
    IF i_t005t[] IS INITIAL.
      SELECT land1 natio
         FROM t005t
           INTO TABLE i_t005t
       WHERE spras = sy-langu.
      IF sy-subrc = 0.
      LOOP AT i_t005t .
          w_natio-key = i_t005t-land1.
          w_natio-text = i_t005t-natio.
          APPEND w_natio TO i_natio.
          CLEAR w_natio.
      ENDLOOP.
      ENDIF.
    ENDIF.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
                          id = 'I_IT0002-NATIO' "-->Field for which dropdown is needed.
                    values = i_natio
    EXCEPTIONS
       id_illegal_name = 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.
    2.1.How to create or display default date and time values?
    1.
    create input field for DATE and TIME on screen.ex. DATE1 and TIME1 are screen field names .
    2.
    Just assign SY-DATUM to DATE1 and SY-UZEIT to TIME1 under PROCESS BEFORE EVENT.
    3.How to create text box for giving comments?
    1.
    Define one variable in the TOP include with type STRING means Global variable.
    2.
    Create one input field by giving screen field name which u have defined in the above step.
    4.How to store the records that we are entering in a table?
    For this case.. Create one table control. you can select one record and create record in the Z table by pressing button on Application toolbar..
    Check the following steps to handle Table control.
    1).
    U should take one variable in your internal table or in structure which
    is used for table control fields
    ex :
    data :
    begin of itab occurs 0 ,
        mark type c , "This is to select the record.
        matnr like mara-matnr ,
        matkl like mara-matkl,
        maktx like makt-maktx,
    end of itab .
    Controls: TABC types TABLEVIEW using screen 100.
    2).
    This mark variable should be given in Table control properties.
    follow the path
    double click on the table control-->attributes .->select
    w/SelColumn and in that itab-mark. Check in the figure.
    [Table control properties screen|http://bp2.blogger.com/_O5f8iAlgdNQ/R99gOUH8CXI/AAAAAAAAA9I/d3gOum1fJ6s/s1600-h/pic28145-796618.jpg]
    3).
    After that. Take this example.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT ITAB WITH CONTROL tabc
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    LOOP AT ITAB.
       Module read_table_control.
    ENDLOOP.
    module user_command_0100.
    In this Module read_table_control, You should write the following code
    MODULE read_table_control INPUT.
    MODIFY itab INDEX tabc-current_line."( This will update the
    "ITAB table MARK field with 'X ' whatever we have selected
    "on table control.)
    ENDMODULE.
    4)
    If you want to Delete some of the records from Table control
    follow this code …Create one pushbutton and give Fucnction code to that
    and write below code
    CASE OKCODE.
    WHEN 'CREATE'.
    LOOP AT itab WHERE mark = 'X'.
    "Use UPDATE statement to create new record.
    ENDLOOP.
    ENDCASE.
    I hope that you will get something.
    Regards,
    Venkat.O

  • Background color change option for box in screen painter

    have created a box in screen painter . is there any option to change the back ground color of this box.
    please help

    No, you can not change the background color of your screen painter box.

  • Can any share me the procedure to create a text box in screen painter?

    Hi Friends,
                    Can anyone share me the procedure to create a text box in screen painter and browser for attaching files ....please its urgent....
    Points will be definetly rewarded.
    Thanks

    Refer to
    How to create a text box in ascreen painter?
    where another user (venkateshwar reddy) has asked a very similar question... is this an exam question?
    Jonathan

  • How to add record in List Box in Screen Painter(SE51) ?

    I am not able to add record in List box in Screen Painter using se51 Transaction code.
    Regards,
    Nirav Desai

    Dear All,
        I found the solution.
    If you are facing same problem , follow the bellow steps.
    1. Declare in report.
    TYPE-POOLS: VRM.
    DATA: NAME TYPE VRM_ID,
    LIST TYPE VRM_VALUES,
    VALUE LIKE LINE OF LIST.
    2. IN PBO Event.
    clear: list.
    NAME = 'TXT_PERIOD'.    " your screen field name
    VALUE-KEY = '1'.
    VALUE-TEXT = 'LINE 1'.
    APPEND VALUE TO LIST.
    VALUE-KEY = '2'.
    VALUE-TEXT = 'LINE 2'.
    APPEND VALUE TO LIST.
    VALUE-KEY = '3'.
    VALUE-TEXT = 'LINE 3'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING ID = NAME VALUES = LIST.
    Regards,
    Nirav Desai

  • How to create Drop Down box in screen painter..??

    Can anybody give me sample code or detailed description about creating Drop-Down Box in a screen...??
    I have created the drop down box in screen..
    But how to make data to be visible in Dropdown box, when i click the drop icon in that box...???
    Regards
    Pavan Sanganal

    Here are couple of DEMO programs for the same functionality
    DEMO_DROPDOWN_LIST_BOX       
    DEMO_DYNPRO_DROPDOWN_LISTBOX 
    You execution sequence will be PBO - Process before output, then the screen is displayed and the PAI Process after input.
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • Adding field/column in screen painter SE51

    We are trying to add field BSEG-VBUND for transaction code FSB1 fast entry screen (program SAPMF05A screen 8503). The new column will be after CoCd. However as the image below shows, TradPart is only on the first row but is needed on all rows as the other fields are.
    We tried to use grouping to include BSEG-VBUND for all rows and in screen layout editor it seems to be correct.
    But, when the syntax is checked the error states BSEG-VBUND is not assigned to a loop and that it must appear in "PBO" (PROCESS BEFORE OUTPUT) and "PAI" (PROCESS AFTER INPUT).
    We added BSEG-VBUND to PAI but then received the error that this is not assigned to a loop.
    As a functional - not technical - consultant, I am unfamiliar with how to correct this. Any suggestions are greatly appreciated.

    Siripuram,
    Thanks for tying to help. As I am not an ABAP programmer but just functional support, I am unfamiliar with where to make the change.
    The current logic is below. Any help with this is appreicated.
    PROCESS BEFORE OUTPUT.
            MODULE DYNPRO_KOPF_MODIF.
            MODULE STATUS_SETZEN_Z.
            MODULE SCHNELLERFASSUNG.
            MODULE REF_STARTZEILE_SB.
          LOOP.
            MODULE REF_BELEGZEILE_SB.
          ENDLOOP.
            MODULE REF_FUSSZEILE_SB.
    PROCESS AFTER INPUT.
            MODULE EXIT AT EXIT-COMMAND.
            MODULE PAI_ANFANG.
          FIELD BKPF-XMWST MODULE XMWST_SAKO.
          LOOP.
          CHAIN.
    * GENERATE-BEGIN, PLEASE DO NOT DELETE
            FIELD BSEG-BSCHL.
            FIELD RF05A-KONTO.                                 "&FG&C
            FIELD BSEG-WRBTR MODULE STERN_BETRG ON *-INPUT.
            FIELD BSEG-MWSKZ.                                  "&F4&E
            FIELD BSEG-PRCTR.
            FIELD BSEG-KOSTL.
              FIELD BSEG-AUFNR.                                "&MC&A
            FIELD BSEG-BUKRS.
    * GENERATE-END, PLEASE DO NOT DELETE
            MODULE MWSKZ_DELETED.                    "Note1405100
            MODULE SCHNELLERFASSUNG_KB ON CHAIN-INPUT.  "Kontierungsblock
            MODULE SCHNELLERFASSUNG    ON CHAIN-INPUT.
            MODULE MWSKZ_PRUEFEN       ON CHAIN-INPUT.
            MODULE WAEHRUNGSFELDER     ON CHAIN-INPUT.
            MODULE BETRAG_PRUEFEN      ON CHAIN-INPUT.
    * MODULE-BEGIN, PLEASE DO NOT DELETE
            MODULE RW_PRUEFUNG_POS  ON CHAIN-INPUT.            "&MO&C
    * MODULE-END, PLEASE DO NOT DELETE
            MODULE GESCHAEFTSBEREICH.
            MODULE TXJCD_PRUEFEN.
          ENDCHAIN.
            MODULE ZEILE_SPEICHERN.
            MODULE ZEILE_KOPIEREN.
          ENDLOOP.
            FIELD RF05A-NEWBS MODULE MC_OBJEKT_SETZEN.
            FIELD RF05A-NEWBK MODULE MC_BUKRS_PARM_SETZEN.
          CHAIN.
            FIELD RF05A-NEWBS.
            FIELD RF05A-NEWKO.
            FIELD RF05A-NEWUM.
            FIELD RF05A-NEWBW.
            FIELD RF05A-NEWBK.
            FIELD OK-CODE.
            MODULE GET_REQUESTED_LINE.
            MODULE FUSSZEILE_BEARBEITEN.
          ENDCHAIN.
    PROCESS ON VALUE-REQUEST.
    * F4-BEGIN, PLEASE DO NOT DELETE
            FIELD BSEG-MWSKZ MODULE F4_MWSKZ.                  "&M4&E
    * F4-END, PLEASE DO NOT DELETE
            FIELD RF05A-NEWKO MODULE F4_NEWKO.
            FIELD RF05A-NEWUM MODULE F4_NEWUM.
    Any help with this is greatly appreciated.

  • List box in screen painter

    Hi
    I have created a screen in menu painter in which there are 3 drop down listbox .
    Each list box field has a domain created for it and the domain is assigned a value table.
    the value table contains data that data should be populated to list box.
    Now when i excecute the screen i am not able to select any data.
    any idea how can i achieve this

    Hi,
    I believe you have to manually fill up the list box using the function module VRM_SET_VALUES..
    Check this example...
    TYPE-POOLS: vrm.
    PARAMETERS: p_test TYPE char4 AS LISTBOX VISIBLE LENGTH 10.
    DATA: t_data TYPE vrm_values.
    INITIALIZATION.
    DATA: s_data TYPE vrm_value.
    s_data-key = 'ABCD'.
    s_data-text = 'First four'.
    APPEND s_data TO t_data.
    s_data-key = 'EFGHI'.
    s_data-text = 'Second four'.
    APPEND s_data TO t_data.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = 'P_TEST'
    values = t_data
    EXCEPTIONS
    id_illegal_name = 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.
    START-OF-SELECTION.
    WRITE: / p_test.
    Thanks,
    Naren

  • Regarding F4 help for text box in screen painter

    i am passing 4 valus in data element values tab, it is passing correctly to the text box, if i am making the text box to ouput only then the values and button for pop up is not comming, what do i need to do if i need values for output only.

    Hi Rocky,
    I think u can try out this.
    make ur textbox both input and output field and in PBO write
    loop at screen.
    if screen-fieldname = 'TEXTBOX'.
    screen-input = 0.
    endif.
    endloop.
    Regards.

  • How to create dropwdown list box values and checkbox in screen painter.

    Hi Experts,
    I need to know the creation of dropdown list box values and the checkbox to use in screen painter.
    I have 3 values to insert as:-
    INR,USD,EUR
    if user selects INR/USD/EUR, then it will store into the table field.
    And also want to know the checkbox functioning in screen painter, i.e. what should we write in PBO/PAI.
    I have found some sites to get knowledge, but didnot found anything that relates to my questions.
    So please help me!
    Thanks,
    Deepanshu

    Hi,
    For dropdown list box in Screen create a input field and choose Drop down by index.
    To populate the values write the logic in PBO as follows
    TYPE-POOLS : VRM
    DATA : field_id TYPE VRM_ID ,
                values  TYPE VRM_VALUES,
                 value   LIKE LINE OF values.
    PROCESS BEFORE OUTPUT
    MODULE list_fill_100
    MODULE list_fill_100 OUTPUT
    SELECT f1 f2 f3  FROM tab WHERE condition.
    value-KEY = f1.
    value-TEXT = f2
    APPEND value TO VALUES
    CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = 'i/o screen field'
                values = values.
    ENDMODULE.

  • How to read the contents of Input Field created via Screen Painter?

    Hi All,
    I have a module program / dialog program, on my second screen, I created an input/outbox field via screen painter of course,
    now in my PAI, how can I read the contents of the input/outbox field?
    Let's say the name of my input/outbox field is: P_WEKRS.  Note: Get Parameter and Set Parameter is ticked.
    PROCESS AFTER INPUT.
      LOOP WITH CONTROL TC_DATA.
        MODULE MODIFY_DATA.
      ENDLOOP.
    I want to get the value of the input/outbox field before my loop in table control?  I thought that it will work like normal parameter in non-dialog programs.
    Any helpful inputs will be appreciated/rewarded.
    Thanks.
    Jaime

    Hi, Jaime
    Do the following Change in you Follow Logic
    PROCESS AFTER INPUT.
    MODULE read_or_change_value. " Add this
    LOOP WITH CONTROL TC_DATA.
      MODULE MODIFY_DATA.
    ENDLOOP.
    Add the Bellow Module code in you Driver Program.
    MODULE read_or_change_value.
    DATA: P_WEKRS like " the Field on Screen. Must be the same name as on SCREEN. and Type must be same too.
    " Here you will find the Value in that Variable or if you will change the Value here you will find it change on Screen
    END MODULE.
    Please Reply if any Issue..
    Best Regards,
    Faisal

  • Input box on default selection screen

    Hi,
       how to create an input box on the default selection screen which will accept only 1275 characters.
      Can u please help me?
    Thanks in Advance,
    Sreekala.

    Hi Sreekala,
    You need to use the  CL_GUI_TEXTEDIT for creating the box, also you need use the dialog program for that.
    For more info on that class check this
    Usage of CL_GUI_TEXTEDIT
    Text box on selection screen
    Hope they helps you.
    Regards!

  • Firefox on my wife's laptop has lost the black bar that used to show Maps, Gmail etc. Now at the top of the screen there is a blank bar, triple height, with just the Google search input box. How do I get this back? Or is this a question for Google?

    When I open Firefox there is a black bar, sometimes vertical, other times horizontal, across the top, with links to Maps, Gmail etc. When I open Gmail the same links are listed across the top of the screen, right under the Tabs. In my wife's laptop this appears in the Firefox start-up screen, but not in the Gmail screen. At the top of her screen is a super-wide gray bar with just a Google search input box. Is this a Firefox or Google problem?
    She has XP Home SP3 and Firefox 9
    Thanks for any help.

    What happened yesterday may have been caused by the SOPA protest action that was joined by a lot of sites yesterday and such an action won't happen that often.
    * http://en.wikipedia.org/wiki/Wikipedia:SOPA_initiative/Learn_more
    *http://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache

  • Regarding input output field of the screen painter

    Hi Experts,
    I want to increase the height of the input output field in the screen painter.
    ie, multiline input output field.Is there any means?
    Or is there any alternative other than the input output field?
    Thanks & Regards,
    Soumya.

    hi,
    when u drag n drop some fields in the screen goto to one of the corners of dat fields drag to the extend u want to increase.
    or in attributes section  for u length n width of dat fields are available just increase to your wish.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • Multiline input box in sap screen.

    Can anyone suggest as how to make a multiline input box in SAP normal screen? Is it possiblt thru graphical editor?

    You could use text edit control (text box) using cl_gui_textedit class.
    check out these sample program.
    SAPTEXTEDIT_DEMO_3
    SAPTEXTEDIT_DEMO_1
    Regards
    Raja

Maybe you are looking for

  • SAP  Portal  unable to recognize  AD requirement to change initial password

    Hi, We configured Active Directory server (2008 R2) as UME for SAP Portal (Netweaver 7.01  SP7).  We matched as many of the security parameters as possible* (ex.  minimum password length, require one number in password, etc.).  The AD parameter "User

  • How to implement custom db login module .

    Hi Frank. I was going thru your document on implementing the custom db login module in my application. I am not able to configure this same at my end. when i issue a command to add the dbloginmodule on the j2ee home directory it ask me for the ABSTRA

  • Copy from quicktimepro, paste to imovie?

    Why can't I copy from quicktime pro and paste into imovie? I'm needing to copy very short segments from a MPEG4 Quicktime movie (which I can do fine), but when I switch over to iMovie, "paste" is greyed out. I was hoping to find a way to avoid the lo

  • Corrupted Data file. Please help.  No backups :(

    I have a problem with my test DB (Oracle 92. Solaris). One of the hard disk's down and we lost some data files. There are no backups as it's a test. after DB startup I get : ORA-01157: cannot identify/lock data file 38 - see DBWR trace file ORA-01110

  • E63 PHONEBOOK DOWNLOAD TO MERC BLUETOOTH

    I have a CLK 220, 2005 with the Audio 20 fitted. Attached to this is the Merc iPod kit and the Merc auto-changer. I have just bought a Merc Bluetooth SAP V2 mobile phone cradle (A2048200535). The phone I have is the Nokia E series E63. I have been ab