Reporting on a  table ?

Hello BW Experts,
can we do reporting on a custom table in BW ? is there a way to do this ..
Thanks,
BWer

dear,
try if can go with remote cube/virtual cube.
http://help.sap.com/saphelp_bw33/helpdata/en/ed/084e3ce0f9fe3fe10000000a114084/frameset.htm
http://help.sap.com/saphelp_bw33/helpdata/en/26/39dc37bff7a66de10000009b38f889/frameset.htm
http://help.sap.com/saphelp_bw33/helpdata/en/62/d2e26b696b11d5b2f50050da4c74dc/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/91b4a990-0201-0010-0e97-aaa41ae22d66
or for web try web template - xml - bsp, check Raja's weblog
/people/durairaj.athavanraja/blog/2006/02/06/read-sap-table-data-from-bw-webtemplate-ajax-in-bw-webtemplate
the other possibility may use sap automation (activex control) to read table and populate it to bex (vb macro) or web.
hope this helps.
have re-check, infoset only possible for infoobject and ods, (infocube also in nw2004s)

Similar Messages

  • Form and report on a table - redirecting to report on submit

    Hi,
    I've created a form and a report on a table...
    in a form, one of the item is a radio group (with submit) with static list of values... I've set it up to submit as I am hiding/displaying other items based on the selection... for example, when user select the location value then only city and country fields are displayed and so on...
    my problem is that when I make a selection it saves the state and takes me back to the report... when I come back to the report then I see items (hidden/displayed based on the selection that I made before I left the form)
    any way to fix it...? please advice
    Thanks

    Hi,
    OK - we can't use a Dynamic Action but we can use Javascript to do this.
    Firstly, change the item type to an ordinary Radio button - that is, remove the Submit
    Secondly, in your page attribute's HTML Header setting, add in:
    <script type="text/javascript">
    function submitByRadioButton()
    if ($v('P1_PKITEM') != '')
      doSubmit('P1_RADIOITEM');
    </script>Replace P1_PKITEM with the page item name for the hidden primary key and P1_RADIOITEM with the page item name of the radio button.
    Then, on the radio button item, add the following in the HTML Form Element Attributes setting:
    onclick="javascript:submitByRadioButton()"Finally, create a branch that returns to the same page - make sure that the Sequence number puts it before any Unconditional branch. Set the Condition for this to "Request = Expression 1" and enter P1_RADIOITEM (or whatever the page item name is for the radio button) into the Expression 1 setting.
    Now, when the user creates a new record, the hidden P1_PKITEM value will be blank. Clicking the radio button at this time will not trigger a submit and the function checks this. For existing records, P1_PKITEM will contain a value, so the function will allow the doSubmit to run.
    Andy

  • Report using three tables on group basis

    Hi,
    I wish to know a clue for the follwing report among three tables either using join or sub-query or PL/SQL Script as per the below desired output.
    Top 10 games by uniques / by volume
    It should produce something like this:
    Game     Uniques     Volumes     Game Start     Game End     Mins on Air     
    Top 5 movies beginning with "D"     2734     7924     9/24/06 9:59 PM     9/24/06 10:41 PM     42     
    Top 5 One Hit Wonders     2355     6471     9/24/06 9:07 PM     9/24/06 9:48 PM     41     
    Things you find in The Kitchen     1336     3600     9/24/06 10:41 PM     9/24/06 10:59 PM     18     
    Twisted Title Men in Black     770     1435     9/24/06 9:53 PM     9/24/06 9:59 PM     6     
    Anagram Lance Armstrong     884     1350     9/24/06 9:48 PM     9/24/06 9:53 PM     5     
    A.Bucks Jack and Jill...     593     824     9/24/06 8:59 PM     9/24/06 9:04 PM     4     
    Missing link ANY101     649     815     9/24/06 9:04 PM     9/24/06 9:07 PM     3     
    Parameters should be startDate and endDate.
    This query can be obtained from using the following tables: Calls, Games, Events, Event_Types
    Calls have a timestamp.
    Every game has event, such as start game or end game (see Event_Types), with its timestamp
    Volumes: Number of calls received for each game between start game date and end date
    Uniques: Unique Number of calls received for each game between start game date and end date
    (distinct cli)
    Mins on air: differences between start call and end call
    Relationship:
    The ID column from games table and game_id from events table is common.
    Assume if the event type id is 2 then it starts game and if 3 then game ends. Other type is irrelevant for this query.
    The id from event_type is mentioned in another table event_types as master with description. But it is not required to establish relationship with this table. As this code ( 2 or 3) is alredy availbel with event_type_id in the events table.
    Please assume the CLI number as dummy data.
    I have provided the structure and query to generate tables and populate testing data to sort out this issue at the earliest.
    I tried to perform this query but I wish to compare the result with the script given by experts as I’m not a core developer.
    1) desc calls
    Name Null? Type
    CLI NOT NULL VARCHAR2(255)
    CALL_DATE NOT NULL TIMESTAMP(6)
    insert into values('&CLI','&call_date')
    select substr(CLI,1,10),substr(call_date,1,22) from calls
    SUBSTR(CLI SUBSTR(CALL_DATE,1,22)
    0662740929 22-SEP-06 05.22.44.123
    0662740973 22-SEP-06 05.22.47.123
    0662740956 22-SEP-06 05.22.46.123
    0662740980 22-SEP-06 05.22.47.123
    0662740936 09-MAY-06 05.22.44.123
    0762740954 22-SEP-06 05.22.45.123
    0762740936 09-MAY-06 05.22.47.123
    0762740921 22-SEP-06 05.22.44.123
    0113456789 22-SEP-06 05.47.04.082
    0987654321 22-SEP-06 06.16.29.727
    0 22-SEP-06 06.17.28.141
    SUBSTR(CLI SUBSTR(CALL_DATE,1,22)
    0123456789 09-MAY-06 06.27.51.224
    0112740929 22-SEP-06 06.28.43.398
    0123456789 09-MAY-06 06.30.10.830
    0044791475 24-SEP-06 04.38.08.564
    0044791475 24-SEP-06 04.40.05.777
    0123456789 24-SEP-06 05.32.22.267
    0147258369 24-SEP-06 05.34.25.652
    0852147963 24-SEP-06 05.52.56.992
    0123456789 25-SEP-06 01.34.17.157
    0683379112 25-SEP-06 01.35.19.461
    0 25-SEP-06 03.09.12.347
    SUBSTR(CLI SUBSTR(CALL_DATE,1,22)
    0141411683 25-SEP-06 03.21.07.402
    0141411683 25-SEP-06 03.21.38.519
    0618769562 02-JUN-06 03.22.12.807
    0123456789 02-JUN-06 03.24.11.387
    0 25-SEP-06 03.25.13.152
    0141412179 25-SEP-06 03.25.38.424
    0123456789 02-JUN-06 03.26.57.687
    0607069617 02-JUN-06 03.27.02.720
    0014141168 26-SEP-06 03.30.55.290
    0618769562 25-SEP-06 03.31.21.141
    0141411683 25-SEP-06 03.31.45.952
    SUBSTR(CLI SUBSTR(CALL_DATE,1,22)
    0607069617 25-SEP-06 03.32.14.542
    0618769562 25-SEP-06 03.32.30.433
    0 25-SEP-06 03.32.43.292
    0141412179 25-SEP-06 03.33.07.166
    0 25-SEP-06 03.33.56.086
    0 25-SEP-06 03.34.03.918
    0123456789 26-SEP-06 03.34.21.193
    0 25-SEP-06 03.34.25.484
    0 25-SEP-06 03.34.39.126
    0 25-SEP-06 03.34.40.354
    0 25-SEP-06 03.34.51.231
    2)
    SQL> desc events
    Name Null? Type
    EVENT_TYPE_ID NOT NULL NUMBER(19)
    EVENT_DATE NOT NULL TIMESTAMP(6)
    GAME_ID NUMBER(19)
    insert into events values ('&EVENT_TYPE_ID','&EVENT_DATE',&GAME_ID')
    SQL> select substr(event_type_id,1,10),substr(event_date,1,20),substr(game_id,1,10) from events where game_id in (1918,1919,1920,1939,1958,1979,1999,2018,2040,2041,2061)
    SUBSTR(EVE SUBSTR(EVENT_DATE,1, SUBSTR(GAM
    3 26-APR-06 06.11.50.8 1939
    4 26-APR-06 06.12.05.6 1939
    5 26-APR-06 06.16.13.5 1939
    3 09-MAY-06 06.18.59.7 1920
    4 09-MAY-06 06.22.43.7 1920
    3 12-MAY-06 04.24.46.2 1920
    4 12-MAY-06 04.46.22.5 1920
    3 12-MAY-06 04.29.07.4 1920
    4 12-MAY-06 04.39.31.1 1920
    3 12-MAY-06 04.29.35.3 1920
    4 12-MAY-06 04.30.02.8 1920
    SUBSTR(EVE SUBSTR(EVENT_DATE,1, SUBSTR(GAM
    3 26-SEP-06 12.19.27.6 1958
    4 26-SEP-06 12.29.37.9 1958
    5 01-JUN-06 12.26.37.2 1958
    3 02-JUN-06 11.53.49.0 1979
    6 02-JUN-06 11.54.00.5 1979
    4 02-JUN-06 11.54.55.5 1979
    3 02-JUN-06 11.55.03.7 1979
    4 02-JUN-06 11.57.40.7 1979
    3 02-JUN-06 11.57.43.5 1979
    4 02-JUN-06 11.59.47.2 1979
    3 14-SEP-06 02.24.13.8 1999
    SUBSTR(EVE SUBSTR(EVENT_DATE,1, SUBSTR(GAM
    4 14-SEP-06 02.55.18.7 1999
    3 14-SEP-06 06.44.40.1 1999
    4 14-SEP-06 06.52.57.9 1999
    3 22-SEP-06 04.05.09.5 2018
    4 22-SEP-06 05.24.14.7 2018
    5 22-SEP-06 05.24.25.0 2018
    4 24-SEP-06 03.17.54.8 2018
    3 24-SEP-06 03.19.00.1 2018
    3) INSERT INTO games VALUES ('&ID'.'&NAME')
    SQL> desc games
    Name Null? Type
    ID NOT NULL NUMBER(19)
    NAME NOT NULL VARCHAR2(255)
    select substr(id,1,10),substr(name,1,25) from games;
    SUBSTR(ID, SUBSTR(NAME,1,25)
    1918 Copy of QN27030628
    1919 Copy of Copy of QN0104061
    1920 Copy of Copy of Copy of Q
    1939 Alex Game 8
    1958 QN27030628 Lee
    1979 Copy of QN01040611 9
    1999 Ale's Game
    2018 TF1 Game test 1
    2040 Test Game TF1sarah
    2041 BTAgilemedia Game Test
    2061 Copy of Copy of QN0104060
    Your help would be highly appreciated.
    Thanks
    Jayesh

    Hi,
    I am sending herewith SQL statement for populating data into the concern tables
    To make easier for further testing your script.
    insert into calls values (0772740929, 22-SEP-06 05.22.44.123)
    insert into calls values (0882740929, 22-SEP-06 05.22.44.123)
    insert into calls values (0772740929, 25-SEP-06 05.22.44.123)
    insert into calls values (0662740929, 27-SEP-06 05.22.44.123)
    insert into calls values (0452740929, 22-SEP-06 05.22.44.123)
    insert into calls values (0992740929, 24-SEP-06 05.22.44.123)
    insert into calls values (0992740929, 26-SEP-06 05.22.44.123)
    insert into events values (3, 22-SEP-06 05.22.44.123,1918)
    insert into events values (4, 22-SEP-06 05.32.44.123,1918)
    insert into events values (3, 24-SEP-06 05.22.44,1920)
    insert into events values (4, 24-SEP-06 05.42.44,1920)
    insert into events values (3, 26-SEP-06 05.22.44,1958)
    insert into events values (4, 26-SEP-06 05.52.44,1958)
    Insert into games values (1918,’ Copy of QN27030628’)
    Insert into games values (1920,’ Test Game TF1sarah’)
    Insert into games values (1958,’ Test Car Race’)
    Thanks
    jayesh

  • For output display report is final_internal table or structure in wd ABAP?

    Hi all,
    for output display report is final_internal table or structure in wd ABAP?
    in wd java output display report -.> CALLING rfc and that RFC OUTPUT table
    finally in internal table is assigned to STRUCTURE .Same procdure?
    Thanks,
    RAMA

    Dear Madhu,
    thanks for guidence!
    its showing popup tht this BADI ( ME_CHANGE_OUTTAB_CUS ) is only use for "SAP Internal  use".
    Regards,
    Praphull

  • Report on a table from another schema

    hi,
    i have a table PROJECTS in schema CSALE when i create a report in APPEXP application (persing via user TESTER2) it gives me the error table does not found while TESTER2 has full writes on PROJECTS table.
    select project_id ID, Project_name DESC from SCALE.PROJECTS;
    when i run this query from SQL PLUS it works fine.
    I have used synonym it giving me the error
    ORA-04045: errors during recompilation/revalidation of TESTER2.PROJECTS
    ORA-00980: synonym translation is no longer valid
    Please help me how can i create a report on the table of other schema.
    Thanks

    In your schema CSALE (SCALE you stated as well)
    GRANT SELECT ON projects TO tester2In your schema TESTER2
    CREATE OR REPLACE SYNONYM projects FOR csale.projectsnow
    SELECT project_id ID, project_name description
      FROM projects;should work for you.
    Please note:
    You were using a reserved word in your query (DESC) for column alias for Project_name.
    Denes Kubicek

  • To find which reports uses the tables MKFP & MSEG

    Hi Experts,
    I have a list predeof reports. I just want to know if these reports uses the table MKFP & MSEG. Is there any predefined function or report available in order to find this one?
    Valuable answers will be rewarded.
    Thanks,
    Satish.

    user for
    MKFP  header masater document
    mseg  docu segment material
    Billing Document not released to accounting / Accounts determination:
    To resolve the error, you can analyze account determination in the billing document. Process:
    Goto T.Code: VF02 & Enter Invoice number
    Next (On the top most strip) goto Environment
    Next (Select Environment) go to Account determination
    Next (In Account Determination) select Revenue Account Determination (first option)
    This will list all the condition types in the Billing document & analyze each condition & check for which G/L accounts is not determined.
    Possible errors:
    1. VKOA not maintained for required combination
    Solution: Maintain the combination in VKOA.
    2. Account Assignment of Customer / material not maintained in Customer / Material Master (If maintained in combination in VKOA).
    Solution:
    Option 1 (Standard solution):
    step 1: Cancel Billing Document --> Reverse PGI --> cancel Delivery --> Cancel Sales Order
    step 2: Maintain Customer master / Material Master correctly.
    step 3: Recreate sales Order --> Delivery --> PGI --> Invoicing.
    Option 2:
    Force the Account Assignment Group of Customer / Material through Debug in change mode of Billing document, which will release Billing Document to Accounting.
    3. Account Key not maintained in Pricing Procedure:
    Impact: This may create accounting document, but if condition type, which are to be posted to account, but do not have account key maintained in pricing procedure, it will not be post the relevant condition type to G/L account.
    4. Billing Document not being released to accounting --
    In Material Master, there is some link between Profit Centre & MRP Type. If one of it is not maintained, erratically few documents get stuck while releasing Billing Document to accounting. Few of course get posted.
    Solution1: Cancel Billing Document --> Reverse PGI --> Cancel Delivery --> Block the sales Order & Create new sales Cycle all over again after rectifying Material master.
    Solution 2: (Temporary Solution) In Debug mode in Billing, force the Profit Center in Billing Document with the help of Abaper. But ensure Material master is rectified.
    From FI Side, you require to check that all the G/L account has been maintained through T.Code: FS00. G/L account being Master data has to be created in each client to upload through LSMW / SCATT / BDC.
    In Billing Document in change mode (in the first screen where we enter Billing Document number), on the top most left hand corner, take a dropdown on Billing Document & select Release to accounting. Here you can get the under mentioned possible message:
    1. G/L account not found
    2. Cost Element not maintained for G/L account.
    In both the above cases, FI consultant requires to take corrective action.
    Pricing:
    This is very specific & differs from client to client & may also differ based on scenario.
    Write-up on Pricing -
    In SD, Pricing Procedure is determined based on Sales Area (Sales Organization + Distribution Centre + Division) + Customer Pricing Procedure + Document Pricing Procedure. Sales Area is determined in Sales Order Header Level. Customer Pricing Procedure is determined from Customer Master. Document Pricing Procedure is determined from Sales Document Type / Billing Type (if configured). Once the pricing procedure is determined, Condition records are fetched. If appropriate condition records are found, the price is determined. If Mandatory pricing condition is missing, system will through an error message.
    In SD, the steps to configure Pricing procedure are as under:
    Step 1:
    Condition table: If existing condition table meets the requirement, we need not create a new condition table. Considering the requirement for new condition table, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Condition Table (select the required fields combination, which will store condition record).
    Step 2:
    Access Sequence: If existing access sequence meets the requirement, we need not create a new access sequence. Considering the requirement for new sequence, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Access Sequence (Access sequence is made up of Accesses (Tables) & the order of priority in which it is to be accessed. Here we assign the condition table to access sequence.
    Step 3:
    Condition Type: If existing condition type meets the requirement, we need not create a new condition type. Considering the requirement for new condition type, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Condition Type. It is always recommended to copy an existing similar condition type & make the necessary changes. Here we assign Access sequence to Condition type.
    Step 4:
    a. Pricing Procedure: It is recommended to copy a similar pricing procedure & make the necessary changes in new pricing procedure. Pricing Procedure is a set of condition type & arranged in the sequence in which it has to perform the calculation. Considering the requirement for new Pricing Procedure, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Pricing Procedure --> Maintain Pricing Procedure.
    b. Pricing Procedure: After maintaining the pricing procedure the next step will be determination of pricing procedure. Configuration for determining pricing procedure in SPRO is as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Pricing Procedure --> Determine Pricing Procedure.
    5. Condition record: Condition record is a master data, which is required to be maintained by Core team / person responsible from the client. During new implementation, the condition records can be uploaded using tools like SCAT, LSMW, etc.
    It is assumed that document pricing procedure, customer pricing procedure , ... are in place.
    Sales Document not assigned to Sales Area:
    SPRO --> Sales & Distribution --> Sales --> Sales Documents --> Sales Document Header --> Assign Sales Area To Sales Document Types --> Assign sales order types permitted for sales areas (do ensure to maintain combined Sales organization, combined Distribution channel & combined division. for eg: Sales org 1000 & sales org 1000, Sales org 2000 & sales org 2000, & so on ....
    similarly for distribution channel & Division, so that the Sales area combination is available for assignment to Sales Document Type.)
    Issues related to Customer Master data:
    1. what is the impact of leaving customer pricing procedure & customer statistic group blank in customer master --> sales area data --> sales tab:
    If Customer Pricing Procedure is left blank, Pricing will not be determined.
    If customer statistic group is left blank, then data will not flow to standard reports.
    2. Who maintains reconciliation account in customer master?
    Ideally, reconciliation account is maintained by FI person, but if SD person is authorized & has the knowledge of which reconciliation account to be maintained, then even SD person can maintain the same.
    3. Terms of payment appear in Company Code Data & sales Area Data. What is the impact of each? why is it not populated automatically, once it is maintained at either field?
    Terms of payment from company code data is for reporting purpose & it is from sales area data that it flows to sales order.
    It is a standard feature of SAP that it is not populated automatically if maintained at either of the field, but it is a must in sales area data & can be skipped in company code data.
    4. Unable to select Sales Area for Customer Master Creation?
    Most Probably either sales area is not defined or customization not done for common Sales Org & Common Distribution Channel. To maintain this configuration: SPRO --> Sales & Distribution --> Master Data --> Define Common Distribution Channels / Define Common Divisions

  • DESKI Report using Temp tables in MS- SQL server 2005

    Hi,
    I am trying to create a Free hand SQL DESKI report using temp tables in MS SQL Server-2005, I am using ODBC connection.
    When I run the report, I am getting the error
    u201CConnection or SQL sentence error (DA0005) No column or data to fetchu201D
    Ex:
    Select *
    into #t1
    from region
    select * from #t1
    drop table #t1
    Please help.
    Regards,
    Pratik

    Pratik, the SQL does not seem right. BTW you can only retreive data via Deski Free hand SQL. Also try to use OLE DB connection.

  • Crystal Reports 2008 - Changing Table Locations

    Hello,
    we have several reports which we use by different customers. The customers use different name spaces (table locations) for the same data. To use the same reports with different table locations, we wrote a piece of software replacing the connection strings and table locations. 
    Example:
    A report should be used in a test environment as well as in a production environment:
      The original SQL is (using a DB2 database on a AS400):
        SELECT alias.name FROM as400.production.users alias
      The modified SQL looks like:
        SELECT alias.name FROM as400.test.users alias
    Up to now we used Crystal XI and developed using RDC. We solved the above described problem by reading the report SQL string, replacing the table location in this string and assigned it back to the report object. Modifying the SQL string has the advantage that it works fine also for reports which contain a SQL command.
    Since Crystal Reports 2008 this is not possible anymore (no RDC, no direct way to modify the report SQL string).
    My first approach was to use the CrystalDecisions.CrystalReports.Engine.Table object. First I just wanted to see what really was the content of the Location and Name property:
    for (int i = 0; i < rdReport.Database.Tables.Count; ++i)
      Table rt = rdReport.Database.Tables<i>;
      Console.WriteLine("Table Nr : {0}", i);                   
      Console.WriteLine("  Table Loc  : {0}", rt.Location);
      Console.WriteLine("  Table Name : {0}", rt.Name);
    My problem with this is that the output for the report with the SQL in the above example is:
    Table Nr: 0
      Table Loc : users
      Table Name: alias
    So obviously not the real table location and table name is returned, but instead the table name for the table location and the alias for the table name. Unsurprisingly setting the location had not the originally desired effect.
    Furthermore if the report was designed using a SQL command, the location and in the name property contain the string COMMAND. Therefore the table object doesn't seems to be the solution to my problem.
    Thanks to the help of a user in this forum here, I figured out how to read the SQL string of a report. Unfortunately I did not found a way to assign it back to the report.
    Has anybody here an idea how to solve my problem? I'm open for every kind of hint.
    Thanks in advance,
    Ron

    My solution looks like this:
    ReportDocument rdReport = new ReportDocument();                   
    rdReport.Load(sReportName, OpenReportMethod.OpenReportByTempCopy);
    CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rcDocument = rdReport.ReportClientDocument;                   
    for (int i = 0; i < rdReport.Database.Tables.Count; ++i)
        CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable rctTable = rcDocument.DataDefController.Database.Tables<i>;
        if (rctTable.ClassName == "CrystalReports.CommandTable")
            Console.WriteLine("Processing CommandTable {0}",rctTable.Name);
            Console.WriteLine("  Old Qualified Name: {0}", rctTable.QualifiedName);
            Console.WriteLine("  Old Alias:          {0}\n" , rctTable.Alias);
            CrystalDecisions.ReportAppServer.DataDefModel.CommandTable tbOldCmd = (CrystalDecisions.ReportAppServer.DataDefModel.CommandTable) rctTable;
            CrystalDecisions.ReportAppServer.DataDefModel.CommandTable tbNewCmd = new CrystalDecisions.ReportAppServer.DataDefModel.CommandTable();
            tbNewCmd.Name = tbOldCmd.Name;
            tbNewCmd.Alias = tbOldCmd.Alias;
            tbNewCmd.CommandText = sNewSql;
            tbNewCmd.ConnectionInfo = tbOldCmd.ConnectionInfo.Clone(true);
            CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag pbAttr = tbNewCmd.ConnectionInfo.Attributes;
            // set dlls
            pbAttr["Database DLL"] = "crdb_ado.dll";
            pbAttr["QE_DatabaseName"] = "NL67S021OUD";
            pbAttr["QE_DatabaseType"] = "OLE DB (ADO)";
            pbAttr["QE_ServerDescription"] = "192.0.5.24";
            pbAttr["QE_SQLDB"] = "True";
            pbAttr["SSO Enabled"] = "False";
            // set connection string                  
            CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag pbLogOnProp = (CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag)pbAttr[sAttrLogOnProp];
            pbLogOnProp.RemoveAll();
            // strangely comma seperated values instead of semicolon seperated values are needed here
            pbLogOnProp.FromString("Provider=IBMDA400,Data Source=" + sServerName + ",Initial Catalog=" + sDBName + ",User ID=" + sUserId + ",Password=" + sPwd + ",Convert Date Time To Char=TRUE,Catalog Library List=,Cursor Sensitivity=3");
            tbNewCmd.ConnectionInfo.UserName = sUserId;
            tbNewCmd.ConnectionInfo.Password = sPwd;
            rcDocument.DatabaseController.SetTableLocation(tbOldCmd, tbNewCmd);                           
        else
            Console.WriteLine("Processing Table {0}",rctTable.Name);                           
            Console.WriteLine("  Old Qualified Name: {0}", rctTable.QualifiedName);
            Console.WriteLine("  Old Alias:          {0}\n", rctTable.Alias);
            CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable rctNew = new CrystalDecisions.ReportAppServer.DataDefModel.Table();
            rctNew.Name = rctTable.Name;
            rctNew.Alias = rctTable.Alias;
            rctNew.QualifiedName = sDBName + ".V41TSTDBF.CRGUOPF";
            rctNew.ConnectionInfo = rctTable.ConnectionInfo.Clone(true);
            CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag pbAttr = rctNew.ConnectionInfo.Attributes;
            // set dlls
            pbAttr["Database DLL"] = "crdb_ado.dll";
            pbAttr["QE_DatabaseName"] = "NL67S021OUD";
            pbAttr["QE_DatabaseType"] = "OLE DB (ADO)";
            pbAttr["QE_ServerDescription"] = "192.0.5.24";
            pbAttr["QE_SQLDB"] = "True";
            pbAttr["SSO Enabled"] = "False";
            // set connection string                  
            CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag pbLogOnProp = (CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag) pbAttr[sAttrLogOnProp];
            pbLogOnProp.RemoveAll();
            // strangely comma seperated values instead of semicolon seperated values are needed here
            pbLogOnProp.FromString("Provider=IBMDA400,Data Source=" + sServerName + ",Initial Catalog=" + sDBName + ",User ID=" + sUserId + ",Password=" + sPwd + ",Convert Date Time To Char=TRUE,Catalog Library List=,Cursor Sensitivity=3");
            rctNew.ConnectionInfo.UserName = sUserId;
            rctNew.ConnectionInfo.Password = sPwd;                         
            rcDocument.DatabaseController.SetTableLocation(rctTable, rctNew);
            Console.WriteLine("  New Qualified Name: {0}", rctTable.QualifiedName);
            Console.WriteLine("  New Alias:          {0}\n", rctTable.Alias);
    Console.WriteLine("\nSetting parameter {0} to value {1}", rdReport.ParameterFields[0].Name, iDataId);
    rdReport.SetParameterValue(0, iDataId);
    Console.WriteLine("\nShow SQL: ");
    CrystalDecisions.ReportAppServer.Controllers.RowsetController rsController;
    CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rdClient = rdReport.ReportClientDocument;
    CrystalDecisions.ReportAppServer.DataDefModel.ISCRGroupPath rdGroupPath = new CrystalDecisions.ReportAppServer.DataDefModel.GroupPath();
    string temp;
    string sql;
    rsController = rdClient.RowsetController;
    sql = rsController.GetSQLStatement(rdGroupPath, out temp);
    Console.WriteLine(sql);
    Console.WriteLine("Printing");
    PageMargins pmMargins = rdReport.PrintOptions.PageMargins;
    pmMargins.bottomMargin = 350;
    pmMargins.leftMargin = 350;
    pmMargins.rightMargin = 350;
    pmMargins.topMargin = 350;
    rdReport.PrintOptions.ApplyPageMargins(pmMargins);
    rdReport.PrintOptions.PrinterName = sPrinterName;
    rdReport.PrintToPrinter(1,     // copies
                            false, // collated
                            0,     // start page
                            0);   // end page
    rdReport.Close();
    Regards,
    Ron

  • Fatch data in ALV Reports from multiple Tables

    Respected Sir,
    How to fatch data in ALV Grid report from selected Field and selected Table.
    Please Help and My require Field and Table is :
    sono LIKE vbak-vbeln,
           sodat LIKE vbak-erdat,
           cust LIKE kna1-name1,
           pono LIKE vbkd-bstkd,
           podat LIKE vbkd-bstdk,
           item_no LIKE vbap-posnr,
           item_des LIKE vbap-arktx,
           name LIKE vbak-kunnr,
           pdate LIKE vbak-bstdk,
           acdel LIKE lips-lgmng,
           netweight LIKE likp-ntgew,
           ordval LIKE VBRP-netwr,
       CUST_MAT_NO LIKE VBAP-KDMAT,
           order_qty LIKE vbap-kwmeng,
           desp_qty(5) TYPE p DECIMALS 2, "LIKE lips-lfimg,
           balance(5) TYPE p DECIMALS 2,
           delv_no LIKE likp-vbeln,
           delv_dat LIKE likp-bldat,
           invoice LIKE vbrk-vbeln,
           exnum like J_1IEXCHDR-exnum,
           invoice_dat LIKE vbrk-fkdat,
           invoice_val LIKE konv-kwert,
           END OF it_out.
    *Please Refere the following code and if u wnt to change at ur own ieda u can change and reply me back.*
    *Thnaks In ADVANCE.*
    *Please Do  need full it.*
    *Bhavesh Panchal*
    *Baroda*
    Also I Make Reports For SO : full coding is.
    *& Report  Z_NEW1
    REPORT  Z_NEW1.
    TABLES : vbak,    "Sales Document: Header Data
             vbkd,    "Sales Document: Business Data
             likp,    "SD Document: Delivery Header Data
             vbrk,    "Billing Document: Header Data
             konv,    "Conditions (Transaction Data)
             lips,    "SD document: Delivery: Item data
             vbap,    "Sales Document: Item Data
             vbrp,    "Billing Document: Item Data
             kna1,    "General Data in Customer Master
             J_1IEXCHDR.
    DATA : i_vbak LIKE vbak OCCURS 10 WITH HEADER LINE.
    DATA : it_vbkd LIKE vbkd OCCURS 10 WITH HEADER LINE.
    DATA : it_likp LIKE likp OCCURS 10 WITH HEADER LINE.
    DATA : it_vbrk LIKE vbrk OCCURS 10 WITH HEADER LINE.
    DATA : it_konv LIKE konv OCCURS 10 WITH HEADER LINE.
    DATA : it_lips LIKE lips OCCURS 10 WITH HEADER LINE.
    DATA : it_vbap LIKE vbap OCCURS 10 WITH HEADER LINE.
    DATA : it_vbrp LIKE vbrp OCCURS 10 WITH HEADER LINE.
    DATA : it_kna1 LIKE kna1 OCCURS 10 WITH HEADER LINE.
    DATA : it_vbrp1 LIKE vbrp OCCURS 10 WITH HEADER LINE.
    DATA : it_temp LIKE lips OCCURS 10 WITH HEADER LINE.
    DATA : it_lips1 LIKE lips OCCURS 10 WITH HEADER LINE.
    DATA : it_lips2 LIKE lips OCCURS 10 WITH HEADER LINE.
    DATA : it_lips3 LIKE lips OCCURS 10 WITH HEADER LINE.
    DATA : it_vbak1 LIKE vbak OCCURS 10 WITH HEADER LINE.
    DATA : it_vbak2 LIKE vbak OCCURS 10 WITH HEADER LINE.
    DATA : it_vbap1 LIKE vbap OCCURS 10 WITH HEADER LINE.
    DATA : it_posnv LIKE zdelprt OCCURS 10 WITH HEADER LINE.
    DATA : BEGIN OF it_out OCCURS 10,
           sono LIKE vbak-vbeln,
           sodat LIKE vbak-erdat,
           cust LIKE kna1-name1,
           pono LIKE vbkd-bstkd,
           podat LIKE vbkd-bstdk,
           item_no LIKE vbap-posnr,
           item_des LIKE vbap-arktx,
           name LIKE vbak-kunnr,
           pdate LIKE vbak-bstdk,
           acdel LIKE lips-lgmng,
           netweight LIKE likp-ntgew,
           ordval LIKE VBRP-netwr,
       CUST_MAT_NO LIKE VBAP-KDMAT,
           order_qty LIKE vbap-kwmeng,
           desp_qty(5) TYPE p DECIMALS 2, "LIKE lips-lfimg,
           balance(5) TYPE p DECIMALS 2,
           delv_no LIKE likp-vbeln,
           delv_dat LIKE likp-bldat,
           invoice LIKE vbrk-vbeln,
           exnum like J_1IEXCHDR-exnum,
           invoice_dat LIKE vbrk-fkdat,
           invoice_val LIKE konv-kwert,
           END OF it_out.
    SELECT-OPTIONS: sono FOR vbak-vbeln.
    SELECT-OPTIONS: customer FOR vbak-kunnr.
    SELECT-OPTIONS: d_date FOR likp-bldat.
       LOOP AT it_OUT.
       select * into table i_vbak from vbak
       where vbeln IN sono.
       sono = vbak-vbeln.
       append it_out.
       modify it_out.
       endloop.
    LOOP AT it_out.
          SELECT single vbeln netwr FROM vbak
              INTO (it_out-pono,it_out-podat)
              WHERE vbeln = it_out-sono.
              "it_out-item_no.
         append it_out.
       ENDLOOP.
        select * into table i_vbak from vbak
        where vbeln IN sono.
        call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
        i_structure_name = 'VBAK'
        I_grid_title     = 'Bhavesh Panchal'
        tables
        t_outtab = i_vbak
        t_outtab = it_out
         exceptions
         others = 1.

    Hi Bhavesh Panchal  ,
    You have to create another internal table with fields which you would like to display in the ALV output.
    once you fetch the data from different tables into respective internal tables.  loop those internal tables and insert the field values to internal table which you want to display in ALV output.
    Create  field catalog for the internal table created for  ALV  output.
    Hope it shall be useful.
    Regards
    Santosh Kumaar.M

  • [Trouble] The Report has no tables

    Hi there,
    i have trouble in using Crystal Reports for .NET 2.0.
    I load a CSV file via JetDB Provider as Text database and try to use it as DataSource for my report.
    But it crashes all time, with a error like this "report has no tables".
    Actually i dont really know Crystal Reports well, i got the project from an ex-employment from our Company.
    Of course i readed the PDF documentations "Reporting Off ADO.NET Datasets", "Crystal Reports Guide To ADO.NET", "Connecting the Report Designer Component to a Data Source" but that didnt help me at all.
    So i hope you guys can help me,
    here are the code: http://rafb.net/p/hMon9Z65.html
    with best regards,
    Torsten Sailer

    So if I understand correctly, you are loading data from a CSV file into a DataSet object and passing the DataSet to a report that you have loaded using the ReportDocument object?  Are you using the SetDataSource() method to pass the DataSet to the report?  
    Make sure that the schema of the DataSet isn't changing from when you designed the report.  The report's schema must match the DataSet schema when passing the DataSet to the report. 
    The best way to troubleshoot the issue is when the error occurs, write out the DataSet to an .xml file (with the schema) and then in a simple Windows app, load the same report, and the xml schema/data into a DataSet object (rather than the CSV) and see if the same error occurs.  If it does, open the report in design and do a "Set Database Location" to your xml file and see if it picks up any changes.  If it does, then that might be the reason why it errors....the schemas are not matching and you need you find out why.
    <p>-MJ</p>

  • MII report for MII table maintenance

    Hi Experts
    My functional consultants want an easy way to update data in bespoke tables within the MII database.
    They want to do mass updates. This is so they can run a demo of some interfaces, then reset the MII data to its previous state.
    They cannot log on to SQL.
    My plan is to enable this using an MII report running an update query/queries.
    Has anyone done something similar? Can anyone give an example of an MII report to show table data and then allow the data to be updated in the underlying table (I suppose using an update query, allowing flexible updates)?
    Or is there an easier way to enable a user-friendly table maintenance? Has to be something quick to build
    Many thanks,       Ben

    2. in Web, create irpt with this script
    function Selection(){
         var myApplet = document.iGridBatchData;
         var myGridObject = myApplet.getGridObject();
         var rowCount = myGridObject.getSelectedRowCount();
         var txt = "";
         for (i=1; i <=rowCount; i++) {
              var RowNumber = myGridObject.getSelectedRowAt(i);
               txt= txt + "," + myGridObject.getCellValueByName(RowNumber,"DateTime") ;          
         var txtLength = txt.length;
         txt =txt.substring(1, txtLength);
         var SQL = "SELECT * FROM x where DATETIME not in " + "(" + txt + ")";
         document.getElementById('TT1').value=SQL;     
    in body
    <APPLET NAME="iGridBatchData" CODEBASE="/XMII/Classes" CODE="iGrid" ARCHIVE="illum8.zip" WIDTH="640" HEIGHT="400" TABINDEX=1 MAYSCRIPT>
         <PARAM NAME="QueryTemplate" VALUE="Default/MultipleSelection/TagHistory">
         <PARAM NAME="DisplayTemplate" VALUE="Default/MultipleSelection/GridMultiple">
         <PARAM NAME="SelectionEvent" VALUE="Selection">
    </APPLET> </p>
       <input type="text" id="TT1"  class="txtField"  maxlength="400" size="200"> </p>
    The answer is something like this
    SELECT * FROM x where DATETIME not in (Aug 12, 2011 11:55:01 AM,Aug 12, 2011 11:56:01 AM)
    Aug 12, 2011 11:55:01 AM,Aug 12, 2011 11:56:01 AM is from 2 rows selection and it will increate for multiple rows you selected. Now you just need to change the SQL to update statement.
    regards
    sengkiang
    Edited by: Seng Kiang Hoe on Aug 12, 2011 1:09 PM

  • How to generate report from two tables using DAO design pattern?

    Hi,
    Iam using struts with DAO pattern for my application. According to DAO design im creating model class for each table in my database with getter,setter methods. i have no problem when im generating report from one table. but if have i have to join two tables whatis the better way for doing that? is it good practise to create a new model contains properties from both the tables?
    Please help me
    Thanks in Advance
    Rajesh

    Dear Rajesh,
    As per the pattern you are creating equivalent java objects for every database table under consideration in which each db field will become a private attribute and public getter and setter methods.
    If you have to display data from one table the above approach is sufficient enough.
    But in case your database is normalised ..lets take an example of Bank having Branch and Accounts tables. We dont need to repeat the whole information of the branch for every account in that branch. so we prefer to have a branch id in that table....this approach lot of insertion/deletion/updatation anomlies that may exists with the database...
    now lets come back to our topic....we shall create two java objects 1) Branch 2) Account.....
    When ever u just need to display simple report u can do it staright forward,,,,,now if u want to display branch information along with the account information....the two objects just created are not sufficient
    So i suggest u the following approaches
    1) Create an attribute of type Branch in the Accounts Object......
    This shall serve the purpose of displaying the Btranch information
    2) Create a collection object of type ( Vector or ArrayList) which can have objects of Account in the Branch Object,,,
    Now its upto u how shall u fill up the objects with appropriate sql queries.
    The method that i mentioned is followed by Oracle Toplink and Hibernate ....which provide Object to relation mapping layers.
    Any queries ...revert back to me...
    Mahesh

  • Reports from Transaction Tables

    Hi Experts,
    Can I develop a report using transaction tables.
    Here I am trying to develop a report based on 2 transaction tables. In physical layer I joined one another table using primary key from table and the same column which is a foreign key in another table. And the dragged them to BBM and later to Presentation layer.
    But when I tried to build a report it is showing error.
    I think I missed something some where. Please help me with your inputs to develop a report directly using transaction tables.
    Thanks
    Surpie

    Hi,
    Double-click a physical table object to view its properties
    Click the General tab to view and set general properties for a physical table object
    The Table Type drop-down list allows you to specify the physical table object type. Physical Table is the default. You can also define the physical table as a stored procedure or a SELECT statement.
    Select Table Type as "SELECT"
    When you select either of these options, a text pane below the Table Type drop-down list becomes active, allowing you to enter the stored procedure or the SELECT statement
    Enter the SQL statement
    Click OK.
    Select tables have an eyeglasses icon
    A Select table serves as an opaque view in the repository metadata, but no corresponding view is actually created in the database. The Administration Tool provides a Deploy View feature that creates a corresponding view in the database.
    To deploy a view, right-click the object and select Deploy View.
    View deployment window will appear asking for confirmation.
    Click ok. View will be created in database.
    Mark if this is helpful/ correct.
    Thanks
    Azhar

  • How to report on a table which is  in BW Side - Urgent

    Hi,
    We have requirement to create reports on the table tcurr which is present in BW Side.
    Is there any way to report on it.
    Thanks,
    Arvind

    Many ways - you can create ABAP queries (if it is one single table you can actually do with SE16 itself), or if you want to run a bex query, you can create a datasource in this table and create a virtual cube on top of that DS and create Bex queries.
    There might be standard txns (check SPRO--General settings -- Exchange rate ; and other currency related txns ) which may work for you.

  • Session completed successfully with errors reported in error tables.

    Which table would contain the errors for this error message?
    "Session completed successfully with errors reported in error tables."
    The Snp_Exp_Txt table?
    Edited by: user8702914 on Mar 2, 2011 11:28 AM

    Sutirtha,
    The FLOW_CONTROL option must be set to 'Yes', as it is the CKM that creates and populates the E$ table. If it was set to 'No' there would not be any 'errors reported in error table' as the error table would not exist.
    Cheers
    Bos

  • How can I stop Crystal reports from locking tables in our SQL db?  PLEASE HELP!!!

    Post Author: kevans
    CA Forum: Data Connectivity and SQL
    I really need help with this and so far I've had no luck finding a solution on Crystal's knowledge base, forums our even outside of this site.
    I recently upgraded from crw8 to crw10 and of course after converting reports and placing them into production I now discovered that crw10 will place locks (blocking) on the SQL tables it is using.
    Is there a setting in crystal so I can turn this off?  Someone said I can use a statement like ... "with (nolock)"  but I can't seem to figure out the correct syntax to use, I'm not even sure if this works since I can't find info on it.  I desperately need help!!!
    Example - if this is my select statement how would I add the "nolock" to it?
    (DateTimeToDate (PDMTimeToDateTime ({call_req.open_date})) >= {?Starting Date}) AND   (DateTimeToDate (PDMTimeToDateTime ({call_req.open_date})) <= {?End Date}) AND    (if {?Select_Group} <> "ALL" then {ca_contact.last_name} = {?Select_Group}         else if {?Select_Group} = "ALL" then true) AND            {call_req.type} = {?Type}

    Post Author: sharonmtowler
    CA Forum: Data Connectivity and SQL
    no lock is used in the sql stored procedure. i believe you can look at your sql statement in the report and place the nolock(prior to the table name)
    the only problem with this is you may get dirty data. most sql developers dont recommend it especially with real time data.

Maybe you are looking for