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: 

Text popup

Former Member
0 Kudos

Hi all,

My requirement is to display a popup with a text area in editable mode, 'Confirm' and 'Cancel' button. If the user changes the text, and presses the 'CONFIRM' the text is to be saved in DB.

How do i implement this? Should i use a FM or modal dialog box?

3 REPLIES 3

naimesh_patel
Active Contributor
0 Kudos

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

TITLEBAR = l_title

text_question = l_message

TEXT_BUTTON_1 = 'Confirm'

DEFAULT_BUTTON = '1'

DISPLAY_CANCEL_BUTTON = 'X'

IMPORTING

ANSWER = l_answer

Case l_answer

when 1. " Confirm

  • use SAVE_TEXT to save your text

when 'A'. " Cancle

endcase.

Regards,

Naimesh Patel

0 Kudos

Naimesh,

The popup is to contain a text area/control too in which the user can edit the text... The confirm popup wont work here.

Thanks.

Former Member
0 Kudos

I'd build the popup dialog dynpro inside a function module so that you can use it from other places... of course where / if you store it depends on on your need - I'd actually suggest building the function module to just return the edited text to the calling program, and then allow the caller to decide where and when to persist it (e.g. so it can synchronise the text save with other database writes)...

If you want an example bit of code to look at try function SGOS_NOTE_CREATE_DIALOG.

Jonathan