2007 Nov 19 4:18 AM
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
2007 Nov 19 4:21 AM
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
2007 Nov 19 4:21 AM
2007 Nov 19 4:22 AM
Hi
Use the FM 'POPUP_TO_CONFIRM' to display your message.
Thanks
Vijay
PLZ reward points if helpful
2007 Nov 19 4:35 AM
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
2007 Nov 19 4:38 AM
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
2007 Nov 19 4:25 AM
Hi,
Use this FN module,
POPUP_TO_DISPLAY_TEXT create a dialog box in which you display a two line message
2007 Nov 19 4:25 AM
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
2007 Nov 19 4:37 AM
2007 Nov 19 4:41 AM
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
2007 Nov 19 5:07 AM
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.
2007 Nov 19 5:20 AM
hi,
try this.
at selection-screen.
<check condidtions>
message 'Processing started....' type 'I'.
2007 Nov 19 5:30 AM
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..