Columns missing in my generated INTRASTAT report...

Hi all,
can anyone tell me why my INTRASTAT report is missing the following columns:
Business Transaction Type (Export/Import), Destination Region (Import), Region of Origin (Export) and
ModeOfTrnsprt-Border (Export/Import). They are , along with the other columns that appears, all set in
"Foreign Trade: Declara. to Auth.: Check Incompleteness" (Txcode: VEB1)
The values for Business Transaction Type were maintained with TxCode:OVE5
The values for Region were maintained with TxCode: OVK2/VE70
The necessary customizing for the above were done in TxCodes: OVE5; OVK2/VE70
ModeOfTrnsprt-Border turned showed out in the Incompletion log of the INTRASTAT report because it showed that it hadn't been maintained in the vendor master data.
Once again, can anyone tell me why the above columns are missing in my INTRASTAT report?
Kind regards,
Joe

Hi Jürgen,
your last answer threw a lot of light on my problem, however, my problem still stands so I'm going to try to explain it a little better:
According to the INTRASTAT Declaration found in SAP,
http://help.sap.com/saphelp_40b/helpdata/en/2b/274520995111d1b4e30000e82d81b0/content.htm,
"Description of goods", field (6) is required for Germany and the execution of transaction OVE1 shows that there exists Commodity Code  with Description for Germany but it isn't shown in the INTRASTAT report.
Furthermore, I checkedout the table VEIAV and found the column "Comm./imp. code no." but didn't find the column "Description...". The "Description of goods" exists both in the material master and the billing document, so how do I go about getting it into the INTRASTAT report?
Kind regards,
Joe

