Allow users to select Fields that the resulting report would be sorted on
Is it possible to make available to the users some specific fields from the database that they would be allowed to select themselves which fields they would like the resulting report sorted upon?
The suggestion that was provided seems to have worked. But right now I have a situation where I would like to give the users the option to select the desired sort order from 6 different fields.
Invoice Date
Due Date
TransDate
PO Num
Invoice No
Status.
Right now I have a Sort Parameter created
Then I also have a Sort Formula generated as follows.
If {?SortField} = "DueDate" Then {APMASTER.DUE_DATE}
Else
If {?SortField} = "TransDate" Then {APMASTER.TRANS_DT}
Else
if{?SortField} = "InvDate" Then {APMASTER.INVDATE}
as soon as I attempt to add another line to this formular that would be for the Invoice No as shown below.
Else
if{?SortField} = "InvNo" Then {APMASTER.INVNO}
I keep receiving a "A date-Time is required here" I am assuming it must be because CR is not allowing me to create a formula and/or parameter that is using a mixture of Date and Text fields.
If you have any suggestion for a work around, it would be appreciated.
Similar Messages
-
Hiding the Selected field in the Crystal reports 2011
Hi Experts,
I am new to the Crystal reports. How to hide the Selected Field in the Crystal report 2011.
Thanks,
Kavya.CHi Kavya,
You can right click on the field, go to Format Field -> Common Tab. Select/Check the option "Suppress". Or if you want to hide/ Suppress the entire section in a Crystal Report, for e.g. Detail section, right click on Details Section and select Section expert. You can select Hide/Supress accordinly.
That should hide the filed/Section when you run the report.
- Kuldeep -
Hi,
May I know how to achieve the above ? Please enlighten me.
TIA !So you want users to be able to see the name of the table, but not the definition? I am afraid that this is not possible. You can give users access to a table and hide the definition, but the name is considered part of the definition.
Olaf mentioned VIEW DEFINITION. What he did not say is that when you have SELECT permission (or EXECUTE permission on a stored procedure), the permission VIEW DEFINITION is implied by the stronger permission. For this reason you need to explicitly DENY this
permission as shown in the script below.
In the script I create a user without a login and then impersonate a user. This is an excellent way to test permissions.
[sql]
CREATE TABLE tabbe (a int NOT NULL)
go
CREATE USER usse WITHOUT LOGIN
go
GRANT SELECT ON tabbe TO usse
DENY VIEW DEFINITION ON tabbe TO usse
go
EXECUTE AS USER = 'usse'
go
SELECT * FROM tabbe
go
SELECT name FROM sys.objects WHERE type = 'U'
EXEC sp_help tabbe
go
REVERT
go
DROP USER usse
DROP TABLE tabbe
{/sql]
Note: rather than denying VIEW DEFINITION on an individual object you can leave out "ON tabbe" to deny the permission across the database.
Erland Sommarskog, SQL Server MVP, [email protected] -
Is there any way we can allow Users to select rows in a report so that they can print the details present for that report from an underlying details sub-report?
Dhananjay ReleIt is possible but might prove unscalable. SSRS reports provide 3 mechanisms for handling click events.
Hyperlinks. You can format text placeholders to interpret basic HTML, including hyperlinks.
Action. Most SSRS controls have an Action property that has 4 possible methods to handle the click event: None (ignore, default behavior), Go to report, Go to bookmark, Go to URL.
Visibility (Display can be toggled by this report item). You can specify another report control that, when clicked, toggles the visibility of this report control.
The first 2 might be used to reload the current report with updated parameter settings. For instance, I create a parameter called @PrintThis. When I click a row in a tablix, I am clicking on a textbox in one of the colloumns of that row. I can set the action
property of that text box to open the current report, passing all the same parameter values in except that I set @PrintThis to @PrintThis+";"+Fields!MyCell.Value. This parameter is used to display the details of the row I clicked plus any previously clicked
rows. With this approach, you would need a text box with the action property set to pass "" to @PrintThis so the user can clear that property to start over. Or set up a table that displays each value of the @PrintThis parameter with the action property set
to remove that value from @PrintThis (@PrintThis = Replace(@PrintThis, Fields!ClickedCell.Value+";","")).
The 3rd option could be used if the report already has a separate details subreport embedded for each row in the main report's tablix with it's Visibility set to Hide and with "Display can be toggled by this report item" set to the appropriate row's clickable
cell. It will likely take longer to run the report initially but the toggling of the subreports is near instantaneous. Using Action or hyperlink will be quicker initially but each click will have a similar delay to the initial report rendering.
So this will include certain details as determined by the "clicks" a user selects
"You will find a fortune, though it will not be the one you seek." -
Blind Seer, O Brother Where Art Thou
Please Mark posts as answers or helpful so that others may find the fortune they seek. -
How to use user defined contact fields in the intelligent group builder
In Apple Contacts it seems not being possible to build an intelligent contact group using an user defined, additional field. The builder seems to work exclusively with a system defined selection of the basic database fields. Please, tell me, that there is a way ...
Please, can sombody out there help?
-
How to use a subreport field as selection criteria for the main report
Dear All,
I created a report with one subreport and im comparing information from both reports but i need to apply selection criteria in the main report using one of the fields in the subreport, the problem is that the subreport field doesnt appear in the select expert screen. By any chance, someone knows how make a subreport field be used by the select expert.
Thanks,
Martha MedranoDear Dom,
I created the subreport table called IIM (748 items) in sql in the main report as you suggested with the below code:
SELECT "IIM"."IPROD", "IIM"."IDESC", "IIM"."IID"
FROM "S102F360"."BPCS405CDF"."IIM" "IIM"
WHERE NOT ("IIM"."IDESC" LIKE 'GEN%' OR "IIM"."IDESC" LIKE 'OBS%') AND "IIM"."IID"<>'IZ' AND "IIM"."IPROD" LIKE '3%'
and i have another table called ITEM_MASTER (3221 items):
SELECT "ITEM_MASTER"."ITEM_ID", "ITEM_MASTER"."DESCRIPTION"
FROM "WHSPRO"."dbo"."ITEM_MASTER" "ITEM_MASTER"
ORDER BY "ITEM_MASTER"."ITEM_ID"
and im trying to display all items in the ITEM_MASTER table that are not in the IIM file but i haven't been able to accomplish this, i am using as primary the ITEM_MASTER table with 'Inner Join' as Join Type, and '!=" as Link Type. Do you have any ideas on how can i display the requested items.
Thanks for your help -
Forcing the user to select one of the OBIEE prompts?
Hi All,
Iam new to OBIEE I have a requirment in which I need to force the user to select one of the selection from prompts in OBIEE eg: you need to select one of the contry either India or America to get the other prompts enable and filter the report?
Any help is highly appriciated.Hi,
You can set a default value in your first dashboard prompt like 'please select a country' then if the user doesn't select something no result will be returned until he selects a valid value
Then make the other dashboard prompts constrained.
Regards
Adil -
Adding one more selection field in the standard data source
Hi SAP Gurus,
I'd like to know how to add one field as a selection field for the data source.I used 0FI_GL_4 Datasource .It has 2 selection.Now I want to add one more field as a selection field .How to mark that field as selection?I tried by using RSA6 ,But I'm unable to change the previous selection.
Please let me know how to fix it?
I'll assign the points ...
Thanks & regards
RajaPradip,
when ever you create any Generic DS, you can find generic DS(I checked this), comming append fields(it's happend to me)... there is no meaning.. as we know... we will extract the data for append fields using existing DS.
Comming Raju:
to my knowledge, you should not add that field as selection enabled(wait for others posts). I had seen many posts for working on this... by updating the Table ROOSFIELD table for the respective DS. I never implemented this... if you update this using any custom program be careful. Ihave ccreated the program for append fields not for Standard Extractor.
Try to search any SAP Notes: 571985
All the best.
Regards,
Nagesh Ganisetti. -
Adds selection field at the first screen of FBL3N (G/L line item display)
I would like to adds line item selection field at the default first screen of FBL3N.
The field I'd like to add at the default selection screen is :Amount.
This field can be selected at dynamic selection. But I'd like to use the field at the first screen of FBL3N, not in daynamic selection screen.
If anyone knows how to add the fields into FBL3N first screen, please advice me how to do it.
Edited by: Itchy31 on Jul 23, 2009 8:30 AMHi,
You can not add the new fields in the selection criteria thats the reason dynamic options are given for the further selection.
If you still want to add in the selection screen then go for a customisation and coordinate with the ABAPer which is not suggestable as it is readily avilable in dynamic selection. -
Is it possible to display only dynamically selected fields in the out put?
Is it possible to display only dynamically selected fields in the out put? i need to display set of columns in the selection criteria, but in the output i have display only input given fields. because i need to convert it into .csv file. So i have to display selected fields from internal table. In oracle they are using"execute immediate". is there any equivalent in SAP?
thanks in advance.Hi Remya,
Are you talking about dynamic programming in ABAP ?
If yes, there are concepts like RTTS which facilitates it.
Yes, the select query also supports dynamic selection of fields. ( Please care about ( ) in dynamic sql ).
Do more research on Field Symbols and statements like ASSIGN COMPONENT OF.
Regards,
Philip. -
How to add a Field to the Result List in Activity
Hello Experts !
We are on CRM 7.0. I want to add a field to the Result List of Activity (Component: BT126S_APPT / View: ApptSR). This field is the address of the "Employee Responsible".
So, how can I add a field to the Result List? AET is not a relevant tool for us because we don't want to create an attribute it already exist in the BOL. We just have to enhance the result list with BOL existing attributes.
Also, after I add the field, I will need to populate my field with Data via some method.
Thanks in Advance to all !
Mariano.-
SAP.Hi Mariano,
The component was missing some technical data. Implement sap notes 1226612, 1363752, and then follow the manual procedure shown below.
u2022 Execute transaction SE11.
u2022 Choose the Radio button "Data Type" and enter value
"CRMST_QUERY_R_ACT_BTIL" in the Data Type field.
u2022 Click on "Change" button.
u2022 Position the cursor before the Includes added to this structure. Click
On the "+" button to add a new attribute.
u2022 Enter the following details in the newly added blank row.
Component: PERSON_RESP_LIST
Component Type: CRMT_PERSON_RESP_LIST.
u2022 Save the changes and activate the structure.
u2022 Add the "Employee Responsible" field to the View configuration.
u2022 Open the BSP application BT126S_APPT.
u2022 Double-click on the view BT126S_APPT/ApptSR in the left side panel.
u2022 Choose tab "Configuration" in right side panel.
u2022 Choose the right configuration by using the "Choose Configuration" button.
u2022 Click on the Edit button.
u2022 Add the "Employee Responsible" attribute from the "Available fields" list to "Displayed fields" list.
u2022 Save the changes
Regards
Krishna -
I am creating a web form from a template and I need to change a field. It is just a text field at the moment but I need to change it to a field that the customer can fill in. How do I do this?
See this thread:
http://answers.acrobatusers.com/Is-add-instructional-text-text-field-disappear-clicked-q19 5078.aspx -
Hi,
Has anyone encountered this error "Cannot move selected items because the result will exceed the limit of WBS tree maximum levels"?
Please advise if there's any way around / solution to this. http://s8.postimg.org/bj900spcl/1_error.jpg
Thanks.Thank you so much MichaelRidino!
-
SAP Query: Display Selection Fields in the header page of Basic list
Hello,
I have to display the selection fields in the header page of the basic list and statistics
in a SAP Query.
I know the usage of short names for fields in the header page, but this doesn't work
for the selection fields.
How can I display the selection fields in header pages?
Kind regards
ThomasTry using:
DATA: wa_lstab TYPE line
READ LINE sy-index line value INTO wa_lstab
Thanks,
SKJ -
To edit the field in the ALV report
Hi,
i want to edit the field of the ALV report what i need to do for that..
Thanks & Regards
Ashu Singhhi,
check the code,
REPORT zalv_fcat.* Output table T006 structure declarationTYPES : BEGIN OF ty_t006.
INCLUDE STRUCTURE t006.
TYPES : END OF ty_t006.*Internal table and wa declaration for T006
DATA : it_t006 TYPE STANDARD TABLE OF ty_t006,
wa_t006 TYPE ty_t006.*declarations for ALV
DATA: ok_code TYPE sy-ucomm,
fieldcatalog for T006
it_fielcat TYPE lvc_t_fcat,
fieldcatalog for fieldcatalog itself:
it_fielcatalogue TYPE lvc_t_fcat,
it_layout TYPE lvc_s_layo.*declaration for toolbar function
DATA: it_excl_func TYPE ui_functions.
Controls to display it_t006 and corresponding fieldcatalog
DATA: cont_dock TYPE REF TO cl_gui_docking_container,
cont_alvgd TYPE REF TO cl_gui_alv_grid.*controls to display the fieldcatalog as editable alv grid and container
DATA: cont_cust TYPE REF TO cl_gui_custom_container,
cont_editalvgd TYPE REF TO cl_gui_alv_grid.*intialization event
INITIALIZATION.*start of selection event
START-OF-SELECTION.
LOCAL CLASS Definition for data changed in fieldcatalog ALV
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS handle_data_changed
FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING er_data_changed.
ENDCLASS. "lcl_event_receiver DEFINITION
LOCAL CLASS implementation for data changed in fieldcatalog ALV
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_data_changed.
ENDMETHOD. "handle_data_changed
ENDCLASS. "lcl_event_receiver IMPLEMENTATION*data declaration for event receiver
DATA: event_receiver TYPE REF TO lcl_event_receiver.*end of selection event
END-OF-SELECTION.*setting the screen for alv output for table display and
*changed fieldcatalalogue display
SET SCREEN 600.
On this statement double click it takes you to the screen painter SE51. Enter the attributes
*Create a Custom container and name it CCONT and OK code as OK_CODE.
*Save check and Activate the screen painter.
*Now a normal screen with number 600 is created which holds the ALV grid.
PBO of the actual screen , Here we can give a title and customized menus
*Go to SE41 and create status 'STATUS600' and create THE function code 'SUBMIT'
*and 'EXIT' with icons and icon texts
Also create a TitleBar 'TITLE600' and give the relevant title.&----
*& Module STATUS_0600 OUTPUT
MODULE status_0600 OUTPUT.
SET PF-STATUS 'STATUS600'.
SET TITLEBAR 'TITLE600'.
CREATE ALV GRID CONTROL IF DOES NOT EXISTS INITIALLY
IF cont_dock IS INITIAL.
PERFORM create_alv.
ENDIF.ENDMODULE. " STATUS_0600 OUTPUT* PAI module of the screen created. In case we use an interactive ALV or
*for additional functionalities we can create OK codes and based on the
*user command we can do the coding as shown below
*& Module USER_COMMAND_0600 INPUT
MODULE user_command_0600 INPUT.
CASE ok_code.
WHEN 'SUBMIT'.
*TO GET THE CURRENT FIELDCATALOGUE FROM THE FRONTEND
CALL METHOD cont_alvgd->set_frontend_fieldcatalog
EXPORTING
it_fieldcatalog = it_fielcat.
*refresh the alv
CALL METHOD cont_alvgd->refresh_table_display.
*to Send Buffered Automation Queue to Frontend
CALL METHOD cl_gui_cfw=>flush.*Exit button clicked to leave the program
WHEN 'EXIT'.
LEAVE PROGRAM. ENDCASE.ENDMODULE. " USER_COMMAND_0600 INPUT&----
*& Form CREATE_ALV
&----FORM create_alv.*create a docking container and dock the control at the botton
CREATE OBJECT cont_dock
EXPORTING
dynnr = '600'
extension = 100
side = cl_gui_docking_container=>dock_at_bottom.*create the alv grid for display the table
CREATE OBJECT cont_alvgd
EXPORTING
i_parent = cont_dock.*create custome container for alv
CREATE OBJECT cont_cust
EXPORTING
container_name = 'CCONT'.
*create alv editable grid
CREATE OBJECT cont_editalvgd
EXPORTING
i_parent = cont_cust.* register events for the editable alv
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->handle_data_changed FOR cont_editalvgd. CALL METHOD cont_editalvgd->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_modified.*building the fieldcatalogue for the initial display
PERFORM build_fieldcat CHANGING it_fielcat it_fielcatalogue.*building the fieldcatalogue after the user has changed it
PERFORM change_fieldcat CHANGING it_fielcatalogue.*fetch data from the table
PERFORM fetch_data.* Get excluding functions for the alv editable tool bar APPEND cl_gui_alv_grid=>mc_fc_loc_append_row TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_loc_insert_row TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_loc_cut TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_sort TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_sort_asc TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_sort_dsc TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_subtot TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_sum TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_graph TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_info TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_print TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_filter TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_views TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_mb_export TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_mb_sum TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_mb_sum TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_mb_paste TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_find TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_loc_copy TO it_excl_func.
*Alv display for the T006 table at the bottom
CALL METHOD cont_alvgd->set_table_for_first_display
CHANGING
it_outtab = it_t006[]
it_fieldcatalog = it_fielcat[].
optimize column width of grid displaying fieldcatalog
it_layout-cwidth_opt = 'X'.* Get fieldcatalog of table T006 - alv might have
modified it after passing.
CALL METHOD cont_alvgd->get_frontend_fieldcatalog
IMPORTING
et_fieldcatalog = it_fielcat[].to Send Buffered Automation Queue to Frontend CALL METHOD cl_gui_cfw=>flush. Display fieldcatalog of table T006 in editable alv grid
CALL METHOD cont_editalvgd->set_table_for_first_display
EXPORTING
is_layout = it_layout
it_toolbar_excluding = it_excl_func
CHANGING
it_outtab = it_fielcat[]
it_fieldcatalog = it_fielcatalogue[].
ENDFORM. " CREATE_alv
*& Form fetch_data
FORM fetch_data.* select data of T006
SELECT * FROM t006 INTO TABLE it_t006 UP TO 50 ROWS.
ENDFORM. " fetch_data
*& Form BUILD_FIELDCAT
FORM build_fieldcat CHANGING it_fldcat TYPE lvc_t_fcat
it_fcat TYPE lvc_t_fcat.
Fieldcatalog for table T006: it_fldcat
to generate the fields automatically CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'T006'
CHANGING
ct_fieldcat = it_fldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 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.*----
Fieldcatalog for table LVC_T_FCAT:it_fcat
Generate fieldcatalog of fieldcatalog structure.
This fieldcatalog is used to display fieldcatalog 'it_fldcat'
on the top of the screen. CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'LVC_S_FCAT'
CHANGING
ct_fieldcat = it_fcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 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.
ENDFORM. " BUILD_FIELDCAT
*& Form CHANGE_FIELDCAT
*after the user has modified the fieldcatalogue we build another fieldcat
*for the modified alv display
FORM change_fieldcat CHANGING it_fcat TYPE lvc_t_fcat. DATA ls_fcat TYPE lvc_s_fcat. LOOP AT it_fcat INTO ls_fcat.
ls_fcat-coltext = ls_fcat-fieldname.
ls_fcat-edit = 'X'. IF ls_fcat-fieldname = 'COL_POS' OR ls_fcat-fieldname = 'FIELDNAME'.
ls_fcat-key = 'X'.
ENDIF. MODIFY it_fcat FROM ls_fcat.
ENDLOOP.
ENDFORM. " CHANGE_FIELDCAT
ref:saptechnical tutorial.
Regards,
Anirban
Maybe you are looking for
-
I need to install windows 7 on my mac - do I install 32 or 64 bit software
Hi, I have just installed 'Parallels Desktop 7' for Mac on to my Macbook Pro. I have bought Windows 7 to intall and I have two options - 32 bit or 64 bit software. Does anybody know which is better? I will be installing: Office for Mac Home and Busin
-
Local laptop seller installed Windows which is not genuine.
Hi! I claimed my hard disk warranty but my local laptop seller installed Windows which is not genuine. Do hard disk warranty also comes with original windows warranty?
-
http://www.video-excel.com/GUtest.html i have been struggling to figure out exactly what he's doing with the above site. can someone recommend some tips or tutorials on the web related to applying classes to div's? i understand how to apply css to di
-
Profiling JavaFX project with Netbeans
Hello, I'm trying to profile my application with the built-in netbeans profiler. But when I click the 'Run' button, the message 'Connecting to the target VM...' does not disappear anymore... What could be the problem? thanks
-
Annoying bugs in 10.5.2.11
anyone know when a fix is coming for these annoying problems? when you add artwork to a song it isn't immediately shown like it used to be. the track will still appear as if it doesn't have artwork, or it will still have the old artwork you replaced