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: 

Popup with four buttons

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

9 REPLIES 9

messier31
Active Contributor
0 Kudos

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

Former Member
0 Kudos

OK, thanks for helping me!

I'll try what you say.

Bye

0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

Thanks!! I didn't know de correct string for disable cancel button!!

thank you!! great!

Former Member
0 Kudos

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

Former Member
0 Kudos

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!

0 Kudos

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