A Sample Report

Hi All
    Can anyone send me a sample report which covers almost all the main concepts of ABAP which is very useful...like all events involved,many function module used,calculations used,many tables used,ALV...etc etc
Regards
Asha

Hi Asha,
Follow the following report, it will useful for you.
*& Report  ZPA_MM_ALBA_REPORT
REPORT  ZPA_MM_ALBA_REPORT.
TABLES:MVER,MAPR,PROP,PROW.
PARAMETERS: MATNR TYPE MVER-MATNR OBLIGATORY,
            WERKS TYPE MVER-WERKS OBLIGATORY.
SELECT-OPTIONS GJAHR FOR MVER-GJAHR OBLIGATORY.
TYPES: BEGIN OF TY_MVER,
          MATNR TYPE MVER-MATNR,
          WERKS TYPE MVER-WERKS,
          GJAHR TYPE MVER-GJAHR,
          GSV01 TYPE MVER-GSV01,
          GSV02 TYPE MVER-GSV02,
          GSV03 TYPE MVER-GSV03,
          GSV04 TYPE MVER-GSV04,
          GSV05 TYPE MVER-GSV05,
          GSV06 TYPE MVER-GSV06,
          GSV07 TYPE MVER-GSV07,
          GSV08 TYPE MVER-GSV08,
          GSV09 TYPE MVER-GSV09,
          GSV10 TYPE MVER-GSV10,
          GSV11 TYPE MVER-GSV11,
          GSV12 TYPE MVER-GSV12,
          GSV13 TYPE MVER-GSV13,
          MGV01 TYPE MVER-MGV01,
          MGV02 TYPE MVER-MGV02,
          MGV03 TYPE MVER-MGV03,
          MGV04 TYPE MVER-MGV04,
          MGV05 TYPE MVER-MGV05,
          MGV06 TYPE MVER-MGV06,
          MGV07 TYPE MVER-MGV07,
          MGV08 TYPE MVER-MGV08,
          MGV09 TYPE MVER-MGV09,
          MGV10 TYPE MVER-MGV10,
          MGV11 TYPE MVER-MGV11,
          MGV12 TYPE MVER-MGV12,
          MGV13 TYPE MVER-MGV13,
       END OF TY_MVER,
    BEGIN OF TY_MAPR,
          MATNR TYPE MAPR-MATNR,
          WERKS TYPE MAPR-WERKS,
          PNUM1 TYPE MAPR-PNUM1,
     END OF TY_MAPR,
     BEGIN OF TY_PROP,
          PNUM2 TYPE PROP-PNUM2,
    END OF TY_PROP,
     BEGIN OF TY_PROW,
          PNUM2 TYPE PROW-PNUM2,
          ERTAG TYPE PROW-ERTAG,
          PRWRT TYPE PROW-PRWRT,
          KOPRW TYPE PROW-KOPRW,
          FIXKZ TYPE PROW-FIXKZ,
     END OF TY_PROW.
DATA:IT_MVER TYPE STANDARD TABLE OF TY_MVER WITH DEFAULT KEY WITH HEADER LINE,
     IT_MAPR TYPE STANDARD TABLE OF TY_MAPR WITH DEFAULT KEY WITH HEADER LINE,
     IT_PROP TYPE STANDARD TABLE OF TY_PROP WITH DEFAULT KEY WITH HEADER LINE,
     IT_PROW TYPE STANDARD TABLE OF TY_PROW WITH DEFAULT KEY WITH HEADER LINE,
     WA_PROP LIKE LINE OF IT_PROP,
     WA_PROW LIKE LINE OF IT_PROW.
DATA: BEGIN OF IT_FORECAST OCCURS 0,
        YEAR LIKE  PROW-ERTAG,
        MONTH LIKE T009B-POPER,
        PRWRT LIKE PROW-PRWRT,
        KOPRW LIKE PROW-KOPRW,
      END OF IT_FORECAST.
DATA: BEGIN OF IT_SFINAL OCCURS 0,
        GJAHR LIKE MVER-GJAHR,
        MONTH LIKE T009B-POPER,
        GSVRR LIKE MVER-GSV01,
        MGVRR LIKE MVER-MGV01,
      END OF IT_SFINAL.
DATA: BEGIN OF IT_FINAL OCCURS 0,
        YEAR LIKE MVER-GJAHR,
        MONTH LIKE T009B-POPER,
        GSVRR LIKE IT_MVER-GSV01,
        MGVRR LIKE IT_MVER-MGV01,
        PRWRT LIKE IT_PROW-PRWRT,
        KOPRW LIKE IT_PROW-KOPRW,
      END OF IT_FINAL,
      WA_FINAL LIKE LINE OF IT_FINAL.
DATA : YEAR TYPE T009B-BDATJ,
       MONTH TYPE T009B-POPER,
       A TYPE I VALUE 2.
PERFORM SELECTION_DATA.
PERFORM OPERATION_DATA.
PERFORM DISPLAY_DATA.
FORM SELECTION_DATA.
SELECT MATNR WERKS GJAHR GSV01 GSV02 GSV03 GSV04
                         GSV05 GSV06 GSV07 GSV08
                         GSV09 GSV10 GSV11 GSV12
                         GSV13 MGV01 MGV02 MGV03
                         MGV04 MGV05 MGV06 MGV07
                         MGV08 MGV09 MGV10 MGV11
                         MGV12 MGV13
  FROM MVER INTO TABLE IT_MVER
  WHERE
  MATNR = MATNR AND
  WERKS = WERKS AND
  GJAHR IN GJAHR.
IF SY-SUBRC <> 0.
  write:/ 'no record found'.
endif.
SELECT MATNR WERKS PNUM1 FROM MAPR
INTO TABLE IT_MAPR
WHERE
MATNR = MATNR AND
WERKS = WERKS.
IF SY-SUBRC <> 0.
  write:/ 'no record found'.
