‎2009 Dec 21 10:21 AM
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
‎2009 Dec 21 10:31 AM
Hi Gerd ,
You can use following function modules :
POPUP_CONTINUE_YES_NO
POPUP_TO_CONFIRM
Hope this will help to you .
Regards,
Nikhil
‎2009 Dec 21 10:31 AM
Hi Gerd ,
You can use following function modules :
POPUP_CONTINUE_YES_NO
POPUP_TO_CONFIRM
Hope this will help to you .
Regards,
Nikhil
‎2009 Dec 21 10:45 AM
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
‎2009 Dec 21 11:35 AM
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
‎2009 Dec 23 10:17 AM
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
‎2009 Dec 23 10:42 AM
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
‎2009 Dec 23 10:49 AM
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
‎2013 Dec 03 6:16 AM
‎2009 Dec 21 2:04 PM
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.