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: 

Message options

Karan_Chopra_
Active Participant
0 Kudos

i want to display some message after some selected operation

n from the message user shloul have option to continue or cancle that operation

how can i do that

11 REPLIES 11

amit_khare
Active Contributor
0 Kudos

use POPUP_TO_CONFIRM FM to display the message.

Regards,

Amit

Reward all helpful replies.

Former Member
0 Kudos

Hi,

You can use the below function module

POPUP_TO_CONFIRM

Regards

Sudheer

former_member583013
Active Contributor
0 Kudos

AT SELECTION-SCREEN.
*Add logic

  • Call TR_POPUP_TO_CONFIRM FM...

Greetings,

Blag.

former_member223537
Active Contributor
0 Kudos

Use FM "POPUP_TO_CONFIRM"

or goto SE37 & type popupconfirm and click F4

Karan_Chopra_
Active Participant
0 Kudos

cant i use the message class to do this

0 Kudos

HI,

us this

data: answer type c.

data: text type string.

text = 'Error occured During processing'.

call function 'POPUP_TO_CONFIRM_WITH_MESSAGE'

exporting

  • DEFAULTOPTION = 'Y'

diagnosetext1 = 'Please Confirm'

textline1 = text

  • TEXTLINE2 = ' '

titel = 'Confirm'

importing

answer = answer.

  • "J" for Yes, "N" for no.

write:/ answer.

0 Kudos

If you use message class then you cannot have the option of Yes and no ...

former_member223537
Active Contributor
0 Kudos

yes but wont cant handle cancel in it.

Karan_Chopra_
Active Participant
0 Kudos

if i select ok or cancel button the result is same

it executes the code

how can i stop it on clicking the NO button

0 Kudos

Check the value returned in returncode, Definitly you would be getting different value for when you click on different option.

In case of FM 'POPUP_TO_CONFIRM' and FM 'POPUP_TO_CONFIRM_WITH_MESSAGE'

exporting field is ANSWER

Regards,

Amit R.

Karan_Chopra_
Active Participant
0 Kudos

plz help