Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FM or method for popup to enter text

Former Member
0 Kudos

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

11 REPLIES 11

0 Kudos

i can't find any 'right' FM there.

i need a FM or method where i can enter text, get it back in a internal table.

and i also need to return the okay-code. if the users cancels the editor, the back

table should be empty !!!

reg, Martin

0 Kudos

Hi martin

for popup window you can create a modal dialogue box. you can modify the screen as per you requirements using screen painter.

I hope this helps

0 Kudos

Did you try these FM's?

TRM_POPUP_FOR_TEXT_INPUT

TRM_POPUP_TEXT_INPUT

Former Member
0 Kudos

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!!

0 Kudos

sorry guys,

your hints don't help me ! there is not a single FM beginning with POP_TO*...............

0 Kudos

Hi Martyn,

I know this thread is too old but it might be helpful to others .









Former Member
0 Kudos

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

.

0 Kudos

rahul,

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

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

reg, Martin

former_member182426
Active Contributor
0 Kudos

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.

0 Kudos

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.