Pop up before selection screen
hi all,
i need to give a pop up screen before the selection screen which will take the value for the number of records to be displayed. how to do this ?
thanks,
Amit
You could do something like this.
report zrich_0001.
data: value1 type spop-varvalue1.
data: answer type c.
parameters: p_check type c.
load-of-program.
check sy-ucomm = space.
call function 'POPUP_TO_GET_ONE_VALUE'
exporting
textline1 = 'Number of Records:'
* TEXTLINE2 = ' '
* TEXTLINE3 = ' '
titel = 'Number of Records'
valuelength = '5'
importing
answer = answer
value1 = value1.
start-of-selection.
But I really don't understand your requirement. Why not ask for this value on the selection screen itself?
Regards,
Rich Heilman
Similar Messages
-
Message before selection screen.
Dear Experts,
Kindly help in knowing how to display a message in small pop-up, before a Tcode takes to the selection screen.
Regards
Jogeswara RaoHi,
You just need to add following code in the program associated with your TCODE, i.e. in Load-of-PROGRAM event.
***CODE*****
REPORT ZTEST12.
PARAMETERS a1 .
Load-of-PROGRAM.
CALL FUNCTION 'C102_POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = ' '
TEXT_QUESTION = 'POPUP'
TEXT_BUTTON_1 = '1'
ICON_BUTTON_1 = ' '
I_ICON1_INFO = ' '
TEXT_BUTTON_2 = '2'
ICON_BUTTON_2 = ' '
I_ICON2_INFO = ' '
TEXT_BUTTON_3 = '3'
ICON_BUTTON_3 = ' '
I_ICON3_INFO = ' '
TEXT_BUTTON_4 = '4'
ICON_BUTTON_4 = ' '
I_ICON4_INFO = ' '
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL_BUTTON = 'X'
START_COLUMN = 25
START_ROW = 6
IMPORTING
ANSWER =
TABLES
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.
AT SELECTION-SCREEN OUTPUT.
**EndCode***
In the same way, you can call any Popup FM at same position..
It will be called before selection screen appears.
Thanks
Raghav M.
Edited by: Raghav Malhotra on Jun 3, 2011 6:34 AM -
Hi all,
i have a requirement to create a pop up for user selection as:
there is a field -'date' on selection screen which user enters.
this date queries to a table which contains same date and time against each date we get suppose 3 timestamps of that date.
so,we have to create a pop up so that user can select any of the 3 timestamps of this date which he enters.
after the user selects the timestamp ,the table is again queried based on the date and time now.
what should be the way to acheive this???Hi,
You can use the FM "F4IF_INT_TABLE_VALUE_REQUEST" to display and get the value. -
AUTHORITY-CHECK before Selection-screen?
Hi,
i want to check the authority before the selection-screen. I do it in this way:
AT SELECTION-SCREEN OUTPUT.
AUTHORITY-CHECK OBJECT 'Z_REPORT'
ID 'PROGRAM' FIELD SY-REPID
ID 'ACTVT' FIELD '16'. "Ausführen
IF SY-SUBRC <> 0.
MESSAGE E010 WITH 'Keine Berechtigung für Programm: '
SY-REPID.
ENDIF.
But the selection appears without any parameters.
Is there a way to check without the selection-screen?
thanks.
regards, DieterHi Dieter,
Please check the below code for at selection screen authorization check.
Handling selection screen events
AT SELECTION-SCREEN ON p_carrid.
IF p_carrid IS INITIAL.
MESSAGE 'Please enter a value' TYPE 'E'.
ENDIF.
AUTHORITY-CHECK OBJECT 'S_CARRID'
ID 'CARRID' FIELD p_carrid
ID 'ACTVT' FIELD '03'.
IF sy-subrc = 4.
MESSAGE 'No authorization for carrier' TYPE 'E'.
ELSEIF sy-subrc <> 0.
MESSAGE 'Error in authority check' TYPE 'A'.
ELSE.
IF sy-ucomm = 'ONLI'.
CALL SELECTION-SCREEN '0500'.
ENDIF.
ENDIF.
Regards,
Md Ziauddin -
Hi,
My requirment is to enter a table name in selections screen once i press enter a pop up window should be displyed in which all the fields of that particular table should be displayed among those user can choose fields which he/she wants. please anybody can help me out how to perform this action.
Regards
PrasanthHi,
Please refer the code below:
AT SELECTION-SCREEN.
PERFORM f_get_all_fields. "Get the fields into internal table
PERFORM f_field_selection. "Select the fields for output
PERFORM f_store_field. "Store fields.
PERFORM f_segregate_fields. "Get fields selected
*& Form f_get_all_fields
* text - Get the fields into internal table
FORM f_get_all_fields .
CALL FUNCTION 'NAMETAB_GET'
EXPORTING
langu = sy-langu
only = ' '
tabname = 'ZGLS_RFPOS'
* IMPORTING
* HEADER =
* RC =
TABLES
nametab = gt_table
EXCEPTIONS
internal_error = 1
table_has_no_fields = 2
table_not_activ = 3
no_texts_found = 4
OTHERS = 5 .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*& Form f_field_selection
* text - Select the fields for output
FORM f_field_selection .
DATA : lv_length TYPE i VALUE 0.
DATA lv_stop TYPE c.
LOOP AT gt_table.
MOVE : gt_table-fieldname TO gt_choice_tab-fieldname,
gt_table-fieldname TO gt_choice_tab-field,
gt_table-fieldtext TO gt_choice_tab-fieldtext,
gt_table-tabname TO gt_choice_tab-tabname,
gt_table-ddlen TO gt_choice_tab-length.
APPEND gt_choice_tab.
CLEAR gt_choice_tab.
ENDLOOP.
CALL FUNCTION 'HR_FIELD_CHOICE'
EXPORTING
maxfields = gv_max_field
titel1 = text-002
titel2 = text-003
popuptitel = text-004
* NOTDELETEABLE =
* INFO_TEXT =
* DYN_PUSHBUTTON_TEXT1 =
* DYN_PUSHBUTTON_TEXT2 =
* DYN_PUSHBUTTON_TEXT3 =
* NOSORT = ' '
* IMPORTING
* RETURN_CODE =
TABLES
fieldtabin = gt_choice_tab
selfields = gt_selecttab
** EXCEPT_TAB =
EXCEPTIONS
no_tab_field_input = 1
to_many_selfields_entries = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CLEAR lv_stop.
LOOP AT gt_selecttab.
READ TABLE gt_choice_tab WITH KEY fieldname = gt_selecttab-fieldname.
IF sy-subrc EQ 0.
lv_length = gt_choice_tab-length + lv_length.
IF lv_length > 170.
MESSAGE s000(zgl) WITH text-005.
* LEAVE PROGRAM.
lv_stop = 'X'.
EXIT.
ENDIF.
ENDIF.
ENDLOOP.
IF lv_stop = 'X'.
CLEAR gt_selecttab[].
REFRESH gt_choice_tab.
PERFORM f_field_selection.
else.
ENDIF.
CLEAR lv_stop.
ENDFORM. " f_field_selection
*& Form f_segregate_fields
* text - Get fields selected
FORM f_segregate_fields .
LOOP AT gt_field.
READ TABLE gt_selecttab WITH KEY fieldname = gt_field-low.
IF sy-subrc NE 0.
DELETE gt_field.
CLEAR gt_field.
ENDIF.
ENDLOOP.
ENDFORM. " f_segregate_fields
Thanks,
Sriram POnna. -
Can we display a message before selection screen
hi experts,
I need to give a message to user's to give information abt the selection screen .
like select values between 1000 to 2000 only.
date must be todays date.
so how i can display a message before the selection screen is displayedtry like this it may be useful for you.
load-of-program.
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
EXPORTING
TITEL = 'Selection screen info'
TEXTLINE1 = 'Material no should be between 1000 and 2000'
TEXTLINE2 = 'Plant should be 1000'
* START_COLUMN = 25
* START_ROW = 6
start-of-selection.
if you want some more fields to pass then search popup* fn module in se37 which can be useful 4 you.
regards
shiba dutta -
QUERY when run on WEB and RSRT then RRI show selection screen on receiver.
Hi,
We have two query: Query 1 and Query 2.
Query 1 can be RRI to Query 2.
The variable for fiscal period and Forecast version are both mandatory. The selection for plan version is optional.
When run this on BEx Analyzer, the jump work smoothly without pop-up of selection screen of the receiver query.
However, when run on RSRT and Web, the selection screen is being pop-up and you need to press execute button before the 2nd query will be shown.
The value of the variables is pass correctly.
Fiscal Period on 1st query is being restricted by two variables.. one interval variable on Free characteristics.. and one single variable on restriction of key figure. The single variable is the one exist and passed on the 2nd query.
Hope you can help me.the only thing i can think of on the wbe is a setting for opening windows in tabs or open new window under tools for rsrt not sure, did you try to run it in HTML in rsrt?
it could be setting in SPRO for reporting worse comes to worse open a note with sap. -
I am able to determine the link for a report. How can I determine the link for the selection screen which is to be presented before the query is run?
The query is web based. ThanksHI,
At the end of your query link add &variable_screen=X.
Now exexcute this link it will pop up the selection screen.
Regds,
Shashank -
Dear Gurus,
I'm wondering is there any way to pop up a selection screen before printing a form using output type ???
Thanks & Regards,
William PrawiraThanks for the reply.
My requirement is that I need to pop a screen when user is printing billing document. Then use the screen as input to later on beeing printed on the form.
I created a selection screen over my program for my smartforms, then call it using the call screen. But seems like it can't find my screen.
Any idea for condition above?
thanks & Regards.
William Prawira -
Selection screen list values initiating problem
Hi All,
I have designed a selection screen with list and initiating that list in initialization event. When i run the report through se38 the list is populated with values. But if i run the report through T-CODE the list is not populated with values.
why?
Thanx in advanceHello,
My understanding says that initialization event is triggered before selection screen gets generated.
So, i would suggest you write the code in At selection screen Output.
I have came across same problem and this thing worked in my case.
Regards,
Jacky. -
TO display pop_up on selection screen And chosse that field in 'SELECT' sta
Hello,
I want a pop up on selection screen when user clicks the push button on selection screen pop up should come on selection screen and display the all field of YTLEA table. when user checks few or all field from pop up then data for that field is selected from the YTLEA table.DDIF_TABL_GET
-
Problem in using at selection-screen output
Hai Frnds,
I am using 5 parameters in the selection screen . I am entering data in the 4 input fields. Then I am doing concatenate 4 fileds data into the 5th field in the event AT SELECTION-SCREEN OUTPUT, but my problem is When ever i click ENTER , then only 5th field is updating. With out ENTER key , Is it possible update 5th filed.
Thanks,
Kiran.Hi,
We can restrict the functionality of ENTER.
User the Concatenation in AT SELECTION-SCREEN EVENT
because AT SELECTION-SCREEN OUTPUT is triggered before
selection screen is displayed.Below code will definitly work.
Ex:
Tables:SSCRFIELDS.
At selection-screen.
IF SY-ucomm = ' '.
Clear SSCRFIELDS-UCOMM.
ENDIF.
CHECK SSCRFIELDS-UCOMM EQ 'ONLI'.
CONCATENATE <FIELDS> INTO PARAMETER5.
ONLI is Function code of F8
' ' is for enter.
The above code will surely work.
Thanks. -
Selection screen / how to clear values in screen parameters parameters
Hello ,
I am developing report . It is simple one with standard screen 1000 ( Not Dynpro ).
On the screen I have several parameters and select options . When I run program , display list
and press the "Back" Button from tool bar ,entered values still remain in screen parameters.
I code I did 'clear' of parameters , so after pressing "back" button and before selection screen
is displayed the parameters show up as initial ( empty ) but once selection screen is displayed
the values are in parameters again .
Can you advice how I can clean up the values from screen parameters .
Thank youHi,
Try the below code....
DATA: executed TYPE n.
SELECT-OPTIONS : selop1 FOR sy-datum.
INITIALIZATION.
executed = 1.
AT SELECTION-SCREEN OUTPUT.
BREAK-POINT.
IF executed = 1.
executed = 0.
REFRESH: selop1.
CLEAR : selop1.
ENDIF.
Regards
Arbind -
Hi,
we have a different behaviour by refreshing the selection screen in portal and RSRT since Version 7.
If you selected an optional variable in the portal, run the query and refresh the variables, the optional variable ist deleted.
With RSRT the optional variable is not deleted.
Any idea what the reason is?
An OSS with SAP do not bring a solution since november.
ThanksHi Annette,
SAP offers a facility to personalize the selection screen entries for a particular user for a particular query. Once a query is personalized for a user for a Query, whenever the user executes the query, instead of popping up the selection screen the query get directly executed and reports the result.
In your case, there could be a chance that such a personalization has happened.
After opening bex analyser using T-code rrmx, when you try to execute a query with selection variabels , the selection screen should pop up. If that doesn't happen and the query displays the result directly or displays the message - "no data available " - this means personalization could have happened.
Now when you try to refresh the query output, this should take you to the variable selection screen. There will be an icon at the bottom of the selection screen ( 5th icon from left) " Personalize variables for the query" - if this is clicked by error the variable values entered will get personalized. When such a personalization occurs the smiley against each selection screen entry turn green from blue. If that smiley is yellow , we need to reset the personalization. To reset the personalization, click on the smiley against the variables and select the reset personalization option.
This should help you if an personalization of query variables has happened. -
How to generage pop up screen on selection screen of report program?
Hi Guys,
I am having a requirement to generate the <b>pop up screen on the selection screen</b> of the report program.
Suggest me the best one with model programHi Chakradhar,
Refer this code :
SELECTION-SCREEN BEGIN OF BLOCK BL2 WITH FRAME TITLE TEXT-456.
PARAMETERS PO RADIOBUTTON GROUP RADI USER-COMMAND R.
SELECTION-SCREEN END OF BLOCK BL2.
AT SELECTION-SCREEN OUTPUT.
CALL SCREEN 100.
when user will click on this radio button , a pop up screen will appear dynamically.
Reward points if helpful.
Regards,
Hemant
Maybe you are looking for
-
Deleting more than one e-mail at a time
Is there a way to delete multiple e-mails at once? it takes an awful long time to delete them one at a time.
-
Acrobat 9 bug? - Print Pages function does not print all bookmarked pages
We use the Bookmark Print Pages function to allow for easy printing of sections of large PDFs. All of the pages that should be printed are bookmarked. The bookmarked pages print correctly in Adobe 8, but not in Adobe 9. I have put together a javascri
-
Change order of elements each time a page is loaded?
I'm trying to do a web page that lists products but I want to make it load the products in a random order each time the page loads. Is there a way this can be done without having to set up a database? If I did each product, say as a library item, is
-
Iphone 4 Belkin Mirca issue - case program
Hello, yesterday i received my "new" Belkin MIrca case from Apple's case program. It's slightly deformed and all scratched up right out of box. Is there anything I can do with it to get it replaced?
-
Problems installing flash player on windows 7 32bit
I am trying to install the new flash player on my Windows 7 32-bit with Internet Explorer 9 and every time it gets to 50% it says that it cant continue because IE is open but I have closed it, rebooted, tried again and still comes up with the same re