Skip to Content
avatar image
Former Member

FM or method for popup to enter text

hi,

i am looking for an function call or an method in an class where

i can enter text in a popup (like 'yellow post it'). and where i get

back the entered text in an internal table.

does anybody know how to handle this ?

reg, martin

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Oct 03, 2008 at 07:45 AM

    Hi,

    try this code.

    and make changes depends upon ur requirement.

    REPORT ZSHAN.

    data: text type TRM080-TEXT.

    data: itext LIKE table of text with header line.

    data:ok_code like sy-ucomm.

    CALL FUNCTION 'TRM_POPUP_TEXT_INPUT'

    EXPORTING

    • SOURCETEXT =

    TITEL = 'enter string'

    START_COLUMN = 25

    START_ROW = 6

    CHANGING

    TARGETTEXT = text

    .

    move sy-ucomm to ok_code.

    if ok_code EQ 'ENTE'.

    APPEND TEXT TO ITEXT.

    ENDIF.

    LOOP AT ITEXT.

    WRITE: ITEXT.

    ENDLOOP.

    Regards,

    Shankar.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I tried the code and it works great. I used it in a form. It displays a pop-up asking for text, I took it and updated a text column of a table.

      Tnx for sharing.

  • avatar image
    Former Member
    Oct 02, 2008 at 01:45 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 02, 2008 at 05:11 PM

    Hi Martin,

    Goto Txcode SE37 and in the function module give name as POP_TO* and press F4 that will give you the list of function modules choose according to your requirement which may solve your issue.

    Hope my answer helps you.

    Cheers!!

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 03, 2008 at 07:36 AM

    hi,

    just use this function module it will definately help u:

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    *   DDIC_STRUCTURE         = ' '
        retfield               = retfield
    *   PVALKEY                = ' '
    *   DYNPPROG               = ' '
    *   DYNPNR                 = ' '
    *   DYNPROFIELD            = ' '
    *   STEPL                  = 0
    *   WINDOW_TITLE           = WINDOW_TITLE
    *   VALUE                  = ' '
    *   VALUE_ORG              = 'C'
    *   MULTIPLE_CHOICE        = ' '
    *   DISPLAY                = ' '
    *   CALLBACK_PROGRAM       = ' '
    *   CALLBACK_FORM          = ' '
    *   MARK_TAB               = MARK_TAB
    * IMPORTING
    *   USER_RESET             = USER_RESET
      TABLES
        value_tab              = value_tab
    *   FIELD_TAB              = FIELD_TAB
    *   RETURN_TAB             = RETURN_TAB
    *   DYNPFLD_MAPPING        = DYNPFLD_MAPPING
    * EXCEPTIONS
    *   PARAMETER_ERROR        = 1
    *   NO_VALUES_FOUND        = 2
    *   OTHERS                 = 3

    thanks

    rahul

    .

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      rahul,

      thank you, but thats by far not the thing i want 😊

      i want to have a text-editor-popup !!!!

      reg, Martin