endif.
SELECT PNUM2 FROM PROP
INTO TABLE IT_PROP
FOR ALL ENTRIES IN IT_MAPR
WHERE
PNUM1 = IT_MAPR-PNUM1.
IF SY-SUBRC <> 0.
  write:/ 'no record found'.
endif.
SELECT PNUM2 ERTAG PRWRT KOPRW FIXKZ FROM PROW
INTO TABLE IT_PROW
FOR ALL ENTRIES IN IT_PROP
WHERE
PNUM2 = IT_PROP-PNUM2.
IF SY-SUBRC <> 0.
  write:/ 'no record found'.
endif.
ENDFORM.
FORM OPERATION_DATA.
LOOP AT IT_PROW.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
  EXPORTING
    I_DATE               = IT_PROW-ERTAG
    I_PERIV              = 'K4'
IMPORTING
   E_BUPER              =  MONTH
   E_GJAHR              =  YEAR
EXCEPTIONS
   INPUT_FALSE          = 1
   T009_NOTFOUND        = 2
   T009B_NOTFOUND       = 3.
IF SY-SUBRC <> 0.
  write:/ 'no record found'.
ENDIF.
    IT_FORECAST-YEAR = YEAR.
    IT_FORECAST-MONTH = MONTH.
    IT_FORECAST-PRWRT = IT_PROW-PRWRT.
    IT_FORECAST-KOPRW = IT_PROW-KOPRW.
    APPEND IT_FORECAST.
    CLEAR IT_FORECAST.
ENDLOOP.
LOOP AT IT_MVER.
          IT_SFINAL-GJAHR = IT_MVER-GJAHR.
          IT_SFINAL-MONTH = 1.
          IT_SFINAL-GSVRR = IT_MVER-GSV01.
          IT_SFINAL-MGVRR = IT_MVER-MGV01.
          APPEND IT_SFINAL.
          IT_SFINAL-GJAHR = IT_MVER-GJAHR.
          IT_SFINAL-MONTH = 2.
          IT_SFINAL-GSVRR = IT_MVER-GSV02.
          IT_SFINAL-MGVRR = IT_MVER-MGV02.
          APPEND IT_SFINAL.
          IT_SFINAL-GJAHR = IT_MVER-GJAHR.
          IT_SFINAL-MONTH = 3.
          IT_SFINAL-GSVRR = IT_MVER-GSV03.
          IT_SFINAL-MGVRR = IT_MVER-MGV03.
          APPEND IT_SFINAL.
          IT_SFINAL-GJAHR = IT_MVER-GJAHR.
          IT_SFINAL-MONTH = 4.
          IT_SFINAL-GSVRR = IT_MVER-GSV04.
          IT_SFINAL-MGVRR = IT_MVER-MGV04.
          APPEND IT_SFINAL.
          IT_SFINAL-GJAHR = IT_MVER-GJAHR.
          IT_SFINAL-MONTH = 5.
          IT_SFINAL-GSVRR = IT_MVER-GSV05.
          IT_SFINAL-MGVRR = IT_MVER-MGV05.
          APPEND IT_SFINAL.
          IT_SFINAL-GJAHR = IT_MVER-GJAHR.
          IT_SFINAL-MONTH = 6.
          IT_SFINAL-GSVRR = IT_MVER-GSV06.
          IT_SFINAL-MGVRR = IT_MVER-MGV06.
          APPEND IT_SFINAL.
          IT_SFINAL-GJAHR = IT_MVER-GJAHR.
          IT_SFINAL-MONTH = 7.
          IT_SFINAL-GSVRR = IT_MVER-GSV07.
          IT_SFINAL-MGVRR = IT_MVER-MGV07.
          APPEND IT_SFINAL.
          IT_SFINAL-GJAHR = IT_MVER-GJAHR.
          IT_SFINAL-MONTH = 8.
          IT_SFINAL-GSVRR = IT_MVER-GSV08.
          IT_SFINAL-MGVRR = IT_MVER-MGV08.
          APPEND IT_SFINAL.
          IT_SFINAL-GJAHR = IT_MVER-GJAHR.
          IT_SFINAL-MONTH = 9.
          IT_SFINAL-GSVRR = IT_MVER-GSV09.
          IT_SFINAL-MGVRR = IT_MVER-MGV09.
          APPEND IT_SFINAL.
          IT_SFINAL-GJAHR = IT_MVER-GJAHR.
          IT_SFINAL-MONTH = 10.
          IT_SFINAL-GSVRR = IT_MVER-GSV10.
          IT_SFINAL-MGVRR = IT_MVER-MGV10.
          APPEND IT_SFINAL.
          IT_SFINAL-GJAHR = IT_MVER-GJAHR.
          IT_SFINAL-MONTH = 11.
          IT_SFINAL-GSVRR = IT_MVER-GSV11.
          IT_SFINAL-MGVRR = IT_MVER-MGV11.
          APPEND IT_SFINAL.
          IT_SFINAL-GJAHR = IT_MVER-GJAHR.
          IT_SFINAL-MONTH = 12.
          IT_SFINAL-GSVRR = IT_MVER-GSV12.
          IT_SFINAL-MGVRR = IT_MVER-MGV12.
          APPEND IT_SFINAL.
          IT_SFINAL-GJAHR = IT_MVER-GJAHR.
          IT_SFINAL-MONTH = 13.
          IT_SFINAL-GSVRR = IT_MVER-GSV13.
          IT_SFINAL-MGVRR = IT_MVER-MGV13.
          APPEND IT_SFINAL.
ENDLOOP.
LOOP AT IT_SFINAL.
    IT_FINAL-YEAR = IT_SFINAL-GJAHR.
    IT_FINAL-MONTH = IT_SFINAL-MONTH.
    IT_FINAL-GSVRR = IT_SFINAL-GSVRR.
    IT_FINAL-MGVRR = IT_SFINAL-MGVRR.
   READ TABLE IT_FORECAST WITH KEY YEAR = IT_SFINAL-GJAHR MONTH = IT_SFINAL-MONTH.
    IT_FINAL-PRWRT = IT_FORECAST-PRWRT.
    IT_FINAL-KOPRW = IT_FORECAST-KOPRW.
    APPEND IT_FINAL.
    CLEAR IT_FINAL.
    CLEAR IT_FORECAST.
