Changing the Selection Screen on the selection of a radio button
Hi experts,
I am stuck with a situation here.
I have a selection screen with 2 blocks.
The first block contains 5 radio buttons.
The second block contains 7 select options fields.
Now i want to show different select options when the user selects different radio buttons.
For example, when the user selects radio button 1, select options 1, 2, 3, 4, and 5 should be shown.
When the user selects radio button2, select options 3, 4, 5, 6, and 7 should be shown.
How do i go about implementing this????
I guess i need to do the coding in event "AT SELECTION-SCREEN OUTPUT".
Should i use MODIF ID????
Please help.
Points will be awarded.
Thanks and Regards
Gaurav Kumar Raghav
Use AT SELECTION-SCREEN
not AT SELECTION-SCREEN OUTPUT.
cause output addition makes it a PBO not PAI
check ur requirement & use the events accordingly
group all select options under one group which you want to show on selection of radio button
under AT SELECTION-SCREEN
loop at screen and change the property "ACTIVE (0/1)" for the group you want
& don't forget to modify screen table in the end.
one more thing u should do is use addition USER-COMMAND with your radio buttons.
PARAMETERS : r1 RADIOBUTTON GROUP r1 USER-COMMAND f1,
r2 RADIOBUTTON GROUP r1.
PARAMETERS : p1 TYPE c MODIF ID a,
p2 TYPE c MODIF ID b.
AT SELECTION-SCREEN . " output
LOOP AT SCREEN .
IF r2 = 'X' AND screen-name = 'P1'.
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Edited by: mrugesh phatak on Oct 8, 2008 11:00 AM
Similar Messages
-
Invisible Selection Screen(Low and High) accordingly through radio-button
Dear Experts,
Currently I've faced some problem regarding selection-screen.Our user want that when he click P1(say) radio-button, then selection-screen "s1-high " is invisible and when he click P2(say) radio-button that time "s1-low" is invisible.
So can anybody tell me the how can i do it?
warm regards,
sameek mazumder.Hi Sameek,
If user clicks radio button P2 then how can s1-low become invisible? Do you mean when radio button P2 is clicked program will not display the select option at all?Since If s1-low becomes invisible there is no point of s1-high in the display. Please clarify your requirement.
However, I think that if it can be something like if radio button 1 is pressed s1-low is visible. If radio button 2 is pressed normal select option is displayed. Please check the following code to achieve this:
DATA: gv_matnr TYPE matnr.
PARAMETERS : p_rb1 RADIOBUTTON GROUP g1 USER-COMMAND radio,
p_rb2 RADIOBUTTON GROUP g1.
SELECT-OPTIONS s_matnr FOR gv_matnr.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name CS 'S_MATNR-HIGH'.
CASE 'X'.
WHEN p_rb1.
screen-active = 0.
WHEN p_rb2.
*Do nothing
ENDCASE.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
INITIALIZATION.
LOOP AT SCREEN.
IF screen-name CS 'S_MATNR-HIGH'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Hope this would help.
BR,
Atanu -
User exists for changing the selection screen of the transaction CS11
Hi,
I want to change the selection screen of the transaction cs11 and modify the ALV output.
I searched the old forums but not got satisfactry results.
I want to change the plant and material from the parameter to the select option.
i dont want to copy the transaction for the zcs11.
any suggestion on this ?
Regards,
udupione more requirement i have is that, i need to remove all the header fields such as material , plant etc and place that field in the item level. i can use the user exists PCSD0002 for the adding the customer field in the item. but how can i removed the header level field such as plant and material. whether we have any user exits for that?
-
SHD0 - Selection screen of the variant appears without changes after saving
Dear all,
I created a variant for the transaction MB11 with SHD0.
In the selection screen, I hide various fields.
When I run the variant everything is working normally.
But after saving the document, the selection screen appears again without the hidden fields.
Any ideas how to avoid, after saving, the selection screen without the hidden fields?
Thanks in advance.
CarlesHello Madhu,
Thanks for your response.
I checked the link. When I have created the transaction variant I used a similar procedure.
My issue is that, when I used the variant, I loop again on the selection screen at the end. And it doesn't have the chagnes i made.
Cordially
Carles
Edited by: carles.bostezo on Sep 5, 2011 12:40 PM -
How to add customize message on the variable selection screen in the query
Hi all,
Can we add an customise message on the variable selection screen in the query? If yes please let me know how it can be achevied?
Thanks,
RaniHi Rani,
I faced a similar issue (for what I understand your request is).
My requirement for the Variable Screen was to do:
1) place a link to a ppt file
2) remove buttons "Save", "Save As...), "Delete"... the standard buttons come when running the Query or WebTempl
We were using a Web Templ for BI7.0
I struggled trying to find out how to do it. My conclusions are:
- WAD, not sure we can accomplish it using a Web Template but i did not "play" a lot with the Web_Template Properties in order to know
- XHTML, I was told in my post HTML modification was the way, but I have close to nil background in HTML and couold not find the way of accessing the Variable Entry screen
For instance, I had to remove similar buttons and change some font size from a link on the Web Template (WAD), which was pretty straight forward. In WAD the buttons come with its own icon and to increase the Font size for that link we used XHTML (<font size="2" >). But the heck of the variable screen...well, i just did not get trhough to it to modify it in any way.
Good luck,
Definetly in a Query I would say that no.
alex
PS: If anyone had a better insight, please feel free to share it. -
How to display the sort value in the selection screen in the report title
Dear All,
How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
Good day,
Thanks and regards
Arun SHi Arun,
Try this.
1, Set one dynamic parameter,
2, Drag and drop that parameter into your report title.
3, Pass the value(sort value) dynamically from your application,
4, Cheers..
Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then set the data source from CR designer. and darg and drop that data column into the report.
Hope this will work,
Regards,
Salah
Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM -
How to replace the existing selection screen with new selection screen
Hi,
I have first selection screen with parametre as a table name, then I have created dynamic selection screen as 2nd selection screen with different fields of that table as select options. This is done using genaration of dynamic report. Now If I click on button on this 2nd selction screen , then I want to replace this 2nd dynamic selection screen , with the other selection screen fields.
Can anybody guide me, How to do replace one slection screen with different selection screen.
and one imp thing is this selction screen is populating with dynamic fields on it.
Regards,
MrunalAs I can understand you want to make some of the screen field to disable or visible on screen depending upon the interaction of user with screen 1.
You may use this example code in PBO of screen 2.
LOOP AT SCREEN.
" action has been taken to modify the area office screen as per the option chosen at screen 99.
CASE ACTION.
" if the user has taken up the option of UPLOAD
WHEN 'UP'. " screen processing while we upload the plan
" during upload we will make dates as output fields only
IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
" also make 2 buttons disabled
IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_VE'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
WHEN 'DN'. " screen processing while we upload the approved plan
" during upload we will make dates as output fields only
IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
" also make 2 buttons disabled
IF SCREEN-NAME = 'AO_UP' OR SCREEN-NAME = 'AO_VE'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
WHEN 'VW'. " screen processing while we view the plan
" during upload we will make dates as output fields only
IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
" also make 2 buttons disabled
IF SCREEN-NAME = 'RLGRAP-FILENAME' OR SCREEN-NAME = 'FNAME'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
" and hide the file input field
IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_UP'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDCASE.
ENDLOOP. -
I have a macbook and when I power it on and then select myself as a user...It won't power up. It stays in the white screen with the apple logo. I am online currently under 'guest user'. Is there anything I can do from the keyboard to fix this??? Help!!!
Could you specify the model of MacBook and the OS X it's running, please? Some of the advice or references vary along with the system, so this could be helpful to formulate a reply. I've never used a Guest User selection, but do have more than one User.
If the computer does not have an optical drive, you may be able to boot it into a recovery disk mode or something; in an attempt to see what is wrong and maybe fix it.
Good luck & happy computing! -
How to have a selection screen in the smartform
Hi,
<i><b>How to have a selection screen in the smartform. <u>Could anybody share with the example of driver program and the smart forms</u> . Please send me ASAP</b></i>
Thanks
Shiva shekarHi,
Refer to this
http://www.****************/Tutorials/Smartforms/SFMain.htm
Thanks,
Anitha -
I have mapped the fields on the selection-screen to the BDC on transaction
I have mapped the fields on the selection-screen to the BDC on transaction F110.
When I am selecting a particular any value in select-option on the selection screen, it is giving some default value and the value given by me,for example:
Payment methods:C
but in BDC recording for F110 Payment methods:IEQC when the programs is running in foreground mode.
how can I rectify it?This is because payment methods may be a table and what you see IEQC is actually, I for include, EQ for equal and C as your payment method. This is standard structure for ranges or select-options. You can use variable-low which will give you only C.
-
Calling the selection screen of the calling program after the execution of
Hi all,
I had created a program for a purchase order display.
It has three radio-buttons from where i am calling different programs.
I am using submit in the calling program and get parameter in at selection-screen output of the called program.
I am getting the end report without the display of the selection screen of called program. But when i am clicking back on the end-report then i want to come back on the selection screen of the calling program. But i am coming out of the execution.
Can anyone please tell me how to call the selection screen.
Thanks in advance,
Regards
vamsiHi, when you do the SUMBIT statement, make sure that you are using the extension........ AND RETURN.
Submit <report> <b>AND RETURN</b>.
This should return control to the caller.
Regards,
Rich Heilman -
User presses F4 on the selection screen for the field ''Transport Request"
Dear ALL,
I want to build up a functionality in my report where if the user presses F4 on the selection screen for the field ''Transport Request", then it will display all the Transport Requests involving that particular User...
What I mean is the normal process that is provided by SAP on saving an object in a package & assigning it to TR...
How do we Achieve it ?Hi.
First we need to give the client after that client number related requestes display in second parameter F4 help for that purpose i used two function modules.First for read the client no dynamically after that pass the client number second function module.
then u can get all the request for that client.
DFIELD-FIELDNAME = 'P_MANDT'.
APPEND DFIELD.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'Y9EZ_TR_COPYCLIENT'
dynumb = SY-DYNNR
tables
dynpfields = DFIELD
READ TABLE DFIELD INDEX 1 ."WITH KEY DFIELD-FIELDVALUE = 'P_MANDT'.
V_MANDT = DFIELD-FIELDVALUE.
CALL FUNCTION 'TR_F4_REQUESTS'
EXPORTING
IV_USERNAME = SY-UNAME
IV_TRKORR_PATTERN =
IV_TRFUNCTIONS =
IV_TRSTATUS = 'RNDL'
IV_FROM_DATE =
IV_TO_DATE =
IV_CLIENT = V_MANDT
IV_PROJECT =
IV_TITLE =
IV_VIA_SELECTION_SCREEN = 'X'
IV_COMPLETE_REQUESTS = 'X'
IT_EXCLUDE_REQUESTS =
IMPORTING
EV_SELECTED_REQUEST = S_TRKORR-LOW.
ES_SELECTED_REQUEST =
'TR_F4_REQUESTS' This function module for request
Regards
muralii -
Reg: calling selection screen from the second list
Hi all,
How can we call the selection screen from the second screen.
Can any one help me to solve this problem.HI RJ,
Try .....
case sy-ucomm.
WHEN '&F03'.
LEAVE TO SCREEN '0'.
endcase.
after the FM for grid-display
i m using the same .....
i hav selection-screen..then alv grid screen 1 then again another screen with alv grid display..
bt in my code for first alv grid ...i m using REUSE_ALV_GRID_DISPLAY_LVC
as
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'SET_PF_STATUS'(303)
i_callback_user_command = 'USER_COMMAND'(304)
i_grid_title = 'Reconcilation Report'(305)
is_layout_lvc = it_layout
it_fieldcat_lvc = gt_fieldcat3[]
TABLES
t_outtab = gt_msg[].
here i musing set_pf_status to add one pushbutton to the screen. in ur case u can avoid that...
after that
*& Form set_pf_status
text
-->EXTAB text
FORM set_pf_status USING extab TYPE slis_t_extab. "#EC NEEDED
SET PF-STATUS 'STANDARD_FULLSCREEN'.
*get back to Selection Screen
case sy-ucomm.
WHEN '&F03'(328).
LEAVE TO SCREEN '0'.
endcase.
ENDFORM. "set_pf_status
its working for me..
Thnx
Rohit...
Edited by: Rohit Kumar on Oct 29, 2008 3:20 PM -
Dynamic selection screen fetching the value from table fields
hi gurus,
i have one table say ztable...and i should create a dynamic selection screen which should populate the selection screen by the table field names.
example..if i have 3 fields im my table..my selection screen should have three selection option fields..and in future if i add one more field in my table it should automatically create another slection-option in selection screen..
thanks
SudheerDo you mean like SE16 works. If so, you should notice that if you amend the selection fields, the screen program is actually re-generated.
That is what is happening. A program is being created and re-generated.
To create a dynamic selection screen in a single program is not possible ( I may be wrong ). If it is possible, then you would have problems in defining selection screen field names and using them. -
How to pass value from the Z Report to the selection screen of the std rep
Dear Experts,
i have developed a report and the values are maintained only in internal table based on some condition. When I execute the report, for example MM60, there is a material number field for multiple selection.
the report should call the standard transaction and pass the values from the internal table to the multiple selection- material number of the standard transaction.
the standard transaction should never get executed automatically. Only the value should get passed from internal table to the standard t code. Please help.
regards,
ShankarHai
Go through the following Documents
SUBMIT rep.
Additions
1. ... LINE-SIZE col
2. ... LINE-COUNT lin
3. ... TO SAP-SPOOL
4. ... VIA SELECTION-SCREEN
5. ... AND RETURN
6. ... EXPORTING LIST TO MEMORY
7. ... USER user VIA JOB job NUMBER n
8. ... Various additions for parameter transfer to rep
9. ... USING SELECTION-SETS OF PROGRAM prog
Effect
Calls the report rep . Leaves the active program and starts the new report rep .
Addition 1
... LINE-SIZE col
Effect
Prints the report with the line width col .
Addition 2
... LINE-COUNT lin
Effect
Prints the report with lin lines (per page).
Addition 4
... VIA SELECTION-SCREEN
Effect
Displays the selection screen for the user. In this case, the selection screen is redisplayed after return from the report list display - the user's entries are retained.
Addition 5
... AND RETURN
Effect
Returns to the calling transaction or program after the called program has been executed. SUBMIT ... AND RETURN creates a new internal mode .
Addition 6
... EXPORTING LIST TO MEMORY
Effect
Does not display the output list of the called report, but saves it in SAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. You can read the saved list from SAP memory with the function module 'LIST_FROM_MEMORY' and then (for example) store it in the database with EXPORT . You can process this list further with the function modules 'WRITE_LIST' , 'DISPLAY_LIST' ... of the function group "SLST" .
Addition 7
... USER user VIA JOB job NUMBER n
Effect
Schedules the specified report in the job specified by the job name job and the job number n . The job runs under the user name user and you can omit the addition USER user . The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT . This addition can only be used with the addition ...AND RETURN .
Note
When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL to pass print and/or archive parameters. Otherwise, default values are used to generate the list and this disturbs operations in a production environment.
Addition 9
... USING SELECTION-SETS OF PROGRAM prog
Effect
Uses variants of the program prog when executing the program rep .
Note
Important
The programs prog and rep must have the same SELECT-OPTIONS and PARAMETER s. Otherwise, variants of the program prog may be destroyed.
Note
When using this addition, the specified variant vari of the program prog is taken in USING SELECTION-SET vari . On the other hand, all variant-related actions on the selection screen of rep (Get , Save as variant , Display , Delete ) refer to the variants of prog .
Example
SUBMIT REPORT01
VIA SELECTION-SCREEN
USING SELECTION-SET 'VARIANT1'
USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.
Effect
Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00 .
Note
Runtime errors
LOAD_PROGRAM_NOT_FOUND : The specified program was not found.
SUBMIT_WRONG_TYPE : The specified program is not a report.
SUBMIT_IMPORT_ONLY_PARAMETER : Only one value passed to a report parameter.
SUBMIT_WRONG_SIGN : Invalid value passed to a selection with the addition SIGN .
SUBMIT_IN_ITAB_ILL_STRUCTURE : Table passed to a selection with WITH sel IN itab had an unexpected structure.
Try with this Example
Data: listobject like abaplist occurs 1 with header line.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listobject
EXCEPTIONS
OTHERS = 1 .
IF sy-subrc <> 0.
message ID '61' TYPE 'E' NUMBER '731'
with 'LIST_FROM_MEMORY'.
ENDIF.
Thanks & regards
Sreenivasulu P
Maybe you are looking for
-
How to repair database using SQL server 2008 and C#
How to repair database in SQL server 2008 using C# Musakkhir Sayyed.
-
XI developer not able to handle IDOCs
Dear all We are facing the following problem . I have created an XML to IDOC scenario in the Integration Builder . Everything works fine for me, but when anonther developer (whose user is copied from mine) tries to see/edit the message mapping of the
-
Searching with bing instead of google
when i used to make searches in the url bar it used to use google to find the website and open it example i search facebook and it would go straight to facebook.com but now its olny searching on bing and showing me all the results i want it to go bac
-
Using JNI i am writing sample program i am getting the erro in jni.h
Hi, i am writing sample programs using JNI interface while compliling the c program i am getting the error in jni.h file. wherever the JNICALL has in jni.h i am getting the error that particular line. can anyone help me on this regard? Thanks Balaji
-
My cable modem got reset the other day when cable went out. When it came back on everything works except web browsing (and software update and itunes radio) My email is fine sending and recieving. FTP works great. I just cannot browse. Any ideas