Control of Text box in Dialog programming

Hai Friends
i am having problem in controlling the Text box in PAI of Screen. For eg. if it is command button with the use of Function name i can able to check or do validation in PAI.
As in the case of Textbox how to give the name for the text box and how to handle it in PAI for Validation.
Please
Badhri.

Are you talking about a text editor?  IF so,  what is the validation that you want to perform.  Do you want to check to make sure that the user has entered something in the text editor?
If so, then just get the text from the text editor into an internal table, and check that internal table to make sure that something is in it.
    call method editor->get_text_as_r3table
       exporting
             only_when_modified = c_textedit_control=>false
       importing
             table              = textlines
       exceptions
             others             = 1.
<b>    if textlines[] is initial.
      message e014.
    endif.</b>
Regards,
Rich Heilman

Similar Messages

  • Pop-up box in dialog programming

    Hi,
    Is it possible to add a pop-up box inside dialog programs?..if so can someone show me how?
    thanks!

    hi,
    it is possible to display popup box inside the dialog programs.
    follow this sample program, it clearly explains the logic.......
    <u><b>FLOW-LOGIC CODE.</b></u>
    PROCESS ON VALUE-REQUEST.
        FIELD SFLIGHT-CONNID MODULE HELP-FOR-CONNID.
    <u><b>CODE FOR MODULE POOL PROGRAM.</b></u>
    MODULE HELP-FOR-CONNID INPUT.
        DATA: begin of it_itab occurs 0,
                       connid1(45),
                  end of it_itab.
                  refresh it_itab.
                  it_itab-connid1 = 'possible vales for connectionid'.
                  append it_itab.
                select * from sflight.
                      it_itab-connid1 = sflight-connid.
                      append it_itab.
               endselect.
          ****here call FM to display pop-up box
             call function 'popup_with_table_display'
                               exporting
                                           endpos_col = 45
                                           endpos_row = 25
                                           startpos_col = 10
                                           startpos_row = 1
                                           titiletext        = 'text'
                               tables
                                           valuetab = it_itab.
    the above program display the list of possible values for the field connid in popup-box.
    regards,
    Ashok Reddy

  • Handle  text  using list box in dialog program

    hi,
      I am  working  on  dialog program  , Created  two fileds , one is list  box type  I/O field and another is  i/O  field  which displays  text  based  on  value  selected in list box.
    Please  provide  any  inf  how  to Handle  text  using list box value in dialog program.
    thanks

    Hi,
    <li>Check the screen to know how to set I/O field to set as listbox.[ dropdown box picture|http://2.bp.blogspot.com/_O5f8iAlgdNQ/Sm7RBrqfjcI/AAAAAAAAFaU/RateViiVqrU/s1600-h/drop_down-754481.JPG]
    <li>in the above screen we need to set FctCode  for the dropdown box field so that when you select value from the dropdown box PAI event is triggered.
    <li>screen flow logic like below
    PROCESS BEFORE OUTPUT.
    MODULE values_into_dropdown.
    FIELD g_bukrs.
    FIELD g_text.
    PROCESS AFTER INPUT.
    FIELD g_bukrs.
    FIELD g_text MODULE get_bukrs_txt.
    <li>Logic to fill Dropdown field with values.
      PROGRAM  sapmztest_dropdown.
    DATA: g_bukrs TYPE t001-bukrs.
    *&      Module  VALUES_INTO_DROPDOWN  OUTPUT
    MODULE values_into_dropdown OUTPUT.
    TYPE-POOLS:vrm.
    DATA:
           field     TYPE  vrm_id,
           it_values TYPE  vrm_values,
           wa_values LIKE LINE OF it_values.
    DATA: t001 TYPE t001 OCCURS 0 WITH HEADER LINE.
    IF it_values[] Is INITIAL.
       SELECT * FROM t001 INTO TABLE t001 UP TO 10 ROWS.
       LOOP AT t001.
         wa_values-key  = t001-bukrs.
         wa_values-text = t001-butxt.
         APPEND wa_values TO it_values.
         CLEAR  wa_values.
       ENDLOOP.
    ENDIF.
    field = 'G_BUKRS'.
    CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
         ID     = FIELD
         values = it_values.
    ENDMODULE.                 " VALUES_INTO_DROPDOWN  OUTPUT
    *&      Module  get_bukrs_txt  INPUT
    MODULE get_bukrs_txt INPUT.
    read table it_t100 into wa_t100 with key bukrs = g_bukrs.
    g_text = t001-butxt.
    ENDMODULE.                 " VALUES_INTO_DROPDOWN  INPUT
    I hope that it helps you.
    Thanks
    Venkat.O

  • How to provide text editor in dialog program

    i have a requirement to enter upto 300 words in a dialog box how to provide text editor in dialog program

    you can use the custom controls for the same
    check this below link may be useful for you.........
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/755b94ca5911d299af5c9604c10e27/content.htm

  • How do i control 2 text boxes with 1 scroll bar? (CS4)

    I want to control 2 Dynamic Text boxs with the 1 scroll bar component? I want them to scroll simultaneously with the user only needing to use the one component. Thank you in advance for your help

    The textfields should have the same number of lines.  You can have the scrollbar (sb) assigned to one textfield (t1) and then have an event listener/handler for the scrollbar adjust the other textfield's (t2) scrollV property to match the first one's scrollV property:
    import fl.events.ScrollEvent;
    sb.addEventListener(ScrollEvent.SCROLL, adjustTs);
    function adjustTs(evt:ScrollEvent):void {
        t2.scrollV = t1.scrollV;

  • List box in dialog programming

    Hi Frnds,
                  i am working on a complex scenario,
    i want to print 3 list box.
    first one i can show but the problem is with second one and third one.
    first list box have three fields suppose
    program
    events
    movies
    when user will select either one , suppose he will select program
    then in second listbox program releted entries should be displayed like fiction , non fiction.
    and when he will select any entry then in third list box corresponding sub entries should be come.
    all data i have in ztables.
    i can make search help also.
    any suggestion should be appreciated.
    Thanks and Regards
    vijay

    Use this program!
    TYPE-POOLS: vrm.
    DATA: name TYPE vrm_id, list TYPE vrm_values, value LIKE LINE OF list.
    TABLES: sscrfields.
    Selection screen
    List box
    PARAMETERS: ps_parm AS LISTBOX VISIBLE LENGTH 10
                              USER-COMMAND abc.
    Radio buttons
    PARAMETERS: rb1 RADIOBUTTON GROUP ab MODIF ID bl2,
                rb2 RADIOBUTTON GROUP ab MODIF ID bl2,
                rb3 RADIOBUTTON GROUP ab MODIF ID bl3.
    INITIALIZATION.
    Populate list box values
      name = 'PS_PARM'.
      value-key = '1'. value-text = 'Line 1'. APPEND value TO list.
      value-key = '2'. value-text = 'Line 2'. APPEND value TO list.
    AT SELECTION-SCREEN OUTPUT.
    Set list box with value
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = list.
    Control the display of screen components
      LOOP AT SCREEN.
        IF ps_parm = 1.
          IF screen-name = 'RB1' OR screen-name = 'RB2' .
            screen-invisible = 0.
          ELSEIF screen-name = 'RB3'.
            screen-invisible = 1.
          ENDIF.
          MODIFY SCREEN.
        ELSEIF ps_parm = 2.
          IF screen-name = 'RB1' OR screen-name = 'RB2' .
            screen-invisible = 1.
          ELSEIF screen-name = 'RB3'.
            screen-invisible = 0.
          ENDIF.
          MODIFY SCREEN.
        ELSEIF ps_parm = space.
          rb1 = 'X'.
          clear: rb2,rb3.
          IF screen-name = 'RB1' OR screen-name = 'RB2' OR
             screen-name = 'RB3'.
            screen-invisible = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'ABC'.
      ENDIF.
    START-OF-SELECTION.
      WRITE: / 'Parameter:', ps_parm.
    And use:
    AT-SELECTION-SCREEN on value request for p_yyyy.
    if p_xxxx-key is not initial..
    get the values required for second parameter...or listbox..
    endif..
    similarily for 3rd listbox also!

  • Question Related to Check-box in Dialog Program

    Hi All-
    I desgined check box in Table Control... In my Internal table I have 41 records, When user click on Select all button it selects only first 14 records from the table control...When the user uses page-down, then click on Select all, selects remaining 14 records and so on...
    But how to select all the records at a time instead of using page-down...
    Please advice me how to solve my problem!!!!
    Thanks,
    Sony

    I would not suggest doing it like that.  Instead move the MODULE USER_COMMAND outside of that loop.
    *  Screen Flow Logic 
    PROCESS AFTER INPUT.
    LOOP AT i_x002 .
    ENDLOOP.
    MODULE user_command_0600 .
    *  Module coding
    MODULE user_command_0600 input..
    CASE sy-ucomm.
    WHEN 'SELA'.
    loop at i_x002.
    i_x002-flag = 'X'.
    MODIFY i_x002.
    endloop.
    WHEN 'DELA'.
    loop at i_x002.
    i_x002-flag = space.
    MODIFY i_x002.
    endloop.
    ENDCASE.
    endmodule.
    Regards,
    Rich Heilman

  • Modal Dialog box in Dialog Programe

    I have create one Modal Dialog Box in Module Pool.
    when i click on the 'X' on the top right side of that screen the Dialog box is not closed.
    Can any one help on this?

    For the Modal Dialog box you need to create the Status, while creating the status Choose the Status for Dialog box. that time you it will show different Status Options.
    you need to set the status to the CANCEL(X) button , Then handle the Function in the PAI user_command module.
    CASE sy-ucomm.
    when 'CANCEL'.
    leave to screen 0.
    endcase.

  • Values not populating in list box in dialog programing.

    hi,
    i am facing a problem i.e. i am having a listbox on screen , in pbo i am filling that listbox with some values in an internal table.
    But i am not able to populate the values i.e. while i am debugging the pai ......the list box is containing nothing.
    So needed some help in this issue.
    regards,
    somesh

    Hi,
    Try to read these links. It will give you some pointers regarding on your problem.
    <link-farm removed>
    Revert if you have still any concern.
    Thanks,
    iostreamax
    Edited by: Suhas Saha on Feb 21, 2012 8:50 AM

  • Dynamic header text in table control - Dialog programming

    Hi All,
    I have a table control on one of my dialog screens.  I need to dynamically change the column header texts on this control in my PBO.  Does anyone know how to do this?  I have found all kinds of ways to modify the other characteristics of the fields at run time in the PBO (active, input/output, invisible, etc.) - but not to change the header text!  Any help is appreciated.
    thanks,
    Matt

    Hi Hymavathi,
    I appreciate your help!  This didn't solve the issue, however,...I have used the method you'd mentioned before (many times) for setting it inside the loop at screen:
    %_<screenname>_%_APP_%-TEXT = <text something>.
    - but only in ABAP reports.  It doesn't seem to recogize it (the table control column header text) within a dialog program.  I keep getting a compile error. (saying that the %_<screenname>_%_APP_%-TEXT doesn't exist.
    I tried the suggestion that you stated below (from lateesh) - yet it only let me place i/o field in title text area (not the column header text).  Am still searching...

  • Declaring constant data in a list box - Dialog programming

    i need to declarare some constant data 1...4 in list box in dialog programming i have done some coding its not working here is the code, can you plz tell me whats wrong in the code non of the values are displaying in drop downbox.
    type-pools vrm.
    DATA: name TYPE vrm_id,
    list TYPE vrm_values,
    value LIKE LINE OF list.
    clear list.
    REFRESH LIST.
    value-key = '1'.
    value-text = 'Sales & Distribution'.
    append value to list.
    value-key = '2'.
    value-text = 'Material Management'.
    append value to list.
    value-key = '3'.
    value-text = 'Finance & Controlling'.
    append value to list.
    CALL FUNCTION 'VRM_SET_VALUES'
      EXPORTING
        id                    = 'LISTBOX1'
        values                = list
    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.

    I think your code is correct onlybut the problem may be where
    you are passing the internal table to the FM 'VRM_SET_VALUES' ...
    Try to use the  following code..
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = 'LISTBOX1'
    values = list[]

  • Keyword tags text box poorly designed, crashes PSE 8

    I was very interested to see that PSE 8 allows you to enter keyword tags using a text box, as other programs do, promising much faster tagging with large sets of tags.  But the feature has serious bugs rendering it unusable.
    After trying the keyword-tags text box for less than a minute on my large catalog with 426 tags, PSE 8 crashed.    Even with a fresh catalog and the default tag categories, it will crash after using the text box about 40 times.   (See below for a recipe.)
    Another bug concerns tags with commas in them, e.g. "Truckee, CA" (I have a couple hundred such Place tags).  If you type "Tru" in the text box, select the tag with the mouse, and hit enter, PSE 8 will create two new tags, Truckee and CA, in the Other category, and apply them to the photo.
    A design misfeature: After you select and apply a tag with the text box, it loses the keyboard focus.  So to select another tag for the same photo, you have to move your hand to the mouse and click in the text box again.  Partially defeats the whole purpose.
    Recipe for reproducing the bug:
    1. Create a new catalog.
    2. Import 50 photos.
    3. Select the next photo.
    4. In the keyword tag text box, type "p" and then enter.
    5. Go to step 3.
    On the 40th or 41st photo, my PSE 8 reliably crashes (Vista 32, 4 GB of memory).   If after step 1 you use the Keyword Tags > + > From File command to load a tag heirarchy of 210 tags (see the attached file), it will crash after just 9 photos.   And with 426 tags, it crashes after 5 photos.
    Interestingly, on my Vista 64 system (unsupported by Adobe, 8 core x 2.7 GHz), PSE 8 doesn't crash, but the text box gets unusably slow very quickly.  WIth 210 keyword tags in the catalog, it soon takes about 12 seconds to find a tag after you type a unique prefix.   That time gradually gets longer the more you use the text box.  With 426 tags, it takes almost 20 seconds to apply a tag using the text box.
    On both systems, it's clear what the nature of the bug is: Each time you use the text box, the process's memory grows by many megabytes.  I believe my Vista 64 system doesn't crash (at least not immediately) because it provides 3.5 GB of memory for use by PSE 8, while Vista 32 only provides about 1.5 GB.
    I'm getting a sinking feelilng...

    Is the white triangle to the left of "Keyword Tags" pointing down or pointing to the right?  See this screen shot:
    Click on the white triangle -- does that make a difference?
    If not, try deleting the Organizer's preferences:
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#Delete_the_Organizers_prefe rences

  • How to use a radio button in enabling/disabling a text box in report progra

    Hi,
        Could any please let me know, how to use a radio button in enabling/disabling a text box in report program.

    *& Report  ZMR_RADIO_BUTTONS
    REPORT  ZMR_RADIO_BUTTONS.
    PARAMETERS : R1  RADIOBUTTON GROUP G1,
                 R2  RADIOBUTTON GROUP G1.
    PARAMETERS : A1 TYPE I,
                 A2 TYPE I.
    AT SELECTION-SCREEN OUTPUT.
    *initialization.
    IF R1 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 0.
    ENDIF.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 1.
    ENDIF.
    ENDLOOP.
    ENDIF.
    IF R2 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 1.
    ENDIF.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 0.
    ENDIF.
    modify screen.
    ENDLOOP.
    ENDIF.
    START-OF-SELECTION.
    *IF R1 = 'X'.
    *LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
       SCREEN-ACTIVE = 1.
    ENDIF.
    *ENDLOOP.
    *ENDIF.
    *IF R2 = 'X'.
    *LOOP AT SCREEN.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
       SCREEN-ACTIVE = 0.
    ENDIF.
    *ENDLOOP.
    *ENDIF.

  • How to output actionscript at runtime in a text box

    Hi , i need help in displaying my code at run time, I need to
    dispaly my code in a text box when the program runs.
    I guess something to start would be output_txt.text. then i
    need to call my own action script. but not sure how...

    Hi
    code is active and only in the program .fla not stored as
    file on its own( not as a text file.txt)
    Cheers
    Chris

  • Can I type in a text box to automatically tick a tick box?

    In form fillable if I enter information in a certain text box, can I program it to automatically a certain tick box relating to the information on another page?
    E.g Tax Return amount -> Financials?

    Was your document previously a Pages '09 document that you opened in Pages 5? Because Pages 5 can damage older files.
    When you say overwrite do you mean the text ia actually on top of your previous material, which is underneath?
    If you click in the text is everything selected?
    To save back to older version:
    Menu > Export > Pages '09
    Peter

Maybe you are looking for

  • Add RAM or buy a new machine? Need advice please.

    Hello, I am asking this question for a friend who owns a 5 year old iMac. It only has a 500GB hard drive, and it is almost full (475 GB are in use, and we recently had to dump some items because it had reached it's limit). It has the factory-installe

  • Development tools

    Hi, I'm new in these forums, so I don't know that this question is on the right place. If it's not, then please forgive me. I have got a little question. What should I download if I want to write a 3D game for the Flash Player 11? I'm not new to Flas

  • Maximum size of XML files and number of IDocs for IDoc receiver adapter

    Hi Guys, We have an XML file to IDoc scenario where XI picks up an XML file with multiple Customer records in it, it does a simple mapping and creates one DEBMAS06 IDoc per record in the XML file. All IDocs are sent in a single file in XML-IDOC forma

  • UPgrade qs from 4.6 c to ECC 6.0

    My client is looking to move from 4.6C to ECC 6.0. Now, it is using BAs as the legal entities instead of compay codes, its also using Internal Orders to capture all the revenue and cost centers for expenses as well as balance sheet items (changing th

  • Deployment steps in Jdeveloper - is there a clear way to do it?

    Dear sirs... I deployed an application using jdeveloper to a weblogic server, however I am getting an error stating that the application is not able to connect to the database (ORA-01005: null password given; logon denied). I checked the documentatio