Getting two selection screen in one report
Hello Friends,
I am Making report, In my report on first screen i have given two pushbutton, like this :
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
PARAMETERS : p1_but RADIOBUTTON GROUP g1,
p2_but RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b2.
now i want when user click on any one pushbutton it shows another selection screen, whose select options are:
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
SELECT-OPTIONS: so_erdat FOR lf_date,
so_vbeln FOR lf_vbeln MATCHCODE OBJECT zvbeln..
SELECTION-SCREEN END OF BLOCK b1.
Please guide me can i use two selection screen in one report?, If yes then how can I use? Please revert back me as soon as possible.........
Hi,
you can achieve it only by using two USER_DEFINE_SELECTION SCREEN.
For detail check the link
http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dba83d35c111d1829f0000e829fbfe/content.htm
Regards,
anirban
Similar Messages
-
Help on having TWO selection screen in one report
Hi experts,
I do not know if this can be done. I need to have 2 selection screen. The first selection screen will get all the values from the database table based on the inputs.
After the user select the values already, it will do a database quay after which it will go to another selection screen for user to make further selection and after which it will display the results.
So i am wondering can this be done. And how do i do it?
Thanks!
LawrenceHi,
I getting the below code while browsing
===========================================
REPORT ztest.
TABLES : mara ,
t001 ,
t001w .
CONSTANTS : c_yes TYPE c VALUE '1' ,
c_no TYPE c VALUE '0' .
PARAMETERS : p_opt1 TYPE c RADIOBUTTON GROUP radi USER-COMMAND op1 ,
p_opt2 TYPE c RADIOBUTTON GROUP radi ,
p_opt3 TYPE c RADIOBUTTON GROUP radi .
SELECT-OPTIONS : s_mara FOR mara-matnr MODIF ID op1 , "Material
s_bukrs FOR t001-bukrs MODIF ID op2 , "Company Code
s_werks FOR t001w-werks MODIF ID op3 . "Plant
AT SELECTION-SCREEN OUTPUT .
LOOP AT SCREEN .
IF screen-group1 = 'OP1' .
IF p_opt1 = 'X' .
screen-invisible = c_no .
screen-active = c_yes .
ELSE.
screen-invisible = c_yes .
screen-active = c_no .
ENDIF.
MODIFY SCREEN .
ENDIF.
IF screen-group1 = 'OP2' .
IF p_opt2 = 'X' .
screen-invisible = c_no .
screen-active = c_yes .
ELSE.
screen-invisible = c_yes .
screen-active = c_no .
ENDIF.
MODIFY SCREEN .
ENDIF.
IF screen-group1 = 'OP3' .
IF p_opt3 = 'X' .
screen-invisible = c_no .
screen-active = c_yes .
ELSE.
screen-invisible = c_yes .
screen-active = c_no .
ENDIF.
MODIFY SCREEN .
ENDIF.
ENDLOOP.
======================= -
2 selection screen in one report.
hi,
i need to have 2 selection screen in one report....based on the input of 1st selection screen i need to display another selection screen. The 1st selection screen consist of three radio buttons....selecting one of them should allow me to further input data....
i tried user command, modif id...but the problem is the 2nd selection screen is also displayed initially and den after clickin d radio button i get only the 2nd selection screen...
i cannot use module pool programming coz of user requirement.
could anybody help with the code??Hi
Please this code ..
SELECTION-SCREEN: BEGIN OF BLOCK c1 WITH FRAME TITLE text-001.
Upload table
PARAMETER: p_upload TYPE char01 RADIOBUTTON GROUP rsel
DEFAULT 'X' USER-COMMAND ucomm,
Edit Tables
p_edt_tb TYPE char01 RADIOBUTTON GROUP rsel.
SELECTION-SCREEN: END OF BLOCK c1.
Upload table
SELECTION-SCREEN: BEGIN OF BLOCK c2 WITH FRAME TITLE text-002.
PARAMETERS: p_tab TYPE char16 MODIF ID m1,
p_comp TYPE char18 MODIF ID m1,
p_plant TYPE werks_d MODIF ID m1,
p_excel TYPE localfile MODIF ID m1.
SELECTION-SCREEN: END OF BLOCK c2.
Edit Table
SELECTION-SCREEN: BEGIN OF BLOCK c3 WITH FRAME TITLE text-003.
Replace component
PARAMETER: p_rp_cmp TYPE char01 RADIOBUTTON GROUP edtb
DEFAULT 'X' USER-COMMAND ucomm MODIF ID m2,
Edit Lines
p_edt_ln TYPE char01 RADIOBUTTON GROUP edtb MODIF ID m2.
SELECTION-SCREEN: END OF BLOCK c3.
SELECTION-SCREEN: BEGIN OF BLOCK c4 WITH FRAME TITLE text-004.
Replace component
PARAMETERS: p_tab_r TYPE char16 MODIF ID m3, "Assembly Table Name
p_comp_r TYPE char18 MODIF ID m3. "Upload Table Name
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(31) FOR FIELD p_fcomp MODIF ID m3.
PARAMETER: p_fcomp TYPE zpart MODIF ID m3.
SELECTION-SCREEN COMMENT 62(20) FOR FIELD p_tcomp MODIF ID m3.
PARAMETER p_tcomp TYPE zpart MODIF ID m3.
SELECTION-SCREEN END OF LINE.
Edit Lines
PARAMETERS: p_fexcel TYPE localfile MODIF ID m4,
p_texcel TYPE localfile MODIF ID m4.
SELECTION-SCREEN: END OF BLOCK c4.
SELECTION-SCREEN: BEGIN OF BLOCK c5 WITH FRAME TITLE text-005.
validate data
PARAMETERS: p_valid AS CHECKBOX DEFAULT space
USER-COMMAND ucomm MODIF ID m5,
Background Processing
p_back AS CHECKBOX DEFAULT space
USER-COMMAND ucomm.
SELECTION-SCREEN: END OF BLOCK c5.
AT SELECTION-SCREEN OUTPUT.
Design selection parameters dynamically
PERFORM sub_set_file_param.
FORM sub_set_file_param .
LOOP AT SCREEN.
If Upload is check
IF NOT p_upload IS INITIAL.
IF screen-group1 = 'M2' OR
screen-group1 = 'M3' OR
screen-group1 = 'M4'.
screen-active = 0.
ENDIF.
ELSE.
If Edit Tables is check
IF screen-group1 = 'M1'.
screen-active = 0.
ENDIF.
ENDIF.
If Replace Component is check
IF p_rp_cmp IS NOT INITIAL.
IF screen-group1 = 'M4' OR
screen-group1 = 'M5'.
screen-active = 0.
ENDIF.
ELSE.
If Edit Lines is check
IF screen-group1 = 'M3'.
screen-active = 0.
ENDIF.
ENDIF.
Modify the screen
MODIFY SCREEN.
ENDLOOP.
ENDFORM. -
Two selection screen problem in one report
i have a two selection screens 1000 & 2000 in single report , which needs to be executed one after the other ,
the problem is when i execute second selection screen(2000) , the cursor is going back to at-selection-screen once again.
but i need to trigger start-of-selection directly after executing second selection screen,
the first selection screen 1000 will be executed with the help of select options..
the sample code is below .
at-selection-screen.
perform validations.
call selection screen 2000.
at selection screen on value request p_adm
start-of-selection.
main logicModerator message - Cross post locked
Rob -
Creating two variable/selection screens in one BW Report
Hello Experts,
Can I create two variable screens in one BW Report?
For EX:
Variable screen 1 (For Chars/KF)
XXXX : -
XXXXXX : -
Variable Screen 2 (For Exceptions and Conditions)
XXXXX : -
XXXXX : -
also How can I change the LOW & HIGH variable to parallel.
I have percentage KF. when I want to display the variable (Between) values in parallel.
EX: XXXX : -
XXXX : -
to
XXXX:------ TO XXXX:----
All inputs are much appreciated and the full reward points will be awarded.
Thanks,
LondonHi Londener,
1 You cannnot create variables for Keyfigures,
Eventhough if you create N Number variables, All variables disaply at one shot.
OR Let me know your exact requirement.
Please assign points if it is helpfull.
By
CCC -
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 -
Difficulty in adding new parameter in selection screen of GR55 report
Hi Gurus,
I have a requirement to add an extra field in Cost center:Act/Plan/Comm CC Cur report.This is otherwise a Z report in report painter with 0% code (T-code : GR55-> Report group->Report).But,when we go to technical information of this report,it has four standard sap programs,which contains code for this selection screen.It does not even have a modification scope.
Selection screen of this report contains following parameters:
Selection values:
Controlling Ar
Fiscal Year
From Period
To Period
Plan Version
Selection Groups:
Cost Center Group
Or value(s)
Cost Element Group
Or value(s)
My requirement is to add one more parameter : Purchase oeder in new block:
Is there any way to achieve it.
Note: Copying the standard progs into custom prog is not working,i already tried that.
Please let me know your suggestions,if any one of you came across such requirement before.it is very impoertant for me.
Thanks in advance,
MeenakshiHi meenakshi239,
you can always use implicit enhancement spots.
Regards,
Clemens -
Error when generating the selection screen '0005'of report 'XYZ'
Hi All,
We copied std SAP pgm and were trying to rename the one of the screen but couldnt. When I tried to transport it to test system it went in to dump giving the error Error when generating the selection screen '0005'of report 'XYZ' .
Please advise me on how to remove this dump.
Regards
SaurabhIf you look at the selection screen, you'll probably find that there are overlapping elements (text elements over select-options) or something like that.
Rob -
Can you giv me a brief introduction regarding selection screen with one eg:
Hello
can you giv me a brief introduction regarding selection screen with one eg:Hi Ranjith,
Selection Screens
Selection screens are one of the three types of screen in the R/3 System, along with dialog screens and lists. You use them whenever you want the user to enter either a single value for a field or fields, or to enter selection criteria.
Function
ABAP programs use screens to obtain input from users. The most general type of screen is a dialog screen, which you create using the ABAP Workbench tools Screen Painter and Menu Painter These tools allow you to create screens for data input and output. However, each of these screens requires its own flow logic.
Defining and Calling Selection Screens
You often use screens purely for data input . In these cases, you can use a selection screen. Selection screens provide a standardized user interface in the R/3 System. Users can enter both single values and complex selections. Input parameters are primarily used to control the program flow, while users can enter selection criteria to restrict the amount of data read from the database. You can create and save predefined sets of input values in the ABAP Editor for any selection screen. These are called variants. Texts on the selection screen are stored as language-specific selection texts in the program text elements. If you start an executable report using the SUBMIT statement, the input fields of the selection screen also serve as a data interface.
Defining and Calling Selection Screens
You define selection screens using ABAP statements in a program. Simple statements allow you to create input fields, checkboxes, and radio buttons, and design the screen layout. If you want to create a screen exclusively for data input, you do not need to create it using the normal dialog programming tools. When you create a selection screen, the system automatically assumes the tasks of the Screen Painter and Menu Painter.
The rules for calling and defining selection screens in ABAP programs depend on the program type:
· Executable program (type 1) without logical database
You can use a single standard selection screen and as many user-defined selection screens as you wish. The standard selection screen is called automatically when you start the program. User-defined selection screens, on the other hand, are called using the CALL SELECTION-SCREEN statement in a program. The standard selection screen always has the screen number 1000. User-defined selection screens can have any screen number except 1000.
· Executable program (type 1) with logical database
The standard selection screen for an executable program linked to a logical database is made up of the logical database selections and the program selections.
· Module pools (type M) and function modules (type F)
You can only use user-defined selection screens in module pools and function modules. These can have any number apart from 1000. You can only call a selection screen from a function module using the CALL SELECTION-SCREEN statement. You can also define selection screens as Subscreens and incorporate them in screens or tabstrip controls.
Hope this is useful.
regards
Ram
Message was edited by:
Ramanujan Chitrakootam -
Functional area(FKBER field in the selection screen of the report painter))
Hi,
I have a requirement to add functional area field in the selection screen for a report painter report. This report using library 1VK and table 'CCSS'. I added functional area field in the general data selection . After the execution of report with functional area field filled with value. report not giving any output. do i need to maintain any setting to achieve?
Regards,
Palani1. Call GR22 and click "Characteristics".
2. Check FKBER and assign a position number to it.
3. Save and close the library.
4. Call your report in GRR2 and you should now see FKBER as an available characteristic.
5. Use it in the General Data Selection or as a Lead Column, as per requirement.
Or,
1. Call GR21 and create a custom library. Provide a name and description and also provide a library you can copy from (scan for the best-fit library).
2. Now follow the steps 2 through 5 above to achieve your result.
Hope this helps.
Cheers. -
Passing values to a dynamic selection screen via a report
Hi,
I have the following problem and need to seek your expertise urgently.
In my program, I need to call another report by passing in parameters to the selection screen of other report. However, I could not pass values into a dynamic selection screen. I tried to use submit (report) with free selection but do not know how it works.
Currently, I tried calling the function RS_REFRESH_FROM_DYNAMICAL_SEL and FREE_SELECTIONS_RANGE_2_EX. Using the object the first function has returned to me, I tried to append values such as fieldname etc to it. However, I realised the field names of a dynamic selection screen keeps changing. So I would not know how to pass a particular value to a selection field.
Appreciate any help given.
Thanks,
CKHello CK,
Are you using logical database in your selection screen program attributes? If it is, look at include file DBxxxSEL for parameter named xxxDYNSE where xxx = logical database. Debug the program that has that dynamic selection, and look at field xxxDYNSE. This should give you a hint on how to populate the parameter when you submit the program. -
Selection Screen for crystal report ?
Hi to all,
Is it possible to create selection screen using Crystal report designer alone ?
I came to know that we can give selection parameteres using SELECT EXPERT option in desginer.
Can we create selection screen for user input like we have in abab (selection screen) ?.
Is it possible to check authorization using Crystal report designer ?
If anyone knows anything .... remotely connected with the question I asked please reply.
Waiting for reply.
Regards,
Surya.Surya,
To do what you are wanting, you will want to do the following:
1) Create parameters. Open the Field Explorer > right click Parameter Fields > fill in the necessary fields o create the desired parameter.
2) Add the parameter to the Select Expert.
2a) If you are using a SQL Command to generate your data set you will need to add the parameter name to the Parameter List of the Command and add it the selection criteria of the SQL statement.
Something like this:
WHERE f.FieldName = {?ParameterName}
HTH,
Jason -
How to force selection screen in WAD Report
Hi Gurus,
How do we force a variable selection screen in WAD Report. We are in SP 10.
Thanks
SyedHi Karthik,
Iam not sure for some reason, when I select web_template and click on Web Parameters, there nothing available below Behaviour section. However when I create a new Analysis Item and see its properties, the Behaviour section shows only Allow Navigation & Only Hierarchy options.
Should I reinstall my front end. We are in SP10.
Appreciate your response. -
Selection screen variant for report
Hi,
Can we restrict the selection screen variants for reports by user? For example my report is ZREPORT. Different users can save variants for the report. When they choose a variant for executing the report, they would like to see only the variants they created.
By default SAP lists all variants created (irrespective of who created).
Thanks
AnilHi,
If you want the other users doesn't want to execute (Not see) other variant..you can check if that user has created the variant in the AT SELECTION-SCREEN event..
By checking VARI-VARIANT against the table VARID and check if sy-uname <> VARID-ENAME.
Thanks,
naren -
Report with two selection screen
Hi,
I have one requirement for report.
When we execute the report then it should have two parameter (sales org, document number)
After pressing F8 it should display another screen or same screen with display customer name, city for that document and screen should have 2 more parameters (New customer kunnr).after pressing F8 program functionality should work.
Please suggest.please create 2 reports as given below.-
REPORT ZSZP_00007.
parameters a(5) .
parameters b(5) .
parameters c(5) .
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'A' or screen-name = 'B' .
get parameter id 'aaaaaaaaaaa' field a.
get parameter id 'bbbbbbbbbbb' field B.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
start-of-selection.
your logic
REPORT zszp_00005.
PARAMETERS a(5).
PARAMETERS b(5).
START-OF-SELECTION.
SET PARAMETER ID 'aaaaaaaaaaa' FIELD a.
SET PARAMETER ID 'bbbbbbbbbbb' FIELD b.
your logic
SUBMIT zszp_00007 VIA SELECTION-SCREEN.
i hope this approach will solve your problem.
thanks
Swanand
Maybe you are looking for
-
I belong to a chorus of 100+ singers. A lot of us use gmail for our personal email. We have a google site where we share information. We log into that site as [email protected] I would like to open the chorus site in a new tab, leaving the original t
-
When I create a new calendar 'on my mac' it won't let me rename it!
I can't get this new 'on my mac' calendar to rename, no matter what it always reverts back to the name "untitled" It's only in the 'on my mac' category that this happens. I've tried selecting it and renaming it. I've also tried "get info" and changin
-
So after InDesign CC x64 (x32 version seemed fine?) giving me constant update failed errors and about four different error codes each different way I tried to fix it, I decided to find out why, like many I have been getting this in my Install log. FA
-
Radio button column in the tabular report
Hi everyone, I have a tabular report. I wanted to have radio button and check box some of the field. Please take a look at my sample application. http://apex.oracle.com/pls/otn/ Workspace ==> SHYIN username ==> SHY password ==> shy Application ID : 2
-
In Katie's Cafe tutorial, how did she create her color sample?
In the Adobe Muse tutorial for Katie's Cafe. How was the color sample created. She just had us drag it onto our Muse document, but how was the color palette created initially so that it can be used in your Muse document? Thanks!