Can Crystal Report XI update data in a SQL Table

Post Author: abidamin
CA Forum: Data Connectivity and SQL
Hi,
I have a very specific requirement to update a flag field in one of SQL2005 database tables, I need to update a One character field with Y on all selected records printed on the report as a result of running the report successuflly.
Can anyone let me know if it is possible to update a SQL table field using Crystal Report XI.
Regards

Post Author: SKodidine
CA Forum: Data Connectivity and SQL
Perhaps this KBase article can be of some help.
http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2011921&sliceId=&dialogID=18608077&stateId=1%200%2018610053

Similar Messages

  • Connect Crystal report with FI Data through MAXDB ERP Tables or Datasources

    Hi,
    I want to create crystal report queries for SAP ERP FI Data. The source system database is MAXDB.
    How can i connect the maxDB database or ERP to crystal report?
    Do i need tables or datasources to create queries, and how do i connect them to crystal report.
    I will thankful for any help.
    Kind regards
    Arnaud

    I would recommend to take a look here:
    BOBJ and SAP R/3
    /people/ingo.hilgefort/blog/2008/03/23/businessobjects-and-sap-part-4
    The drivers I am talking about will be available in the CR Designer once you install the BO integration kit for SAP solutions.
    If you try to access directly the underlying MAX DB database you will not have access to all data since SAP ERP stores the data partially compressed in the database tables.
    Regards,
    Stratos

  • Can 2008 reporting services read data from 2012 sql server

    Will 2008 SSRS be able to retrieve data / speak
    to 2012 SQL Server database?

    I will try and see if it throws error. Check below similar thread.
    https://social.technet.microsoft.com/Forums/en-US/067406f5-bd65-40eb-b333-3449adeefade/connect-to-sql-server-2012-databases-from-ssrs-2008-r2?forum=sqlreportingservices
    Regards,
    Vishal Patel
    Blog: http://vspatel.co.uk
    Site: http://lehrity.com

  • Crystal Report Using ECC Data has Auth error in Infoview

    We've created a Crystal report that successfully accesses ECC data from a function module in our Dev environment when the report is executed from within Crystal Designer.  When we try to execute the same report against the same development ECC system from within InfoView we get the following error:
    ERROR: The Database Logon Information for this report is either incomplete or incorrect. 
    The connection information is the same as it is in designer. We are able to successfully run Crystal Reports over BW data within InfoView. Any ideas about what might be wrong?
    Doug

    Ingo,
    The consumers of the report do have ECC access for order and inventory management so licensing should not be an issue.
    We were able to resolve the issue. The problem was with our version of SAP GUI on the BO Dev server.
    We had to update our u201CServices.dllu201D and our u201CSAPLogonTree.xmlu201D file with an accurate version.  Once that was done, the report executed as expected in InfoView using LDAP.
    Thanks,
    Doug
    Edited by: Douglas Eberle on Jun 13, 2011 6:54 PM

  • Using crystal report to extract data from Audit Log

    I have a customised form which contains main fields (i.e 20 fields) and when a field is changed, it's being recorded in the audit log.
    Would it be possible to use Crystal Report to extract data from the Audit Log? Ideally, i would like the report to show me all the latest field values in a spreadsheet type format (i.e. one field per column)
    Has anyone try this and if so, what is involved?

    An element with both text & a sub-element is a mixed-content element.
    For example ElementA is a mixed content element.
    <ElementA>
    Text
    <ElementB></ElementB>
    </ElementA>
    Extract just the Text from ElementA.
    <xsl:template match="ElementA">
    <xsl:apply-templates select="text()" />
    </xsl:template>

  • Can Crystal Reports reports run unattended?

    Can Crystal Reports run in an unattended mode as in:
    1) Being run by a batch process to produce a file for mailing
    2) Being run within the scope of an NUnit unit test?

    And if you Ido's solutions do not work for you, and he has been using CR for years and very familiar with CR products, and you have a Developer available you can write your own application or possibly look at using Crystal Reports Server which can handle all of this for you.
    See this page for more info also: http://www.sdn.sap.com/irj/boc/bi
    Thank you
    Don

  • Error updating data source from SQL Server ODBC into SQL Native Client 10.0

    I am converting Crystal 8.5 reports into Crystal XI release 2. The data source was ODBC using SQL Server 2000 and pointing to a stored procedure. In the new server the data source has to be ODBC again, but it uses the SQL Native Client 10.0 Driver, because the new server is SQL Server 2008. I have copied the same old stored procedure on the new server and it works fine as a data source to a brand new Crystal XI report. But when I am opening an existing 8.5 version crystal report and updating the data source to the new location I get the error message "Some tables could not be replaced, as no match was found in the new data source".
    I thought I could tackle this error by creating a temporary data source using the standard ODBC SQL Driver linked to the SQL 2008 Server instead of the SQL Native Client 10 ODBC. So I first updated the crystal data source to link to this temp ODBC using SQL Driver and it worked fine. But after that, when I try to update the data source to link to the SQL Native Client 10 ODBC, I get the same error again.
    So I guess that the problem is not the new server itself, but the switch between SQL Server ODBC and SQL Native Client 10 ODBC.
    Does anyone know what's going on with this SQL Native Client 10 in updating crystal report data sources?

    CR XI does not support that driver. Try selecting the Native driver or upgrade to CR XI R2 for free and use SP4, 5 and 6 and then FP 6.4 or upgrade to CR 2008 and SP 3 and Fix Pack 3.3
    Thank you
    Don

  • Updating data in the database table

    Can any help me in the code for updating data in the database table.
    Regards,
    Rahul

    Hi Rahul,
    A slightly longer procedure that i'm adding here...
    1.) Create the component (i'm sure you have this covered)
    2.) Next on the button click that updates the database - add an action.
    3.) double click the action so that you are taken to the methods section of the view.
    4.) next you need to add the code that is required the update the database - this will be in the form of the above two posts.
    5.) compile and test the application
    Let me know in case you need further information on how to do this with a function module or something.
    Thanks.

  • Error while retrieving data from PL/SQL Table using SELECT st. (Urgent!!!)

    Hi Friends,
    I am using Oracle 8.1.6 Server, & facing problems while retrieving data from a PL/SQL Table:
    CREATE or REPLACE PROCEDURE test_proc IS
    TYPE tP2 is TABLE of varchar2(10); --declared a collection
    dt2 tP2 := tP2('a','b','c');
    i NUMBER(8);
    begin
    SELECT COUNT(*) INTO i FROM TABLE(CAST(dt2 as tP2));
    DBMS_OUTPUT.PUT_LINE('**'||i);
    end;
    While executing the above procedure, I encountered foll. error:
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [15419], [severe error during PL/SQL execution], [], [],
    ORA-06544: PL/SQL: internal error, arguments: [pfrrun.c:pfrbnd1()], [], [], [], [], [], [], []
    ORA-06553: PLS-801: internal error [0]
    Can anyone please help me, where the problem is??
    Is it Possible to retrieve data from PL/SQL TABLE using SELECT statement? & How ?
    Thanks in advance.
    Best Regards,
    Jay Raval.

    Thanks Roger for the Update.
    It means that have to first CREATE TYPE .. TABLE in database then only I can fire a Select statement on that TYPE.
    Actually I wanted to fire a Select statement on the TABLE TYPE, defined & declared in PLSQL stored procedure using DECLARE TYPE .. TABLE & not using CREATE TYPE .. TABLE.
    I was eager to know this, because my organization is reluctant in using CREATE TYPE .. TABLE defined in the database, so I was looking out for another alternative to access PL/SQL TABLE using Select statement without defining it database. It would have been good if I could access a PLSQL TABLE using Select statement Declared locally in the stored procedure.
    Can I summarize that to access a PL/SQL TABLE using SELECT statement, I have to first CREATE TYPE .. TABLE?
    If someone have any other idea on this, please do let me know.
    Thanks a lot for all help.
    Best Regards,
    Jay Raval.
    You have to define a database type...
    create type tP2 is table of varchar2(10)
    CREATE OR REPLACE PROCEDURE TEST_PROC
    IS
    dt2 tP2 := tP2('a','b','c');
    i NUMBER(8);
    begin
    SELECT COUNT(*) INTO i FROM TABLE(CAST (dt2 AS tP2));
    DBMS_OUTPUT.PUT_LINE('**'||i);
    end;
    This will work.
    Roger

  • Reading Data from a SQL table to a Logical file on R/3 appl. Server

    Hi All,
    We would like to create Master Data using LSMW (direct Input) with source files from R/3 Application Server.
    I have created files in the'/ tmp/' directory however I do not know how to read data from the SQL table and insert it into the logical file on the R/3 application server.
    I am new to ABAP , please let me know the steps to be done to acheive this .
    Regards
    - Ajay

    Hi,
    You can find lot of information about Datasets in SCN just SEARCH once.
    You can check the code snippet for understanding
    DATA:
    BEGIN OF fs,
      carrid TYPE s_carr_id,
      connid TYPE s_conn_id,
    END OF fs.
    DATA:
      itab    LIKE
              TABLE OF fs,
      w_file  TYPE char255 VALUE 'FILE',
      w_file2 TYPE char255 VALUE 'FILE2'.
    SELECT carrid connid FROM spfli INTO TABLE itab.
    OPEN DATASET w_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT. "Opening a file in Application
                                                            " Server to write data
    LOOP AT itab INTO fs.
      TRANSFER fs TO w_file. "" Writing the data into the Application server file
    ENDLOOP.
    CLOSE DATASET w_file.
    OPEN DATASET w_file FOR INPUT IN TEXT MODE ENCODING DEFAULT. "Opening a file in Application
                                                          " server to read data
    FREE itab.
    DO.
      READ DATASET w_file INTO fs.
      IF sy-subrc EQ 0.
        APPEND fs TO itab.
        OPEN DATASET w_file2 FOR APPENDING IN TEXT MODE ENCODING DEFAULT. "Appending more data to the file in the
                                                           " application server
        TRANSFER fs TO w_file2.
        CLOSE DATASET w_file2.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
    Regards
    Sarves

  • Crystal Report 2011- SAP Data Sources: CL - no items found

    Background:
    SAP ECC 6.0 was purchased three years ago with DSD package. Only FI and SD modules are in use. Accounts download data filesfrom SAP to produce spreadsheet reports. Few user trust these numbers. We are setup as "SAP in the Cloud" model- Listening to constant user complaints, it seems SAP is broken. Interim solution: Crystal Report for everyone.
    Encouraged by Ingo Hilgefort papers and Crystal Report Forum:
    We decided to deploy Crystal Report 2011 and Business Object XI 3.1 with SP4 for our small user community. These software are installed on local XP laptop and Business Object XI 3.1 installed in the SAP server as well.
    Problem Description:
    The desktop user cannot see SAP infosets or tables contents. When connect to the data sources. After user login, she can navigate to expand the data source CL.- displays "no items found ". I can reproduce this error. Using the Crystal Report wizard and selecting various data sources such as: SAP Table, Cluster and Functions: CL, DD and FN category only DD and FN display items.
    Current Environment: SAP in the Cloud.
    SAP Server::ECC 6.0 EhP3 dual stack. Database MSSQL, OS 2008 Server, Business Object Intergration Kit 3.1, Remote Acces VPN.
    Desktop Environment: Crystal Report 2011: SP1, Business Object Xi 3.1, XP SP3
    Surprise: Clicking on either DD and FN tab inside the connector window in Crystal- it expands and displays tables and content reference but not CL.
    Questions: Do we have to move to EhP5 for the CRX 2011 to work ? What is wrong: ? Any help will be appreciated?
    This question is for Ingo H. How to convince SAP hosting company otherwise to solve our problem ? Is is desktop problem or Host side configuration ?

    Ahmad
    K900687 is Open SQL Connectivity transport and required for direct SAP tables connectivity, so you need it, but I am not sure if the warning message relevant to your problem. Sometimes warning is just a warning.
    You can see other objects in DD, but not in CL, it means the connection works. You probably do not have required authorisations to see objects.
    I would suggest to review the Authorisation section of SAP Integration Kit Installation Guide here:
    [http://service.sap.com/~sapidb/011000358700000559912010E/xi31_sp3_bip_sap_inst_en.pdf ]
    You may also check what is the differences between DD and CL in terma of authorizations.
    If you think CR 2011 is broken, then test CR 2008. Is still available for free 30-days trial download here:
    [http://www12.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx]
    , but you would need to add SAP Integration Kit to it.
    Vitaly

  • Populating a Crystal Report from XML data

    Hi,
    I want to populate a Crystal Report using a XML data structure. Below I have explained what Iu2019m trying to do in detail,
    u2022 First I will create a Crystal Report using Crystal Report XI R2 designer  by connecting to a Oracle database using a native Oracle connection (not ODBC or JDBC)
    u2022 Then I want to write a Java application using CR XI R2 JRC SDK to open this report
    u2022 Then to run and populate this report using a XML data structure (which I have separately in a disk location. XSD too is available in disk)
    u2022 Then to export this report with data to either PDF or RPT file with saved data in to disk.
    The questions I have are,
    1. Is this possible to do in away?
    2. If so, can you please provide me with a sample code for doing this? I tried some of the other threads in the forum but some had broken links.
    3. Do the xml and the xsd needs to be in a special format?
    4. Is there any other configuration setting I should do?
    Hope you can help me. Thank you in advance.
    Regards,
    Chanaka

    Hi Chinmay,
    Thank you for the prompt answer. I have gone through this before. It explains on how to create a report using a xml database from CR designer. What I want to do is to set the data source programmatically to a xml date source from the code. I didnu2019t find anything like that. Is it the same way as setting the database connection information?
    Also another question I have is how does a report with two tables work? Say I have a master u2013 detail report (order and order lines). The master part is taken from one table (order_tab) and the detail part is taken from another (order_detail_tab). Do I need to have 2 xmls or is one structured xml sufficient? How will the same work if I have the detail section in a sub-report? Will it work with one or do I need to have two?
    Regards,
    Chanaka

  • Crystal Report not fetching data

    Hi Everyone,
    I have a crystal report which is not fetching any data but when I run the same sql in the database the data comes.Can anyone please help me in finding what exactly the problem is.
    Regards,
    Neeraj

    Sorry we can't help you, not enough info.
    See Rules Of Engagement.
    What have YOU done to debug the problem?
    Version of CR and any patches?
    Database connecting to and any patches?
    Version of Database Server and Client?
    How are you connecting, ODBC, OLE DB or Native?
    What error are you getting?
    Don

  • How to trigger pop-up window in report and update data base from report

    Hi All,
    I have a requirement, in a report output list to trigger a pop up window with some rejection codes corresponding to each sales order when i select from the output list. Also i need to update data base by selecting one of the rejection code in the pop-up window list for that sales order. Can any one please let me know how to achive this.
    Also, i have check boxes for each record in the output list. Also, i have added one more check box as "Select All'. When select 'Sleect All' check box , all check boxes need to be checked, how to achieve this. PLease let me know.
    Thanks in advance.
    Regards,
    Rajesh

    Hi check this code of editable ALV report... I updated the data base with the changes made..in the editable ALV
    *& Report ZJAY_EDIT_ALV
    REPORT zjay_edit_alv.
    * TYPE-POOLS *
    TYPE-POOLS: slis.
    * INTERNAL TABLES/WORK AREAS/VARIABLES
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
    i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
    w_field TYPE slis_fieldcat_alv,
    p_table LIKE dd02l-tabname,
    dy_table TYPE REF TO data,
    dy_tab TYPE REF TO data,
    dy_line TYPE REF TO data.
    * FIELD-SYMBOLS *
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
    <dyn_wa> TYPE ANY,
    <dyn_field> TYPE ANY,
    <dyn_tab_temp> TYPE STANDARD TABLE.
    * SELECTION SCREEN *
    PARAMETERS: tabname(30) TYPE c DEFAULT 'MARA',
    lines(5) TYPE n DEFAULT 7.
    * START-OF-SELECTION *
    START-OF-SELECTION.
    * Storing table name
    p_table = tabname.
    * Create internal table dynamically with the stucture of table name
    * entered in the selection screen
    CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
    ASSIGN dy_table->* TO <dyn_table>.
    IF sy-subrc <> 0.
    MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.
    LEAVE TO LIST-PROCESSING.
    ENDIF.
    * Create workarea for the table
    CREATE DATA dy_line LIKE LINE OF <dyn_table>.
    ASSIGN dy_line->* TO <dyn_wa>.
    * Create another temp. table
    CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
    ASSIGN dy_tab->* TO <dyn_tab_temp>.
    SORT i_fieldcat BY col_pos.
    * Select data from table
    SELECT * FROM (p_table)
    INTO TABLE <dyn_table>
    UP TO lines ROWS.
    REFRESH <dyn_tab_temp>.
    * Display report
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_structure_name = p_table
    i_callback_user_command = 'USER_COMMAND'
    i_callback_pf_status_set = 'SET_PF_STATUS'
    TABLES
    t_outtab = <dyn_table>
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    ENDIF.
    *& Form SET_PF_STATUS
    * Setting custom PF-Status
    * -->RT_EXTAB Excluding table
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZSTANDARD'. "copy it from SALV func group standard
    ENDFORM. "SET_PF_STATUS
    *& Form user_command
    * Handling custom function codes
    * -->R_UCOMM Function code value
    * -->RS_SELFIELD Info. of cursor position in ALV
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    * Local data declaration
    DATA: li_tab TYPE REF TO data,
    l_line TYPE REF TO data.
    * Local field-symbols
    FIELD-SYMBOLS:<l_tab> TYPE table,
    <l_wa> TYPE ANY.
    * Create table
    CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
    ASSIGN li_tab->* TO <l_tab>.
    * Create workarea
    CREATE DATA l_line LIKE LINE OF <l_tab>.
    ASSIGN l_line->* TO <l_wa>.
    CASE r_ucomm.
    * When a record is selected
    WHEN '&IC1'.
    * Read the selected record
    READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
    rs_selfield-tabindex.
    IF sy-subrc = 0.
    * Store the record in an internal table
    APPEND <dyn_wa> TO <l_tab>.
    * Fetch the field catalog info
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = p_table
    CHANGING
    ct_fieldcat = i_fieldcat
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    IF sy-subrc = 0.
    * Make all the fields input enabled except key fields
    w_field-input = 'X'.
    MODIFY i_fieldcat FROM w_field TRANSPORTING input
    WHERE key IS INITIAL.
    ENDIF.
    * Display the record for editing purpose
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_structure_name = p_table
    it_fieldcat = i_fieldcat
    i_screen_start_column = 10
    i_screen_start_line = 15
    i_screen_end_column = 200
    i_screen_end_line = 20
    TABLES
    t_outtab = <l_tab>
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    * Read the modified data
    READ TABLE <l_tab> INDEX 1 INTO <l_wa>.
    * If the record is changed then track its index no.
    * and populate it in an internal table for future
    * action
    IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
    <dyn_wa> = <l_wa>.
    i_index = rs_selfield-tabindex.
    APPEND i_index.
    ENDIF.
    ENDIF.
    ENDIF.
    * When save button is pressed
    WHEN 'SAVE'.
    * Sort the index table
    SORT i_index.
    * Delete all duplicate records
    DELETE ADJACENT DUPLICATES FROM i_index.
    LOOP AT i_index.
    * Find out the changes in the internal table
    * and populate these changes in another internal table
    READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
    IF sy-subrc = 0.
    APPEND <dyn_wa> TO <dyn_tab_temp>.
    ENDIF.
    ENDLOOP.
    * Lock the table
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    mode_rstable = 'E'
    tabname = p_table
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    IF sy-subrc = 0.
    * Modify the database table with these changes
    MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
    REFRESH <dyn_tab_temp>.
    * Unlock the table
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    mode_rstable = 'E'
    tabname = p_table.
    ENDIF.
    ENDCASE.
    rs_selfield-refresh = 'X'.
    ENDFORM. "user_command

  • Can Crystal Reports Runtime 2008 be installed on other than C: Drive?

    We use Crystal Reports 2008 as part of a custom database package. We have users that do not want the Crystal Reports installed on the C: drive. With this version there doesn't appear to be an option to select another drive on which to install the software. Is there a way to install on another drive?
    Thanks

    When they Crystal Reports install they can select a different folder and drive to install to but some runtime will be installed on C drive, no option to move it all to another drive.
    ALSO, You should NOT have both BOE XI R2 and 3.1 on the same PC, they are not side by side. CR Designer is but BOE.
    I suggest starting over and keep them on separate PC's, use the migration tool to import from old to new but you should log a case to get your BOE system cleaned up and the data migrated to separate PC's.
    Don

Maybe you are looking for