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

function display popup

Former Member
0 Likes
556

boys I should send a popup that as textline has a title that is more the connection you live, does it exist some function that accepts varying char?

thk.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
525

I need a function that as the title of the popup to accept a variable.

now with that I use when I pass a variable goes dunp

ex.

data : l_txt(50).

concatenate 'ciao' sy-datum into l_txt.

CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE'

EXPORTING

  • DEFAULTOPTION = 'Y'

diagnosetext1 = 'Controllo flag cancellazione'

  • DIAGNOSETEXT2 = ' '

  • DIAGNOSETEXT3 = ' '

textline1 = l_txt

  • TEXTLINE2 = ' '

titel = 'Controllo flag cancellazione'

  • START_COLUMN = 25

  • START_ROW = 6

  • CANCEL_DISPLAY = 'X'

IMPORTING

answer = l_risp.

Edited by: francesco aiello on Nov 11, 2009 5:08 PM

3 REPLIES 3
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
525

ROFL ...

Try this tranlator : [http://www.frengly.com/|http://www.frengly.com/]

Read only

Former Member
0 Likes
526

I need a function that as the title of the popup to accept a variable.

now with that I use when I pass a variable goes dunp

ex.

data : l_txt(50).

concatenate 'ciao' sy-datum into l_txt.

CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE'

EXPORTING

  • DEFAULTOPTION = 'Y'

diagnosetext1 = 'Controllo flag cancellazione'

  • DIAGNOSETEXT2 = ' '

  • DIAGNOSETEXT3 = ' '

textline1 = l_txt

  • TEXTLINE2 = ' '

titel = 'Controllo flag cancellazione'

  • START_COLUMN = 25

  • START_ROW = 6

  • CANCEL_DISPLAY = 'X'

IMPORTING

answer = l_risp.

Edited by: francesco aiello on Nov 11, 2009 5:08 PM

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
525

Hello,

POPUP_TO_CONFIRM_WITH_MESSAGE is an obsolete FM. You have to use POPUP_TO_CONFIRM.

DATA:
v_title TYPE char120,
v_ans TYPE char1.

v_title = 'Lets check this :)'.

DATA : l_txt(50).

CONCATENATE 'Ciao' sy-uname INTO l_txt SEPARATED BY space.

CALL FUNCTION 'POPUP_TO_CONFIRM'
  EXPORTING
   titlebar                    = v_title
*   DIAGNOSE_OBJECT             = ' '
    text_question               = 'Can i use Variable in Title?'
   text_button_1               = l_txt
*   ICON_BUTTON_1               = ' '
   text_button_2               = 'No'(002)
*   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                      = v_ans
* TABLES
*   PARAMETER                   =
 EXCEPTIONS
   text_not_found              = 1
   OTHERS                      = 2
          .
IF sy-subrc = 0.
  IF v_ans = '1'.
    WRITE: 'Hurray'.
  ENDIF.
ENDIF.

BR,

Suhas

PS: The title can be variable but maximum lenght is 40 characters.