Application Development and Automation 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: 
Read only

Popup/window for input text / changing text

gerd_hotz
Contributor
0 Likes
3,596

Hello experts,

I need a popup/window where I can write some text in it, so that I can save this text and

when I call the popup again, it should be possible to change this text.

Is there a function in abap for this ?

Thanks Gerd

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,656

Hi Gerd ,

You can use following function modules :

POPUP_CONTINUE_YES_NO

POPUP_TO_CONFIRM

Hope this will help to you .

Regards,

Nikhil

8 REPLIES 8
Read only

Former Member
0 Likes
1,657

Hi Gerd ,

You can use following function modules :

POPUP_CONTINUE_YES_NO

POPUP_TO_CONFIRM

Hope this will help to you .

Regards,

Nikhil

Read only

0 Likes
1,656

Hello,

I need a popup / window, when this popup appears, then I should be able to create/edit text

in this window. (Like a note in ms outlook).

some idea ?

regards

Gerd

Read only

0 Likes
1,656

call this FM 'CATSXT_SIMPLE_TEXT_EDITOR'

or there is one more alternative of creating a module-pool screen for the same and and calling it

but the above FM module will serve your purpose.

Let me know if you want any further details if you want to go for the module-pool approach.

regards,

Abhijit G. Borkar

Read only

0 Likes
1,656

Hello Abhijit G. Borkar,

the fm 'CATSXT_SIMPLE_TEXT_EDITOR' is good,

but the popup screen contains two buttons, enter and cancel,

how can I use this two buttons ?

I always get the same return, if I press button enter or cancel,

the fm alwyas delivers the content of the popup screen, also I press cancel.

Any idea ?

BR

Gerd

Read only

0 Likes
1,656

data : input_text type CATSXT_LONGTEXT_ITAB.

CALL FUNCTION 'CATSXT_SIMPLE_TEXT_EDITOR'

EXPORTING

im_title = 'Test'

  • IM_DISPLAY_MODE = ' '

  • IM_START_COLUMN = 10

  • IM_START_ROW = 10

changing

ch_text = input_text.

IF sy-ucomm = 'CX_CONT'.

WRITE: 'OK'.

" Do not clear content in imput variable.

ELSE. " SY-UCOMM = 'CX_CANC'

WRITE: 'CANCEL'.

" Clear your contents here

CLEAR input_text.

ENDIF.

try this out ....

hope it helps you.

Regards,

Abhijit G. Borkar

Read only

0 Likes
1,656

Hi,

The ok code for yes and cancel are different.

Check this one:

DATA: ch_text type CATSXT_LONGTEXT_ITAB,

chk TYPE XFELD VALUE ' '.

CALL FUNCTION 'CATSXT_SIMPLE_TEXT_EDITOR'

EXPORTING

IM_TITLE = 'Testing'

IM_DISPLAY_MODE = chk

IM_START_COLUMN = 10

IM_START_ROW = 10

CHANGING

CH_TEXT = ch_text

.

WRITE / sy-ucomm.

Its CX_CONT for Yes

and CX_CANC for No.

May be you need to check based on the sy-ucomm.

Regards,

Swarna Munukoti

Read only

0 Likes
1,656

Thank you, was useful for me too

Read only

Former Member
0 Likes
1,656

Hi, I think you can use the FM POPUP_GET_VALUES. It is very helpful. You are giving the field names as a table then FM generates popup according to your fields.

You better check it.