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

FM for pop-up

Former Member
0 Likes
935

Hello,

I need a solution on pop-up box should appear in standard tcode PTMW with option of YES and NO button with control.

I have Badi in that regard for TMW which is PT_BLP_USER.

But I need FM or whatever object,method of class then to call pop-up box.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
886

use POPUP_TO_CONFIRM

Hello,

I need a solution on pop-up box should appear in standard tcode PTMW with option of YES and NO button with control.

I have Badi in that regard for TMW which is PT_BLP_USER.

But I need FM or whatever object,method of class then to call pop-up box.

7 REPLIES 7
Read only

Former Member
0 Likes
886

This message was moderated.

Read only

Former Member
0 Likes
887

use POPUP_TO_CONFIRM

Read only

Former Member
0 Likes
886

Hi,

Please use FM "POPUP_TO_DECIDE"

or "POPUP_TO_CONFIRM".

This may solve your problem.

Thanks & Regards,

Sudheer

Edited by: sudheer kumar on May 5, 2009 2:29 PM

Read only

Former Member
0 Likes
886

Hi,


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

  CALL FUNCTION 'POPUP_TO_CONFIRM'
    EXPORTING
      titlebar      = 'Interface Screen'          "Screen title...
      text_question = w_title
      text_button_1 = 'Yes'
      icon_button_1 = 'ICON_OKAY'         "icon for Ok
      text_button_2 = 'No'
      icon_button_2 = 'ICON_BREAKPOINT'  "icon for cancel
    IMPORTING
      answer        = w_answer.
  IF sy-subrc <> 0.
  ENDIF.


if answer is 1 then he selected Ok
if answer is 2 or 3 he pressed cancel or No button.

regards,

Prabhudas

Read only

Former Member
0 Likes
886

Hi Vishal ,

Try the Function Module -- POPUP_TO_CONFIRM_STEP.

Check the bellow code -

DATA : w_return TYPE c.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
  EXPORTING
    textline1      = 'Do you want to continue ?'
    titel          = 'Confirmation'
    cancel_display = 'X'
  IMPORTING
    answer         = w_return.
WRITE : w_return.

Note : In the W_RETURN variable will hold the return value like -

when the YES will be selected the value will be J and

when the NO will be selected the value will be N .

Regards

Pinaki

Read only

soumya_jose3
Active Contributor
0 Likes
886

Hi Vishal,

Try this:

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

  • TITLEBAR = 'Test Pop Up'

  • DIAGNOSE_OBJECT = ' '

text_question = 'Do you really want to close the debugger?'

  • TEXT_BUTTON_1 = 'Yes'

  • ICON_BUTTON_1 = ' '

  • TEXT_BUTTON_2 = 'No'

  • 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.

Regards,

Soumya.

Read only

Former Member
0 Likes
886

Answered