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: 

How to display message with contionue and cancel buttons?

Former Member
0 Kudos

Hi,

I have to display message with 'Continue' and 'Cancel' Button.

Please tell me exact code or Function Module.

Title was edited by:

Alvaro Tejada Galindo

5 REPLIES 5

Former Member
0 Kudos

Try FMs

POPUP_TO_INFORM

POPUP_TO_CONFIRM

There's lots of others.

Rob

Former Member
0 Kudos

You can write simple code in PAI..

case sy-ucomm.

WHEN 'CANC' . " Cancel function Code

message i000(z01) with 'Cancel'.

leave to screen 0.

when 'CONT'. " Continue Function code

message i001(z01) with 'Continue'.

leave to screen 9000.

endcase.

Thanks

Seshu

former_member194669
Active Contributor
0 Kudos

Hi,

Use fm POPUP_TO_CONFIRM with following value


TITLEBAR                        TEST
DIAGNOSE_OBJECT
TEXT_QUESTION                   TESTING
TEXT_BUTTON_1                   CONTINUE
ICON_BUTTON_1
TEXT_BUTTON_2                   CANCEL
ICON_BUTTON_2
DEFAULT_BUTTON                  1
DISPLAY_CANCEL_BUTTON
USERDEFINED_F1_HELP
START_COLUMN                    25
START_ROW                       6
POPUP_TYPE
IV_QUICKINFO_BUTTON_1
IV_QUICKINFO_BUTTON_2

0 Kudos

Hi,

Requirement is changed,

I dont' want 'Cancel' button.

I want' only 'Continue' button.

But here second button is appearing in message box for this function module.

Please guide me.

0 Kudos

USe fm POPUP_TO_DISPLAY_TEXT_LO.

This is a sample code -

CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT_LO'

EXPORTING

titel = text-050

textline1 = 'Show text'

  • TEXTLINE2 = ' '

START_COLUMN = 15

START_ROW = 6.