Check Box on the Crystal Reports
Hi,
I want to print Check Box from Boolean data. It shows True/False. How can I print check box instead of True/False?
Thanks,
Hi,
If you want use check box in crystal., then you can do this by writing piece of code.
please try for
If {Table.Field} = True Then
'Display the checkbox of your choice here
Formula = Chr(254).
thanks.
Bala
Similar Messages
-
Creation of check boxes in the ALV report
Hi All,
With all your support i'm gaining more knowledge, thank's for that,
in my ALV report i want to create a check boxes if the check boxs are elected and processed then the particular records is going to disappear,
How can we do this,
Thanks & Regards
Krishnahi,
i have done this one.please check my code.
TYPE-POOLS : slis.
TYPES : BEGIN OF st_ekko,
ebeln TYPE ekko-ebeln, "Purchasing Document Number
bstyp TYPE ekko-bstyp, "Purchasing Document Category
bsart TYPE ekko-bsart, "Purchasing Document Type
aedat TYPE ekko-aedat, "record created on
ernam TYPE ekko-ernam, "Person who Created the Object
check(1),
END OF st_ekko.
TYPES : BEGIN OF st_ekpo,
ebeln TYPE ekko-ebeln,
ebelp TYPE ekpo-ebelp, "Item Number of Purchasing Document
ematn TYPE ekpo-ematn, "Material number
matkl TYPE ekpo-matkl, "Material group
netpr TYPE ekpo-netpr, "Net price in purchasing document
END OF st_ekpo.
TYPES : BEGIN OF st_ebeln,
ebeln TYPE ekpo-ebeln,
END OF st_ebeln.
TYPES : BEGIN OF st_eine,
ebeln TYPE ekko-ebeln,
ekorg TYPE eine-ekorg,
ekgrp TYPE eine-ekgrp,
END OF st_eine.
TYPES : BEGIN OF st_check,
check(1),
END OF st_check.
DATA : it_ekpo TYPE STANDARD TABLE OF st_ekpo,
it_ekko TYPE STANDARD TABLE OF st_ekko,
wa_ekko LIKE LINE OF it_ekko,
it_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat LIKE LINE OF it_fieldcat,
wa_layout TYPE slis_layout_alv,
it_events TYPE slis_t_event,
st_event LIKE LINE OF it_events,
it_listheadr TYPE slis_t_listheader ,
wa_listheadr LIKE LINE OF it_listheadr,
st_printparams TYPE slis_print_alv,
it_sortinfo TYPE slis_t_sortinfo_alv,
wa_sortinfo LIKE LINE OF it_sortinfo,
it_ekposortinfo TYPE slis_t_sortinfo_alv,
wa_ekposortinfo LIKE LINE OF it_ekposortinfo,
it_filter TYPE slis_t_filter_alv,
it_ebeln TYPE STANDARD TABLE OF st_ebeln,
it_eine TYPE STANDARD TABLE OF st_eine,
wa_eine TYPE st_eine,
it_popup TYPE STANDARD TABLE OF st_eine,
wa_popup TYPE st_eine,
it_check TYPE STANDARD TABLE OF st_check,
wa_check TYPE st_check.
DATA : v_ebeln TYPE ekko-ebeln.
SELECTION-SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE tit.
SELECT-OPTIONS: so_ebeln FOR v_ebeln OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b.
INITIALIZATION
INITIALIZATION.
tit = text-000.
AT SELECTION-SCREEN ON
AT SELECTION-SCREEN ON so_ebeln.
PERFORM validate_ebeln.
START-OF-SELECTION
START-OF-SELECTION.
PERFORM get_ekko_data.
PERFORM get_eine_data.
END-OF-SELECTION
END-OF-SELECTION.
PERFORM populate_fieldcat1.
PERFORM populate_layout.
PERFORM get_eventlist.
PERFORM get_ekkosortinfo.
PERFORM ekkodisplay_onalv.
*& Form POPULATE_FIELDCAT1
FORM populate_fieldcat1.
wa_fieldcat-fieldname = 'EBELN'.
wa_fieldcat-seltext_l = text-004.
wa_fieldcat-no_zero = 'X'.
APPEND wa_fieldcat TO it_fieldcat.
wa_fieldcat-fieldname = 'BSTYP'.
wa_fieldcat-seltext_l = text-005.
APPEND wa_fieldcat TO it_fieldcat.
wa_fieldcat-fieldname = 'BSART'.
wa_fieldcat-seltext_l = text-006.
APPEND wa_fieldcat TO it_fieldcat.
wa_fieldcat-fieldname = 'AEDAT'.
wa_fieldcat-seltext_l = text-007.
APPEND wa_fieldcat TO it_fieldcat.
wa_fieldcat-fieldname = 'ERNAM'.
wa_fieldcat-seltext_l = text-008.
APPEND wa_fieldcat TO it_fieldcat.
ENDFORM. "POPULATE_FIELDCAT1
*& Form populate_fieldcat2
FORM populate_fieldcat2 .
CLEAR wa_fieldcat.
CLEAR it_fieldcat.
REFRESH it_fieldcat.
wa_fieldcat-fieldname = 'EBELN'.
wa_fieldcat-seltext_l = text-004.
wa_fieldcat-hotspot = 'X'.
wa_fieldcat-no_zero = 'X'.
APPEND wa_fieldcat TO it_fieldcat.
wa_fieldcat-fieldname = 'EBELP'.
wa_fieldcat-seltext_l = text-009.
APPEND wa_fieldcat TO it_fieldcat.
wa_fieldcat-fieldname = 'EMATN'.
wa_fieldcat-seltext_l = text-010.
APPEND wa_fieldcat TO it_fieldcat.
wa_fieldcat-fieldname = 'MATKL'.
wa_fieldcat-seltext_l = text-011.
APPEND wa_fieldcat TO it_fieldcat.
wa_fieldcat-fieldname = 'NETPR'.
wa_fieldcat-seltext_l = text-012.
wa_fieldcat-datatype = 'CURR'. "Obligatory to perform SUM
wa_fieldcat-do_sum = 'X'.
APPEND wa_fieldcat TO it_fieldcat.
ENDFORM. "populate_fieldcat2
*& Form GET_EVENTLIST
FORM get_eventlist.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = it_events[]
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
READ TABLE it_events WITH KEY name = slis_ev_pf_status_set INTO st_event.
IF sy-subrc EQ 0.
st_event-form = 'SET_PF_STATUS1'.
APPEND st_event TO it_events.
CLEAR st_event.
ENDIF.
READ TABLE it_events WITH KEY name = slis_ev_end_of_page INTO st_event.
IF sy-subrc EQ 0.
st_event-form = 'END_OF_PAGE'.
APPEND st_event TO it_events.
CLEAR st_event.
ENDIF.
ENDFORM. "GET_EVENTLIST
*& Form ekpodisplay_onalv
FORM ekpodisplay_onalv .
IF it_ekpo[] IS INITIAL.
MESSAGE 'NO DATA FOUND' TYPE 'I'.
ELSE.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'AT_USER_COMMAND1'
i_callback_top_of_page = 'TOP_OF_PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME = I_STRUCTURE_NAME
I_BACKGROUND_ID = ' '
I_GRID_TITLE = I_GRID_TITLE
I_GRID_SETTINGS = I_GRID_SETTINGS
is_layout = wa_layout
it_fieldcat = it_fieldcat
IT_EXCLUDING = IT_EXCLUDING
IT_SPECIAL_GROUPS = IT_SPECIAL_GROUPS
it_sort = it_ekposortinfo[]
IT_FILTER = IT_FILTER
IS_SEL_HIDE = IS_SEL_HIDE
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT = IS_VARIANT
it_events = it_events
IT_EVENT_EXIT = IT_EVENT_EXIT
IS_PRINT = IS_PRINT
IS_REPREP_ID = IS_REPREP_ID
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS = IT_ALV_GRAPHICS
IT_HYPERLINK = IT_HYPERLINK
IT_ADD_FIELDCAT = IT_ADD_FIELDCAT
IT_EXCEPT_QINFO = IT_EXCEPT_QINFO
IR_SALV_FULLSCREEN_ADAPTER = IR_SALV_FULLSCREEN_ADAPTER
IMPORTING
E_EXIT_CAUSED_BY_CALLER = E_EXIT_CAUSED_BY_CALLER
ES_EXIT_CAUSED_BY_USER = ES_EXIT_CAUSED_BY_USER
TABLES
t_outtab = it_ekpo
EXCEPTIONS
program_error = 1
OTHERS = 2 .
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDFORM. "ekpodisplay_onalv
*& Form SET_PF_STATUS1
FORM set_pf_status1 USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'MENU' excluding rt_extab. "Copy from SALV .
ENDFORM. "SET_PF_STATUS1
*& Form SET_PF_STATUS
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'STANDARD' excluding rt_extab. "Copy from SALV .
ENDFORM. "SET_PF_STATUS
*& Form AT_user_command
FORM at_user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&IC1'.
IF rs_selfield-fieldname EQ 'EBELN'.
READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
SELECT ebeln ebelp ematn matkl netpr
FROM ekpo
INTO TABLE it_ekpo
WHERE ebeln EQ wa_ekko-ebeln.
PERFORM populate_fieldcat2.
PERFORM populate_layout2.
PERFORM get_ekposortinfo.
PERFORM ekpodisplay_onalv.
ELSE.
MESSAGE i020(z50871msg) WITH text-013.
ENDIF.
WHEN 'SE16'.
CALL TRANSACTION 'SE16'.
WHEN 'SE37'.
CALL TRANSACTION 'SE37'.
WHEN 'DISP'.
PERFORM get_popupdata.
PERFORM get_popupfcat.
PERFORM display_popup.
ENDCASE.
ENDFORM. "AT_user_command
*& Form TOP_OF_PAGE
FORM top_of_page.
REFRESH it_listheadr.
wa_listheadr-typ = 'H'.
wa_listheadr-info = text-001.
APPEND wa_listheadr TO it_listheadr.
CLEAR wa_listheadr.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_listheadr[]
i_logo = 'ENJOYSAP_LOGO'. "From OAER transaction
ENDFORM. "TOP_OF_PAGE
*& Form build_print_params
FORM build_print_params.
st_printparams-reserve_lines = '3'. "Lines reserved for footer
st_printparams-no_coverpage = 'X'.
ENDFORM. "build_print_params
*& Form end_of_page
FORM end_of_page.
REFRESH it_listheadr.
wa_listheadr-typ = 'H'.
wa_listheadr-info = sy-pagno.
APPEND wa_listheadr TO it_listheadr.
CLEAR wa_listheadr.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_listheadr[].
ENDFORM. "end_of_page
*& Form GET_EKPOSORTINFO
FORM get_ekposortinfo.
wa_ekposortinfo-up = 'X'.
wa_ekposortinfo-spos = 1.
wa_ekposortinfo-fieldname = 'EBELP'.
wa_ekposortinfo-tabname = 'EKPO'.
APPEND wa_ekposortinfo TO it_ekposortinfo.
CLEAR wa_ekposortinfo.
wa_ekposortinfo-up = 'X'.
wa_ekposortinfo-spos = 2.
wa_ekposortinfo-fieldname = 'EMATN'.
wa_ekposortinfo-tabname = 'EKPO'.
APPEND wa_ekposortinfo TO it_ekposortinfo.
CLEAR wa_ekposortinfo.
ENDFORM. "GET_EKPOSORTINFO
*& Form POPULATE_LAYOUT
FORM populate_layout.
wa_layout-colwidth_optimize = 'X'. "column width
wa_layout-zebra = 'X'.
wa_layout-no_hline = 'X'.
wa_layout-no_vline = 'X'.
wa_layout-cell_merge = 'X'.
wa_layout-box_fieldname = 'CHECK'.
wa_layout-box_tabname = 'IT_EKKO'.
wa_layout-window_titlebar = 'PURCHASE ORDER HEADER DETAILS'.
ENDFORM. "POPULATE_LAYOUT
*& Form get_EKKOsortinfo
FORM get_ekkosortinfo.
wa_sortinfo-up = 'X'.
wa_sortinfo-spos = 1.
wa_sortinfo-fieldname = 'EBELN'.
wa_sortinfo-tabname = 'EKKO'.
APPEND wa_sortinfo TO it_sortinfo.
CLEAR wa_sortinfo.
wa_sortinfo-up = 'X'.
wa_sortinfo-spos = 2.
wa_sortinfo-fieldname = 'BSTYP'.
wa_sortinfo-tabname = 'EKKO'.
APPEND wa_sortinfo TO it_sortinfo.
CLEAR wa_sortinfo.
wa_sortinfo-up = 'X'.
wa_sortinfo-spos = 3.
wa_sortinfo-fieldname = 'AEDAT'.
wa_sortinfo-tabname = 'EKKO'.
APPEND wa_sortinfo TO it_sortinfo.
CLEAR wa_sortinfo.
ENDFORM. "get_EKKOsortinfo
*& Form EKKODISPLAY_ONALV
FORM ekkodisplay_onalv.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'SET_PF_STATUS1'
i_callback_user_command = 'AT_USER_COMMAND'
is_layout = wa_layout
it_fieldcat = it_fieldcat
it_sort = it_sortinfo[]
it_filter = it_filter
it_events = it_events[]
TABLES
t_outtab = it_ekko[]
EXCEPTIONS
program_error = 1
OTHERS = 2.
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. "EKKODISPLAY_ONALV
*& Form validate_ebeln
FORM validate_ebeln.
SELECT ebeln
FROM ekpo
INTO TABLE it_ebeln
WHERE ebeln IN so_ebeln.
IF sy-subrc NE 0.
MESSAGE e020(z50871msg) WITH text-014.
ENDIF.
ENDFORM. "validate_ebeln
*& Form populate_layout2
FORM populate_layout2 .
CLEAR wa_layout.
wa_layout-colwidth_optimize = 'X'. "column width
wa_layout-zebra = 'X'.
wa_layout-no_hline = 'X'.
wa_layout-no_vline = 'X'.
wa_layout-cell_merge = 'X'.
wa_layout-window_titlebar = 'PURCHASE ORDER DETAILS SECOND SCREEN'.
ENDFORM. " populate_layout2
*& Form GET_POPUPDATA
FORM get_popupdata .
LOOP AT it_ekko INTO wa_ekko WHERE check = 'X'.
READ TABLE it_eine INTO wa_eine WITH KEY ebeln = wa_ekko-ebeln.
IF sy-subrc NE 0.
MESSAGE i020(z50871msg) WITH text-015 wa_ekko-ebeln .
ELSE.
wa_popup-ebeln = wa_eine-ebeln.
wa_popup-ekorg = wa_eine-ekorg.
wa_popup-ekgrp = wa_eine-ekgrp.
APPEND wa_popup TO it_popup.
ENDIF.
ENDLOOP.
ENDFORM. " GET_POPUPDATA
*& Form GET_POPUPFCAT
FORM get_popupfcat .
CLEAR wa_fieldcat.
REFRESH it_fieldcat.
wa_fieldcat-fieldname = 'EBELN'.
wa_fieldcat-seltext_l = text-004.
wa_fieldcat-hotspot = 'X'.
APPEND wa_fieldcat TO it_fieldcat.
wa_fieldcat-fieldname = 'EKORG'.
wa_fieldcat-seltext_l = text-016.
APPEND wa_fieldcat TO it_fieldcat.
wa_fieldcat-fieldname = 'EKGRP'.
wa_fieldcat-seltext_l = text-017.
APPEND wa_fieldcat TO it_fieldcat.
ENDFORM. " GET_POPUPFCAT
*& Form DISPLAY_POPUP
FORM display_popup .
LOOP AT it_ekko INTO wa_ekko WHERE check EQ 'X'.
wa_check-check = wa_ekko-check.
APPEND wa_check TO it_check.
ENDLOOP.
IF it_check[] IS INITIAL.
MESSAGE i020(z50871msg) WITH text-018.
ENDIF.
IF NOT it_popup[] IS INITIAL.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = text-003
i_allow_no_selection = 'X'
i_scroll_to_sel_line = 'X'
i_tabname = 'IT_POPUP'
it_fieldcat = it_fieldcat
i_callback_program = sy-repid
TABLES
t_outtab = it_popup
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
REFRESH it_check.
REFRESH it_popup.
ENDFORM. " DISPLAY_POPUP
*& Form get_ekko_data
FORM get_ekko_data .
SELECT ebeln bstyp bsart aedat ernam
FROM ekko
INTO CORRESPONDING FIELDS OF TABLE it_ekko
WHERE ebeln IN so_ebeln.
IF sy-subrc NE 0.
MESSAGE e020(z50871msg) WITH text-019.
ENDIF.
ENDFORM. " get_ekko_data
*& Form get_eine_data
FORM get_eine_data .
SELECT ebeln ekorg ekgrp
FROM eine
INTO TABLE it_eine
WHERE ebeln IN so_ebeln.
ENDFORM. " get_eine_data
*& Form at_user_command1
FORM at_user_command1 USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN 'SE16'.
CALL TRANSACTION 'SE16'.
WHEN 'SE37'.
CALL TRANSACTION 'SE37'.
ENDCASE.
regards,
pavan t. -
Displaying Check boxes in the Report Output
hi Folks,
I need to dispay check boxes for every line item in my report output, the user can select particular line item by clicking the check box. and if the user click one button on the report, the corresponding dunning form should be generated. How can i acheive this. is displaying check boxes possible in normal reports or we need to go for ALV. please help me regarding this.
thnx,
santosh.We can do it with the normal report also.Create a charecter field and while the field to the screnn
write :/ field as check box.
this will create acheck box in the output -
How to increase the width of the Crystal Report
Hello All
How to increase the width of the Crystal report template in the CR designer in .NET 2005 editor ?
I need to design a report which has to accomodate more number of columns.So achieve that i need to redesign the report having more width.
CrystalReports version 10.2.3600.0
Thanks in advance
SrivatsaHI Srivatsa,
You can make a wider report by creating virtual pages. Virtual pages are the extra pages to the right of the main page that get created to accommodate cross-tabs that are wider than a single page. By inserting a cross-tab in a report then suppressing it, you can create a report that is multiple pages wide.
Insert and Suppress a Cross-Tab
1. On the 'Insert' menu, click 'Cross-Tab'.
2. In the Cross-Tab Expert, click any field and move it into the 'Columns' box, and click any field and move it into the 'Summarized Fields' box. Do not move any fields into the 'Rows' box.
3. Click the 'Customize Style' tab and select the following check boxes:
" Suppress Empty Rows
" Suppress Empty Columns
" Suppress Row Grand Totals
" Suppress Column Grand Totals
4. Click the 'OK' button and then insert the cross-tab into the Report Header section.
5. On the 'Report' menu, click 'Format Sections'. Click 'Report Header' and select the 'Underlay Following Sections' check box.
When you run the report you will not see the cross-tab, but you will be able to scroll to the right and see multiple virtual pages.
====================
NOTES:
" As there are no rows to the Cross-Tab, it does not carry on to Page 2 and the virtual pages do not appear past the first page.
" To increase or decrease the number of virtual pages do one of the following:
- Limit the number of records for the field in the 'Column' box of the 'Cross-Tab Expert' using the 'Select Expert'.
- Change the width of the 'Column' field in the Cross-Tab by moving the edges of the field.
====================
How to Insert Fields on Virtual Pages
You cannot drag-and-drop a field onto a virtual page, you can only do so on the main page. To get a field to appear on a virtual page:
1. Insert the field on the main page.
2. Click the 'Preview' tab.
3. Drag the right edge of the field to the right, onto the virtual page.
4. Drag the left edge of the field to the right, onto the virtual page.
Hope this helps!!
Regards,
Shweta -
How to stop printing the crystal report with an alert message
I am having a field called "APPROVAL" in my stored procedure with which I prepared the CR. I want that if the value in the filed is 'A' then only the crystal report should print else it should prompt with an alert message.
Hi Sreejith,
Check this helps you:
Create an alert from "Report -> Alerts -> Create or Modify Alerts" with below steps:
1. Provide name of the alert (say Alert1)
2. Click on X+2 in front of "Message" field and write the Alert message you want to display.
3. Click on Condition button and write the condition If not({APPROVAL}='A') then true;
The above Alert will prompt with configured alert message when {APPROVAL} field is not having value of 'A'
Now, in a formula, write below content and display it where you want to display the APPROVAL field value:
If {APPROVAL} = 'A' then
{APPROVAL}
This formula content will be blank if the value of {APPROVAL} is not 'A'
Thanks,
Raghavendra -
Drop down boxes ok in Crystal Reports but not ok in Crystal Reports Server
I have the following problem with "dynamic dropdowns"
Initially, I have a Crystal Report (.rpt). It has two dynamic drop downs. They work
in both Crystal Reports Designer (preview) and Crystal Reports Server (right-click-View).
The first drop down is the result of a rather complex sql query. The second drop down
is a child of the first.
I make a small change to the sql "WHERE" clause using the Crystal Reports Designer. It works fine in preview.
I save (Enterprise mode) to Crystal Server. I use Business View Manager to configure
the _DC_n object. (I did notice that the .._DC_n gets incremented by one.)
The _DF object seems to know about the updated sql so I do not have change it.
However, when I go to back to Crystal Reports Server, and right-click-View, the
"dynamic dropdown" is not working properly. I can not make sense
of what has been retrieved.
Please tell me what is most likely to have gone wrong here? The Business View Manager
seemed to knew about the sql change. But Crystal Reports Server has
not responded to the change in the same way as Crystal Reports Designer.
...thank you, StanWhen you publish a report to Crystal Server, the dynamic prompts are no longer handled in the report itself. Instead depending on how they're published, they either go away or they're published to the "repository" and managed through the "Business View Manager" (BVM), which is available as part of the Client Tools install.
To get the dynamic prompt into the repository, you have to check the "Enable Repository Refresh" checkbox at the bottom of the "Save As" screen after you log in to CRS. However, doing it this way is NOT best practice, especially if you're using the query from the report to provide the data for the prompt. If you do this for all of your reports, you get a LOT of bloat in the repository objects and it makes the job of migrating from one version of CRS to another MUCH more difficult!
What I've done in the past to get a simple "sample" prompt published is create a report that just contains the data that I want to have in the dynamic parameter using a single table - this is usually what I call a "lookup" table that has a "code" field and a "description" or "name" field. I then create a dynamic parameter in that report that just pulls the data from the single table. I'll publish the report to my favorites with the Repository Refresh enabled.
I then run the BVM and look for the following objects (default location is under "Cascading Dynamic Prompts":
<prompt name>_DC - This is the Data Connection for the prompt. Edit this, enter the password, and set it to "Never Prompt" for the password. NOTE: This DC can be reused by multiple prompts. If you continue to add prompts through publishing Crystal Reports with prompts, you will get MANY of these that all point to the same database!
<prompt name>_DF - This is the Data Foundation for the prompts. When you create a new one, you need to select an existing DC and then either one or more tables or write a command to provide the data for your prompt. It works much like the Database Explorer in Crystal. The one that was just saved has all of the information required for the prompt.
<prompt name>_BE - This is the Business Element. When you create one, you have to select and existing DF and one or more fields. You can also create a filter on the data. This is used to generate the SQL that will be run to provide the data for the prompt.
<prompt name>_ BV - This is the Business View. When you create one, you have to select the Business Element. I'm not sure of the exact purpose of this, but you have to have one in order to set up the "List of Values".
<prompt name> - This is the List of Values (LOV). This defines what fields are available for the prompt itself.
You can create folders to organize these objects so that its easier to maintain.
To use a LOV that you've defined in BVM to feed data to new dynamic prompts, do the following:
1. Connect to CRS from Crystal.
2. Create/Edit your prompt.
3. Set the prompt to be dynamic.
4. Under "Choose a Data Source", select "Existing" and select the LOV from the drop-down list.
5. Update the properties in the parameter.
When viewing or scheduling a report, the dynamic prompts will run through the Crystal Reports 2013 Report Application Server in CRS (it will be named differently if you're not on CRS 2013, but will have "Report Application Server" in the name.)
-Dell -
Unable to view images in the crystal reports on a jsp
Hi folks,
I am unable to view any image (not even the ones like businessobjects logo) in the crystal reports fetched from the CMS. I am able to fetch the report properly. But I don;t get to see the images in the reports.
If anyone of you know how to fix it. Kindly post it. It's urgent.
PS: It would be great if you could kind of share a check list of things that need to be taken care of while viewing a crystal report with images.Hi Suresh,
Please check that you have crystalreportviewers11 (for version XI) or crystalreportviewers115 ( for version XI R2) folder in your BO installation and your web.xml has correct reference to it. You can copy this folder over in your web application and
Add an entry in web.xml as follows ( if it doesn't exist)
<context-param>
<param-name>crystal_image_uri</param-name>
<param-value>/<your application name>/crystalreportviewers115</param-value>
</context-param>
crystalreportviewers11\115 have images folder which contain all the images for Logo and toolbar. Check the images folder in viewers and make sure that they exist.
-Aasavari -
Error when preview the crystal report
Hi All,
When i am click on preview button in crystal report it show an error:
error:-
could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=12.0.2000.0, Culture=nutral, PublicKeyTocken=,culture= neutral,publickeytoken692fbea5521e1304.' or one of its dependencies. The system cannot find the file specified.
please tell me why this happened.
Thanks & Regards
Manoj SHi Manoj ,
You may check these threads first:
Crystal Report - Crystal Designer
Cannot run Crystal report in SAP
Addon Crystal Report
Thanks,
Gordon -
How to handle the check box in the alv tree display
Hello,
in my ALV Tree Report i have a check box in the output.
I have one check box in the selection screen as select all .
if this is selected then all the check boxes in the output must be selected that is (X).
am using CL_GUI_ALV_TREE for this.
Please give me some input how to make that check boxes 'X' in the above mentioned case.
With Regards,
Sumodh.PSumodh,
check this
Re: Select all checkbox in ALV tree
please search before posting
Thanks
Bala Duvvuri -
An error has occurred while attempting to load the Crystal Reports runtime in deployed applications
My reports use to work but now i'm getting the following error on all reports in all the applications on my server
An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.Hi Willingtolearnja,
This forum is for TFS, I'd like to know whether you use TFS and your question is related to TFS. It would be better to let us know more details about your scenario if it's related to TFS. If not, you might need to open a new thread in the proper tech forum
that your project related for a better response.
However, from the error message, you might use the wrong configuration for x86/x64 mode. Please change the configuartion and try again. Check the links below for more information:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/82e23647-7116-424b-b437-df0cb2be083d/an-error-has-occurred-while-attempting-to-load-the-crystal-reports-runtime?forum=vscrystalreports
http://stackoverflow.com/questions/19286630/an-error-has-occured-while-attempting-to-load-the-crystal-reports-runtime
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to enable a check box using the table LVC_S_FCAT
hi,
I am working on reports. I have to have a check box and i am using the table LVC_S_FCAT to get the check box, i am getting the check box. how to enable it.Hi Preethi,
try to set default the check-box with the
value '0', '1', '-', ' ' and 'X' (0/1 -> only display,
'-' field is not shown, ' ' and 'X' is normal)
and see the differences.
Hope it helps.
Regards, Dieter
Sorry, i thought you meen enable not editable.
Message was edited by: Dieter Gröhn -
"Always Use Selected Format" check box in line items report
Hi Experts,
I have an issue in ECC 6.0.
From the transaction code FBL1N (Vendor Line Items) I am trying to export the report to spreadsheet by selecting the option List> Export>Spreadsheet then I have selected "Always Use Selected Format" check box. But if I execute the same report again I am not getting this option "Always Use Selected Format". Please let me how can we retrieve that option. Is there any possibility to get that option again either functionally or technically. I would like to know all the possible ways to get this option again.
Please do the needful.Hello,
In one my thread Mr. Frank has replied as follows. I believe he has solved this.
Hope this may be really helpful.
The problem with the spreadsheet download is at one point, users have selected their default file type.
That said, SAPGUI is working as it should. (gui710)
Question though is how do we reset the values so they get the ?Select Spreadsheet Format? popup again.
The following steps should be performed :
- Call transaction SE38, enter program SALV_BS_ADMIN_MAINTAIN, and press F8.
- Follow the parameters below :
- Select ?DELETE? on the Actions Group
- Select ?DETAILED SELECTION? on the General Data :
- On Client - your number
- User : <user name>
-Hit EXECUTE.
-Press ENTER on the POPUP
- If there is an entry in the report that will need to be deleted. Also, make sure that the entry you will delete (for the user) has a value of GUI_ALV_XML_VER on field ?Parameter? .
- Select the line and hit the DELETE icon .
- Press ?Y? to continue delete. Press ENTER on the popup.
- Then EXIT all the way out of the program.
NOTE : When you run program SALV_BS_ADMIN_MAINTAIN, make sure they are out of any program that they are using for download.
Re: "Always Use Selected Format" check box in line items report
Regards,
Ravi
Edited by: Ravi Sankar Venna on May 15, 2009 2:31 PM -
How to get a check box on the selection screen
Hi all
can any body tell me how to get a check box on the selection screenparameter: pa_check as checkbox.
To define the input field of a parameter as a checkbox, you use the following syntax:
PARAMETERS <p> ...... AS CHECKBOX ......
Parameter <p> is created with type C and length 1. In this case, you may not use the additions TYPE and LIKE. Valid values for <p> are ' ' and 'X'. These values are assigned to the parameter when the user clicks the checkbox on the selection screen.
If you use the TYPE addition to refer to a data type in the ABAP Dictionary of type CHAR and length 1 for which 'X' and ' ' are defined as valid values in the domain, the parameter automatically appears as a checkbox on the selection screen.
REPORT DEMO.
PARAMETERS: A AS CHECKBOX,
B AS CHECKBOX DEFAULT 'X'. -
Hide check box in the print preview and print of OO ALV
Hi Experts,
I am working on an OO ALV Report. I am facing an issue as,
1) I have a check box in the output of the report. If the user clicks on print or print preview the check box should not be printed.
2) When I am printign top of page in the event PRINT_TOP_OF_PAGE, when I tried to insert new line its not printing a new line.
please suggest me how to print empty lines in the print top of page event of OO ALV.
Please help me to complete these issues.
Thanks in advance.
Regards.
Ranganadh.hi,
you can use the write statement in the print_top_of_page event of oo alv.
regards. -
Display only graph in the Crystal report viewer
Background:
We used Crystal Reports ver10 to display various graphs in our ASP.Net 2.0 Web Application (Visual Studio 2005)
We recently migrated our application to .NET 4.5 and Crystal Reports ver13 (Visual Studio 2012)
Issue:
Now, the Crystal Report Viewer control loads the graph inside an <IFRAME> which shows the whole page with the graph placed on the right bottom corner instead of just the graph image as it used to previously.
I have checked various properties that hides the tree and the toolbar and I am unable to get rid of the whole page.
Query:
Is there a way to not display the page and display only the image that contains the graph? OR
Is there a way to not render the whole <iframe> and just display the graph image inside a <div> as it used to happen before?Hi Ludek, thanks for your response. Please refer the screenshots below.
1) CR ver10 - the graph <img> is simply enclosed inside a div
2) CR ver13 - the graph <img> is enclosed inside an <iframe>'s body - you can also see the scroll bars and "white-page-background" and "grey space" which I am hoping to hide or disable
3) We are using the same set of CRViewer properties in both cases:
- DisplayGroupTree = False
- DisplayToolbar = False
- HasDrillUpButton = Flase
- HasRefreshButton = False
- HasToggleGroupTreeButton = Fasle
- HasViewList = False
- HasZoomFactorList = False
- EnableViewState = True
4) Here's a screenshot of of the .rpt file opened in the VS 2012:
We only want to render the graph image on the UI and not the whole page. Is there a property setting that will help us achive this or should we define explicit CSS styles to hide those areas?
Thank you for looking into this!
Avrosh
Maybe you are looking for
-
IPod Touch Gen 1 Stopped Working
I have an iPod touch generation 1 and it just stopped working. It was working and I plugged it in to finish charging and when I woke up a few hours later it wouldn't turn on. It still won't turn on and doesn't appear in my iTunes. What do I do?
-
Convert Adobe Illustrator CS6 Win license into Mac license
Dear All, some time ago I've purchased Adobe Illustrator CS5 as well as CS6 upgrade Win. Now I converted from Windows 7 to Mac OS X Maverics. On the page "My Products and Services" along with the serial numbers the Adobe Illustrator CS5 and CS6 Upgra
-
Minor bug in portal's tutorial
Hi all, in portal tutorial (portalApp/tutorial/portlets/login/header.jsp), the "new Java style code string test": if ( username == "" ) { Have fun!
-
Moving files from one folder to another caused freeze
I now have a list of files stuck in the center of my screen. I'm sure a reboot will fix this (I hope!) but I thought it was a bug worth reporting. All I did was move a copy a collection of files from one folder to another folder. It made the "move"
-
Hello, there is a view containing a transparent container (among other containers) that has approximately 25 UI elements. At design time it is not clear how many of these transparent containers are needed. Now I don't know how to deal with this issue