Displaying Blob data (MS Word Doc) in Reports

Anyone have suggestions/idea on how to display an MSWord Doc stored within a blob column (not a bfile pointer) within Reports? All I see is the binary data but would like to see the Word Doc itself.
Thanks.

Mahi,
you can't do that yet.

Similar Messages

  • Displaying BLOB of type word doc in XML Publisher pdf output

    Hi all,
    Please guide me relating the Displaying BLOB of type word doc in XML Publisher pdf output with links or pointers.In the following xml column TRADE_LICENSE_COPY is BLOB when queried from toad and if clicked on the ouput word doc is being opened directly.How to show the column value word doc as attachment in pdf output?
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Generated by Oracle Reports version 10.1.2.3.0 -->
    <XXTDIC_SUP_REG>
    <LIST_G_BASIC_QUSNRY>
    <G_BASIC_QUSNRY>
    <RESPONSE_ID>194</RESPONSE_ID>
    <UAE_REGISTRATION>Yes</UAE_REGISTRATION>
    <TRADE_LICENSE_COPY>PK</TRADE_LICENSE_COPY>
    <WEBSITE_DETAILS>com</WEBSITE_DETAILS>
    <AMERICA_2009_2010>Between 81 and 90 %</AMERICA_2009_2010>
    </G_BASIC_QUSNRY>
    </LIST_G_BASIC_QUSNRY>
    <LIST_G_CONTACTS>
    <G_CONTACTS>
    <CONTACT_PERSON>MR.NTF1 NTL1</CONTACT_PERSON>
    <PHONE_NUMBER>0</PHONE_NUMBER>
    <EMAIL_ID>na</EMAIL_ID>
    <FAX_NUMBER>0</FAX_NUMBER>
    </G_CONTACTS>
    <G_CONTACTS>
    <CONTACT_PERSON>MR.NTF1 NTL1</CONTACT_PERSON>
    <PHONE_NUMBER>0</PHONE_NUMBER>
    <EMAIL_ID>na</EMAIL_ID>
    <FAX_NUMBER>-</FAX_NUMBER>
    </G_CONTACTS>
    </LIST_G_CONTACTS>
    <LIST_G_SC_QUSNRY>
    <G_SC_QUSNRY>
    <RESPONSE_ID1>113</RESPONSE_ID1>
    <FY3_PROJTYPE_COMMERCIAL>Between 21 and 30 %</FY3_PROJTYPE_COMMERCIAL>
    <ENG_INSTALL_CAPABILITY></ENG_INSTALL_CAPABILITY>
    <SCM_EXPERIENCE_PARTNERING>Have you had experience of &quot;Partnering&quot;?(i.e with major contracts / employers If so list them.Also please provide details</SCM_EXPERIENCE_PARTNERING>
    </G_SC_QUSNRY>
    </LIST_G_SC_QUSNRY>
    <LIST_G_ADDRESS>
    <G_ADDRESS>
    <OFFICE_ADDRESS>Addres1</OFFICE_ADDRESS>
    <ADDRESS_LINE1>Addre line1</ADDRESS_LINE1>
    <ADDRESS_LINE2>Addre line2</ADDRESS_LINE2>
    <ADDRESS_LINE3>Addre line3</ADDRESS_LINE3>
    <CITY>City1</CITY>
    <STATE>State1</STATE>
    <COUNTRY>US</COUNTRY>
    </G_ADDRESS>
    <G_ADDRESS>
    <OFFICE_ADDRESS>Addres2</OFFICE_ADDRESS>
    <ADDRESS_LINE1>Addre line1</ADDRESS_LINE1>
    <ADDRESS_LINE2>Addre line2</ADDRESS_LINE2>
    <ADDRESS_LINE3>Addre line3</ADDRESS_LINE3>
    <CITY>City2</CITY>
    <STATE>State2</STATE>
    <COUNTRY>IN</COUNTRY>
    </G_ADDRESS>
    </LIST_G_ADDRESS>
    <LIST_G_DSN_QUSNRY>
    </LIST_G_DSN_QUSNRY>
    <LIST_G_PROD_SUB_CODE>
    <G_PROD_SUB_CODE>
    <PROD_SUB_CODE>060.42</PROD_SUB_CODE>
    <PROD_SUB_DESC>Automotive Maintenance Items and Repair/Replacement Parts.Filters: Air, Fuel, Oil, Power Steering, Transmission and Water, and PCV Valves</PROD_SUB_DESC>
    </G_PROD_SUB_CODE>
    <G_PROD_SUB_CODE>
    <PROD_SUB_CODE>060.60</PROD_SUB_CODE>
    <PROD_SUB_DESC>Automotive Maintenance Items and Repair/Replacement Parts.Hose and Hose Fittings: Brake, Heater, Radiator, Vacuum, Washer, Wiper, etc.</PROD_SUB_DESC>
    </G_PROD_SUB_CODE>
    <G_PROD_SUB_CODE>
    <PROD_SUB_CODE>207.37</PROD_SUB_CODE>
    <PROD_SUB_DESC>Computer Accessories and Supplies.CRT Holders, Cases, Glare Screens, Locks, etc.</PROD_SUB_DESC>
    </G_PROD_SUB_CODE>
    <G_PROD_SUB_CODE>
    <PROD_SUB_CODE>207.60</PROD_SUB_CODE>
    <PROD_SUB_DESC>Computer Accessories and Supplies.Keyboard Dust Covers, Key Top Covers, Keyboard Drawers, Wrist Supports, etc.</PROD_SUB_DESC>
    </G_PROD_SUB_CODE>
    </LIST_G_PROD_SUB_CODE>
    <LIST_G_CONT_QUSNRY>
    </LIST_G_CONT_QUSNRY>
    <LIST_G_BUSS_CLASS>
    <G_BUSS_CLASS>
    <BUSS_CLASS>SUPPLY_CHAIN</BUSS_CLASS>
    </G_BUSS_CLASS>
    </LIST_G_BUSS_CLASS>
    <CF_SUPPLIER_NAME>N1</CF_SUPPLIER_NAME>
    <CF_REG_STATUS>Draft</CF_REG_STATUS>
    <CF_BUS_CLASS></CF_BUS_CLASS>
    <CF_PROD_SUBCODE>060.36</CF_PROD_SUBCODE>
    <CF_PROD_SUBCODE_MEAN>Automotive Maintenance Items and Repair/Replacement Parts.Electrical Accessories: Alternators, Ammeters, Coils, Distributors, Generators, Regulators, Starters, etc.</CF_PROD_SUBCODE_MEAN>
    <CF_COUNTRY>India</CF_COUNTRY>
    </XXTDIC_SUP_REG>
    Thanks in advance.
    Best Regards,
    Mahi

    Mahi,
    you can't do that yet.

  • How can I display the date a word document was last modified on my web page?

    I have lists of links to word documents on my web pages. I
    want to be able to show the date the word document was last
    modified next to each link. My pages are straight html.
    Thanks.

    >but I would have to go to each individual file (I have
    hundreds) and put this code on each link.
    No, you can use the FileSystemObject to get a list of the
    files in the directory. See if you can adapt this for your site:
    <link href="/CSS/dirlist.css" rel="stylesheet"
    type="text/css">
    <%
    Function FormatSize(SizeInBytes)
    if SizeInBytes > 1024^2 then
    FormatSize = formatnumber(SizeInBytes / 1024^2,2) & "
    MB"
    elseif SizeInBytes > 1024 then
    FormatSize = formatnumber(SizeInBytes / 1024,2) & " KB"
    else
    FormatSize = SizeInBytes & " Bytes"
    end if
    end function
    %>
    <%
    dim parts
    dim part
    dim BrowseLine
    dim RelLink
    dim i
    url = Request.ServerVariables("URL")
    Parts = split(URL,"/")
    for part = 1 to ubound(Parts)-1
    ' calc link
    RelLink = ""
    for i = 1 to ubound(Parts) - part - 1
    RelLink = RelLink & "..\"
    next
    If trim(BrowseLine) <> "" then
    BrowseLine = BrowseLine & "/"
    end if
    BrowseLine = BrowseLine & "<A href=" & RelLink
    & ">" & parts(part) & "</A>"
    next
    ' add "back" link
    BrowseLine = Browseline & "  " &
    "<A href='javascript:history.back();'><img
    src='/images/return.gif' border=0></A>"
    Response.Write "<P class = 'NavTop'>" & BrowseLine
    & "</P>"
    Dim fso
    set fso = server.CreateObject("Scripting.fileSystemObject")
    dim fldr
    dim fle
    %>
    <a href="../index.asp"><img
    src="../images/leftbanner.jpg" width="343" height="70"
    border="0"></a>
    <link href="/CSS/dirlist.css" rel="stylesheet"
    type="text/css">
    </p>
    <p></p>
    <table width="85%" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <th width="63%"><div
    align="left">   Document
    Name</div></th>
    <th width="14%">Size</th>
    <th width="23%"><div
    align="left">  Date</div></th>
    </tr>
    <%
    ' display folders
    for each fldr in
    fso.GetFolder(server.MapPath(".")).SubFolders
    %>
    <tr>
    <td class="FileName"> <a href='<%=
    fldr.Name %>'><img src="/images/folder.gif" border=0>
    <%= fldr.Name %></a></td>
    <td class="FileSize">  <%=
    FormatSize(fldr.Size) %></td>
    <td class="FileDate"><div
    align="left">  <%=
    FormatDateTime(fldr.DateLastModified,2)
    %></div></td>
    </tr>
    <%
    next
    %>
    <%
    ' display files
    for each fle in fso.GetFolder(server.MapPath(".")).Files
    dim ext
    ext = fso.GetExtensionName(fle.path)
    if (ext <> "asp") and (ext <> "scc") then
    %>
    <tr>
    <td class="FileName"> <a href='<%=
    escape(fle.Name) %>'><img src="/images/file.gif"
    width="14" height="16" border=0>
    <%= fle.Name %></a></td>
    <td class="FileSize">  <%=
    FormatSize(fle.Size) %></td>
    <td class="FileDate"><div
    align="left">  <%=
    FormatDateTime(fle.DateLastModified,2) %></div></td>
    </tr>
    <%
    end if
    next
    Set fso = Nothing
    Set fle = Nothing
    Set fldr = Nothing
    %>
    </table>
    <p><a href="/index.asp">Return to Home
    Page</a></p>

  • How to display the data monthwise in the following report

    see the following report. i will give u the code
    if we go to fd10n then we see the monthwise debit,credit and the outstanding amount . i want to display the data monthwise in my report. means if i select the first month then it will dislpay only month of april debit, credit, and the outstanding amount.
    if anyone know the answer then please help me.
    Thanks.
    Dinesh
    *& Report  ZCUSTOMER_GROUP
    REPORT  ZCUSTOMER_GROUP NO STANDARD PAGE HEADING.
    TABLES: KNA1,KNVV,KNB1,T151T,T685T,KNVI,TSKDT,BSID,T001,KNC1,KNC3.
    TYPE-POOLS: SLIS.
    TYPES: BEGIN OF IT_FINAL,
                BZIRK LIKE KNVV-BZIRK,
                VKBUR LIKE KNVV-VKBUR,
                KDGRP LIKE KNVV-KDGRP,
                KUNNR LIKE KNVV-KUNNR,
                VKORG LIKE KNVV-VKORG,
                VTWEG LIKE KNVV-VTWEG,
                SPART LIKE KNVV-SPART,
                KTGRD LIKE KNVV-KTGRD,
                NAME1 LIKE KNA1-NAME1,
                ORT01 LIKE KNA1-ORT01,
                STCEG LIKE KNA1-STCEG,
                REGIO LIKE KNA1-REGIO,
                STRAS LIKE KNA1-STRAS,
                TELF1 LIKE KNA1-TELF1,
                WERKS LIKE KNA1-WERKS,
                SPRAS TYPE SPRAS,
                GFORM LIKE KNA1-GFORM,
                LAND1 LIKE KNA1-LAND1,
                ALTKN LIKE KNB1-ALTKN,
                AKONT LIKE KNB1-AKONT,
                VZSKZ TYPE KNB1-VZSKZ,
               VTEXT LIKE T685T-VTEXT,
                KTEXT LIKE T151T-KTEXT,
                TATYP TYPE KNVI-TATYP,
                TAXKD TYPE KNVI-TAXKD,
              taxkd type tskdt-taxkd,
              tatyp type tskdt-tatyp,
               VTEXT TYPE TSKDT-VTEXT,
               UMSKZ LIKE BSID-UMSKZ,
               DMBTR TYPE BSID-DMBTR,
              coll LIKE bsid-dmbtr,
              coll1 LIKE bsid-dmbtr,
              coll2 LIKE bsid-dmbtr,
              coll3 LIKE bsid-dmbtr,
              advance LIKE bsid-dmbtr,
              deposit LIKE bsid-dmbtr,
              amount type bsid-dmbtr,
              shkzg type bsid-shkzg,
              blart type bsid-blart,
               BUDAT TYPE BSID-BUDAT,
               BLDAT TYPE BSID-BLDAT,
              GJAHR LIKE BSID-GJAHR,
              outstand LIKE bsid-dmbtr,
              debit like bsid-dmbtr,
               UM01S LIKE KNC1-UM01S,
               UM02S LIKE KNC1-UM02S,
               UM03S LIKE KNC1-UM03S,
               UM04S LIKE KNC1-UM04S,
               UM05S LIKE KNC1-UM05S,
               UM06S LIKE KNC1-UM06S,
               UM07S LIKE KNC1-UM07S,
               UM08S LIKE KNC1-UM08S,
               UM09S LIKE KNC1-UM09S,
               UM10S LIKE KNC1-UM10S,
               UM11S LIKE KNC1-UM11S,
               UM12S LIKE KNC1-UM12S,
               UM13S LIKE KNC1-UM13S,
               UM14S LIKE KNC1-UM14S,
               UM15S LIKE KNC1-UM15S,
               UM16S LIKE KNC1-UM16S,
              DEBIT LIKE KNC1-UM01S,
               GJAHR LIKE KNC1-GJAHR,
                DEBIT TYPE STRING,
               UM01H LIKE KNC1-UM01H,
               UM02H LIKE KNC1-UM02H,
               UM03H LIKE KNC1-UM03H,
               UM04H LIKE KNC1-UM04H,
               UM05H LIKE KNC1-UM05H,
               UM06H LIKE KNC1-UM06H,
               UM07H LIKE KNC1-UM07H,
               UM08H LIKE KNC1-UM08H,
               UM09H LIKE KNC1-UM09H,
               UM10H LIKE KNC1-UM10H,
               UM11H LIKE KNC1-UM11H,
               UM12H LIKE KNC1-UM12H,
               UM13H LIKE KNC1-UM13H,
               UM14H LIKE KNC1-UM14H,
               UM15H LIKE KNC1-UM15H,
               UM16H LIKE KNC1-UM16H,
               CREDIT TYPE STRING,
               UMSAV LIKE KNC1-UMSAV,
             GJAHR LIKE KNC1-GJAHR,
               SHBKZ LIKE KNC3-SHBKZ,
               SALDV LIKE KNC3-SALDV,
               SOLLL LIKE KNC3-SOLLL,
               HABNL LIKE KNC3-HABNL,
               DOWN TYPE STRING,
               DEPOSIT TYPE STRING,
               COLL TYPE STRING,
       END OF IT_FINAL.
    TYPES : BEGIN OF IT_KNVV ,
                BZIRK LIKE KNVV-BZIRK,
                VKBUR LIKE KNVV-VKBUR,
                KDGRP LIKE KNVV-KDGRP,
                KUNNR LIKE KNVV-KUNNR,
                VKORG LIKE KNVV-VKORG,
                VTWEG LIKE KNVV-VTWEG,
                SPART LIKE KNVV-SPART,
                KTGRD LIKE KNVV-KTGRD,
    END OF IT_KNVV.
    TYPES: BEGIN OF IT_KNA1 ,
                NAME1 LIKE KNA1-NAME1,
                ORT01 LIKE KNA1-ORT01,
                STCEG LIKE KNA1-STCEG,
                REGIO LIKE KNA1-REGIO,
                STRAS LIKE KNA1-STRAS,
                TELF1 LIKE KNA1-TELF1,
                WERKS LIKE KNA1-WERKS,
                KUNNR LIKE KNA1-KUNNR,
                GFORM LIKE KNA1-GFORM,
                SPRAS TYPE SPRAS,
                LAND1 LIKE KNA1-LAND1,
    END OF IT_KNA1.
    TYPES: BEGIN OF IT_KNB1 ,
            ALTKN LIKE KNB1-ALTKN,
            AKONT LIKE KNB1-AKONT,
            VZSKZ TYPE KNB1-VZSKZ,
            KUNNR LIKE KNB1-KUNNR,
    END OF IT_KNB1.
    TYPES: BEGIN OF IT_T151T ,
           KTEXT LIKE T151T-KTEXT,
           KDGRP LIKE T151T-KDGRP,
           SPRAS TYPE SPRAS,
      END OF IT_T151T.
    DATA: BEGIN OF IT_T685T OCCURS 0,
          VTEXT LIKE T685T-VTEXT,
          spras type spras,
    END OF IT_T685T.
    TYPES: BEGIN OF IT_KNVI ,
          TAXKD TYPE KNVI-TAXKD,
          TATYP TYPE KNVI-TATYP,
          KUNNR TYPE KNVI-KUNNR,
    END OF IT_KNVI.
    TYPES: BEGIN OF IT_TSKDT ,
          TAXKD TYPE TSKDT-TAXKD,
         TATYP TYPE tskdt-TATYP,
          VTEXT TYPE TSKDT-TATYP,
          SPRAS TYPE SPRAS,
    END OF IT_TSKDT.
    TYPES: BEGIN OF IT_BSID ,
          UMSKZ TYPE BSID-UMSKZ,
          DMBTR TYPE BSID-DMBTR,
          COLL LIKE BSID-DMBTR,
          COLL1 LIKE BSID-DMBTR,
          COLL2 LIKE BSID-DMBTR,
          COLL3 LIKE BSID-DMBTR,
          ADVANCE LIKE BSID-DMBTR,
          DEPOSIT LIKE BSID-DMBTR,
           SHKZG TYPE BSID-SHKZG,
           KUNNR TYPE BSID-KUNNR,
           BUDAT TYPE BSID-BUDAT,
           BLART TYPE BSID-BLART,
           OUTSTAND LIKE BSID-DMBTR,
           GJAHR LIKE BSID-GJAHR,
       END OF IT_BSID.
    TYPES : BEGIN OF IT_KNC1,
               UM01S LIKE KNC1-UM01S,
               UM02S LIKE KNC1-UM02S,
               UM03S LIKE KNC1-UM03S,
               UM04S LIKE KNC1-UM04S,
               UM05S LIKE KNC1-UM05S,
               UM06S LIKE KNC1-UM06S,
               UM07S LIKE KNC1-UM07S,
               UM08S LIKE KNC1-UM08S,
               UM09S LIKE KNC1-UM09S,
               UM10S LIKE KNC1-UM10S,
               UM11S LIKE KNC1-UM11S,
               UM12S LIKE KNC1-UM12S,
               UM13S LIKE KNC1-UM13S,
               UM14S LIKE KNC1-UM14S,
               UM15S LIKE KNC1-UM15S,
               UM16S LIKE KNC1-UM16S,
              DEBIT LIKE KNC1-UM01S,
                DEBIT TYPE STRING,
               UM01H LIKE KNC1-UM01H,
               UM02H LIKE KNC1-UM02H,
               UM03H LIKE KNC1-UM03H,
               UM04H LIKE KNC1-UM04H,
               UM05H LIKE KNC1-UM05H,
               UM06H LIKE KNC1-UM06H,
               UM07H LIKE KNC1-UM07H,
               UM08H LIKE KNC1-UM08H,
               UM09H LIKE KNC1-UM09H,
               UM10H LIKE KNC1-UM10H,
               UM11H LIKE KNC1-UM11H,
               UM12H LIKE KNC1-UM12H,
               UM13H LIKE KNC1-UM13H,
               UM14H LIKE KNC1-UM14H,
               UM15H LIKE KNC1-UM15H,
               UM16H LIKE KNC1-UM16H,
               CREDIT TYPE STRING,
            UMSAV LIKE KNC1-UMSAV,
            KUNNR LIKE KNC1-KUNNR,
            GJAHR LIKE KNC1-GJAHR,
    END OF IT_KNC1.
    TYPES : BEGIN OF IT_KNC3,
            SHBKZ LIKE KNC3-SHBKZ,
            SALDV LIKE KNC3-SALDV,
            SOLLL LIKE KNC3-SOLLL,
            HABNL LIKE KNC3-HABNL,
            KUNNR LIKE KNC3-KUNNR,
            GJAHR LIKE KNC3-GJAHR,
            DOWN TYPE STRING,
            DEPOSIT TYPE STRING,
    END OF IT_KNC3.
    *INTERNAL TABLE DECLARATION
    DATA: I_FINAL TYPE STANDARD TABLE OF IT_FINAL,
          I_KNVV  TYPE STANDARD TABLE OF IT_KNVV,
          I_KNA1  TYPE STANDARD TABLE OF IT_KNA1,
          I_KNB1  TYPE STANDARD TABLE OF IT_KNB1,
          I_T151T  TYPE STANDARD TABLE OF IT_T151T,
          I_KNVI  TYPE STANDARD TABLE OF IT_KNVI,
          I_TSKDT  TYPE STANDARD TABLE OF IT_TSKDT,
          I_BSID  TYPE STANDARD TABLE OF IT_BSID,
          I_KNC1  TYPE STANDARD TABLE OF IT_KNC1,
          I_KNC3  TYPE STANDARD TABLE OF IT_KNC3.
    *DECLARATION FOR THE WORK AREA
    DATA: WA_FINAL TYPE IT_FINAL,
           WA_KNVV TYPE IT_KNVV,
           WA_KNA1 TYPE IT_KNA1,
           WA_KNB1 TYPE IT_KNB1,
           WA_T151T TYPE IT_T151T,
           WA_KNVI TYPE IT_KNVI,
           WA_TSKDT TYPE IT_TSKDT,
           WA_BSID TYPE IT_BSID,
           WA_KNC1 TYPE IT_KNC1,
           WA_KNC3 TYPE IT_KNC3.
    DECLARATION FOR THE FIELD CATALOG.
    DATA: FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
          WA_FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
          GD_LAYOUT TYPE SLIS_LAYOUT_ALV.
    DATA  GD_REPID LIKE SY-REPID.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    BREAK-POINT.
    SELECT-OPTIONS: CUST_GRP FOR KNVV-KDGRP.
    SELECT-OPTIONS: SALES_OF FOR KNVV-VKBUR.
    SELECT-OPTIONS: REGION FOR KNA1-REGIO.
    SELECT-OPTIONS: DATE FOR BSID-BLDAT.
    SELECT-OPTIONS: YEAR FOR KNC1-GJAHR.
    SELECT-OPTIONS: CUST_NO FOR KNVV-KUNNR.
    SELECTION-SCREEN :END OF BLOCK B1.
    * DECLARATION FOR THE SUBROUTIN FOR BASIC LIST.
    PERFORM data_retrival.
    PERFORM F_GET_I_KNVV_DATA.
    PERFORM F_GET_I_KNA1_DATA.
    PERFORM F_GET_I_KNB1_DATA.
    PERFORM F_GET_I_T151T_DATA.
    *PERFORM F_GET_IT_T685T_DATA.
    PERFORM F_GET_I_KNVI_DATA.
    PERFORM F_GET_I_TSKDT_DATA.
    PERFORM F_GET_I_BSID_DATA.
    PERFORM F_GET_I_KNC1_DATA.
    PERFORM F_GET_I_KNC3_DATA.
    PERFORM F_GET_I_FINAL_DATA.
      PERFORM DATA_BUILD.
      PERFORM DATA_CALL.
    FORM F_GET_I_KNVV_DATA.
    SELECT BZIRK KDGRP KTGRD KUNNR SPART VKBUR VKORG VTWEG
    FROM KNVV
    INTO CORRESPONDING FIELDS OF TABLE I_KNVV
    WHERE KDGRP IN CUST_GRP AND VKBUR IN SALES_OF AND KUNNR IN CUST_NO.
    ENDFORM.
    FORM F_GET_I_KNA1_DATA.
    SELECT KUNNR NAME1 ORT01 REGIO STCEG STRAS TELF1 WERKS  GFORM SPRAS LAND1
    FROM KNA1
    INTO CORRESPONDING FIELDS OF TABLE I_KNA1 FOR ALL ENTRIES IN I_KNVV
      WHERE KUNNR = I_KNVV-KUNNR AND  REGIO IN REGION AND LAND1 = 'IN' .
    ENDFORM.
    FORM F_GET_I_KNB1_DATA.
    SELECT ALTKN AKONT VZSKZ KUNNR
    FROM KNB1
    INTO CORRESPONDING FIELDS OF TABLE I_KNB1 FOR ALL ENTRIES IN I_KNVV
    WHERE KUNNR = I_KNVV-KUNNR.
      ENDFORM.
    FORM F_GET_I_T151T_DATA.
    SELECT KTEXT KDGRP SPRAS
    FROM T151T
    INTO CORRESPONDING FIELDS OF TABLE I_T151T FOR ALL ENTRIES IN I_KNVV
    WHERE KDGRP = I_KNVV-KDGRP AND SPRAS = 'E' .
    ENDFORM.
    *FORM F_GET_IT_T685T_DATA.
    *select vtext spras
    *from t685t
    *into CORRESPONDING FIELDS OF TABLE it_t685t for all entries in it_kna1
    where spras = it_kna1-spras and spras = 'E'.
    *endform.
    FORM F_GET_I_KNVI_DATA.
    SELECT TAXKD TATYP KUNNR
    FROM KNVI
    INTO CORRESPONDING FIELDS OF TABLE I_KNVI FOR ALL ENTRIES IN I_KNVV
    WHERE KUNNR = I_KNVV-KUNNR
    AND TAXKD = '8' OR TAXKD = '3' OR TAXKD = '0'
    AND TATYP = 'Z1AU' OR TATYP = 'ZCST'.
    *and ( taxkd = '8' or taxkd = '0' or taxkd = '3')
    and ( tatyp = 'Z1AU' OR TATYP = 'ZCST' ).
    ENDFORM.
    FORM F_GET_I_TSKDT_DATA.
    SELECT VTEXT TAXKD SPRAS FROM
    TSKDT
    INTO CORRESPONDING FIELDS OF TABLE I_TSKDT FOR ALL ENTRIES IN I_KNVI
    WHERE TAXKD = I_KNVI-TAXKD AND SPRAS = 'E'.
    ENDFORM.
    FORM F_GET_I_BSID_DATA.
    *DATA: DMBTR TYPE BSID-DMBTR,
         OUTSTAND LIKE BSID-DMBTR.
    SELECT UMSKZ DMBTR SHKZG KUNNR BLART GJAHR BUDAT BLDAT
    FROM BSID
    INTO CORRESPONDING FIELDS OF TABLE I_BSID
    FOR ALL ENTRIES IN I_KNVV
    WHERE KUNNR = I_KNVV-KUNNR AND BLDAT IN DATE.
    *AND  ( BLART = 'HR' OR BLART = 'DZ' OR BLART = 'P1'  )
    *and umskz = 'A' or umskz = 'L' OR UMSKZ = ''
    *AND SHKZG = 'S' OR SHKZG = 'H'.
    ENDFORM.
    FORM F_GET_I_KNC1_DATA.
    SELECT UM01S UM02S UM03S UM04S UM05S UM06S UM07S UM08S UM09S UM10S UM11S UM12S UM13S UM14S UM15S UM16S
           UM01H UM02H UM03H UM04H UM05H UM06H UM07H UM08H UM09H UM10H UM11H UM12H UM13H UM14H UM15H UM16H
           UMSAV KUNNR GJAHR
    FROM KNC1
    INTO CORRESPONDING FIELDS OF TABLE I_KNC1
    FOR ALL ENTRIES IN I_KNVV
    WHERE KUNNR = I_KNVV-KUNNR AND GJAHR IN YEAR .
    ENDFORM.
    FORM F_GET_I_KNC3_DATA.
    SELECT KUNNR GJAHR SHBKZ SALDV SOLLL HABNL
    FROM KNC3
    INTO CORRESPONDING FIELDS OF TABLE I_KNC3
    FOR ALL ENTRIES IN I_KNVV
    WHERE KUNNR = I_KNVV-KUNNR
    AND SHBKZ = 'A' OR SHBKZ = 'L'.
    ENDFORM.
    FORM F_GET_I_FINAL_DATA.
    *BREAK-POINT.
    LOOP AT I_KNVV INTO WA_KNVV.
    CLEAR WA_FINAL.
    WA_FINAL-BZIRK = WA_KNVV-BZIRK.
    WA_FINAL-VKBUR = WA_KNVV-VKBUR.
    WA_FINAL-KDGRP = WA_KNVV-KDGRP.
    WA_FINAL-KUNNR = WA_KNVV-KUNNR.
    WA_FINAL-VKORG = WA_KNVV-VKORG.
    WA_FINAL-VTWEG = WA_KNVV-VTWEG.
    WA_FINAL-SPART = WA_KNVV-SPART.
    WA_FINAL-KTGRD = WA_KNVV-KTGRD.
    READ TABLE I_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_KNVV-KUNNR.
    WA_FINAL-NAME1 = WA_KNA1-NAME1.
    WA_FINAL-ORT01 = WA_KNA1-ORT01.
    WA_FINAL-STCEG = WA_KNA1-STCEG.
    WA_FINAL-REGIO = WA_KNA1-REGIO.
    WA_FINAL-STRAS = WA_KNA1-STRAS.
    WA_FINAL-TELF1 = WA_KNA1-TELF1.
    WA_FINAL-WERKS = WA_KNA1-WERKS.
    WA_FINAL-GFORM = WA_KNA1-GFORM.
    WA_FINAL-LAND1 = WA_KNA1-LAND1.
    IF SY-SUBRC = 0.
    ENDIF.
    READ TABLE I_KNB1 INTO WA_KNB1 WITH KEY KUNNR = WA_KNVV-KUNNR.
    IF SY-SUBRC = 0.
    WA_FINAL-ALTKN = WA_KNB1-ALTKN.
    WA_FINAL-AKONT = WA_KNB1-AKONT.
    WA_FINAL-VZSKZ = WA_KNB1-VZSKZ.
    ENDIF.
    READ TABLE I_T151T INTO WA_T151T WITH KEY KDGRP = WA_KNVV-KDGRP .
    IF SY-SUBRC = 0.
    WA_FINAL-KTEXT = WA_T151T-KTEXT.
    ENDIF.
    READ TABLE I_KNVI INTO WA_KNVI  WITH KEY KUNNR = WA_KNVV-KUNNR.
    IF SY-SUBRC = 0.
    WA_FINAL-TAXKD = WA_KNVI-TAXKD.
    WA_FINAL-TATYP = WA_KNVI-TATYP.
    ENDIF.
    READ TABLE I_TSKDT INTO WA_TSKDT WITH KEY TAXKD = WA_KNVI-TAXKD
    WA_FINAL-VTEXT = WA_TSKDT-VTEXT.
    *UP TO THIS POINT REPORT IS OK
    *read table I_bsid INTO WA_BSID with key kunnr = WA_kna1-kunnr
                               UMSKZ = 'A' .
    *if sy-subrc = 0.
    *WA_final-DOWN = WA_bsid-dmbtr * -1.
    **modify i_final.
    **clear it_bsid.
    *endif.
    *read table i_bsid INTO WA_BSID with key kunnr = WA_kna1-kunnr
                               UMSKZ = 'L'  .
    *if sy-subrc = 0.
    *WA_final-deposit = WA_bsid-dmbtr * -1.
    *endif.
    *read table i_bsid INTO WA_BSID with key kunnr = WA_kna1-kunnr
                               blart = 'DZ' .
    **IF BLART = 'HR' OR BLART = 'DZ' OR BLART = 'P1'.
    *if sy-subrc = 0.
    *WA_final-coll1 = WA_bsid-dmbtr * -1.
    *ENDIF.
    *read table i_bsid INTO WA_BSID with key kunnr = WA_kna1-kunnr
                               blart = 'HR' .
    **IF BLART = 'HR' OR BLART = 'DZ' OR BLART = 'P1'.
    *if sy-subrc = 0.
    *WA_final-coll2 = WA_bsid-dmbtr * -1.
    *ENDIF.
    *read table i_bsid INTO WA_BSID with key kunnr = WA_kna1-kunnr
                               blart = 'P1' .
    **IF BLART = 'HR' OR BLART = 'DZ' OR BLART = 'P1'.
    *if sy-subrc = 0.
    *WA_final-coll3 = WA_bsid-dmbtr * -1.
    *ENDIF.
    *read table i_bsid INTO WA_BSID with key kunnr = WA_kna1-kunnr.
    **IF BLART = 'HR' OR BLART = 'DZ' OR BLART = 'P1'.
    *if sy-subrc = 0.
    *WA_final-coll = ( WA_final-coll1 + WA_final-coll2 + WA_final-coll3 ) - ( wa_final-deposit ) * -1.
    *ENDIF.
    *read table i_bsid INTO WA_BSID with key kunnr = WA_kna1-kunnr
                               UMSKZ = 'L'  .
    *if sy-subrc = 0.
    *WA_final-deposit = WA_bsid-dmbtr * -1.
    *endif.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM01S = WA_KNC1-UM01S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM02S = WA_KNC1-UM02S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM03S = WA_KNC1-UM03S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM04S = WA_KNC1-UM04S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM05S = WA_KNC1-UM05S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM06S = WA_KNC1-UM06S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM07S = WA_KNC1-UM07S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM08S = WA_KNC1-UM08S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM09S = WA_KNC1-UM09S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM10S = WA_KNC1-UM10S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM11S = WA_KNC1-UM11S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM12S = WA_KNC1-UM12S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM13S = WA_KNC1-UM13S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM14S = WA_KNC1-UM14S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM15S = WA_KNC1-UM15S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM16S = WA_KNC1-UM16S.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR  .
    IF SY-SUBRC = 0.
    WA_FINAL-DEBIT = WA_KNC1-UM01S + WA_KNC1-UM02S + WA_KNC1-UM03S + WA_KNC1-UM04S + WA_KNC1-UM05S + WA_KNC1-UM06S + WA_KNC1-UM07S +
                     WA_KNC1-UM08S + WA_KNC1-UM09S + WA_KNC1-UM10S + WA_KNC1-UM11S + WA_KNC1-UM12S + WA_KNC1-UM13S + WA_KNC1-UM14S +
                     WA_KNC1-UM15S + WA_KNC1-UM16S .
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR.
    IF SY-SUBRC = 0.
    WA_FINAL-UM01H = WA_KNC1-UM01H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM02H = WA_KNC1-UM02H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM03H = WA_KNC1-UM03H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM04H = WA_KNC1-UM04H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM05H = WA_KNC1-UM05H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM06H = WA_KNC1-UM06H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM07H = WA_KNC1-UM07H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM08H = WA_KNC1-UM08H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM09H = WA_KNC1-UM09H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM10H = WA_KNC1-UM10H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM11H = WA_KNC1-UM11H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM12H = WA_KNC1-UM12H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM13H = WA_KNC1-UM13H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM14H = WA_KNC1-UM14H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM15H = WA_KNC1-UM15H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-UM16H = WA_KNC1-UM16H.
    ENDIF.
    READ TABLE I_KNC1 INTO WA_KNC1 WITH KEY KUNNR = WA_KNVV-KUNNR
    IF SY-SUBRC = 0.
    WA_FINAL-CREDIT = WA_KNC1-UM01H + WA_KNC1-UM02H + WA_KNC1-UM03H + WA_KNC1-UM04H + WA_KNC1-UM05H + WA_KNC1-UM06H + WA_KNC1-UM07H +
                     WA_KNC1-UM08H + WA_KNC1-UM09H + WA_KNC1-UM10H + WA_KNC1-UM11H + WA_KNC1-UM12H + WA_KNC1-UM13H + WA_KNC1-UM14H +
                     WA_KNC1-UM15H + WA_KNC1-UM16H .
    ENDIF.
    READ TABLE I_KNC3 INTO WA_KNC3 WITH KEY KUNNR = WA_KNVV-KUNNR GJAHR = WA_KNC1-GJAHR
                                                SHBKZ  = 'A' .
    IF SY-SUBRC = 0.
    WA_FINAL-SALDV = WA_KNC3-SALDV  .
    ENDIF.
    READ TABLE I_KNC3 INTO WA_KNC3 WITH KEY KUNNR = WA_KNVV-KUNNR GJAHR = WA_KNC1-GJAHR
                                                 SHBKZ = 'A' .
    IF SY-SUBRC = 0.
    WA_FINAL-SOLLL = WA_KNC3-SOLLL  .
    ENDIF.
    READ TABLE I_KNC3 INTO WA_KNC3 WITH KEY KUNNR = WA_KNVV-KUNNR GJAHR = WA_KNC1-GJAHR
                                                 SHBKZ = 'A' .
    IF SY-SUBRC = 0.
    WA_FINAL-HABNL = WA_KNC3-HABNL  .
    ENDIF.
    READ TABLE I_KNC3 INTO WA_KNC3 WITH KEY KUNNR = WA_KNVV-KUNNR GJAHR = WA_KNC1-GJAHR
                                        SHBKZ = 'A'  .
    IF SY-SUBRC = 0.
    WA_FINAL-DOWN =   WA_KNC3-SALDV + WA_KNC3-SOLLL + WA_KNC3-HABNL  * -1.
    ENDIF.
    READ TABLE I_KNC3 INTO WA_KNC3 WITH KEY KUNNR = WA_KNVV-KUNNR GJAHR = WA_KNC1-GJAHR
                                SHBKZ = 'L' .
    IF SY-SUBRC = 0.
    WA_FINAL-SALDV = WA_KNC3-SALDV  .
    ENDIF.
    READ TABLE I_KNC3 INTO WA_KNC3 WITH KEY KUNNR = WA_KNVV-KUNNR GJAHR = WA_KNC1-GJAHR
                                SHBKZ = 'L' .
    IF SY-SUBRC = 0.
    WA_FINAL-SOLLL = WA_KNC3-SOLLL  .
    ENDIF.
    READ TABLE I_KNC3 INTO WA_KNC3 WITH KEY KUNNR = WA_KNVV-KUNNR GJAHR = WA_KNC1-GJAHR
                                SHBKZ = 'L' .
    IF SY-SUBRC = 0.
    WA_FINAL-HABNL = WA_KNC3-HABNL  .
    ENDIF.
    READ TABLE I_KNC3 INTO WA_KNC3 WITH KEY KUNNR = WA_KNVV-KUNNR GJAHR = WA_KNC1-GJAHR
                                SHBKZ = 'L'  .
    IF SY-SUBRC = 0.
    WA_FINAL-DEPOSIT =  WA_KNC3-SALDV + WA_KNC3-SOLLL + WA_KNC3-HABNL * -1.
    ENDIF.
    READ TABLE I_KNC3 INTO WA_KNC3 WITH KEY KUNNR = WA_KNVV-KUNNR GJAHR = WA_KNC1-GJAHR.
    IF SY-SUBRC = 0.
    WA_FINAL-COLL =  WA_FINAL-DOWN - WA_FINAL-DEPOSIT.
    ENDIF.
    APPEND WA_FINAL TO I_FINAL.
    ENDLOOP.
    ENDFORM.
    FORM DATA_BUILD.
      CLEAR WA_FIELDCATALOG.
      WA_FIELDCATALOG-FIELDNAME = 'NAME1'.
      WA_FIELDCATALOG-SELTEXT_M = 'NAME'.
    fieldcatalog-col_pos = 1.
      WA_FIELDCATALOG-OUTPUTLEN = 15 .
    fieldcatalog-emphasize = 'X'. " COLOR OF THIS COLUMN.
      APPEND WA_FIELDCATALOG TO FIELDCATALOG.
    CLEAR WA_FIELDCATALOG.
      WA_FIELDCATALOG-FIELDNAME = 'ORT01'.
      WA_FIELDCATALOG-SELTEXT_M = 'CITY'.
    fieldcatalog-col_pos = 2.
      WA_FIELDCATALOG-OUTPUTLEN = 15 .
    fieldcatalog-emphasize = 'X'. " COLOR OF THIS COLUMN.
      APPEND WA_FIELDCATALOG TO FIELDCATALOG.
    CLEAR WA_FIELDCATALOG.
    WA_FIELDCATALOG-FIELDNAME = 'STCEG'.
      WA_FIELDCATALOG-SELTEXT_M = 'VAT. REG. NO.'.
    fieldcatalog-col_pos = 3.
      WA_FIELDCATALOG-OUTPUTLEN = 15 .
    fieldcatalog-emphasize = 'X'. " COLOR OF THIS COLUMN.
      APPEND WA_FIELDCATALOG TO FIELDCATALOG.
    CLEAR WA_FIELDCATALOG.
    WA_FIELDCATALOG-FIELDNAME = 'REGIO'.
      WA_FIELDCATALOG-SELTEXT_M = 'REGION'.
    fieldcatalog-col_pos = 4.
      WA_FIELDCATALOG-OUTPUTLEN = 15 .
    fieldcatalog-emphasize = 'X'. " COLOR OF THIS COLUMN.
      APPEND WA_FIELDCATALOG TO FIELDCATALOG.
    CLEAR WA_FIELDCATALOG.
    WA_FIELDCATALOG-FIELDNAME = 'STRAS'.
      WA_FIELDCATALOG-SELTEXT_M = 'STREET'.
    fieldcatalog-col_pos = 5.
      WA_FIELDCATALOG-OUTPUTLEN = 15 .
    fieldcatalog-emphasize = 'X'. " COLOR OF THIS COLUMN.
      APPEND WA_FIELDCATALOG TO FIELDCATALOG.
    CLEAR WA_FIELDCATALOG.
    WA_FIELDCATALOG-FIELDNAME = 'TELF1'.
      WA_FIELDCATALOG-SELTEXT_M = 'TELEPHONE'.
    fieldcatalog-col_pos = 6.
      WA_FIELDCATALOG-OUTPUTLEN = 15 .
    fieldcatalog-emphasize = 'X'. " COLOR OF THIS COLUMN.
      APPEND WA_FIELDCATALOG TO FIELDCATALOG.
    CLEAR WA_FIELDCATALOG.
    WA_FIELDCATALOG-FIELDNAME = 'WERKS'.
      WA_FIELDCATALOG-SELTEXT_M = 'PLANT'.
    fieldcatalog-col_pos = 7.
      WA_FIELDCATALOG-OUTPUTLEN = 15 .
    fieldcatalog-emphasize = 'X'. " COLOR OF THIS COLUMN.
      APPEND WA_FIELDCATALOG TO FIELDCATALOG.
    CLEAR WA_FIELDCATALOG.
    WA_FIELDCATALOG-FIELDNAME = 'BZIRK'.
      WA_FIELDCATALOG-SELTEXT_M = 'SALES DISTRICT'.
    fieldcatalog-col_pos = 8.
      WA_FIELDCATALOG-OUTPUTLEN = 15 .
    fieldcatalog-emphasize = 'X'. " COLOR OF THIS COLUMN.
      APPEND WA_FIELDCATALOG TO FIELDCATALOG.
    CLEAR WA_FIELDCATALOG.
    WA_FIELDCATALOG-FIELDNAME = 'VKBUR'.
      WA_FIELDCATALOG-SELTEXT_M = 'SALES OFFICE'.

    hi dinesh......
    please use  'INTO TABLE' instead of  ' INTO CORRESPONDING FIELDS OF TABLE '.  and use ' FOR ALL ENTRIES '............based on relavence ....coz when I set break point  over the select queries it took me long time to execute .......
    becoz u didnt used the for all entries  in select query ............ u r read statement
    READ TABLE I_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_KNVV-KUNNR.  ..... 
    it is reading wrong kunnr value .............even it took long time to execute ......
    use sort where ever required...
    use for all entries .......and check weather the table initial or not......
    use sy-subrc check where ever reqired ..............

  • Displaying BLOB data in a JSP

    Hi,
    I have to fetch the BLOB data from the database and then display it using a JSP.Can anyone suggest how this can be done.
    Thanks,
    Shraddha

    Actually we can use this code
    Blob blob = rs.getBlob( 1 );
    InputStream in = blob.getBinaryStream();
    // Output the blob to the HttpServletResponse
    res.setContentType( "image/jpeg" );
    BufferedOutputStream out = new BufferedOutputStream( res.getOutputStream() );
    byte by[] = new byte[ 32768 ];
    int index = in.read( by, 0, 32768 );
    while ( index != -1 )
    out.write( by, 0, index );
    index = in.read( by, 0, 32768 );
    But didn't understand how to call this output stream from the JSP.
    Is there any tag that can be used?

  • How to load Report data into Word Doc.

    Hi,
    I built a couple Oracle reports. However my client wants to load these report into Microsoft word to look the same format as Oracle reports. How can I do it?
    Thanks
    Dave

    Dave,
    have you tried DESFORMAT=RTF (I'm not sure if that is what you want)? This created a rich text format file readable with MS Word.
    Gerald Krieger

  • Urgent:Retrieving Word Docs in Reports

    I have saved Word documents in an Oracle 7.3 database using OLE
    thru Forms. I want to retrieve the docs in the reports
    automatically as the particular report runs..How can i retrieve
    these docs in from the developer reports...
    null

    what you can do is you run the live previewer, and then you
    create a field by using the field icon, and then you set the
    property for this field.
    a) source: the OLE field from the database, of course you got
    to select when you create the report but you can choose not to
    display when the report builder ask you to field the text part.
    I assume you are using the display style of letter format.
    b) File format: OLE 2
    c)data type: long raw.
    Adil Sameer (guest) wrote:
    : I have saved Word documents in an Oracle 7.3 database using
    OLE
    : thru Forms. I want to retrieve the docs in the reports
    : automatically as the particular report runs..How can i
    retrieve
    : these docs in from the developer reports...
    null

  • Displaying BLOB images from table in a report

    I am trying to upload images to a table, display them in a report afterwards. I have succeeded in the first part, but not in the second.<br>
    <br>
    I can display images in a report if they are in located in wwv_flow_file_objects$ where they are automatically put after 'File browse... + Submit'. <br>
    But, if I move (insert into table + delete from ..object$) I cant display it in a report correctly. I saw the HOWTO document (the code was from there), but for some reason, it doesn't work.<br>
    <br>
    What am I doing wrong? How should I correct the column link or the procedure?<br>
    <br>
    REPORT SQL:<br>
    <br>
    id,<br>
    name,<br>
    filename,<br>
    img src="display?p_photo_id=' || nvl(id,0) || '" height="50" width="50"'<br>
    --wwv_flow_file_objects$ display<br>
    --img src="p?n=' || nvl(id,0) || '" height="50" width="50" ' img,<br>
    BLOB_CONTENT,<br>
    MIME_TYPE<br>
    from images;<br>
    PROCEDURE 'display':<br>
    create or replace procedure display (p_photo_id in number)<br>
    as<br>
    l_mime varchar2(255);<br>
    l_length number;<br>
    l_file_name varchar2(2000);<br>
    lob_loc BLOB;<br>
    begin<br>
    select mime_type, blob_content, name, dbms_lob.getlength(blob_content)<br>
    into l_mime, lob_loc, l_file_name, l_length<br>
    from images where id = p_photo_id;<br>
    owa_util.mime_header(nvl(l_mime,'application/octet'), FALSE );<br>
    htp.p('Content-length: ' || l_length);<br>
    htp.p('Content-Disposition: filename="' || l_file_name || '"');<br>
    owa_util.http_header_close;<br>
    wpg_docload.download_file( Lob_loc );<br>
    end;<br>
    <br>
    Many thanks!<br>

    Alayan - If you're using XE, that shoud be the first thing you tell us. There is a separate forum for that product.
    But as long as you're here, a couple points: you reference the "display" procedure in the img tag without qualifying it with an owner. How is the Embeded PL/SQL Gateway supposed to know what "display" is (unless you created a public synonym)? Next, in XE you need to explicitly enable access to procedures that are invoked this way. See the XE forum for discussion about that technique and read the doc here: http://download-uk.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/adm_wrkspc.htm#BEJCGJFJ.
    Scott

  • Displaying Answers Date Prompts in Title of Report

    I come from a BO background and we are now implementing OBIEE into our environment. My question revolves around the display of dashboard prompt values in the Answers report title.
    I have a Dashboard Prompt built that uses the expression 'DateColumn' between - user inputs their two values using the Calendar control.
    Is there anyway with this scenario to display what the user chooses in the Answers report title? In the Answers criteria I have set the criteria for the 'DateColumn' to be prompted.
    I see you can assign some of the Dashboard prompts to variables, however, you can't do it when you using the Between logic or the Greater than logic.
    I look forward to any input and thank you so much in advance!

    I presume you are aware of the filters view that shows you all the filters applied to the report, but you want the parameters in the title and no where else.
    The other option is not simple. You could make your Dashboard prompts as equalities, and then you could save the parameters to Presentation Variables and pass the parameters to a nested report inside a narrative iframe where you construct the real query. An excellent example of this is Venkatakrishnan's blog in the URL below:
    http://oraclebizint.wordpress.com/2008/02/19/oracle-bi-ee-101332-passing-operators-in-dashboard-prompts-go-url-and-presentation-variables/
    You may check out the section "Oracle BI Presentation Services Go URL to Issue SQL and Pass Filters" in the Presentation Services Administration Guide for more information.
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31766.pdf
    HTH,
    Nilanshu

  • How to bring different Word docs in Reports 6i

    Hello,
    I want to bring some formatted text (Word file) into my report.
    In fact, for every customer in my report I have a different formatted text to display.
    Using OLE2(Create from File)I have to specify exactly the name of the file(one file for the entire report).
    What I want is that the name of the file to be different from one customer to another.
    Does anybody know how can I do that?
    I don't want to use txt files and format them in the report.
    Thank you,
    Monica

    Mira,
    The trick here is not to create the OLE object directly in the layout (as you have been), but to use the Read From File functionality provided.
    For any field in the layout, you can go to the property palette and set the 'Read From File' property to be 'Yes'. Once you do this you'll get another property 'File Format' which you can set to the be the format of file to read (in your case OLE2).
    Now, when Reports runs instead of just formatting this field, it will look at the value and try to open that file from the filesystem. Take a look at the on-line help and examples of 'Read From File' for more information.
    Regards,
    Danny

  • How to add infopath data to word doc

    hi
     I create a form in infopath. I want to combine the information in this form, in strategic places in a Word document. My intention is similar to a mail merge but from infopath software. In Mail Merge I create a lot of files at once. Here I want the
    end user fills out the form and receive a letter. All details already filled in the right places.
    In software info path field can be set to be equal to other fields, but there is no option like in Word design. And that makes it as a link and not as part of the text.
    Would appreciate help
    Thanks in advance
    David

    Hi,
    Please check if this thread helps:
    https://social.msdn.microsoft.com/Forums/en-US/9e2ab81d-dd9e-454c-8347-62484eaa7546/can-i-insert-an-infopath-form-into-a-ms-word-document?forum=sharepointcustomizationlegacy
    1. Use a Document Information Panel (DIP). With this you can use field controls in Word and bind them to fields in the DIP (InfoPath form). See
    http://blogs.msdn.com/infopath/archive/2006/11/06/data-binding-between-document-information-panel-and-word-document.aspx for an example on how this is done.
    2. Use VSTO to host an InfoPath form control (see
    http://msdn2.microsoft.com/en-us/library/microsoft.office.infopath.formcontrol(vs.80).aspx) in a task pane in your Word document.
    For InfoPath related issue, you can also post in the following forum to get more assistance:
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/home?forum=sharepointcustomizationprevious
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Want to display "no data Return" message for empty report

    HI all
    I have a requirement where i should show a message saying "No data Returned" under the empty table in the webI report.
    I know that we should use function
    =If(NumberOfRows([Data Provider Name])=0;"NO Data Available")
    I will create a empty cell and include this formula for that cell, but any one please tell me what exactly is the Data Provider Name? Is it the name of the univerese or something else? where can i get the Data provider name?

    Data Provider Name is the name of your query.  By default its name is Query 1.
    =NumberOfRows([Query 1])
    Or you may have changed its name when you edited the query in the query panel, so that's the name you have to use there
    For example:
    =NumberOfRows([My Query])
    If you have a lot of Queries in your report they may be Query 1, Query 2, Query 3 and so.
    Edited by: PadawanGirl on Feb 18, 2011 3:33 PM

  • Need to display 2 dates in one column in Report

    Hi All,
            I have two date chars, 'Begin date'  (4/1/2007 ) & 'End date' (10/1/2011 ) in two different coulums & I need to display them in one column like 4/1/2007 - 10/1/2011, which would specify period i.e 'Begin date' to 'End date'. Can anyone please let me know how I could do this in Query designer?
    Thanks!!

    as per ur issue it seems u want tod isplay the date start and end in the header area
    this can be acheived using Text variables.
    u can create 2 text variables whose value is either user entry and whose reference char is Calday
    lets say ur user enters 2 date ,one as start date and another as end date.
    so u can create a variable A & B whose reference characteristics is 0calday
    now in query designer u select in column description where u wish to display date.
    then in description side u will see a icon
    if u click it u will be able to include text variabel in description
    now here create 2 variables x & y
    variable x
    replacement path variable
    reference char---0calday
    replacement path tab....
    variable is replaced by variable
    now select ur variable A.
    similarly create variable y
    theni n description u can include variable and put like this...
    variablex----variable y
    this should solve ur issue

  • Acrobat Pro 8.1.2 crashes when displaying pdf made from Word doc containing url text

    Hello,
    I and a few others in my workplace have a similar issue.
    Acrobat crashes when they scroll through and view a pdf file that was created from Word.  The Word document contains url text in its header to the effect of "visit us at www.blah.com ." They're running Acrobat Pro 8.1.2 and Office 2K Pro SR-1 on XP Pro SP2.
    Even though the link is not an active link, (i.e. clicking on it does not open the web page), if I convert a document containing this header to PDF, Acrobat will not allow me to manipulate the file and will crash. When I take the same document and remove the web address, then convert from Word to PDF, I experience no problems with Acrobat (note that this is the identical file, but with the web address removed).This does not explain why Acrobat will work for awhile even with the web address in the header, then stop working. But it does appear to fix my problem with creating a PDF from Word, then manipulating it further.
    Does anyone know how to allow for this text to exist in the header and still have a stable pdf file/acrobat behavior?
    The pdf is attached.
    Thanks....

    To sum up, I've found that if a url beginning with www is in the Word document and then created to pdf Adobe will crash when viewing that pdf.  If it is deleted from the Word document before creating the pdf, Acrobat will not crash when viewing that pdf.

  • Export BLOB data to a Word Document.

    Dear All,
    I am facing a problem during reading a blob data to a word file. My procedure work fine fine. But when I am about to open the Word Document. It gives me a message that "the document name or path is not valid. 1. Check the file permission for the document or drive. 2. Use the file open dialog box to locate the document."
    I am using 9i for this.
    Best Regards
    Umer Minhas

    Basically this happens when I write the blob data in Word File.
    I investigate this problem on MS sites and come to know that it was basically "328100 - WD2002: The Document Name or Path Is Not Valid".
    But after installation of hotfix, I again saw the same message. But when I use the utility of TOAD to export the data. It done all very well. This what basically estonished me.
    Best Regards
    Umer Minhas.

Maybe you are looking for

  • 3d Z-space transform bug?

    I'm noticing that if I have an object, let's say a white rectangle, and want to transform it in Z-space with the 3d transform tool sected, the little blue dot control in the middle of the rectangle has no effect.   The red X-axis and green Y-axis con

  • Problem in signal processing

    Hello all, I use LabVIEW 8.2 student edition. I have the problem to split the output of FFT. The harmonic component has more then one output: Can I get only one of the component in harmonic component? I mean, in the result picture, there are three ou

  • Document Title Variable Text for Footer

    I am fairly new to InDesign and did as much searching as possible before posting this. I took a three-day class for InDesign, but we never got into variables. This is for a technical document template I am creating. What I am trying to do is create a

  • Meta tag using weblogic content management console

    Hi.. I want to add meta tag content to pages. How can I do this using weblogic content management console? please help...... Edited by: 925203 on Apr 25, 2012 3:58 AM

  • MM config problem

    Hi , I have to test Po creation . i have to check with dif materials and plants I am frequently getting an error like .. <b>'Source list not included despite source list requirement'</b> ans stoppint at account assignment category. Can any body help