Similar Messages

  • How to generate a report for all Analyses which conatins a specific column

    Hello Experts
    I am trying to generate a report of all Analyses which contains a specific column. We are currently using OBIEE 11.1.1.7.0.
    I have tried to use the command line options using ./runcat.sh, but did not find any arguments that can filter the analyses by a specific column used.
    Any help is much appreciated.
    Regards
    Rakesh 

    Hi Rakesh,
    SampleApp has your answer: everything is available for free, just copy/paste and run on your own instance.
    http://slc02ojw.oracle.com:7780/analytics/saw.dll?Dashboard&PortalPath=%2Fshared%2F10.%20Lifecycle%20and%20Admin%2F_port…
    (as long as this instance will be up...)
    In the dashboard named "10.31 Webcat Analysis" you have a columns to analysis report where you select the presentation column and you get all the reports using it.
    This dashboard require a script to be run on your catalog, it will parse it and extract all the column info (and many other interesting things) and load it in a database. The scripts are simple and well documented, so you can easily adapt them to your own environment.
    If you want the script there is no miracle solution: download SampleApp and extract it (it's not small, but with all the great content it has we can't complain about that ...).

  • How to generate a report group by column value

    I have a table with five columns:
    c1, c2, c3, c4, count.
    I want to generate a report like this
    Total
    c1, c2
    c3, c4
    such as the values inside the table are:
    a1 b1 cc dd 2
    a1 b1 ee ff 3
    a1 b1 gg hh 4
    a1 b2 jj kk 3
    a1 b2 ll mm 4
    a1 b2 nn oo 2
    a3 b3 pp qq 3
    a3 b3 rr ss 4
    the report will be like:
    a1-b1
      cc-dd 2
      ee-ff 3
      gg-hh 4
    Total for a1-b1 9
    a1-b2
      jj-kk 3
      ll-mm 4
      nn-oo 2
    Total for a1-b2 9
    a3-b3
      pp-qq 3
      rr-ss 4
    Total for a3-b3 7
    What is the best way to achieve this?
    Thanks.
    Jen

    Hi Jen,
    Personnaly I would use a PL/SQL region and use MOD_PLSQL (htp.p) to create such a special layout, but then again you should know how to do it.
    Another way would be to create a select statement in which you select the lines you want:
    select c1||'-'||c2 key1, 0 key2, 'category '||c1||'-'||c2 , null count from table
    union
    select c1||'-'||c2, rownum, rpad(' ',5)||c3||'-'||c4, count from table
    union
    select c1||'-'||c2, count(*)+1, 'Total for cat. '||c1||'-'||c2 , sum(count)
    from table group by c1||'-'||c2, 'Total for cat. '||c1||'-'||c2
    union
    select c1||'-'||c2, count(*)+2, ' ',null from table group by c1||'-'||c2 /* empty line */
    order by 1, 2
    You can base a normal report on this.
    good luck,
    Dik

  • Column numbers are changed in the generated xls report after fix

    We are seeing a new issue with the solution provided by the support person for issue 302892066(PWC - Formatting is lost when exporting a report to excel format).
    The new issue,
    As a result of the fix for case 302892066, column numbers are changed in the generated xls report. This breaks the post-processing formulas used by customers in the Excel reports.

    Shyamala, if this is a CR desinger issue, please post this query to the Crystal Reports Design
    forum:
    SAP Crystal Reports
    If this is an applicationi development issue, post to the Developer support forum:
    https://www.sdn.sap.com/irj/sdn/businessobjects-sdk-forums
    The forums are monitored by qualified technicians and you will get a faster response there.
    Thank you for your understanding,
    Ludek

  • Report Painter - column missing

    Hi Experts,
    I am creating a new report using t-code: CXR4, I have created a form (a) for the two axis (matrix) with all my report format and  I created also another form (b)which is just one axis with key figures.
    After replacing the columns with form (b) in form (a), I noticed that there are 4 columns missing.
    For example in form (b) I have 20 columns created but when replaced in form (a) columns it only displayed 16 column although I have displayed all hidden columns.
    The missing 4 columns is the column in between 1 - 20 columns.
    Is anyone has any idea why is this happened?
    Many thanks in advance!
    Point will be rewarded for those useful.
    Cheers,
    WL

    Thanks Barry,
    I have checked in the next sections/page right but the missing columns are in between the 20 columns...Eg. column no. 15 -18 is not shown in the page/form but rest are in the form. Appreciate your expert advise please.

  • Increasing the number of columns on a text file generated by report builder

    Hello otn,
    I have a report with more than 37 colomns, when I generated this report to a text file I only have 30 cols. displayed on my test file???
    is there any way to have my 36 cols. on the text file??
    thank u in advance

    Hi again,
    I tested DESFORMAT but it doesn't work as I wanted, I did something else that is more efficient, as I wanted to have a text file from a view,table,..., I used write block from F60UTIL librairy with forms builder and it works fine now 100%, I'm writing this maybe it could help some one with the same needs...
    Thank u

  • Problem Generating a Report by passing a Resultset as a datasource

    I am having troubles generating a report using CR for Eclipse 2.0.
    I used the example that shows how do a simple select SQL query to the database and pass the resultset from the query to the report to generate a report from here: https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201084dc-be66-2b10-64bf-dde4970c9b90
    I used a simple rpt file that simply shows the content of two columns from a table: TXN_TYPE_CD and TXN_STATUS_CD from a POLICY_TXN table.
    Using the code above, and just modifying it a bit to include my jdbc connection details as well as my select query, I was able to view the report which populated data from my database (Oracle 10g) at runtime of the application.  This test proved positive.
    However, the problem I am having is that I am trying to make this code into a Servlet for use in a Java EE application running on Websphere 6.1.0.17 using JVM 1.5.0_15  64-bit.  Instead of using the DHTML thick client, I export to PDF.  When I do this, the crystal report shows as a PDF, but the data is missing for some reason.  Only the headers for the two db columns are shown.  I don't see any startling differences between the code and am 100% positive that my resultset is being returned with data (I output the data returned in the result set as shown in the code).
    Here is the code I am using:
    public class CrystalReportGeneratorServlet_WOW extends Servlet {
         private static final long serialVersionUID = 768970549082466125L;
         protected HttpSession session;
         private final String EXPORT_FILE = "myExportedReport.pdf";
         private final String CUSTOM_PATH = "/custom/resource/crystalReport/";
         private String REPORT_NAME;
         public void service(HttpServletRequest request, HttpServletResponse response)
                   throws IOException, ServletException {
              Properties loParms = new Properties();
              ResultSet resultSet = null;
              //Obtain current JDBC Connection
              Connection loConn = AppEnvironment.getJDBCConnection();
              Statement statement = null;
              try {
                   REPORT_NAME = "Test.rpt";
                   //Open report
                   ReportClientDocument reportClientDoc = new ReportClientDocument();
                   reportClientDoc.open(SystemConfig.getAppHome() + CUSTOM_PATH + REPORT_NAME, 0);
                   //Create SQL query.    
                   String query = "SELECT \"POLICY_TXN\".\"TXN_TYPE_CD\", \"POLICY_TXN\".\"TXN_STATUS_CD\"" + "FROM   \"POLICY_TXN\"";
                   //Query database and obtain the Resultset that will be pushed into the report.  
                   statement = loConn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
                   //Execute query and return result set.
                   resultSet = statement.executeQuery(query);
                   //Look up existing table in the report to set the datasource for and obtain its alias.  This table must
                   //have the same schema as the Resultset that is being pushed in at runtime.  The table could be created
                   //from a Field Definition File, a Command Object, or regular database table.  As long the Resultset
                   //schema has the same field names and types, then the Resultset can be used as the datasource for the table.
                   String tableAlias = reportClientDoc.getDatabaseController().getDatabase().getTables().getTable(0).getAlias();
                   /////TESTING: OUTPUT contents of resultSet
                   while (resultSet.next()) {
                        System.out.println("TXN_STATUS_CD = " + resultSet.getString("TXN_STATUS_CD"));
                        System.out.println("TXN_TYPE_CD = " + resultSet.getString("TXN_TYPE_CD"));
                   //Push the Java ResultSet into the report.  This will then be the datasource of the report.
                   DatabaseController dbc = reportClientDoc.getDatabaseController();
                   dbc.setDataSource(resultSet, tableAlias , "resultsetTable");
                   //Export to PDF
                   ExportToPDF(reportClientDoc, response);
              catch(ReportSDKException ex) {     
                   System.out.println(ex);
              catch(Exception ex) {
                   System.out.println(ex);               
              } finally {
                   try {
                        resultSet.close();
                   } catch (SQLException e) {
                             e.printStackTrace();
                        } finally {
                             AppEnvironment.returnStatement(statement);
                             AppEnvironment.returnConnection ( loConn ) ;
         private void ExportToPDF(ReportClientDocument rcd, HttpServletResponse response)
              try {
                   ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)rcd.getPrintOutputController().export(ReportExportFormat.PDF);
                   rcd.close();
                   writeToBrowser(byteArrayInputStream, response, "application/pdf", EXPORT_FILE);
              catch(ReportSDKException ex) {
                   System.out.println(ex);
              catch(Exception ex) {
                   System.out.println(ex);
         * Utility method that demonstrates how to write an input stream to the server's local file system.
         private void writeToBrowser(ByteArrayInputStream byteArrayInputStream, HttpServletResponse response, String mimetype, String exportFile) throws Exception {
              //Create a byte[] the same size as the exported ByteArrayInputStream.
              byte[] buffer = new byte[byteArrayInputStream.available()];
              int bytesRead = 0;
              try{
                   //Set response headers to indicate mime type and inline file.
                   response.setHeader("Content-disposition", "inline;filename=" + exportFile);
                   response.setContentType(mimetype);
                   //Stream the byte array to the client.
                   while((bytesRead = byteArrayInputStream.read(buffer)) != -1) {
                   response.getOutputStream().write(buffer, 0, bytesRead);
                   //Flush and close the output stream.
                   response.getOutputStream().flush();
                   response.getOutputStream().close();
              } catch (Exception e){
                        e.printStackTrace();
         public static Servlet getInstance()
            return new CrystalReportGeneratorServlet_WOW();
    Any help would greatly be appreciated.

    Actually Uzair I came across this thread in trying to find a resolution to my problem.  I was wondering if you were able to resolve this issue as it appears as though I may have the same problem.
    Thanks.

  • Error in generating ADDM Report(Oracle 11g 64 bit EE on linux RHEL 5)

    I collected .dmp file from production using awrextr.sql and imported in our development side using awrload.sql .
    I am able to generate awr snapshots report out of it without any trouble.
    But When I try to generate addm report using addmrpti.sql I am facing following error(Please see output pasted below)
    Specify the Report Name
    ~~~~~~~~~~~~~~~~~~~~~~~
    The default report file name is addmrpt_1_7149_7156.txt. To use this name,
    press <return> to continue, otherwise enter an alternative.
    Enter value for report_name:
    Using the report name addmrpt_1_7149_7156.txt
    Running the ADDM analysis on the specified pair of snapshots ...
    begin
    ERROR at line 1:
    ORA-13711: Some snapshots in the range [7149, 7156] are missing key statistics.
    ORA-06512: at "SYS.DBMS_ADVISOR", line 201
    ORA-06512: at line 27
    Generating the ADDM report for this analysis ...
    ERROR:
    ORA-13608: The specified name NULL is invalid.
    ORA-06512: at "SYS.PRVT_ADVISOR", line 3122
    ORA-06512: at "SYS.DBMS_ADVISOR", line 585
    ORA-06512: at line 1
    End of Report
    Report written to addmrpt_1_7149_7156.txt
    SQL>
    Any clue or help will be really helpful for us.

    hello,
    have a look at this'
    ORA-13711:Some snapshots in the range [string, string] are missing key statistics.
    Cause:      Some AWR tables encountered errors while creating one or more
    snapshots in the given range. The data present in one or more of these missing
    tables is necessary to perform an ADDM analysis.
    Action:      Look in DBA_HIST_SNAP_ERROR to find what tables are missing in
    the given snapshot range. Use the ERROR_NUMBER column in that view
    together with the alert log to identify the reason for failure and take necessary action to
    prevent such failures in the future. Try running ADDM on a different snapshot range
    that does not include any incomplete snapshots.thanks and regards
    VD
    Edited by: Dixit on Aug 31, 2009 1:52 AM
    Edited by: Dixit on Aug 31, 2009 1:53 AM

  • Error while using the XMLP API to generate a report

    Hi all,
    I am trying to generate a report using stand-alone application by the JAVA API (User doc Ch 11). I am using RFT template for this.
    Step1: Create XSL from RTF file. I could do this. Example is given in page 262 of the guide. Here is the code snippet (all import, try/catch removed):
    RTFProcessor rtfProcessor = new RTFProcessor(args[0]);
    rtfProcessor.setOutput(args[1]); // output file
    rtfProcessor.process();
    This generated a XSL file correctly.
    Step 2: Using the XSL and XML file, it could generate a output. This is failing for me. (Page 265). Code snippet below:
    <snippet>
    FOProcessor processor = new FOProcessor();
    processor.setData(args[0]); // set XML input file
    processor.setTemplate(args[1]); // set XSL input file
    processor.setOutput(args[2]); //set output file
    processor.setOutputFormat(FOProcessor.FORMAT_PDF);
    // Start processing
    try
    processor.generate();
    catch (XDOException e)
    e.printStackTrace();
    System.exit(1);
    System.exit(0);
    </snippet>
    It compiles. When I run this program (class), I get the following errors and I do not know where to look for help/resolution:
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 2
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 3
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 4
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 5
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 6
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 7
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 1 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 2 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 3 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 4 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 5 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 6 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 7 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 1 at row index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 2 at row index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 3 at row index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 4 at row index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 5 at row index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 6 at row index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 7 at row index 1
    PROBLEM: In oracle.dss.graph.GraphControllerAdapter::public void perspectiveEvent( TDGEvent event ): inappropriate data: partial data is null

    Hi Tim,
    My present requirement is :
    In OAF page, When i click "generate" button, it should generate pdf which is XML publisher output.
    My code is able to generate pdf/excel file with zero bytes and also i'm unable to open this pdf file. Following code i have written in processFormRequest:
    I debugged this code . it's working fine till processor.setOutputFormat(FOProcessor.FORMAT_EXCEL); It's unable to execute the FO processor Engine.
    Kindly please help me to rectify this error.
    if (pageContext.getParameter ("GeneratePDF")!= null)
    try{  
    RTFProcessor rtf = new RTFProcessor("C:\\cash_receipt\\CASH_RECEIPT_XML5.rtf");
    System.out.println(" step -2");
    rtf.setOutput("C:\\cash_receipt\\CASH_RECEIPT_XML7.xsl"); // set output AS XSL FILE
    System.out.println(" step -1");
    Document dc = rtf.process();
    System.out.println(" rtf.process()" + dc.toString());
    FOProcessor processor = new FOProcessor();
    // set the data definition
    processor.setData("C:\\cash_receipt\\cash_receipt_xml5.xml");
    System.out.println(" step 1");
    //("C:\\cash_receipt\\cash_receipt_xml5.xml");
    // set the template
    processor.setTemplate("C:\\cash_receipt\\CASH_RECEIPT_XML7.xsl");
    System.out.println(" step 2");
    //("C:\\cash_receipt\\CASH_RECEIPT_XML5.xsl");
    //Set the output file and the output format for a PDF document:
    processor.setOutput("C:\\TestXML.Excel");
    System.out.println(" step 3");
    processor.setOutputFormat(FOProcessor.FORMAT_EXCEL);
    // run the FO processor Engine
    System.out.println(" step 4");
    processor.generate();
    System.out.println(" step 5");
    catch (Exception e) {
    e.printStackTrace();
    System.out.println("XDOException " + e.getMessage());
    thanks,
    Keshav

  • Error while generating earlywatch report.

    Hi Guru's
                  I am having problem in generating earlywatch report.
    In solution manager i find these errors:-
    The data for this session is overdue. Data has not yet been transferred from the associated satellite system.
    Go to the Service Data Control Center (transaction SDCCN) in the satellite system and check why the data has not been sent.
    Typical sources of errors are:
    The RFC connection for the SAP Solution Manager system is not working.
    The 'Task Processor' background job, which collects the session data, has been changed.
    Problems arose while data was being collected (see the detail log for the task that collects the session data).
    A periodic 'SDCC Maintenance Package' task has not been scheduled to check whether your SAP Solution Manager system requests session data.
    Session number: 1000000002286
    In source system tcode sdccn when i try to run Refresh sessions i get following error:-
    31.05.2010     12:24:34      > Task rescheduled for 20100531125533 ( attempt 0001 )     /BDL/SAPLBDL11     0
    31.05.2010     12:24:34     Refresh of session overview failed from destination SM_SMPCLNT100_BACK     /BDL/SAPLBDL11     0
    31.05.2010     12:24:34      > Sessions cannot be refreshed from destination SM_SMPCLNT100_BACK ( SMP , 0020275310 )     /BDL/SAPLBDL11     0
    31.05.2010     12:24:34      > You cannot log on (CUA system assignment missing)     /BDL/SAPLBDL11     0
    31.05.2010     12:24:34      > error reading function module interface DSWP_API_SESSIONLIST_GET from  SM_SMPCLNT100_BACK     /BDL/SAPLBDL11     0
    31.05.2010     12:23:58     Refresh of session overview started from destination SM_SMPCLNT100_BACK     /BDL/SAPLBDL11     0
    I have checked with the rfc's they are working fine.
    Please help.
    Regards
    Akif

    Hi Akif,
    Could you please try deleting the RFC Connection and entering it again in the Managed system.
    1) SDCCN
    2) Goto-> Settings-> Task specific.
    3) RFC Destinations-> Settings click on change mode.
    4) Delete the RFC and then add the RFC Connection again and mark as Master and active.
    Then check it, hope it solves the issue.
    Thanks,
    Raghavendra.

  • Generating hourly report from oracle database using sql developer .Help

    I am working on SQL Developer 1.5.1, i need to prepare hourly record of the activity on the database, for that i have a sql query that gives me the report as per selected columns on hourly basis.I need to prepare 24 reports a day.
    Each time i have to go to the query , change the date as per hours like form 22:06:2011 10:00:00 to 22:06:2011 11:00:00 and get the report and export it in excel.
    I want to automate the script so that whenever i run the script , it just asks me the date and runs the script 24 times and fetch me the hourly report of whole day.
    the query syntax is something like this
    Select
    from
    where
    And.......................
    And...................
    And......................
    And req date between to-date( 22:06:2011 10:00:00) And to-date(22:06:2011 11:00:00)
    Order by 7,1,2,3,4,5
    Is there any possibility that i can automate the script to automatically change the hour itself and generate a report in excel 24 times?please share if you have any idea on this.
    Looking forward for a response.

    This gives you data for the whole day and the first column tells you which hour data it is,
    SELECT 'HOUR' || TO_CHAR ( req_date, 'HH24') AS hour_num,
           col1,
           col2,
           col3
      FROM table_name
    WHERE TRUNC (req_date) = TO_DATE ( '22/06/2011', 'DD/MM/YYYY')G.

  • Intrastat report generation

    Hi Experts,
    I am facing a problem with VX99 T code .this T code is related "Foreign trade: Cockpit" where we are supposed to generate the INTRASTAT report for the  data arrivals (purchase orders) in FRANCE. as of now in the intrastat reporting the data (purchase orders history ) which is related to 122 (EKBE-VGABE = '1' and EKBE-SHKZG = 'H') movement type is getting deleted by the sap standard functionality. the code is available in the the program (RMIMSELS) at line no 7522. but the requirement is what ever the data which is related to 122 movement type should be included in the INTRASTAT reporting for franse.
    if it is possible please let me know your thoughts.
    Thanks and regards
    Mohan

    It is not possible in standard, check for any notes
    Regards
    Chandrasekhar

  • Generate HTML report with ANT

    Hello,
    I'm  new to FlexPMD. I have just generated my firsts reports. I try to generate HTML reports.
    I browse the documentation, this forum and the web and I find informations to :
    - generate documentation with Hudson
    - generate documentation with Maven
    - generate documentation with XSLT pmd.xml -> html
    Ok, I try to keep it simple. So I don't want to use Hudson.
    I'm using ANT, and I currently don't want to install/learn Maven.
    I'm using FlexUnit with ANT. And It's really simple to generate reports :
    <junitreport todir="${report.flexunit.loc}">
                <fileset dir="${report.flexunit.loc}">
                    <include name="TEST-*.xml" />
                </fileset>
                <report format="frames" todir="${report.flexunit.loc}/html" />
    </junitreport>
    I'm really new to FlexPMD, so I don't have currently a big knowledge, but it seems impossible to generate a HTML report just like junitreport. (1 line in an ANT task)
    I test the XSLT transformation found on this forum (thread "XSLT pmd.xml -> html"). It's really cool. But it's seems difficult, for example, to extract the wrong code part and add it to the HTML page.
    So, what is the simpler solution to generate HTML report just with FlexPMD/ANT ?
    Thanks !

    Hello,
    Currently you generate a PMD report with ANT  like this :
    <! -- define taskdef  -->
    < taskdef name="pmd"  classname="com.adobe.ac.pmd.ant.FlexPmdAntTask"  classpath="${build.pmd.loc}/flex-pmd-ant-task-${flexpmd.version}.jar">
             < classpath>
                 < path refid="flexpmd.base" />
                 < pathelement  location="${build.pmd.loc}/commons-lang-2.4.jar" />
                 < pathelement  location="${build.pmd.loc}/flex-pmd-core-${flexpmd.version}.jar" />
                 < pathelement  location="${build.pmd.loc}/flex-pmd-ruleset-api-${flexpmd.version}.jar"  />
                 < pathelement  location="${build.pmd.loc}/flex-pmd-ruleset-${flexpmd.version}.jar"  />
                 < pathelement  location="${build.pmd.loc}/plexus-utils-1.0.2.jar" />
             < /classpath>
    < /taskdef>
    then generate XML  report like this :
    < pmd  sourceDirectory="${src.loc}" outputDirectory="${report.loc}"  ruleSet="${build.pmd.loc}/rules.xml"/>
    The  XML contains some file nodes :
    < file  name="/Users/user/workspace/AS3_UTILS/src/utils/align/gridAlignSpaceNumber.as">
           < violation beginline="22" endline="22" begincolumn="0"  endcolumn="27" rule="adobe.ac.pmd.rules.naming.TooShortVariable"  ruleset="All Flex Rules" package="utils.align"  class="gridAlignSpaceNumber.as" externalInfoUrl="" priority="5">This  variable name is too short (3 characters minimum, but 1 actually).  Detects when a field, local, or parameter has a very short name<  /violation>
    < /file>
    The  message is in the text node  < violation>TEXT< /violation>
    For  me, we miss an important part of the message : the portion of the "bad"  code.
    It could be very usefull if PMD can generate  something like this :
    < file  name="">
           < violation beginline="" endline="" begincolumn=""  endcolumn="" rule=""  ruleset="" package=""  class="gridAlignSpaceNumber.as" externalInfoUrl="" priority="">
            < description>TEXT< /description>
            < code><CDATA[MY CODE
    MY CODE
    MY CODE]>< /code>
        <  /violation>
    < /file>
    With this, we can  generate "full" HTML report with XSLT transform easily.
    I  understand that it modify the standard XML schema of the output.
    So,  perharps it could be an option like this :
    < pmd fullDescription="true"  sourceDirectory="${src.loc}"  outputDirectory="${report.loc}"  ruleSet="${build.pmd.loc}/rules.xml"/>
    What do you think ?
    Thanks !

  • Generate PDF report with HTML data

    Hi All,
    I am using BI Publisher to generate my reports but I stumbled on a big problem...
    I have a table with a column TASK_DESCRIPTION. This column is a CLOB containing a simple HTML coded page. When a user works with the application he sees a nicely formatted page but when I generate a report I get all the html tags in it (< html > < h4 > ...etc...)
    Is it possible to somehow convert the source data from the table (which is html code) into readable formatted text when generating the report?
    ANY ideas are very welcome!
    Regards,
    Pawel.

    Yes you can do this with an XSL template converting HTML to Formatting objects.
    There are a few catches however. First, you must be sure your markup-fragment is valid XHTML, that is all tags must be closed. Luckily the builtin standard HTML-editor does this.
    I wasn't able to call BI-publisher from within Apex without the XHTML-fragment being escaped, but i managed to create a query on a table containing the fragment within BI-publisher itself. This leaves the fragment intact, producing a valid XML-document.
    This is very important because the XSL attached to the RTF-template must be able to match and convert the XHTML-tags to FO.
    Basic setup :
    Create a datasource (query) within BIP.
    Create the RTF-template and add an extra field (at the top) containing : <?import:file:///C:\xhtml-to-xslfo.xsl?> or whatever location the XSL-file resides.
    Now, layout your report using the wizard and change the field containing the XHTML-fragment into <xsl:apply-templates select="TASK_DESRIPTION"/>
    There are a few XSL-templates out there converting XHTML to FO. One I found particularly useful : http://www.ibm.com/developerworks/library/x-xslfo2app/xhtml-to-xslfo.xsl
    You might want to change the .xsl so it matches tags case insensitive (eg. <xsl:template match="a|A"> )
    Another caveat is the html-entities for special characters. When the XML from the datasource is parsed by BIP it doesn't recognise entities like &Agrave ; .
    This can be solved by creating a pl/sql function converting these characters to numeric entities like &#192 ;. and use this function in the select statement of your datasource. see http://www.w3schools.com/tags/ref_entities.asp
    Now you can call the report from Apex using an URL to the report definiton (see BIP docs for URL syntax and parameter passing)
    Not a 'really' integrated solution but I had some nice results.
    It would be nice though if we could specify a .dtd containing the references for HTML-entities and a sort of flag wheter the report column should be escaped or not, from within Apex. This would allow us to embed XML-fragments within the XML that Apex produces, resulting in a valid XML doc. Using XSL, you can then match the tags of the XML-fragment and convert it to FO.
    Good luck !
    Maarten

  • How to generate a report in swing

    Hi
    I Would like to generate a report in the following formate. Could you please help me By providing some Sample code.
              BOSCO COLLEGE LIBRARY
                Book Details
    BookID | Book Name |  Book Author| Refrence/Non Reference
    ---------------------------------------------------------here the details should come from the Database.
    Thank you very much

    hi
    i tried out your idea, It is working well But here with me the Problem is I am not able to align the Page with in the A4 Sheet and then Roport Heading is shown at the CENTER on the Screen But while Printing at the Papar it is going to the Top Right Corner. Here i am posting My code please check it and give me Solution for it
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.util.Vector;
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    import java.io.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.DefaultTableModel;
    public class Report extends JFrame implements Printable, ActionListener{
         JPanel headerPanel,titlePanel,dataPanel,btnPanel,masterPanel;
         String headerStr,titleStr;
         JTable table;
         DefaultTableModel dtm;
         Vector dataVector,temp,colVec;
         JScrollPane scrollPane;
         JLabel headerLabel,titleLabel;
         private JButton btnprint, btncancel;
         private Connection con;
         private Statement st;
         // Founction FOR PRINTING
           public int print(Graphics g, PageFormat pf, int page) throws PrinterException {
            if (page > 0) { /* We have only one page, and 'page' is zero-based */
                return NO_SUCH_PAGE;
            /* User (0,0) is typically outside the imageable area, so we must
             * translate by the X and Y values in the PageFormat to avoid clipping
            Graphics2D g2d = (Graphics2D)g;
            g2d.translate(pf.getImageableX(), pf.getImageableY());
            /* Now print the window and its visible contents */
            masterPanel.printAll(g);
            /* tell the caller that this page is part of the printed document */
            return PAGE_EXISTS;
         public Report(Connection con){
              headerPanel=new JPanel();
              headerPanel.setLayout(new BorderLayout());
              titlePanel=new JPanel();
              titlePanel.setLayout(new BorderLayout());
              dataPanel=new JPanel();
              dataPanel.setLayout(new BorderLayout());
              //you can take dynamic values here..
              headerStr="DON BOSCO SCHOOL LIBRARY";
              this.setSize(750,500);
              titleStr="Book Details";
              //Creating button for print
              btnprint= new JButton("Print");
              btnprint.addActionListener(this);
              btncancel = new JButton("Cancel");
              btncancel.addActionListener(this);
              btnPanel = new JPanel();
              btnPanel.add(btnprint);
              btnPanel.add(btncancel);
              //getContentPane().add(btnPanel,BorderLayout.SOUTH);
              colVec=new Vector();
              dataVector=new Vector();
              headerLabel=new JLabel(headerStr);
              headerLabel.setHorizontalAlignment(SwingConstants.CENTER);
              titleLabel=new JLabel(titleStr);
              titleLabel.setHorizontalAlignment(SwingConstants.CENTER);
              headerPanel.add(headerLabel,BorderLayout.NORTH);
              headerPanel.add(titleLabel,BorderLayout.CENTER);
              table=new JTable();
              //table=new JTable();
              //write your code to get details from database and return in vector if possible
              //I am giving static values here it here
              try
                   st=con.createStatement();
                   ResultSet rs=st.executeQuery("Select * from Books");
                   ResultSetMetaData md= rs.getMetaData();
                   int columns =md.getColumnCount();
                   String booktblheading[]={"BOOK ID","BOOK NAME","AUTHOR","REFERENCE","CATEGORY"};
                   for(int i=1; i<= booktblheading.length;i++)
                        colVec.addElement(booktblheading[i-1]);
                   while(rs.next())
                        Vector row = new Vector(columns);
                        for(int i=1;i<=columns;i++)
                             row.addElement(rs.getObject(i));
                        dataVector.addElement(row);
                   ((DefaultTableModel)table.getModel()).setDataVector(dataVector,colVec);
                   rs.close();
                   st.close();
              catch(Exception e)
                   System.out.println(e);
              /**dtm=new DefaultTableModel();
              dtm.setDataVector(dataVector,colVec);*/
              table.setShowHorizontalLines(false);
              table.setEnabled(false);
              table.getTableHeader().setBackground(Color.WHITE);
              scrollPane=new JScrollPane(table);
              scrollPane.setAutoscrolls(false);
              masterPanel = new JPanel();
              dataPanel.add(scrollPane,BorderLayout.CENTER);
              dataPanel.setPreferredSize(scrollPane.getPreferredSize());
              dataPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));
              getContentPane().setPreferredSize(new Dimension(750,500));
              getContentPane().setLayout(new BorderLayout());
              headerPanel.setBackground(Color.WHITE);
              dataPanel.setBackground(Color.WHITE);
              masterPanel.setLayout(new BorderLayout());
              masterPanel.add(headerPanel,BorderLayout.NORTH);
              masterPanel.add(dataPanel,BorderLayout.CENTER);
              getContentPane().add(masterPanel,BorderLayout.CENTER);
              //getContentPane().setBackground(Color.WHITE);
              getContentPane().add(btnPanel,BorderLayout.SOUTH);
              pack();
              setVisible(true);
    public void actionPerformed(ActionEvent ae)
         Object obj = ae.getSource();
         if(obj==btnprint)
              PrinterJob job = PrinterJob.getPrinterJob();
                  job.setPrintable(this);
                  boolean ok = job.printDialog();
                  if (ok)
                      try {
                           job.print();
                   catch (PrinterException ex)
                            /* The job did not successfully complete */
         else if(obj== btncancel)
              setVisible (false);
              dispose();
    }Thank you very much

Maybe you are looking for

  • Performance of XSL Mapping in the ABAP Engine

    Hi All, Is the performance of XSL Mapping in the ABAP Engine better than java and graphical mapping. XSLT on the java stack has performance issue handling large documents.I want to know how far XSL Mapping in the ABAP Engine performs when compared to

  • How to make weather widget appear in Notification Center?

    I've set up various apps for notification center.  I can now see notificatoins for emails, etc. that come in after my iphone is locked.  however, how or where do the weather and stock widgets show?  They are turned on, but not showing on the lock scr

  • Override mac mini headphone output

    Hey, I was wondering if it is possible to override the audio headphone output, so the internal speaker will play instead ? or, if the headphones are pluggin for the internal speaker to play as well. Thanks for your time ! Paul

  • Can't install AIR on Mac Pro

    Here's the install log: Feb  8 17:41:20 Daniels-MacBook-Pro Install Adobe Download Assistant[389]: Begin runtime download from http://airdownload.adobe.com/air/3/nai/macos10.7/x86/installer Feb  8 17:41:42 Daniels-MacBook-Pro Install Adobe Download A

  • Ipod touch will not stay connected to network after trying to use scrabble

    I had a new ipod touch and purchased the scrabble app from EA games. I could not log into facebook to load my games onto the app on my touch. The ipod would send me to my home page and disconnect me from the internet. Eventually my ipod would not con