ENDLOOP.
LOOP AT IT_FORECAST.
    READ TABLE IT_FINAL WITH KEY YEAR = IT_FORECAST-YEAR MONTH = IT_FORECAST-MONTH.
   IF SY-SUBRC <> 0.
        IT_FINAL-YEAR = IT_FORECAST-YEAR.
        IT_FINAL-MONTH = IT_FORECAST-MONTH.
        IT_FINAL-GSVRR = ' '.
        IT_FINAL-MGVRR = ' '.
        IT_FINAL-PRWRT = IT_FORECAST-PRWRT.
        IT_FINAL-KOPRW = IT_FORECAST-KOPRW.
        APPEND IT_FINAL.
        CLEAR IT_FORECAST.
    ENDIF.
ENDLOOP.
ENDFORM.
FORM DISPLAY_DATA.
LOOP AT IT_FINAL INTO WA_FINAL.
  IF A = 1.
    FORMAT COLOR 4.
  ELSE.
    FORMAT COLOR 7.
    A = 0.
  ENDIF.
  AT NEW YEAR.
    WRITE: / sy-uline.
  endat.
  WRITE:/5 WA_FINAL-YEAR,
            SY-VLINE,
         25 WA_FINAL-MONTH,
            SY-VLINE,
         35 WA_FINAL-GSVRR,
            SY-VLINE,
          WA_FINAL-MGVRR,
             SY-VLINE,
          WA_FINAL-PRWRT,
             SY-VLINE,
          WA_FINAL-KOPRW,
             sy-vline.
  A = A + 1.
ENDLOOP.
ENDFORM.
Regards,
DS

