10-22-2006 8:33 PM
Hi, I'm a newbie in ABAP and I want to create a popup with only four buttons (with my options), like a questionnaire, but without cancel button.
I see the function C102_POPUP_TO_CONFIRM, I want something similar but without cancel button.
can someone help me?
Thanks!!
10-23-2006 1:14 AM
Sorry, but I don't know how to disable the cancel button, I've tried all the possibilities withouth results.
I don't know to do. I'll try with CALL SCREEN... option.
10-22-2006 8:45 PM
Hi Silvia,
I guess there is no std function for ur req..
what you can do is create a custom screen and call it in ur program using CALL SCREEN...
Enjoy SAP.
Pankaj Singh
10-22-2006 10:14 PM
10-22-2006 10:40 PM
Hi Silvia
See the function modules beggining with POPUP_TO_CONFIRM*, they should be good for you.
U should have the chance to display or not display the Cancel buttom
Max
10-23-2006 1:14 AM
Sorry, but I don't know how to disable the cancel button, I've tried all the possibilities withouth results.
I don't know to do. I'll try with CALL SCREEN... option.
10-23-2006 1:30 AM
Try this:
PARAMETERS: DEL_CANC AS CHECKBOX.
IF DEL_CANC = SPACE.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
TEXTLINE1 = 'Line 1'
TEXTLINE2 = 'Line 2'
TITEL = 'Title'
CANCEL_DISPLAY = 'X'.
ELSE.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
TEXTLINE1 = 'Line 1'
TEXTLINE2 = 'Line 2'
TITEL = 'Title'
CANCEL_DISPLAY = SPACE.
ENDIF.
Max
10-23-2006 1:45 AM
Thanks!! I didn't know de correct string for disable cancel button!!
thank you!! great!
10-23-2006 2:03 AM
Only a little doubt more
Why SPACE string don't work in this situation:
CALL FUNCTION 'C102_POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'title'
text_question = 'question'
text_button_1 = 'text1'
ICON_BUTTON_1 = ' '
I_ICON1_INFO = ' '
text_button_2 = 'text2'
ICON_BUTTON_2 = ' '
I_ICON2_INFO = ' '
text_button_3 = 'text3'
ICON_BUTTON_3 = ' '
I_ICON3_INFO = ' '
text_button_4 = 'text4'
ICON_BUTTON_4 = ' '
I_ICON4_INFO = ' '
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL_BUTTON = SPACE
START_COLUMN = 25
START_ROW = 6
IMPORTING
answer = answer1.
Thanks for all!!
10-23-2006 2:06 AM
I was looking in the source code of the function and I see this:
IF DISPLAY_CANCEL_BUTTON = SPACE.
MOVE 'CANC' TO EXCLUDE.
APPEND EXCLUDE.
ENDIF.
But when I debbug the function the IF statement never becomes true.
bye!
10-25-2006 8:30 AM
Hi
I'm sorry Silvia
In this days I'm working on 4.6C and there isn't that fm, anyway I remember it create a popup by yourself, infact in the fm the statament CALL SCREEN is made.
Check in PBO of the screen how the table EXCLUDE is managed, I can suppose you could find a code like this:
LOOP AT EXCLUDE.
LOOP AT SCREEN.
IF SCREEN-NAME = EXCLUDE.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDLOOP.
Max