Two commands in the report using the same parameter - fail under Java

I have a report that contains 2 SQL commands.
Both of these commands use one parameter X of type Number in their 'WHERE' clause.
When i'm viewing the report in CR 2008, i'm asked for a value of this parameter and all data is filled in the report - OK
The problem occurs when the same report is printed through Crystal Java Runtime:
Report is printed without data! - it's empty.
What we noticed in the debug information thrown by the Crystal libraries is that parameter value is set only in one of these commands:
Original statement 1:
select a.something
from ANM_T a
where a.anmid = {?PARAMETER01Id}
Original statement 2:
SELECT * from ANM_T a
WHERE  a.anmid={?PARAMETER01Id}
OUTCOME of Statement 1:
select a.something
from ANM_T a
where a.anmid = 0
OUTCOME of Statement 2:
SELECT * from ANM_T a
WHERE  a.anmid=9825
In above example we may see that crystal set the value only in the second statement - first one got 0 - i suspect its some default value.
Parameter in the Java code is set in the right way. In case of using only one statement it works. If we use two separate parameters (whose values are equal ) it also works.
// we have also the loop over the parameters
ParameterFieldController paramFieldController =
                report.getDataDefController().getParameterFieldController();
paramFieldController.setCurrentValue( "", paramName, paramValue );
What is strange for me is that Crystal Reports enables to use the same parameter in two commands but if you edit one of them you may change the type of this parameter for a command ( for example from Number to String) but the parameter type in the second command remains unchanged ( it's strange because in my opinion it is the same parameter). In the Field Explorer under the Parameter Fields i still see one parameter of type used in the second command.

Hello all,
We have prepared some sample code to illustrate the issue.
We have modified the sample application (Link: [http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/c07fec3e-3e11-2c10-1991-8c0fb0b82b75]) to that it also changes the parameter value. Parameter is used in two commands saved in report.
The code changing the parameters value looks like this:
private static void changeParameters(ReportClientDocument reportClientDoc) throws ReportSDKException {
          DataDefController dataDefController = reportClientDoc.getDataDefController();
        Fields fields = dataDefController.getDataDefinition().getParameterFields();
        for( int i = 0; i < fields.size(); i++ ){
            Field field = (Field)fields.getField( i );
            if( field.getKind() == FieldKind.parameterField ){
                        setParameter( ((ParameterField)field).getName(), "9825" , reportClientDoc);          
private static void setParameter( String paramName, String paramValue, ReportClientDocument document ) throws ReportSDKException {
     ParameterFieldController paramFieldController =
                document.getDataDefController().getParameterFieldController();
     paramFieldController.setCurrentValue( "", paramName, paramValue );
We have tried the following codes to change the connection info used in commands:
Attempt 1
          Tables tables = databaseController.getDatabase().getTables();
          //Set the datasource for all main report tables.
          for (int i = 0; i < tables.size(); i++) {
               ITable table = tables.getTable(i);
               //Keep existing name and alias.
               table.setName(table.getName());
               table.setAlias(table.getAlias());
               //Change connection information properties.
               IConnectionInfo connectionInfo = table.getConnectionInfo();
               //Set new table connection property attributes.
               connectionInfo.setAttributes(propertyBag);
               //Set database username and password.
               //NOTE: Even if these the username and password properties don't change when switching databases, the
               //database password is *not* saved in the report and must be set at runtime if the database is secured. 
               connectionInfo.setUserName(DBUSERNAME);
               connectionInfo.setPassword(DBPASSWORD);
               connectionInfo.setKind(ConnectionInfoKind.SQL);
               table.setConnectionInfo(connectionInfo);
               //Update old table in the report with the new table.
               databaseController.setTableLocation(table, tables.getTable(i));
               //databaseController.setTableLocation(tables.getTable(i), table);
Attempt 2
         newConnectionInfo.setAttributes(propertyBag);
         connectionInfo.setUserName(DBUSERNAME);
         connectionInfo.setPassword(DBPASSWORD);
         //preserve subreport links
         SubreportController src = doc.getSubreportController();
         Map<String, SubreportLinks> linkMapper = new HashMap<String,SubreportLinks>();
         for(String subreportName : src.getSubreportNames()){
             linkMapper.put(subreportName,
                 (SubreportLinks) src.getSubreportLinks(subreportName).clone(true));
         //If this connection needed parameters, we would use this field. 
         Fields<IParameterField> pFields = doc.getDataDefController().getDataDefinition().getParameterFields();
         replaceConnectionInfos(doc.getDatabaseController(), newConnectionInfo, pFields);
         IStrings strs = src.getSubreportNames();
         Iterator<String> it = strs.iterator();
         while (it.hasNext()) {
           String name = it.next();
           ISubreportClientDocument subreport = src.getSubreport(name);
           pFields = subreport.getDataDefController().getDataDefinition().getParameterFields();
           replaceConnectionInfos(subreport.getDatabaseController(), newConnectionInfo, pFields);
         //reconnect subreport links since when using replaceConnection links are erased
         for(String subreportName : src.getSubreportNames())
           src.setSubreportLinks(subreportName, linkMapper.get(subreportName));
private static void replaceConnectionInfos(DatabaseController aDc, IConnectionInfo aNewConnInfo, Fields<IParameterField> aParameterField) throws ReportSDKException {
         ConnectionInfos cis = aDc.getConnectionInfos(null);
         for (IConnectionInfo oldConnInfo : cis)
           aDc.replaceConnection(oldConnInfo, aNewConnInfo, aParameterField, DBOptions._useDefault
               + DBOptions._doNotVerifyDB);
In both cases, the observed problem occurred. In one query the parameter was set properly, while on the other it was set to 0 (or empty string in case of string parameters). What is more, no data appeared on the print.
Do you happen to know the reason of this issue?How can we fix the problem?
Best regards
Mateusz Błaż

Similar Messages

  • Creating multiple tab reports using the same query in Web intelligence

    Hi All,
    I have created a Universe on a BW Query which has fields as below
    AGE  Depaatment  Gender  Grade
    25       FIN                M            A
    27       LES               F            A+
    60       SWS            M             A++
    Based on this data i have created a WEbi report which shows all of these data under one tab.
    Now i create a new report tab in the same Webi Document by right cliicking the existing report and going to inset report and saving it.
    Similarly i create two more new report tabs.
    in each of these tabs i want to show data only for the concened departments.ie =1st report contains all the departments.
    2nd report contains only finance data, third contains only Les data  and fourth only SWs Data.
    Is it possible to create this report using the same query?
    Regards,
    Raj.

    You should use report filters, not query filters.
    A query filter will affect the entire document. Every report tab that pulls data from that query will be impacted. If you start with a single report, by default it shows the data from the query. If you duplicate that report tab, then it's still attached to the first query. There are various ways to create report filters (input controls, quick filter, invoking the filter area from the toolbar) and a report filter impacts only blocks on that report tab. You can even create block filters by clicking on the block first, then creating your filter.
    This is a fairly confusing bit for folks that are new to Web Intelligence.

  • I have two Macs and I am using the same Apple ID on both.  All of my info, history etc is showing up on both.  How do I turn this off?

    I have two Macs and I am using the same Apple ID on both.  All of my info, history etc is showing up on both.  How do I turn this off?

    You likely have iCloud turned on in at least Safari. If you don't want Safari to sync between these devices turn one of them off. System Preferences - iCloud - Safari (uncheck the box)

  • Show the report on the same dashborad page with the folder tree?

    I add a folder in dashboard, and put it on the left.
    now i open the folder tree in dashboard, and click a report,
    but biee open the report on a new page.
    I want to show the report on the same page with the folder,
    maybe show the report on the right in the dashboard with the folder.
    how could it be done?
    thanks ,
    newkoa

    The only way it could work is using iframes. Now OBIEE 11g would not allow iframes inside it's dashboard. It offers a dashboard object called "Embedded content" which is a restricted iframe kinda thing but unless you get this object's id from generated HTML you can change it's content dynamically. Besides, such an implementation may break with next patch. So here is an idea.
    Create a HTML page with two iframes, left one will hold all the reports with links (you can always generate a list of reports through catalog manager, open it in excel and make HTML links from it) that open report urls (in the format of ./saw.dll?GO&Path=....) in right iframe (using javascript open.window method). Once that page is working, call this page from dashboard using an action link. This is slightly twisted approach but at least it would give you what you asked for.
    About making the report list dynamic, I am afraid there are no easy answers. OBIEE provides web service that will allow the users to query catalog to get a list of reports. You can try some basic JSP to access the web service and generate the list dynamically. But that is not something I can provide here.

  • Get a Report crashed error while running report using the mode character

    Hello,
    I'am getting an "Enable to run report - Report as crashde" issue only when I'am running reports using the mode character. The same report with desformat pdf never has any problems. I have changed the englife (set to one) increase the cachesize but I still have the same issue.
    I'm using report 6i and Oracle 8i.
    Thanks in advance for your help.
    Regards,
    Laurent.

    Hi Thanks for the response,
    In fact the report in character mode is working fine in my environnement but is not working on my customer environnement (which is supposed to be the same as mine). I was thinking of cache size issue or something like this ?
    Regards,
    Laurent.

  • 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

  • Calling a Crystal Report using the ReportViewerBean

    Hello...I am writing a java application to display a Seagate Crystal report using the ReportViewerBean.
    The problem I am having is trying to display the report within the viewer.
    The following is a sample from my code where I create an instance of the viewer bean.
    ReportViewerBean rvb = new ReportViewerBean();
    JFrame frame = new JFrame();
    frame.setSize(1000,1000);
    frame.getContentPane().add(rvb,BorderLayout.CENTER);
    frame.show();
    rvb.start();
    try
    String strUrl = "http://localhost:8080/Report1.rpt";
    rvb.setReportName(strUrl);
    catch(java.beans.PropertyVetoException pve)
    System.err.println("Property change vetod");
    The Sys-out from the Report Viewer bean is "No reponse from server".
    The sysout from my server (Tomcat 3.2.3) is:
    2001-09-06 09:08:53 - Ctx( /Report1.rpt ): FileHandler: Ends with \/. D:\jakarta
    -tomcat-3.2.3\jakarta-tomcat-3.2.3\webapps\Report1.rpt\
    2001-09-06 09:08:53 - Ctx( /Report1.rpt ): 404 R( /Report1.rpt + + null) null
    2001-09-06 09:08:53 - Ctx( /Report1.rpt ): FileHandler: Ends with \/. D:\jakarta
    -tomcat-3.2.3\jakarta-tomcat-3.2.3\webapps\Report1.rpt\
    2001-09-06 09:08:53 - Ctx( /Report1.rpt ): 404 R( /Report1.rpt + + null) null
    Any suggestion/help would be greatly appreciated...TY

    I am getting the same 'No Response from Server' Message.
    URL = http://Pepperland/STPARMListing.rpt?viewer=java&vfmt=encp&vgen=728&pversion=3&language=en&promptOnRefresh=1
    Parameters = cmd=get_pg&page=1&incomplete_page=1&incomplete_page_count=1&smart_images=1
    No response from server.
    The WWW service and the Default Web Site are up and running.
    I tried configuring the application settings in the IIS MMC but I was unable to determine which .dll to associate with the .rpt extension.

  • Adhoc reports using the OBIEE 11g

    Hi All,
    Is anyone has developed the Adhoc reports using the OBIEE 11g.
    My question is what is the use of Adhoc reports.and how we develop it.Is there any user manuals.
    thanks for your replay.
    Regards,
    Pradeep

    Hi there,
    There are also a number of blogs out there which will help you, two really good ones are:
    http://www.rittmanmead.com/blog - Rittman Mead also do public training days on OBIEE in the UK/US and India if you are interested.
    http://obiee101.blogspot.com
    Hope that helps,
    Thanks,
    Chris

  • Having a print problem on a mailing label report using the merge modules.

    Crystal Reports 2008 v 12.1.6.1116
    when I print directly from Crystal Reports designer, the labels print correctly.  If I print the report from our application software using the Crystal merge module, the top of page margin is not the same.
    I am using Crystal Report 2008 Fix Pack 1.5 Merge Modules.
    Any idea what might be causing this ?  I do not see any settings in the CrystalReportViewer that would cause the top of page margin to change.
    Note: We were using a previous version of Crystal Reports, version 11 using the merge modules and it worked just fine. After changing to the 2008 merge modules we are running into this problem.

    Which Version of VS.NET you are using?
           VS 2008 v 9.0.30729.1 SP
    . Which application you are developing desktop or web?
           Desktop
    . Error messages you are facing?
            No error message, just the top of page margin is wrong
    . Are you facing this error in development machine?
           The mailing label report works just fine printing directly from the Crystal Reports 2008 Design application.  However is I try to print the exact same report using the CrystalReportViewer in the merge module, the top of page margin is different.  Basically printing from the designer, there is some spacing at the top of the page, printing in the vb.net app the spacing at the time of is missing.
    . Are you trying to deploy this application?
           Yes
    . Operating System?
            The OS I have tried this on is XP Pro SP3 and also Vista Business SP1
    . How are you deploying your application?
            We build a installshield setup to install the merge modules

  • Running two Eurotherm 3216 temperature controllers using the driver available from Labview

    Hi All,
    I am trying to control two Eurotherm 3216 temperature controllers using the driver provided by NI at http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=7F14CDCB24923797E04400144F1EF8.... Specifically, I am using the "Temperature Control Monitoring" example.
    I have been able to operate a single temperature controller using this code. However, I need to operate two controllers, and I havent been able to modify the code appropriately to do it.
    I initially tried just repoducing the entire code and running it but that provides me with an error. However, if I run the code while using "highlight execution" it works just as I need it to...except to slowly for my purpose.
    If anyone has any insight as to how I may run both controllers, I would really appreciate it.
    Thanks

    Here something’s to try.
    1)      Make sure both controllers have RS485 comms modules installed
    2)      Connect both controllers in Daisy Chain configuration using the EIA485 instructions from Page 16 of the Manual you mentioned.
    3)      Ensure both the KD458 and the 3216 controllers have identical  Comms configurations. ie Baud Rate, Parity etc
    4)      Verify your setup:  In the "Temperature Control Monitoring" example” change the Unit Address, Baud Rate, Parity and Break Length  to match the 1st controllers values. Verify that you can communicate with the 1st controller.
    5)      Using the Same "Temperature Control Monitoring" example”, NOT a second copy, change the Unit Address, Baud Rate, Parity and Break Length to match the 2nd controllers values. Verify that you can communicate with the 2nd controller.
    Comms problems are difficult to fault find so be methodical and you will succeed.

  • Report using the feature of opening Excel in SAP.

    We are building a custom report using the feature of opening Excel in SAP.
    We need to do things like:
    Protect the worksheet, but leave some rows unprotected
    Freeze the windows
    Have any one ever used this feature before? Can any know how to do this?
    Thank you,
    PV

    No, no extra somewhere.  What it actually is, is that you are calling the methods of the application(sort of).  Here is an example application which does to the freeze panes.
    report zrich_0001.
    include ole2incl.
    data: e_sheet type ole2_object.
    data: e_appl  type ole2_object.
    data: e_work  type ole2_object.
    data: e_col1  type ole2_object.
    data: e_col2  type ole2_object.
    data: e_cols  type ole2_object.
    data: e_cell  type ole2_object.
    data: e_wind  type ole2_object.
    data: field_value(30) type c.
    parameters: p_file type localfile default 'C:RichTest.xls'.
    start-of-selection.
    * Start the application
      create object e_appl 'EXCEL.APPLICATION'.
      set property of e_appl 'VISIBLE' = 1.
    * Open the file
      call method of e_appl 'WORKBOOKS' = e_work.
      call method of e_work 'OPEN'
              exporting
                   #1 = p_file.
    * Write data to the excel file
      do 20 times.
    * Create the value
        field_value  = sy-index.
        shift field_value left deleting leading space.
        concatenate 'Cell' field_value into field_value separated by space.
    * Position to specific cell  in  Column 1
        call method of e_appl 'Cells' = e_cell
               exporting
                    #1 = sy-index
                    #2 = 1.
    * Set the value
        set property of e_cell 'Value' = field_value .
    * Position to specific cell  in  Column 2
        call method of e_appl 'Cells' = e_cell
               exporting
                    #1 = sy-index
                    #2 = 2.
    * Set the value
        set property of e_cell 'Value' = field_value .
    * Position to specific cell  in  Column 3
        call method of e_appl 'Cells' = e_cell
               exporting
                    #1 = sy-index
                    #2 = 3.
    * Set the value
        set property of e_cell 'Value' = field_value .
      enddo.
      call method of e_appl 'Columns' = e_col1
             exporting
                  #1 = 1.
      call method of e_appl 'Columns' = e_col2
              exporting
                  #1 = 2.
      call method of e_appl 'Range' = e_cols
              exporting
                #1 = e_col1
                #2 = e_col2.
      call method of e_cols 'Select' .
      get property of e_appl 'ActiveWindow' = e_wind.
      set property of  e_wind 'FreezePanes' = 1.
    ** Close the file
    *  call method of e_work 'close'.
    ** Quit the file
    *  call method of  e_appl  'QUIT'.
    *  free object e_appl.
    Regards,
    Rich Heilman

  • ALV report using the field catalog

    which is the quickest way to generate an ALV report using the field catalog merge.  without needing to build the field catalog manually .
    is it easier to create a structure and passe it in the field catalog merge .  if yes can i have an example plzzzz

    hI
    Supports the creation of the field catalog for the ALV function modules
    based either on a structure or table defined in the ABAP Data
    Dictionary, or a program-internal table.
    The program-internal table must either be in a TOP Include or its
    Include must be specified explicitly in the interface.
    The variant based on a program-internal table should only be used for
    rapid prototyping since the following restrictions apply:
    o Performance is affected since the code of the table definition must
    always be read and interpreted at runtime.
    o Dictionary references are only considered if the keywords LIKE or
    INCLUDE STRUCTURE (not TYPE) are used.
    If the field catalog contains more than 90 fields, the first 90 fields
    are output in the list by default whereas the remaining fields are only
    available in the field selection.
    If the field catalog is passed with values, they are merged with the
    'automatically' found information.
    Below is an example ABAP program which will populate a simple internal table(it_ekpo) with data and
    display it using the basic ALV grid functionality(including column total). The example details the main
    sections of coding required to implement the ALV grid functionality:
                             Data declaration
                             Data retrieval
                             Build fieldcatalog
                             Build layout setup
    *& Report  ZDEMO_ALVGRID                                               *
    *& Example of a simple ALV Grid Report                                 *
    *& The basic requirement for this demo is to display a number of       *
    *& fields from the EKKO table.                                         *
    REPORT  zdemo_alvgrid                 .
    TABLES:     ekko.
    type-pools: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
    *       Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    * There are a number of ways to create a fieldcat.
    * For the purpose of this example i will build the fieldcatalog manualy
    * by populating the internal table fields individually and then
    * appending the rows. This method can be the most time consuming but can
    * also allow you  more control of the final product.
    * Beware though, you need to ensure that all fields required are
    * populated. When using some of functionality available via ALV, such as
    * total. You may need to provide more information than if you were
    * simply displaying the result
    *               I.e. Field type may be required in-order for
    *                    the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    *  fieldcatalog-do_sum      = 'X'.
    *  fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-do_sum      = 'X'.        "Display column total
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
    *       Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    *  gd_layout-totals_only        = 'X'.
    *  gd_layout-f2code            = 'DISP'.  "Sets fcode for when double
    *                                         "click(press f2)
    *  gd_layout-zebra             = 'X'.
    *  gd_layout-group_change_edit = 'X'.
    *  gd_layout-header_text       = 'helllllo'.
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
    *       Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
    *            i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
    *            i_callback_user_command = 'USER_COMMAND'
    *            i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
    *            it_special_groups       = gd_tabgroup
    *            IT_EVENTS                = GT_XEVENTS
                i_save                  = 'X'
    *            is_variant              = z_template
           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.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
    *       Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
    select ebeln ebelp statu aedat matnr menge meins netpr peinh
    up to 10 rows
      from ekpo
      into table it_ekko.
    endform.                    " DATA_RETRIEVAL

  • Hi, my MacBook Pro cannot open Safari. nexpectedly while using the librooksbas.dylib plug-in" the report details the exception code as 'EXC_BAD_ACCESS (SIGSEGV)' and exception codes as: 'KERN_INVALID_ADDRESS at 0x0000000920

    Hi, my MacBook Pro cannot open Safari. It crashes and gives the message, ' Safari quit unexpectedly while using the librooksbas.dylib plug-in" the report details the exception code as 'EXC_BAD_ACCESS (SIGSEGV)' and exception codes as: 'KERN_INVALID_ADDRESS at 0x0000000920

    Remove "Rapport" by following the instructions on this page.
    Back up all data before making any changes.

  • My husband has paired his phone using the remote app to the TV- I would like to do the same with my phone. Can we pair more than one phone to the tv using the remote app ?

    My husband has paired his phone using the remote app to the apple TV- I would like to do the same with my phone. Can we pair more than one phone to the tv using the remote app ?

    Yes I believe so. Try it and see you can always delete the Apple TV from a remote if it messes things up.
    But we have three remotes setup to do this. My iPhone and iPad and my wifes iPhone. She has a different iTunes logon but it seems to work fine

  • Extract a report using the hostname and/or IP address of the destination site (by hits or volume).

    Hi,
    Is it possible to extract a report using the SCABB 3.7.0 (or any other version) like the "TOP WEB HOSTS" but instead of HITS as the results for the "TOP WEB HOSTS" I can see the traffic volume toward the top hosts?
    other question:
    When I extract the "TOP WEB HOSTS" report, I use the field "where the host contains" and type something like "google" to see the top 10 google related hosts.
    I would like to extract some report like "TOP WEB IP ADDRESSES", is it possible?
    thanks!
    _FD.

    The following works for me when I tested it on SSMS (SQL Server Management Studio)
    SELECT distinct
    CS.name0 as 'Computer Name',
    CS.domain0 as 'Domain',
    CS.UserName0 as 'User',
    BIOS.SerialNumber0 as 'Bios serial',
    SE.SerialNumber0 as 'System Enclosure serial',
    CS.Manufacturer0 as 'Manufacturer',
    CS.Model0 as 'model',
    OS.Caption0 as 'OS',
    RAA.SMS_Assigned_Sites0 as 'Site',
    RAM.TotalPhysicalMemory0 as 'Total Memory',
    sum(isnull(LDisk.Size0,'0')) as 'Hardrive Size',
    sum(isnull(LDisk.FreeSpace0,'0')) AS 'Free Space',
    CPU.CurrentClockSpeed0 as 'CPU Speed',
    IP.IP_Addresses0 as 'IP Address'
    from
    v_GS_COMPUTER_SYSTEM CS
    right join v_GS_PC_BIOS BIOS on BIOS.ResourceID = CS.ResourceID
    right join v_GS_SYSTEM SYS on SYS.ResourceID = CS.ResourceID
    right join v_GS_OPERATING_SYSTEM OS on OS.ResourceID = CS.ResourceID
    right join v_RA_System_SMSAssignedSites RAA on RAA.ResourceID = CS.ResourceID
    right join V_GS_X86_PC_MEMORY RAM on RAM.ResourceID = CS.ResourceID
    right join v_GS_Logical_Disk LDisk on LDisk.ResourceID = CS.ResourceID
    right join v_GS_Processor CPU on CPU.ResourceID = CS.ResourceID
    right join v_GS_SYSTEM_ENCLOSURE SE on SE.ResourceID = CS.ResourceID
    right join v_RA_System_IPAddresses IP on IP.ResourceID = CS.ResourceID
    where
    LDisk.DriveType0 =3
    group by
    CS.Name0,
    CS.domain0,
    CS.Username0,
    BIOS.SerialNumber0,
    SE.SerialNumber0,
    CS.Manufacturer0,
    CS.Model0,
    OS.Caption0,
    RAA.SMS_Assigned_Sites0,
    RAM.TotalPhysicalMemory0,
    CPU.CurrentClockSpeed0,
    IP.IP_Addresses0
    note that what @Vincez did
    was to add join to another table 'v_RA_System_IPAddresses'
    and select column IP_Addresses0 from the table
    please try again.
    ---Pat

Maybe you are looking for

  • Trouble Downloading PDFs

    I'm trying to download a pdf but I keep getting the error message "To view the full contents of this document you need a later version of the PDF viewer" however, I already have the latest version installed (11.0.04).  How can I download this pdf?  t

  • ECATT Use for upload master data

    Hi Please Guide me how to use ECATT , when  we Upload the Master data in SAP Best Practice ,not in SAP R/3 ( note : for SAP Best Practice system only) through ECATT. Can anybody have any idea about this Guide me Regards Roobal

  • Error code 6 on installing CS6, but all apps run. What do I have to worry about?

    After re-installing CS6 on MacBookPro I get error code 6 and message that PS6, DW and two others could not be installed. Nevertheless they both run as far as I can see normally. What do I have to worry about/

  • Lens profile for Tokina 11-16mm ii (new version) for Canon?

    Hello I bought this lens from Tokina and there are no profile for this lens. There will be any update? Is no available from Adobe profile downloader... Thanks

  • Pxe install how-to needed

    I have two laptops, one is HP nx9000 (archlinux), and the second is Toshiba portege 2000 (no system). What I need to do is to install archlinux on Toshiba via netboot instal (pxe install). I cannot figure out how to configure my HP running arch to al