Similar Messages

  • BI Consumer unable to open Sample Lite and Samples reports BI 11.1.1.3

    Hi all,
    I have Oracle BI 11.1.1.3 installed. I am trying to use Oracle Fusion Middleware security model. I have couple of users configured as BI Consumers in weblogic server. When I try to login as BI consumer and try to open some of the reports available in Sample Lite/ Sample reports catalog provided by BI 11.1.1.3 but the reports do not open. I get the following error in the weblogic server :
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = Sep 20, 2010 9:03:01 AM MDT SERVER = bi_server1 MESSAGE = [ServletContext@46483443[app:bipublisher module:xmlpserver path:/xmlpserver spec-version:2.5 version:11.1.1.3.0]] Servlet failed with Exception
    java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()
         at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:306)
         at oracle.xdo.servlet.ui.UIUtils.renderError(UIUtils.java:1291)
         at oracle.xdo.servlet.XDOServlet.doGet(XDOServlet.java:269)
         at oracle.xdo.servlet.XDOServlet.doPost(XDOServlet.java:276)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.xdo.servlet.metadata.track.MostRecentFilter.doFilter(MostRecentFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:116)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.xdo.servlet.init.InitCheckingFilter.doFilter(InitCheckingFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:143)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    However, when i open the reports using the weblogic user (Administrator) the reports open normally..
    Does anyone have an idea why this happening ?

    You need to have the HFM client installed and make sure you register the servers there. Once you can connect via the HFM client, you should be ok.

  • OCDM  - Sample Report Installation issue - Runs too longer with No progress

    Hello,
    As a part of OCDM environment setup for Practice we were successful installing following :
    * Supported Enterprise Linux
    * Oracle DB 11g R2 (OLAP & MINING option)
    * OWB was already installed as a part of Oracle DB 11gR2 - just unlocked the OWB accounts.
    * Installed OBIEE 11g R2 installation - Installation successful and able to open url's. (analytics and BI Publisher etc.) - Issue with login account.
    * Installation of Communication Data Model (First Installation type from OCDM Installer)
    When we try to install Sample Reports at same stage the screen remain open and runs too longer with No progress.
    The Installation process for OCDM Sample Reports is given in the attached doc with screenshot and the log file is also included in the attached document.
    Please let us know the following two issue:
    1) How to login to Analytics after OBIEE 11gR2 installed on Linux - ( in our case we use user as Administrator and tried password same as username, even checked with the user weblogic and other but no success. Please provide us the information which give details(document) about the Administartion of OBIEE 11gR2 on Linux).
    2) The issue with installation of OCDM Sampple Reports though successful installation of OCDM Data Model.(First Installation Type from OCDM Installer)
    Thanks & Best Regards,
    Amol Thite
    I think, I cant Attach the file here and character limit is 30K for the post here so putting below the few lines of Log File content:
    I can email the screen shots docs and complete log file on request if needed.
    It stuck in Configuration Assistance screen -
    After more than 1 hour the same screen – No progress – I tried 3 times but same issue. Log file also not growing and seems its waiting for some dependent thing that need to happen before it proceed.
    =====start few lines of Log File=======================================
    The file oraparam.ini could not be found at /u01/app/oracle/product/11.1.0/db_1/oui/bin/oraparam.ini
    Using paramFile: /u01/app/oracle/product/11.1.0/db_1/oui/oraparam.ini
    Checking swap space: must be greater than 500 MB. Actual 1027 MB Passed
    Checking monitor: must be configured to display at least 256 colors. Actual 65536 Passed
    The number of files bootstrapped for the jre is 689.
    The number of files bootstrapped for the oui is 77.
    Using the umask value '022' available from oraparam.ini
    =====end few lines of Log File==================================
    INFO: Copying Aggr XML for: Oracle Communications Data Model
    INFO: The Top level Aggreage File = /u01/app/oracle/product/11.1.0/db_1/inventory/ContentsXML/ConfigXML/oracle.ocdm.11_2_3_0_0.xml
    INFO: deleted all the required instance files
    INFO: OUI_CAPlugIn is not found in XML
    INFO: cf session will be created for OH: /u01/app/oracle/product/11.1.0/db_1/ TLAggr: oracle.ocdm instancePath: inventory/ContentsXML/ConfigXML/
    INFO: cf session for OH: /u01/app/oracle/product/11.1.0/db_1/ TL Aggr: [oracle.ocdm] instancePath: inventory/ContentsXML/ConfigXML/
    INFO: aggr ref length : 2
    INFO: cf session hashcode: 22855989
    INFO: cf session saved with key: OraDb11g_home1 oracle.ocdm
    INFO: cf session is ok
    INFO: created and saved cf session for oh: OraDb11g_home1
    INFO: passing params to cf
    INFO: Handling the storing of variables for aggr name oracle.ocdm
    INFO: This variable sl_ASMSelectableDiskGroups is not added to the global context map
    INFO: This variable s_scratchPath is not added to the global context map
    INFO: exitonly tools to be excuted passed: 0
    INFO: Starting to execute configuration assistants
    INFO: Command = oracle.ocdm.OCDMCfgPlugIn /u01/app/oracle/product/11.1.0/db_1/ocdm/ocdm_install.sh ${s_dbSysPasswd}
    OCDMCfgPlugIn: Starting OCDM configuration...
    OCDMCfgPlugIn: OCDM configuration initialized, waiting for script response...
    OCDMCfgPlugIn: Receiving SYSTEM password...
    OCDMCfgPlugIn: Passing SYSTEM credentials to configuration script...
    OCDMCfgPlugIn: SYSTEM credentials passed to configuration script.
    OCDMCfgPlugIn: SYSTEM password received.
    OCDMCfgPlugIn: Initializing config parameteres...
    OCDMCfgPlugIn: Creating log folder...
    OCDMCfgPlugIn: ocdm log folder exist
    OCDMCfgPlugIn: Exporting config env...
    OCDMCfgPlugIn: Performing OWB check...
    OCDMCfgPlugIn: Installing OWB...
    OCDMCfgPlugIn: WARNING: OWB OWNER already exists.
    OCDMCfgPlugIn: Archive: /u01/app/oracle/product/11.1.0/db_1/ocdm/pdm/relational/sample_schema/ocdm_sample.dmp.zip
    OCDMCfgPlugIn: inflating: /u01/app/oracle/product/11.1.0/db_1/ocdm/install_tmp/ocdm_sample.dmp
    OCDMCfgPlugIn: 2011_02_28_11_24_30 10 % complete
    OCDMCfgPlugIn: Importing OCDM sample schema
    ==================end of log File ========================================

    Hi Please check my answers
    1) How to login to Analytics after OBIEE 11gR2 installed on Linux - ( in our case we use user as Administrator and tried password same as username, even checked with the user weblogic and other but no success. Please provide us the information which give details(document) about the Administartion of OBIEE 11gR2 on Linux).
    The current OCDM version does not support BIEE 11g, so you need to install BIEE 10g. In next release(will be available soon), OCDM will support BIEE 11g.
    2) The issue with installation of OCDM Sampple Reports though successful installation of OCDM Data Model.(First Installation Type from OCDM Installer)
    The importing will take a long time, you can login database with ocdm_sample_sys/ocdm_sample_sys, and use "select count(*) from tabs;" to monitor the import process.

  • Unable to edit sample reports in Excel

    Hello,
    I'm able to view sample reports from Business Intelligence Center when I browse from the PWA homepage, but when I hit "Open in Excel" I get the following error: "To open this workbook, your computer must have a version of Microsoft Excel installed
    and your web browser must support opening files directly from Excel in your browser".  If I go back to the sample reports page and use the drop down beside any sample report and select "Edit in Excel" and "Open", I get the following
    error: "Microsoft Excel cannot access the file at ....ResourceCapacity.odc" followed by "Problems Obtaining Data" followed by "[DBNETLIB][ConnectionOpen(Connect()).]SQLServer does not exist or access denied."  Same thing
    happens if I try to manually create a new data source through Excel.  This happens for all sample reports, templates and data connections.
    The weird part is that if I log onto the server (using the same AD credentials that I used for my laptop), open up PWA in a browser, go to Business Intelligence Center and try to edit any sample report, template or data connection in Excel, I have no issues. 
    Wouldn't that mean that Excel Services and Secure Store have been set up properly?
    Wondering why no machine outside of the server can edit the reports etc...Any ideas?
    Thanks,
    André

    Andre,
    This is by design.
    In Excel 2010/2013, the only way that the client can talk to the database is via an OLEDB connection. This requires direct read-only access and does not use Excel Services/Secure Store. If you are viewing the report via the web, then Secure Store/Excel Services
    is used.
    Because of the direct database access issue, you must be authenticated to the network before you can edit the reports. You would need to VPN into your network first. My chalk talk on this may be helpful.
    http://www.bing.com/videos/watch/video/project-server-reporting-overview/10tpfox7m
    Hope this helps.
    Treb Gatte, Project MVP |
    Blog | Twitter |
    YouTube Channel

  • Creating a sample report using JAVA SDK

    Hi,
    I am trying to create a sample report using JAVA SDK.
    I slelect 4 "free cells" and pass 4 different strings to it.
    I even slelect the font colour and size. When i run the class and try to view the report in Infoview, I only seeblank blocks without any data. Now if I edit the report from infoview, and save the changes, I am able to see the data.
    My issue is, Why am I not able to see the data when I run the java code.
    Please find teh code below.
    package com;
    import java.awt.Color;
    import java.io.FileOutputStream;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.List;
    import com.businessobjects.rebean.wi.BinaryView;
    import com.businessobjects.rebean.wi.DataProvider;
    import com.businessobjects.rebean.wi.DataProviders;
    import com.businessobjects.rebean.wi.DataSource;
    import com.businessobjects.rebean.wi.DataSourceObject;
    import com.businessobjects.rebean.wi.DocumentInstance;
    import com.businessobjects.rebean.wi.DocumentLocaleType;
    import com.businessobjects.rebean.wi.FontImpl;
    import com.businessobjects.rebean.wi.FreeCell;
    import com.businessobjects.rebean.wi.HTMLView;
    import com.businessobjects.rebean.wi.OutputFormatType;
    import com.businessobjects.rebean.wi.PageHeaderFooter;
    import com.businessobjects.rebean.wi.Query;
    import com.businessobjects.rebean.wi.Recordset;
    import com.businessobjects.rebean.wi.Report;
    import com.businessobjects.rebean.wi.ReportBody;
    import com.businessobjects.rebean.wi.ReportCell;
    import com.businessobjects.rebean.wi.ReportContainer;
    import com.businessobjects.rebean.wi.ReportElement;
    import com.businessobjects.rebean.wi.ReportEngine;
    import com.crystaldecisions.sdk.framework.CrystalEnterprise;
    import com.crystaldecisions.sdk.framework.IEnterpriseSession;
    import com.crystaldecisions.sdk.framework.ISessionMgr;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObject;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;
    import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
    import com.crystaldecisions.sdk.plugin.CeKind;
    public class Aug7th {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String CMS = "pundl8136:6400";
              String userID = "srivas";
              String password = "morcom123";
              String auth = "secEnterprise";
              List<String> entire =new ArrayList<String>();
              List<String> country =new ArrayList<String>();
              List<String> resort =new ArrayList<String>();
              IEnterpriseSession enterpriseSession;
              try
                   ISessionMgr mySessionMgr = CrystalEnterprise.getSessionMgr();
                   enterpriseSession = mySessionMgr.logon(userID, password, CMS,auth);
                   if (enterpriseSession != null)
                   {//Create and store useful objects for the session.
                        IInfoStore iStore = (IInfoStore)enterpriseSession.getService("InfoStore");
                        ReportEngine reportEngine = (ReportEngine)enterpriseSession.getService("WebiReportEngine");
                        IInfoObject infoView = null;
                        String str = "SELECT SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS WHERE (SI_KIND = '"+CeKind.WEBI+"' OR SI_KIND='FullClient') " +
                        "AND SI_INSTANCE = 'false' AND SI_NAME='Structure Test_001_Java' ORDER BY SI_NAME ASC ";
                        //String str = "SELECT SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS ORDER BY SI_NAME ASC ";
                        IInfoObjects objInfoObjectsWIDs = (IInfoObjects) iStore.query(str);
                        System.out.println(objInfoObjectsWIDs.size());
                        IInfoObject objInfoObjectWID = (IInfoObject) objInfoObjectsWIDs.get(0);
                        DocumentInstance doc = reportEngine.openDocument(objInfoObjectWID.getID());
                        DataProviders dps = doc.getDataProviders();
    //                     Retrieve the 1st data provider
                        DataProvider dp = dps.getItem(0);
    //                     Retrieve the universe objects
                        DataSource ds = dp.getDataSource ();
                        Query q = dp.getQuery();
                        Recordset rs = dp.getResult(0);
    //                     0: assume query has one flow
                        rs.first();
    //                     Print the column types. They can be Integer, String,
    //                     or Date.
                        for (int i = 0; i < rs.getColumnCount(); i++) {
                        Class c = rs.getColumnType(i);
                        StringBuffer sbt = new StringBuffer();
                        if ( c.equals(Integer.class) )
                        sbt.append("Integer");
                        if ( c.equals(String.class) )
                        sbt.append("String");
                        if ( c.equals(Date.class) )
                        sbt.append("Date");
                        sbt.append(";");
                        System.out.println(sbt.toString());
                        System.out.println(rs.getColumnCount());
                        while (!rs.isLast()) {
    //                          column names
                             StringBuffer sbn = new StringBuffer();
                             StringBuffer sbd = new StringBuffer();
                             for (int j = 0; j < rs.getColumnCount(); j++) {
                             sbn.append( rs.getColumnName(j).toString() );
                             sbn.append(";");
                             System.out.println("sbn "+sbn.toString());
    //                          data
                             for (int k= 0; k< rs.getColumnCount(); k++) {
                             sbd.append( rs.getCellObject(k).toString() );
                             sbd.append(";");
                             entire.add(rs.getCellObject(k).toString());
                             System.out.println("sbd "+sbd.toString());
                             rs.next();
                        System.out.println(entire.size());
                        for(int i=0;i<entire.size();i++){
                             country.add(entire.get(i));
                             i++;
                             System.out.println("entireList "+entire.get(i));
                             resort.add(entire.get(i));
                        DataSourceObject city = ds.getClasses().getChildByName("Country");
                        DataSourceObject resorts = ds.getClasses().getChildAt(1);
                        dp.runQuery();
                        ReportContainer report = doc.createReport("Resort");
                        PageHeaderFooter header = report.getPageHeader();
                        FreeCell headerCell = header.createFreeCell("Resort Report");
                        PageHeaderFooter footer = report.getPageFooter();
                        FreeCell footerCell = footer.createFreeCell("Report Ends");
                        ReportBody body =  report.createReportBody();
                        for(int k=0;k<resort.size();k++){
                        FreeCell res=body.createFreeCell(resort.get(k));
                        res.getAttachTo();
                        res.setHeight(15d);
                        res.setWidth(30d);
                        Color c = new Color(255,255,255);
                        Color c1 = new Color(255,0,0);
                        FontImpl fnt = (FontImpl)res.getFont();
                        fnt.getDecoration().setTextColor(c1);
                        res.setFont(fnt);
                        //res.deleteAttachment();
                        //res.setAttachTo(body,VAnchorType.BOTTOM,HAnchorType.NONE);
                        doc.applyFormat();
                        doc.refresh();
                        final String l_docToken = doc.getStorageToken();
                        final DocumentInstance l_docToSave = reportEngine.getDocumentFromStorageToken(l_docToken);
                        doc.saveAs("mor31",835,null,null);
                        doc.closeDocument();
                        str = "SELECT SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS WHERE (SI_KIND = '"+CeKind.WEBI+"' OR SI_KIND='FullClient') " +
                        "AND SI_INSTANCE = 'false' AND SI_NAME='mor31' ORDER BY SI_NAME ASC ";
                        //String str = "SELECT SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS ORDER BY SI_NAME ASC ";
                        objInfoObjectsWIDs = (IInfoObjects) iStore.query(str);
                        System.out.println(objInfoObjectsWIDs.size());
                        objInfoObjectWID = (IInfoObject) objInfoObjectsWIDs.get(0);
                        DocumentInstance doc1 = reportEngine.openDocument(objInfoObjectWID.getID());
                        String token = doc1.getStorageToken();
                        DocumentInstance doc2 = reportEngine.getDocumentFromStorageToken(token);
                        doc2.saveAs("123123", 835, null, null);
                   //     doc.refresh();
                        //doc.save();
                   enterpriseSession.logoff();
              catch(Exception e)
                   e.printStackTrace();

    duplicate post:
    Sample report using JAVA SDK

  • Sample Report: Sales per Customer by Period - WITH QUANTITIES

    I am trying to make some modifications to the 'Sales per Customer by Period'  sample report, but am having problems. I want it to be YTD and comparative, so YTD-12. That part was easy enough. Then I wanted to add the quanty. So i want the report to show the sales amount and quantity for each customer, ytd and prior year ytd. This seemed easy enough also, until I looked further into the data. It doesn't match up with reports from Business One. The problem seems to be my items that are packs, like an item that is sold in packs of 10. If the invoice has 10 10 Packs on an invoice, my report shows a quantity of 10. The SBO report shows it as a quantity of 100 (10x10). I have tried to add Item level stuff, so I could go get the 'Items per Sales Unit' value and multiply it by the quantity. When I do this the report crashes.
    Does anyone have any suggestions? Has anyone created a report like this? Any help would be appreciated.

    Hi,
    What is your B1 version and PL? Is this a Crystal Report or PLD?
    Thanks,
    Gordon

  • Need Some Sample Report

    Dear Members
    Can any one send me sample reports of
    .AP Trailbalance Report
    .Transactions Available for Reconciliation Report
    To the following mail.id
    [email protected]
    Thanks
    Padarthy
    Edited by: padarthy on Sep 17, 2009 4:35 AM

    Hi,
    *1) AP Trailbalance Report (Sample)*
    ===================================
    EU_IRL_EUR Report Date: 22-SEP-2009
    Accounts Payable Trial Balance
    Reporting Level: Operating Unit
    Reporting Context: EU_OU_EUR_IRL
    Set of Books Currency: EUR
    As of Date: 22-SEP-09
    Supplier Name: CAULFIELD INDUSTRIAL LTD
    Liability Account: All
    Summarize Report: No
    Negative Balances Only: No
    Exclude Invoices Prior To
    Invoice
    Invoice Number Date Curr Amount Remaining Amount Invoice Description
    Liability Account: 560110.311101010.560001.0.000.00.0000000.0000.00
    Supplier Name:       CAULFIELD INDUSTRIAL LTD
    05385321 12-MAY-09 EUR 95.03 95.03 Caterpillar Relay Runner
    05385999 18-MAY-09 EUR 49.25 49.25 black shoes
    Total for Supplier : 144.28 144.28
    Total for Liability Account : 144.28 144.28
    ================== ==================
    Total for Report : 144.28 144.28
    ================== ==================
    *2) Transactions Available for Reconciliation Report...* Not sure what report you are looking for.. Are you looking for AP - GL Reconciliation Report or Accrual Reconciliation Report or Unaccounted Transactions Report?
    Regards,
    S.P DASH
    Edited by: spdash12 on Sep 22, 2009 4:20 AM

  • Request for sample reports developed using report designer

    Hi All,
    Request for sample reports developed using report designer.
    Thanks

    Ramesh,
    right now there really is no way to solve what you are looking for.  There partial solutions, but you will not be able to force a page break in a dynamic report.
    Here is what I have faced, and what I have come up with so far:
    I have a series of reports that have the same column heading, but spread over 5 pages in a fixed structure.  I need to be able to re-use the header and the general report design with 6 reports.  Here is my solution:
    1. Create an outline of the report.  I did all the formatting by creating a report section for each page.  You can force page breaks between the pages.  Upgrade to patch 1502 (came out last week) and you will see some new functionality (such as fit to page, page numbers, etc).
    2. Insert all you page breaks and do all the formatting.
    3. Insert an infoprovider.  Once in, you can just drag and drop the key figure cells into your formatted report.
    4. Create additional modification for formatting as needed.
    This fixes my problem (for now), but I had to do a lot of work to come up with this.  Also, the latest patch (1501 and 1502) has created an issue for me - there is a null exception when I try to use a variable or a filter value in the report body - I can't save the report.  I have an OSS message out, but our BASIS guys are going to be taking the lead on troubleshooting this.
    The reason that you are seeing some customers on the new pages is probably because of "how the cookie falls" - they just fit that way.
    I am trying to be positive and overcome the limitations that are in place right now. If my technical issue is solved, I would recommend upgrading to the new patch (1403 is the latest stable one in my opinion)
    good luck
    Pavel

  • BI 4.1 auditing sample reports in WebI format ?

    Hi!
    Is it possible to get auditing sample reports in WebI format instead of Crystal format (like in previous versions of BO) ?
    When Crystal is not used by a custommer, it's a pity to install and run Crystal servers & client just for auditing reports, isn't it ?
    Regards,
    Stéphane.

    Tilak,
         All the information you need on the Audit Database can be found within the different Admin Guide and the sample UNX w/ Crystal Enterprise reports provided.
    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_bip_admin_en.pdf
    - Section 20
    http://help.sap.com/businessobject/product_guides/sbo41/en/sbo41sp4_bip_admin_en.pdf
    - Section 21
    Sample Auditing Universe and Reports for SAP BusinessObjects_4_x
    You can very easily reverse engineer the Crystal Enterprise Reports and create starter WebI reports and beyond.
    Regards,
    Ajay

  • Reinstalling Sample Reports

    I tried adding an all values option for the year parameter in the sample sales analysis file under sales manager. I kept getting an error that the value could not be null even though I didn't click that option and could therefore not click on it anymore. I then tried to restore the file to its original state by overwriting the sales manager report file with a copy from my coworker. Now everytime I am clicking on these shared folder reports to view them I am getting errors like [051710_102341304][][EXCEPTION] Invalid external link base url: 'http://hostname:9704/xmlpserver/'. Is there a way for me to reinstall these sample reports manually so I can get rid of these errors showing up in the OC4J server? Thanks.
    Edited by: whoknows on May 17, 2010 9:10 AM

    When you mention 'I tried to restore the file with a copy from my co-worker', did you go about doing it by uploading the file or did you replace the files(salesCat.rtf and Sales Analysis.xdo) to the following folder?
    \OracleBI\xmlp\XMLP\Reports\Sales Manager\Sales Analysis
    Thanks!

  • Project Server 2010 sample reports

    I modified the data connections and queries in one of the sample reports in Business intelligence  to include fields from two database tables : content and reporting databases. I am not getting any result after refresh and the original reports
    persists. Customized reports from only reporting database works fine after modification. The query works fine at the sql server level for the 2 database reports. Any suggestions!!!!  

    Thanks again for your reply. I find that when I open this data connection file from data connection library in Excel client I get the Excel security warning (Microsoft Office has identified a potential security concern ... Data connections have been
    blocked....). On enabling it the report does created in Excel without the pivot table.  The data connection library is a trusted location in SharePoint.  However, when we modify an existing sample report by changing the data connection credentials
    the report is not generated on refreshing the data. This issue was not before as all the reports were created with pivot fields without issue in Excel Client. Looks like some Excel issue. Anu suggestions!!!

  • Problems Using Crystal Reports 2008 sample reports in CR2008 Basic

    I just downloaded Crystal Reports 2008 sample reports  from   
    [Service Packs, Hot Fixes, Samples, and Utilities|http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000714768&_SCENARIO=01100035870000000202&] to use them with  CR2008 Basic. I have trouble using them . It tries to connect to to a website to download an xml file. Has anyone tried these sample reports in CR2008 Basic ?

    From the portal you have mentioned, I had downloaded, "Crystal Reports 2008 sample reports - Demonstration" (demo_smpl.zip) which had three reports - Comparative Income Statement.rpt, Order Processing Efficiency Dashboard.rpt, World Sales Report.rpt.
    These reports work fine for me.

  • Pointers to Sample report for Interactive Reporting

    Hi All,
                Can any one provide me Pointers to Sample report for Interactive Reporting( which uses Hotspots, Hide, At-User Command).
    Thanks in advance.
    Regards,
    Navin.

    Hi
    see the sample report
    REPORT ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
    HEADING.
    *TABLES DECLARATION
    TABLES : KNA1, VBAK, VBAP.
    *SELECT OPTIONS
    SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
    *INITIALIZATION
    INITIALIZATION.
    CUST_NO-LOW = '01'.
    CUST_NO-HIGH = '5000'.
    CUST_NO-SIGN = 'I'.
    CUST_NO-OPTION = 'BT'.
    APPEND CUST_NO.
    *SELECTION SCREEN VALIDATION
    AT SELECTION-SCREEN ON CUST_NO.
    IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
    MESSAGE E001(ZTJ1).
    ENDIF.
    *BASIC LIST SELECTION
    START-OF-SELECTION.
    SELECT KUNNR NAME1 ORT01 LAND1 INTO
    (KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
    FROM KNA1
    WHERE KUNNR IN CUST_NO.
    WRITE:/1 SY-VLINE,
    KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    KNA1-NAME1 UNDER 'NAME',
    61 SY-VLINE,
    KNA1-ORT01 UNDER 'CITY',
    86 SY-VLINE,
    KNA1-LAND1 UNDER 'COUNTRY',
    103 SY-VLINE.
    HIDE: KNA1-KUNNR.
    ENDSELECT.
    ULINE.
    *SECONDARY LIST ACCESS
    AT user-command.
    IF SY-UCOMM = 'IONE'.
    PERFORM SALES_ORD.
    ENDIF.
    IF SY-UCOMM = 'ITWO'.
    PERFORM ITEM_DET.
    ENDIF.
    *TOP OF PAGE
    TOP-OF-PAGE.
    FORMAT COLOR 1.
    WRITE : 'CUSTOMER DETAILS'.
    FORMAT COLOR 1 OFF.
    ULINE.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'NAME',
    61 SY-VLINE,
    63 'CITY',
    86 SY-VLINE,
    88 'COUNTRY',
    103 SY-VLINE.
    ULINE.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR SECONDARY LISTS
    TOP-OF-PAGE DURING LINE-SELECTION.
    *TOP OF PAGE FOR 1ST SECONDARY LIST
    IF SY-UCOMM = 'IONE'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'SALES ORDER DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'DATE',
    60 SY-VLINE,
    62 'CREATOR',
    85 SY-VLINE,
    87 'DOC DATE',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR 2ND SECONDARY LIST
    IF SY-UCOMM = 'ITWO'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'ITEM DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'SALES ITEM NO.',
    60 SY-VLINE,
    62 'ORDER QUANTITY',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *END OF PAGE
    END-OF-PAGE.
    ULINE.
    WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
    SY-PAGNO.
    SKIP.
    *& Form SALES_ORD
    *& FIRST SECONDARY LIST FORM
    FORM SALES_ORD .
    SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
    (VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
    FROM VBAK
    WHERE KUNNR = KNA1-KUNNR.
    WRITE:/1 SY-VLINE,
    VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
    40 SY-VLINE,
    VBAK-ERDAT UNDER 'DATE',
    60 SY-VLINE,
    VBAK-ERNAM UNDER 'CREATOR',
    85 SY-VLINE,
    VBAK-AUDAT UNDER 'DOC DATE',
    103 SY-VLINE.
    HIDE : VBAK-VBELN.
    ENDSELECT.
    ULINE.
    ENDFORM. " SALES_ORD
    *& Form ITEM_DET
    *& SECOND SECONDARY LIST FORM
    FORM ITEM_DET .
    SELECT VBELN POSNR KWMENG INTO
    (VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
    FROM VBAP
    WHERE VBELN = VBAK-VBELN.
    WRITE : /1 SY-VLINE,
    VBAP-VBELN UNDER 'SALES ORDER NO.',
    40 SY-VLINE,
    VBAP-POSNR UNDER 'SALES ITEM NO.',
    60 SY-VLINE,
    VBAP-KWMENG UNDER 'ORDER QUANTITY',
    103 SY-VLINE.
    ENDSELECT.
    ULINE.
    ENDFORM. " ITEM_DET
    REPORT demo_list_at_pf.
    START-OF-SELECTION.
    WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.
    AT pf5.
    PERFORM out.
    AT pf6.
    PERFORM out.
    AT pf7.
    PERFORM out.
    AT pf8.
    PERFORM out.
    FORM out.
    WRITE: 'Secondary List by PF-Key Selection',
    / 'SY-LSIND =', sy-lsind,
    / 'SY-UCOMM =', sy-ucomm.
    ENDFORM.
    After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:
    Secondary List by PF-Key Selection
    SY-LSIND = 14
    SY-UCOMM = PF06
    Example for AT USER-COMMAND.
    REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
    START-OF-SELECTION.
    WRITE: 'Basic List',
    / 'SY-LSIND:', sy-lsind.
    TOP-OF-PAGE.
    WRITE 'Top-of-Page'.
    ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
    CASE sy-pfkey.
    WHEN 'TEST'.
    WRITE 'Self-defined GUI for Function Codes'.
    ULINE.
    ENDCASE.
    AT LINE-SELECTION.
    SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
    PERFORM out.
    sy-lsind = sy-lsind - 1.
    AT USER-COMMAND.
    CASE sy-ucomm.
    WHEN 'FC1'.
    PERFORM out.
    WRITE / 'Button FUN 1 was pressed'.
    WHEN 'FC2'.
    PERFORM out.
    WRITE / 'Button FUN 2 was pressed'.
    WHEN 'FC3'.
    PERFORM out.
    WRITE / 'Button FUN 3 was pressed'.
    WHEN 'FC4'.
    PERFORM out.
    WRITE / 'Button FUN 4 was pressed'.
    WHEN 'FC5'.
    PERFORM out.
    WRITE / 'Button FUN 5 was pressed'.
    ENDCASE.
    sy-lsind = sy-lsind - 1.
    FORM out.
    WRITE: 'Secondary List',
    / 'SY-LSIND:', sy-lsind,
    / 'SY-PFKEY:', sy-pfkey.
    ENDFORM.
    When you run the program, the system displays the following basic list with a the page header defined in the program:
    You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
    Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
    For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Convert SAPScript to PDF - sample report needed

    Hi Experts,
    I need a sample report which convert SAPScript form to PDF. I tried several samples in this forum but it did not work.
    Thanks!
    - Anthony -

    Hi,
    Check with the [Convert SAP script to PDF|http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417400)ID0384864750DB01011562107177693234End?rid=/library/uuid/49e15474-0e01-0010-9cba-e62df8244556&overridelayout=true]
    Hope this helps you.
    Regards,
    Rajani

  • How ro run a sample report in oracle9i reports?

    Hi,
    I just installed oracle9i release 2 (v9.0.2.0.1) and like to run a sample report. all the configurations are default (automatically configured when install). I found the server name rep_solaris03 in reports/conf. The port no is from the portlist of the mid_tier server.
    There are some reports in ORACLE_HOME/reports/samples/demo and I used following URL to run it:
    http://myserver.domain:1950/reports/samples/demo/rwservlet?scott/tiger@iasdb+report=test.rdf+server=rep_solaris03+destype=cache+desformat=pdf
    but I get error "the page can't be displayed" . Could you help me to figure out what's wrong?
    Thanks

    Hi
    First make sure the Report servlet and server are up and running. Try
    http://hostname:port/reports and http://hostname:port/reports/rwservlet and
    http://hostname:port/reports/rwservlet/showjobs?server=(name of server)
    Make sure the port you are specifying is correct. Reports provide following ear file in iAS for demos:
    reports_demo.ear - used in OC4J_Demos instance
    They are under $ORACLE_HOME/reports/j2ee directory.Make sure OC4J_Demos instance is up and running.
    Thanks
    Rohit

Maybe you are looking for

  • Unable to use a Time Machine backup

    I am getting very frustrated, as I cannot use a Time Machine backup the way I want to. Short story, my Macbook Pro Retina (running Yosemite) is, and have for a while been, a litte buggy and slow, so I wsh to to a clean install of OSX, and use migrati

  • Updating activity field in confirmation of po

    Hi team, while PO is getting created the data is getting transfered from SC with Activity field. But when we are trying to confirm the PO the Activity field is not getting updated. In doc_change BADI piece of code has to be written to update the Acti

  • Using disk image to put data into a "stick" for use by PC & Mac

    I am trying to find a quick way to transfer a master file (almost 1gb) onto a series of "sticks" for circulation to colleagues. I thought that if I made a disk image that would be OK. It works for Macs but PCs say they cannot find a progamme to open

  • Need a list of oracle templates related to Items

    As a requirement i need to import items through a template. So i need to know the list of templates available to import(process) item import and where can i found them. Can any body please give me the list or suggest where can i get those templates..

  • Processing unfinished stream with SAX

    Hi, I'm just writing some kind of a jabber plugin in java. I've decided to use sax for parsing server responses. However I've encountered a problem with sax. saxParser.parse(inputStream, this);Problem is, that events (such as startElement) are called