2008 Jul 02 12:27 PM
Hi all,
I want to display a popup in which two lines of text messages should be there.
Eg : Yes - You will be creating a new Account
No - You will be returned to the initial screen.
And this should have 'Yes' and 'No' buttons as well..
I tried with 'POPUP_TO_CONFIRM', but, this can accommodate only a single text line. I found some others like
'POPUP_TO_CONFIRM_WITH_MESSAGE' which may serve this purpose, but all of them are flagged as Obsolete.
Does anyone know a proper FM or method?
Thanks in advance...
Mahesh
2008 Jul 02 12:36 PM
Hi Mahesh,
I don't think there is one (not being obsolete); probably it's the easiest way to just write a Z_POPUP yourself.
Regards,
John.
2008 Jul 02 12:34 PM
hi Mahesh,
Use FM POPUP_TO_DISPLAY_TEXT_LO pass the first line message in TEXTLINE1 and the second message in TEXTLINE2 and execute to see the mesage in two lines ...
Regards,
Santosh
2008 Jul 02 12:36 PM
Hi Mahesh,
I don't think there is one (not being obsolete); probably it's the easiest way to just write a Z_POPUP yourself.
Regards,
John.
2008 Jul 02 12:43 PM
Hi
use POPUP_TO_CONFIRM_STEP fm .
or else use popup_to_confirm like this.
data:v_question type string.
data:v_var1 type string value'how are u?',
v_var2 type string value 'fine?'.
concatenate v_var1' '
' '
' '
' '
v_var2 into v_question.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = ' '
DIAGNOSE_OBJECT = ' '
text_question = v_question
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 = POPUP_TYPE
IV_QUICKINFO_BUTTON_1 = ' '
IV_QUICKINFO_BUTTON_2 = ' '
IMPORTING
ANSWER = ANSWER
TABLES
PARAMETER = 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.