Pop up on selection screen
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.
Similar Messages
-
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. -
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,
AmitYou 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 -
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
-
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 -
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 -
How to get full row from F4 pop up window into selection-screen fields
HI ,
I had a selection screen having 3 fields (vbeln, posnr, ebeln )
If i press F4 on field 1 i will get a pop up having all values.
If i click on any one row in that popup, only the first field is getting filled with the value. But i want all the other fields to be filled with the corresponding values in the screen simultaneously.
Please let me know is there any solution for this...
Regards,
Kanth....Hi
U should base your selection-screen on a dictionary structure whith those three fields where you assign your search help exporting all values (VBELN, POSNR and EBELN).
In this way you'll obtain what you need automatically
Else you can manage it in POV event by your selef.
Max -
Need to have pop up window in selection screen and capture the user action.
Hello Friends,
I have a requirement, that need to show a pop up window after execution, and to get the action from user using a Push button.
I create a selection screen and a sub screen as window.
After user execute from the selection screen, I am popping up this window.
Window contains some input values to be entered and push button to identify the user action.
I try to capture the user action using sy-ucomm, but it does not hold any value when user press the button.
How to overcome this issue.
Here is the definition of the window.
Pop Up Window for getting values
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW TITLE title .
PARAMETER : p_vdate LIKE t9aa01-validfrom,
p_dcggt LIKE t9aa01-hkont,
p_dcgst1 LIKE t9aa01-hkont,
p_dcgst2 LIKE t9aa01-hkont,
p_na LIKE t9aa01-hkont.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 20.
SELECTION-SCREEN PUSHBUTTON 2(10) text-001 USER-COMMAND SVE.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 500.
Cheers,
Senthil
Edited by: Senthil on Jan 7, 2008 11:03 AMHi,
Try using the below code.
data : w_var type string.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
DEFAULTOPTION = 'Y'
textline1 = 'test '
TEXTLINE2 = ' '
titel = 'check'
START_COLUMN = 25
START_ROW = 6
CANCEL_DISPLAY = 'X'
IMPORTING
ANSWER = w_var.
if w_var = 'J'.
else.
endif.
Comments : J indicates Yes and N indicates No
Regards,
Jeswanth -
Detailed pop up screen in selection screen - urgent
hai experts,
how can we give a detailed pop up screen in selection screen.
My requirement is,
To display Details of spool Nos taken for current porogram to take print out from end user.
from OWN SPOOL REQUEST displays all other programs........
can any one give a right solution?
reward will avail for use full answer.
thanks in advance.
regards,
jai.mHi Jai
May be you can use this FM POPUP_WITH_TABLE_DISPLAY_OK with the list of spool number populated into internal table.
If you are particulary looking for selection screen, then decalre your selection screen as below
Selection-screen begin of screen 9000.
Selection-screen end of screen.
Then use the statement Call selection-screen 9000 starting at x y.
Hope this helps !
Regards
Ranganath -
Restrict variable values in the pop-up selection screen
Hi,
I have a variable based on a caracteristic that has 0COMP_CODE as attribute in a Web Report (BW 3.1B).
This variable has to be accessible so that users can select a value.
I need to restrict the values that users can see on the selection screen according to their 0COMP_CODE value, even in the pop-up.
I have tryed authorization variable and user exit, but none worked.
The best I could do was a "several single values" variable that was preselected with the caracteristics of their 0COMP_CODE, but it didn't worked in the pop-up.
Does anybody knows how to handle this?As far as I could find out, it should be made through customer exit.
The point is : I have to use a customer exit variable that has been check as "ready for input".
I can't find a way to restrict the values displayed in the variable selection screen (in the help pop-up window for this variable).
The exit can pre-fill the selection fields with values, but whenever the user opens the window, he sees all the values.
I have tryed all the values for I_STEP (0,1,2 and 3) but none did it.
Does anybody knows how to limit those values? -
Displaying selection screen as pop-up from dialog box
Hi,
I have a screen which is of dialog-box type. This dialog screen shows an ALV and has a button in the ALV toolbar. On pressing this button, a pop-up screen is to be displayed. This pop-up screen is designed as a selection-screen. Is it possible to display this selection screen as a pop-up from a dialog box screen?
Regards,
SuhasHi Suhas,
Its possible to display selection screen as pop-up from dialog box.....Check the code below...copy paste and execute...
SELECTION-SCREEN BEGIN OF SCREEN 123 AS WINDOW TITLE text-001.
PARAMETER p.
SELECTION-SCREEN END OF SCREEN 123.
CALL SELECTION-SCREEN 123 STARTING AT 20 5
ENDING AT 80 15.
The below code might help u to add a button in alvgrid's toolbar......
* CLASS lcl_event_handler DEFINITION
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
DATA: wa_toolbar TYPE stb_button,
calc TYPE REF TO cl_gui_frontend_services.
METHODS : toolbar_handle FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object
e_interactive,
ucomm_handle FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm.
ENDCLASS. "lcl_event_handler DEFINITION
* CLASS lcl_event_handler IMPLEMENTATION
CLASS lcl_event_handler IMPLEMENTATION.
METHOD toolbar_handle.
MOVE 3 TO wa_toolbar-butn_type.
APPEND wa_toolbar TO e_object->mt_toolbar.
MOVE : 0 TO wa_toolbar-butn_type,
'CALC' TO wa_toolbar-function,
'@0M@' TO wa_toolbar-icon,
'Calculator' TO wa_toolbar-quickinfo.
APPEND wa_toolbar TO e_object->mt_toolbar.
ENDMETHOD. "toolbar_handle
METHOD ucomm_handle.
IF e_ucomm = 'CALC'. " When button added in toolbar is clicked
IF calc IS INITIAL.
CREATE OBJECT calc.
ENDIF.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = 'CALC'.
ENDIF.
ENDMETHOD. "ucomm_handle
ENDCLASS. "lcl_event_handler IMPLEMENTATION
DATA : container TYPE REF TO cl_gui_custom_container,
grid TYPE REF TO cl_gui_alv_grid,
event TYPE REF TO lcl_event_handler,
it_display TYPE TABLE OF mara,
wa_display TYPE mara.
START-OF-SELECTION.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'BASIC'.
PERFORM build_it_display.
PERFORM create_objects.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
SET SCREEN 0.
LEAVE SCREEN.
WHEN 'EXIT'.
SET SCREEN 0.
LEAVE SCREEN.
WHEN 'CANC'.
SET SCREEN 0.
LEAVE SCREEN.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form build_it_display
* text
* --> p1 text
* <-- p2 text
FORM build_it_display .
SELECT * FROM mara UP TO 15 ROWS INTO TABLE it_display.
ENDFORM. " build_it_display
*& Form create_objects
* text
* --> p1 text
* <-- p2 text
FORM create_objects .
IF container IS INITIAL.
CREATE OBJECT container
EXPORTING
container_name = 'CUSTOM'.
CREATE OBJECT event.
CREATE OBJECT grid
EXPORTING
i_parent = container.
SET HANDLER event->toolbar_handle FOR grid.
SET HANDLER event->ucomm_handle FOR grid.
CALL METHOD grid->set_table_for_first_display
EXPORTING
i_structure_name = 'MARA'
CHANGING
it_outtab = it_display.
ENDIF.
ENDFORM. " create_objects
Cheers,
Jose. -
Selection Screen pop up issue - with jump query RRI
Hi Experts,
I am facing one issue regarding Jump Query(RRI) functionality.
I have one query and also one drill down query.
I need to jump from the first query to the drill down query.
To achieve this , I have added the first query as sender in RSBBS T-Code and added the drill down query as Receiver.
I have also done the variable assignment from the Assignment Details tab.
Now the Jump functionality is working.
But , whenever I am jumping to the receiver query , The selection screen pop up is appearing.
I don't want this selection screen to appear during jump.
Please help me in this regard.
Thanks,
BiswarupHi ,
For testing purpose , I have used a single query as sender as well as receiver query.
So , the characteristics set is same.
The query is a simple query, with only one input variable.
and I have assigned it, from variable assignment.
But still the selection screen pop up is coming , when trying to jump.
Please suggest.
Regards,
Biswarup
Maybe you are looking for
-
Gx720 sound driver in windows xp not working
hi, i recently reinstalled window xp (sp3) on my gx720, everything is working fine, except for the sound card drivers. i have downloaded all of the drivers from the msi site and all of them have installed without error, however when I install the re
-
Can you change the factor on each item in the same pricelist!
In the pricelists, if you go in them you'll see it shows the item code, item description then base price, factor and then the price. But can you make that factor different for each item in the same pricelist? In the database it stores the factor for
-
How to remove black layer around answer form
Hi guys, When i export a filled in user registration form, I get these black layers around my filled in answers. I would like to remove these layers because I need to send these filled in forms back to my clients because they need to sign them.
-
How to separate content area from the image area in cs6
how to separate content area from the image area in cs6? looks just fine in design view but when opened up in explorer my text /content area is over the image area. the content is suppose to be below the image not over it. How do I move it down? Ever
-
This started as just a small section was blank, but now many more sections are blank. Some of the blank spots contain links to other sections, and if I click on them, the do work. I was hoping some of the new updates would solve the problem but no lu