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

need function module for popup message

Former Member
0 Likes
1,555

hi,

i am using POPUP_TO_CONFIRM_STEP to get confirmation message.

but here i am getting 'yes' 'no' 'cancel'.for confirmation.But i need function module with only 'yes' and 'no' only is there any function module for this.Pls let me know.

13 REPLIES 13
Read only

Former Member
0 Likes
1,502

Use the same function module, but pass value for the parameter CANCEL_DISPLAY.

CANCEL_DISPLAY = SPACE

Read only

Former Member
0 Likes
1,502

Hi

Use:

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

titlebar = 'Confirmation'

  • DIAGNOSE_OBJECT = ' '

text_question = text_xx

text_button_1 = 'Yes'

icon_button_1 = 'ICON_OKAY'

text_button_2 = 'No'

icon_button_2 = 'ICON_CANCEL'

default_button = '1'

display_cancel_button = ' '

  • USERDEFINED_F1_HELP = ' '

start_column = 25

start_row = 6

  • POPUP_TYPE =

IMPORTING

answer = ws_ans.

  • TABLES

  • PARAMETER =

  • EXCEPTIONS

  • TEXT_NOT_FOUND = 1

  • OTHERS = 2

Regards

Subramanian

Read only

0 Likes
1,502

Use POPUP_to_confirm only

Pass the parameter CANCEL_DISPLAY = SPACE

Read only

Former Member
0 Likes
1,502

Hi ,

In the same function module

Pass the parameter CANCEL_DISPLAY = ' ' OR SPACE .

Please reward if useful or use POP_CONTINUE_YES_NO Also.

Read only

Former Member
0 Likes
1,502

Ram MOhan,

POPUP_TO_CONFIRM_LOSS_OF_DATA Create a dialog box in which you make a question whether the user wishes to perform a processing step with loss of data.

POPUP_TO_CONFIRM_WITH_MESSAGE Create a dialog box in which you inform the user about a specific decision point during an action.

POPUP_TO_CONFIRM_WITH_VALUE Create a dialog box in which you make a question whether the user wishes to perform a processing step with a particular object.

POPUP_TO_DECIDE Provide user with several choices as radio buttons

POPUP_TO_DECIDE_WITH_MESSAGE Create a dialog box in which you inform the user about a specific decision point via a diagnosis text.

POPUP_TO_DISPLAY_TEXT Create a dialog box in which you display a two line message

Pls. Mark if useful

Read only

Former Member
0 Likes
1,502

plese use POPUP_TO_CONFIRM isnstead of POPUP_TO_CONFIRM_STEP because it is obsolete. there you can do 1 thing cancel button is by default X there just erase that x value and give ''.

regards

shiba dutta

Read only

Former Member
0 Likes
1,502

check

POPUP_WITH_2_BUTTONS_TO_CHOOSE

Read only

Former Member
0 Likes
1,502

Rammohan,

Use the same Function Module POPUP_TO_CONFIRM_STEP but make the variable CANCEL_DISPLAY = ' ' i.e. blank.

This should suffice your requirement.

Thanks.

Read only

Former Member
0 Likes
1,502

hi ram,

pass space to cancel_display.

cancel button wil not be displayed.Try executng in se37.

hpe thishelps u,

keerthi

Read only

Former Member
0 Likes
1,502

i am using the version 4.7,when i am using above fm it will give the message itis obselute do not use.is there any other fm to use in 4.7.

Read only

Former Member
0 Likes
1,502

Hello,

CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'

EXPORTING

defaultoption = 'Y'

textline1 = saw

textline2 = ' '

titel = sve

start_column = 25

start_row = 6

cancel_display = ' '

IMPORTING

answer = answer.

IF answer = 'J'.

**logic..

....

Regards,

Beejal

**Reward if this helps

Read only

Former Member
0 Likes
1,502

Hi,

You can use the function module "POPUP_TO_CONFIRM" by passing the parameters as TEXT_BUTTON_1 as 'Yes' and TEXT_BUTTON_2 as 'NO' and DISPLAY_CANCEL_BUTTON = blank then it will display only Yes and No it wont display cancel.I hope this will solve ur problem.

Reward with points and close the thread if ur prblem solves.

Regards,

Sarath J

Read only

Former Member
0 Likes
1,502

In regards, to being obsolete, you can use POPUP_TO_CONFIRM instead.