Selection screen in abap report
Hi,
I am using 2 selection options in my report.
But the list of values for second selection options is depends on the selected value in the first selection option.
how to do this.
because i cant use selected value of first option in AT-SELECTION point.
Hi again,
1. There are 2 list box on selection-screen.
2. 1st shows all company code, and company text.
3. On selecting the first,
the second is populated.
(it selects again from T001
and shows the same company information)
4.
REPORT abc.
TYPE-POOLS: vrm.
DATA: it_val TYPE vrm_values.
DATA: ekk TYPE vrm_values.
Sel Screen.
PARAMETERS p_diff LIKE t001-bukrs AS LISTBOX
VISIBLE LENGTH 16
USER-COMMAND ab.
PARAMETERS hh LIKE ekko-ebeln AS LISTBOX
VISIBLE LENGTH 16 .
AT SELECTION-SCREEN OUTPUT.
REFRESH it_val.
CLEAR it_val.
SELECT bukrs butxt FROM t001 INTO TABLE it_val.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_DIFF'
values = it_val.
Second List Box
REFRESH ekk.
CLEAR ekk.
SELECT bukrs butxt
FROM t001
INTO TABLE ekk
WHERE bukrs = p_diff.
clear hh.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'HH'
values = ekk.
regards,
amit m.
Similar Messages
-
Issue in Selection Screen of ABAP report after executing it using TCode
Hi,
I have one Z program having a selection screen for it. One selection variable is non editable for the users (has default value) whereas user can enter the value in other selection variable.
To make the first variable non editable, I have used the following code.
INITIALIZATION.
LOOP AT SCREEN.
IF screen-name = 'P_USER'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Now when I execute this program from SE38, it works fine. But when I execute it using a Tcode (assigned in SE93), the first variable also become editable for users.
How can I keep the first variable non editable even after executing the program using a Tcode?
Regards,
YogeshHi,
It seems you create a Transaction type: Dialog transaction.
Delete current transaction and create one with Transaction type: Report transaction (radio button in row 2nd)
regards, -
Multiple selection lists in abap report
I need to populate a multiple selection list and then read the selection in an ABAP report. A parameter with list box is not solving my purpose.
Please give any suggestion on this.Hi
If you can't use the SELECT-OPTION statament, there's no standard solution.
U can only try to create a table control with only one colunm and every hit of the table control is a single hit for the selection.
To insert a table control in a selection-screen u need to use the statament:
SELECTION-SCREEN BEGIN OF TABBED (see the help)
In order to create a TAB where u can load a subscreen where u can insert a table control.
The u need to transfer the hit from table control to a range.
Max -
What is the need of END-OF-SELECTION event in ABAP reporting
Hi,
Can anyone explain the need of the END-OF-SELECTION event in ABAP Reports?
This event is used to terminate the previous event. Is that right? or is there any specific use of it?
and when exactly we use this event while writing a report? I mean what purpose?
Thanks,
Paddu.Hi,
END-OF-SELECTION makes more sense when you are using logical database in your program.
See these links.
http://help.sap.com/saphelp_46c/helpdata/en/34/8e74266df74873e10000009b38f9b8/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9aca35c111d1829f0000e829fbfe/frameset.htm
After all the data has been selected END-OF-SELECTION event writes the data to the screen
The END-OF-SELECTION event is triggered in executable programs once the logical database has finished reading all data and before the list processor is started.
Try to go thro this link.
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9a1435c111d1829f0000e829fbfe/frameset.htm
Mostly end-of-selection is used in logical data base. It is not mandatory.
Ex:
If you use a logical database in your report then this event is mandatory because when all the data selection from the database is finished this events get triggers.
For example if you are populating a internal table using a logical data base event 'GET' then you need this event because if you don't use this you get display again and again for each selection.
START-OF-SELECTION.
GET PERNR.
itab-pernr = pernr-pernr.
append itab.
*this get triggers after all selection from database.
END-OF-SELECTION.
loop at itab.
write:/ itab-pernr.
endloop.
Regards,
Padmam. -
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 -
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 -
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 -
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. -
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. -
Dynamic selection screen with ABAP web dynpro
Hi all.
How can I create dynamic selection screen with ABAP web dynpro? Thank you in advance.hi yinglak.....
this is possible........ all the ui elelments has the property called visible and enabled.... just assign an attribute of type wdui_visibility to the visible property....
in the wddomodify method..... check for the radio button value and pass the value true or false to this attribute and it gets changed automatically.
---regards,
alex b justin -
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 -
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
Maybe you are looking for
-
Hi experts, I have a small problem: I call form this way: PERFORM export_data USING 'T_WARE' gt_ware gs_ware CHANGING gt_exp_ware. The Form looks like this FORM export_data USING st
-
Operating unit in the Approved Supplier list
Hi Gurus, I am looking for a query to find the Operating Unit in the Approved Supplier list. I can only see the owning_organization_id column in the po_approved_supplier_list table not the org_id. Please help. Thanks in advance !! KM
-
Hi All, I have a query region with result table, it results the data upon search creteria. each row have a update icon where user can navigates to update page to edit the information. So when user gets back to search page and clicks on clear button o
-
autonetwork.sh #!/bin/sh if [ `id -u` -ne 0 ]; then exit 1; fi PROFILE_DIR="/etc/network-profiles" STATE_DIR="/var/run/net" if [ "$(ls $PROFILE_DIR 2>/dev/null | grep -v ^template$)" = "" -o ! -d $PROFILE_DIR ]; then echo "No profiles found. Add prof
-
Roles In SAP Web AS ABAP would not appear automatically in J2EE Engine
I have an ABAP+Java Addin Instance Installed. When I create a user, it shows up in the Jave Engine when I goto Services->Security Provider. But the ABAP roles would not show up in the Java Engine. Please advise..