Application Development and Automation 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: 
Read only

Message options

Karan_Chopra_
Active Participant
0 Likes
1,081

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
Read only

amit_khare
Active Contributor
0 Likes
1,059

use POPUP_TO_CONFIRM FM to display the message.

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
1,059

Hi,

You can use the below function module

POPUP_TO_CONFIRM

Regards

Sudheer

Read only

Former Member
0 Likes
1,059

AT SELECTION-SCREEN.
*Add logic

  • Call TR_POPUP_TO_CONFIRM FM...

Greetings,

Blag.

Read only

Former Member
0 Likes
1,059

Use FM "POPUP_TO_CONFIRM"

or goto SE37 & type popupconfirm and click F4

Read only

Karan_Chopra_
Active Participant
0 Likes
1,059

cant i use the message class to do this

Read only

0 Likes
1,059

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.

Read only

0 Likes
1,059

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

Read only

Former Member
0 Likes
1,059

yes but wont cant handle cancel in it.

Read only

Karan_Chopra_
Active Participant
0 Likes
1,059

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

Read only

0 Likes
1,059

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.

Read only

Karan_Chopra_
Active Participant
0 Likes
1,059

plz help