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

POP up message !!!!

Former Member
0 Likes
16,146

Dear All,

Please tell me the funciton module to show popup message with OK button.

Right now i am using POP to Confirm function funciton module, but i am not able to hide NO button.

Please help.

REgards

Saurabh

Dear All,

Please tell me the funciton module to show popup message with OK button.

Right now i am using POP to Confirm function funciton module, but i am not able to hide NO button.

Please help.

REgards

Saurabh

8 REPLIES 8
Read only

Former Member
0 Likes
3,464

Hi,

Chk below FM's


use this FM : POPUP_TO_DISPLAY_VALUE

CHeck these values.

CALL FUNCTION 'POPUP_TO_DISPLAY_VALUE'
EXPORTING
colbeg = 1
colend = 20
itemtxt = 'Item'
textline1 = 'Line1'
textline2 = 'Line2'
textline3 = 'Line3'
textline4 = 'Line4'
title = 'Popup Title'.


You can use 'POPUP_TO_CONFIRM'.

See the below example:

data: asdf(60) type c.
message i000 with 'aer' 'Eswar' into asdf.
*
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING

TITLEBAR = ' ' 
DIAGNOSE_OBJECT = ' ' 
text_question = asdf

TEXT_BUTTON_1 = 'Ja'(001) 
ICON_BUTTON_1 = ' ' 
TEXT_BUTTON_2 = 'Nein'(002) 
ICON_BUTTON_2 = ' ' 
DEFAULT_BUTTON = '1' 
DISPLAY_CANCEL_BUTTON = 'X' 
USERDEFINED_F1_HELP = ' ' 
START_COLUMN = 25 
START_ROW = 6 
POPUP_TYPE = 
IMPORTING 
ANSWER = 
TABLES 
PARAMETER = 
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.


use this fn module

POPUP_GET_VALUES

in tables u ll hav a parameter svals see its documentation


'POPUP_WITH_2_BUTTONS_TO_CHOOSE'


'POPUP_TO_CONFIRM_STEP'

Regards,

Chandru

Read only

Former Member
0 Likes
3,463

Hi

Try using this FM 'POPUP_WITH_2_BUTTONS_TO_CHOOSE'.

Thanks

Vasudha

Read only

Former Member
0 Likes
3,463

Hi

Use the FM POPUP_FOR_INTERACTION

Thanks

Vijay

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 29, 2008 6:01 PM

Read only

Former Member
0 Likes
3,463

Hi,

Use the function module popup to confirm and comment out the EXPORTING parameter as marked.

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

  • TITLEBAR = ' '

  • DIAGNOSE_OBJECT = ' '

TEXT_QUESTION =

  • TEXT_BUTTON_1 = 'Ja'(001)

  • ICON_BUTTON_1 = ' '

->*TEXT_BUTTON_2 = 'Nein'(002) "will hide the no button

  • ICON_BUTTON_2 = ' '

  • DEFAULT_BUTTON = '1'

  • DISPLAY_CANCEL_BUTTON = 'X'

  • USERDEFINED_F1_HELP = ' '

  • START_COLUMN = 25

  • START_ROW = 6

  • POPUP_TYPE =

  • IV_QUICKINFO_BUTTON_1 = ' '

  • IV_QUICKINFO_BUTTON_2 = ' '

  • IMPORTING

  • ANSWER =

  • TABLES

  • PARAMETER =

  • EXCEPTIONS

  • TEXT_NOT_FOUND = 1

  • OTHERS = 2

.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 29, 2008 6:01 PM

Read only

Former Member
0 Likes
3,463

Hi,

what u can do is copy the FM POPUP_TO_CONFIRM to Z and then hide the NO button and use it.

Reward if helpful.

Read only

JozsefSzikszai
Active Contributor
0 Likes
3,463

hi,

you don't need FM, just use the DISPLAY LIKE addition, this will show the message in popup with only OK possibility:

MESSAGE i398(00) DISPLAY LIKE 'E' WITH '&' '&' '&' '&' .

hope this helps

ec

Read only

Former Member
0 Likes
3,463

Hi,

To pop-out a box for the user to confirm

REPORT ZPOPUPCONFIRM.

DATA: X_ANS(1) TYPE C.

call function 'POPUP_TO_CONFIRM_STEP'

exporting

  • DEFAULTOPTION = 'Y'

textline1 = 'Do you want to continue'

  • TEXTLINE2 = ' '

titel = 'Please Confirm'

  • START_COLUMN = 25

  • START_ROW = 6

  • CANCEL_DISPLAY = 'X'

IMPORTING

ANSWER = X_ANS.

WRITE: / X_ANS.

For more information check the following link:

http://www.sap-img.com/fu013.htm

Regards,

Bhaskar

Read only

abdulazeez12
Active Contributor
0 Likes
3,463

eric's answer was very helpful for my requirement...thanks a lot eric...