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 conformation functation module

anil_kumar98
Participant
0 Kudos

Hi ,

need a popup conformation funcation module with only yes and no optation only i dnt need cancel optation .

Regards,

anil

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use POPUP_TO_CONFIRM function module and send blank value to the DISPLAY_CANCEL_BUTTON

parameter, so that you wont get Cancel option.

Reward if found useful.

Thanks,

Prakash Ghantasala

9 REPLIES 9

Former Member
0 Kudos

Hi,

Use POPUP_TO_CONFIRM function module and send blank value to the DISPLAY_CANCEL_BUTTON

parameter, so that you wont get Cancel option.

Reward if found useful.

Thanks,

Prakash Ghantasala

venkat_o
Active Contributor
0 Kudos

Hi Anil, Use POPUP_TO_CONFIRM function module. Check this sample program.


REPORT ztest1.
DATA:l_answer TYPE c.

CALL FUNCTION 'POPUP_TO_CONFIRM'
  EXPORTING
    titlebar       = 'Confirm'
    text_question  = 'Is this right ?'
    default_button = '1'
  IMPORTING
    answer         = l_answer
  EXCEPTIONS
    text_not_found = 1
    OTHERS         = 2.
IF l_answer = '1'.
  WRITE  'Yes is Clicked.'.
ELSEIF l_answer = '2'.
  WRITE  'No is Clicked.'.
ENDIF.
Regards, Venkat.O

Former Member
0 Kudos

HI Anil

Use this Function Module

POPUP_TO_CONFIRM

Reward Me Points

BY

Pari

Former Member
0 Kudos

Hi,

You may Use TR_POPUP_TO_CONFIRM Wtih

IV_TEXT_BUTTON1 = 'YES'

IV_TEXT_BUTTON2 = 'NO' & IV_TEXT_QUESTION = 'Your Prompt like Save ? '.

I hope this helps,

Regards

Raju Chitale

Former Member
0 Kudos

Hi,

have u seen the fm's POPUP_TO_CONFIRM & POPUP_TO_INFORM ?

Regards

Kiran Sure

Former Member
0 Kudos

Hi

Anil

SAP has many build in functions that displays pop-up dialog screens.

POPUP_TO_CONFIRM_STEP - Create a dialog box in which you make a question whether the user wishes to perform the step.

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.

POPUP_TO_SELECT_MONTH - Popup to choose a month

POPUP_WITH_TABLE_DISPLAY - Provide a display of a table for user to select one, with the value of the table line returned when selected.

POPUP_TO_CONFIRM - Pop-up dialog confirm an action before it is carried out.

POPUP_TO_DISPLAY_TEXT - Displays a text in a modal screen

POPUP_TO_INFORM - Displays several lines of text. No OK or Cancel buttons.

POPUP_TO_CONFIRM/POPUP_TO_DISPLAY_TEXT.

TH_POPUP - Display a popup system message on a specific users screen.

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_STEP - Create a dialog box in which you make a question whether the user wishes to perform the step.

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.

POPUP_WITH_TABLE_DISPLAY - Provide a display of a table for user to select one, with the value of the table line returned when selected.

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_STEP - Create a dialog box in which you make a question whether the user wishes to perform the step.

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.

POPUP_WITH_TABLE_DISPLAY - Provide a display of a table for user to select one, with the value of the table line returned when selected.

HTH

Pls Reward points..

regards

rajan

anil_kumar98
Participant
0 Kudos

i dont need cancel button only yes & No optation any fm is their

Edited by: anil kumar on Apr 22, 2008 11:28 AM

0 Kudos

Hi Anil,

u can use function module popup_to_confirm and pass values as below.

here the TEXT_BUTTON_1 & TEXT_BUTTON_2 are passed with required values & DISPLAY_CANCEL_BUTTON

is passed with blank.

DATA: W_TEXT_Q TYPE STRING.

DATA: Z_ANSWER(4).

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

TITLEBAR = 'Confirm processing'

  • DIAGNOSE_OBJECT = ''

TEXT_QUESTION = W_TEXT_Q

TEXT_BUTTON_1 = 'YES'

  • ICON_BUTTON_1 = ' '

TEXT_BUTTON_2 = 'NO'

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 = ' '

IMPORTING

ANSWER = Z_ANSWER

EXCEPTIONS

TEXT_NOT_FOUND = 1

OTHERS = 2

.

IF SY-SUBRC 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

REWARD IF USEFUL

Former Member
0 Kudos

Hi ..

DATA :

lv_answer(1) TYPE c,

lv_text(80) TYPE c.

suppose u have fetched records from a DB table and stored i na internal table and u have count the number of recods present in the internal it_tab

DESCRIBE TABLE it_tab LINES gv_lines.

SHIFT gv_lines LEFT DELETING LEADING '0'.

CONCATENATE gv_lines text-002 INTO lv_text SEPARATED BY space .

u want to show a pop up when the number of records exceed some processing limit(parameter on selection screen where user can say the number of records that he wants to display at a time)

then

  • If number of records fetched exceed the processing limit then give popup

  • to the user to proceed further are not

IF gv_lines > p_limit.

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

titlebar = text-006

  • DIAGNOSE_OBJECT = ' '

text_question = lv_text

text_button_1 = text-004(yes)

  • ICON_BUTTON_1 = ' '

text_button_2 = text-005(no)

  • ICON_BUTTON_2 = ' '

  • DEFAULT_BUTTON = '1'

  • display_cancel_button = ' ' (as u dont want cancel button)

IMPORTING

answer = lv_answer

.

IF lv_answer <> '1'.

LEAVE LIST-PROCESSING.

ENDIF.

ENDIF.

ENDIF.

Hope this might help you...

regards,

zareena.

Edited by: zareena molla on Apr 22, 2008 10:18 AM