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

popup display

Former Member
0 Likes
1,710

Hi Friends,

My requiremnt is when i execute my program after entering some values on selection screen one popup should be displayed with some message.

plz help me on this

Thanks,

Satya raj

Hi Friends,

My requiremnt is when i execute my program after entering some values on selection screen one popup should be displayed with some message.

plz help me on this

Thanks,

Satya raj

12 REPLIES 12
Read only

Former Member
0 Likes
1,567

Hi sathya ,

here is the code for getting the <b>Popup</b> in the selection screen.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR SEL_NBA-LOW. 
  PERFORM ZNEW_VALUE_HELP_NBA. 

FORM ZNEW_VALUE_HELP_NBA. 

  SELECT DISTINCT ZBAREA FROM ZDIVNBABU INTO TABLE ITAB_NBA. 

  CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY' 
       EXPORTING 
            ENDPOS_COL   = 30 
            ENDPOS_ROW   = 40 
            STARTPOS_COL = 20 
            STARTPOS_ROW = 30 
            TITLETEXT    = 'Please Choose Your Entry' 
       IMPORTING 
            CHOISE       = COUNTS 
       TABLES 
            VALUETAB     = ITAB_NBA 
       EXCEPTIONS 
            BREAK_OFF    = 1 
            OTHERS       = 2. 
  IF COUNTS NE 0. 
    READ TABLE ITAB_NBA INDEX COUNTS. 
    SEL_NBA-LOW = ITAB_NBA-ZBAREA. 
  ENDIF. 
  CLEAR :ITAB_NBA,COUNTS.REFRESH:ITAB_NBA. 
  

ENDFORM.                               " ZNEW_VALUE_HELP_NBA 

Reward points if it is usefull ,....

Girish

Read only

mahaboob_pathan
Contributor
0 Likes
1,567

Hi,

Use FM 'POPUP_TO_CONFIRM' .

Read only

Former Member
0 Likes
1,567

Hi

Use the FM 'POPUP_TO_CONFIRM' to display your message.

Thanks

Vijay

PLZ reward points if helpful

Read only

0 Likes
1,567

Hi Vijay,

My req is once i enter values on selection screen i am pressing f8 button for execution immediately i need one popup msg as "sometext"

plz guide me whr and at which event i need to write code.

Thanks,

Raj

Read only

0 Likes
1,567

Hi Satya,

the coding can be done in the START-OF-SELECTION event.

START-OF-SELECTION.

CALL FUNCTION POPUP_TO_CONFIRM.

Then ur rest of the code.

Regards,

Himanshu

Read only

Former Member
0 Likes
1,567

Hi,

Use this FN module,

POPUP_TO_DISPLAY_TEXT create a dialog box in which you display a two line message

Read only

Former Member
0 Likes
1,567

Hi,

Following is the list of the Function Modules for displaying Popups containing different elements:

In ur case POPUP_TO_CONFIRM will be the Function Module to be used.

WS_MSG

Desc. Create a dialog box in which you display an one-line message.

POPUP_TO_CONFIRM_STEP

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

POPUP_TO_CONFIRM_WITH_MESSAGE

Desc. Create a dialog box in which you inform the user about a specific decision point during an action.

POPUP_TO_CONFIRM_WITH_VALUE

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

Desc. Provide user with several choices as radio buttons

POPUP_TO_DECIDE_WITH_MESSAGE

Desc. Create a dialog box in which you inform the user about a specific decision point via a diagnosis text.

POPUP_TO_DISPLAY_TEXT

Desc. Create a dialog box in which you display a two-line message.

POPUP_TO_SELECT_MONTH

Desc. Popup to choose a month

POPUP_WITH_TABLE_DISPLAY

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

POPUP_TO_CONFIRM

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

POPUP_TO_DISPLAY_TEXT

Desc. Displays a text in a modal screen

POPUP_TO_INFORM

Desc. Displays several lines of text. No OK or Cancel buttons.

POPUP_TO_CONFIRM/POPUP_TO_DISPLAY_TEXT

TH_POPUP Good One!

Desc. Display a popup system message on a specific users screen.

POPUP_TO_CONFIRM_LOSS_OF_DATA

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

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

POPUP_TO_CONFIRM_WITH_MESSAGE

Desc. Create a dialog box in which you inform the user about a specific decision point during an action.

POPUP_TO_CONFIRM_WITH_VALUE

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

Desc. Provide user with several choices as radio buttons

POPUP_TO_DECIDE_WITH_MESSAGE

Desc. Create a dialog box in which you inform the user about a specific decision point via a diagnosis text.

POPUP_TO_DISPLAY_TEXT

Desc. Create a dialog box in which you display a two-line message.

POPUP_WITH_TABLE_DISPLAY

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

Hope it helps.

Regards,

Himanshu

Read only

Former Member
0 Likes
1,567

Hi,

try writing it in the event "At Selection-Screen"..

Read only

Former Member
0 Likes
1,567

Hi satya ,

ABAP Pop-out box for user confirmation

*

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

*-- End of Program

Reward points if it is usefull.....

Girish

Read only

Former Member
0 Likes
1,567

Hi,

why don't u create a message class?

here try this,

if (condition)

message i001(mesg_class). "i for information message (displayed as popup )

endif.

when u double click on mesg_class,it asks u create object.

Assign package to this and continue.

u get a screen where u can write ur message.

save and activate and continue with your program.

i hope thius helps.

Read only

Former Member
0 Likes
1,567

hi,

try this.

at selection-screen.

<check condidtions>

message 'Processing started....' type 'I'.

Read only

Former Member
0 Likes
1,567

Hi..

Use ur code Under

At Selection Screen event..

Eg:-

parameters : Name(10).

data : begin of itab occurs 0 ,

name ,

end of itab.

at selection-screen.

itab-name = 'Name'. *Ur Message**

append itab.

CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'

EXPORTING

endpos_col = 12

endpos_row = 2

startpos_col = 1

startpos_row = 12

titletext = 'POP'

tables

valuetab = itab.

IF sy-subrc <> 0.

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

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

ENDIF.

Regards

Bala..