Code page issue - Unix file(s) content display in a report output

Hi All,
I am trying to retrieve file from Unix server and display in my report output.
I have written code as below:
OPEN DATASET filename FOR INPUT IN TEXT MODE ENCODING DEFAULT.
  DO.
    READ DATASET filename INTO i_tab-line.
  ENDDO.
CLOSE DATASET.
1. Now i am able to display files of type .txt in report output but with line numbers above each line.
How can i avaoid it! I want to display as it looks in AL11 view.
2. If i am displaying files of type .PDF it is giving dump with below message:
A character set conversion is not possible.
At the conversion of text from code page '4110' to '4102' is not possible.
- a character was found that cannot be displayed in one of the two code pages;
- or it was detected that this conversion is not supported.
How can i display the .PDF (or) all types of files in my report as it is viewable in AL11.
Can anybody solve this this.
I have tried UTF-8 & NON-UNICODE options with ENCODE also they are also giving same dump.
Can anybody resolve these issues!
Thanks in advance.
Thanks,
Deep.

Hi All,
Any resolution for above posted issue!
Thanks,
Deep.

Similar Messages

  • Variant Name to be displayed at the report output

    Hi,
    I need to display the selection screen variant name which I am currently using to run my ABAP report at the report output.
    Please let me know how do I do that.
    Thanks,
    Mathangi

    Mathangi,
    use<b> SY-SLSET</b> to know the variant name.....
    Write : SY-SLSET.
    Regards.

  • SSRS 2008 R2 report does not print the page header for a html content displaying on multiple pages

    Hi
    I need to display the html content from the database. The html content are quite long and can have content of 3-5 pages. Issue I  am facing is f the record has html content of 3-5 pages, then it does not print the page header (which is a separate tablix) on
    second page onwards.
    Nikesh Shah
    Nikesh Shah

    Hi Nikesh,
    According to your description, I’m not sure the meaning of Page header in your scenario. In Reporting Services, a page header that run along the top of each page, respectively. Headers can contain static text, images, lines, rectangles, borders, background
    color, background images, and expressions. But we couldn’t add tablix in the page header.
    If you are saying report header, a report header consists of the report items that are placed at the top of the report body on the report design surface. They appear only once as the first content in the report. So it cannot repeat in other pages.
    If you are saying tablix header, freezing column headers are different in table and matrix. For more details, please refer to the following thread:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c8ddc1af-1bdf-4e72-8aab-0353c7cc848a/ssrs-report-freezing-row-and-column-while-scrolling-issue?forum=sqlreportingservices
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Pages to EPUB: Table of Contents displaying FIRST?

    I saw this question posed earlier, and no solution was raised.
    Does anyone know why my TOC is displaying FIRST when I export to EPUB, instead of behind the Title and Copyright pages, as I have it set on the pages document?
    Thank you!

    Same here. Very annoing, and I cannot find any way to fix this.

  • Can't now dismiss underneath page when selecting file from content.

    I mentioned this in another report on my missing copyright sign. The two seemed to occur coincidentally.
    When I depress Alt at the time of selecting a topic from a page in order to have just that one topic onscreen, the page remains on screen underneath the topic selected. Does anyone know what's gone wrong here? T.I.A.

    Bumped.
    I'm trying to get back to dismissing the underneath page when I choose one from that original.
    Let's just say I select Apps. The page comes up. I then select an item within Apps with the Alt key depressed in order to have just that item I've selected to be on the screen. However, the underlying main Apps screen still remains there instead of being dismissed. I know I can get rid of it by clicking the red, top left, but I should be able to do what I mention, click on Alt and dismiss it as the selected item comes up.
    Anyone . . . ? I know it can be done because I've been working that way for a long time!

  • No page error but also no image displayed on the report ?

    Hi Everyone,
    First I like to apologise for the long post, but I would like to make sure that I am providing the full information so as not to waist anyone's time.
    As I am having problems displaying images, in a report, but I am not getting any errors, all I see is the typical red X where the image shout be. When I right click the red X and select properties, it all appears to be fine:
    http://127.0.0.1:8080/apex/ZOROPIO.FILE_TO_BLOB?p_file_id=6
    except that Type: Not Available
    and Size: Not Available
    So I decided to creating a table and procedures to specifically test my approach and I am still getting the same result.
    I have an Apex page where uses can upload an image to the system, using the following Page Process:
    On Submit - After Computations and validations
    FOR REC IN( SELECT FILENAME, MIME_TYPE
    FROM HTMLDB_APPLICATION_FILES
    WHERE NAME = :P4_FILENAME
    LOOP
    INSERT INTO AB ( FNAME, MTYPE )
    VALUES (REC.FILENAME, REC.MIME_TYPE);
    END LOOP;
    ZOROPIO.BLOB_TO_FILE(:P4_FILENAME);
    DELETE FROM HTMLDB_APPLICATION_FILES
    WHERE NAME = :P4_FILENAME;
    The AB table is define as:
    CREATE TABLE "AB"
    (     "DB_ID" NUMBER NOT NULL ENABLE,
         "FNAME" VARCHAR2(256 CHAR) NOT NULL ENABLE,
         "A_IMG" BFILE,
         "MTYPE" VARCHAR2(256 CHAR),
         CONSTRAINT "AB_PK" PRIMARY KEY ("DB_ID") ENABLE
    CREATE OR REPLACE TRIGGER "BI_AB"
    BEFORE INSERT
    ON ZOROPIO.AB
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    tmpVar NUMBER;
    BEGIN
    tmpVar := 0;
    SELECT NVL (MAX (DB_ID), 0) + 1 INTO tmpVar FROM AB;
    :NEW.DB_ID := tmpVar;
    IF :NEW.FNAME IS NOT NULL THEN
    :NEW.A_IMG := BFILENAME ('IMG', :NEW.FNAME);
    END IF;
    END BI_AB;
    ALTER TRIGGER "BI_AB" ENABLE
    The BLOB_TO_FILE procedure is defined as:
    create or replace PROCEDURE BLOB_TO_FILE (p_file_name VARCHAR2) AS
    l_out_file UTL_FILE.FILE_TYPE;
    l_buffer RAW (32767);
    l_amount BINARY_INTEGER := 32767;
    l_pos INTEGER := 1;
    l_blob_len INTEGER;
    p_data BLOB;
    file_name VARCHAR2 (256);
    BEGIN
    FOR rec IN (SELECT ID
    FROM HTMLDB_APPLICATION_FILES
    WHERE Name = p_file_name) LOOP
    SELECT BLOB_CONTENT, filename
    INTO p_data, file_name
    FROM HTMLDB_APPLICATION_FILES
    WHERE ID = rec.ID;
    l_blob_len := DBMS_LOB.getlength (p_data);
    l_out_file := UTL_FILE.fopen ( 'IMG',file_name, 'wb', 32767 );
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.Read ( p_data,l_amount, l_pos, l_buffer );
    IF l_buffer IS NOT NULL THEN
    UTL_FILE.put_raw (l_out_file, l_buffer, TRUE);
    END IF;
    l_pos := l_pos + l_amount;
    END LOOP;
    UTL_FILE.fclose (l_out_file);
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    IF UTL_FILE.is_open (l_out_file) THEN
    UTL_FILE.fclose (l_out_file);
    END IF;
    END BLOB_TO_FILE;
    This works fine, as I can see the data in both the OS Directory and the AB table after the user uplodas the image.
    I have then define an Apex Report pageto display the uploaded images. The page has the following Source:
    SELECT FNAME, MTYPE,
    '<IMG SRC="ZOROPIO.FILE_TO_BLOB?p_file_id='||NVL( DB_ID, 0)||'"HEIGHT="'||80||'"WIDTH="'||100||'"/>' AS IMAGE
    FROM ZOROPIO.AB
    The ZOROPIO.FILE_TO_BLOB procedure is defined as:
    CREATE OR REPLACE PROCEDURE ZOROPIO.FILE_TO_BLOB ( p_file_id NUMBER ) IS
    l_mime_type VARCHAR2 ( 256 );
    l_file_name VARCHAR2 ( 256 );
    l_bfile BFILE;
    l_blob BLOB;
    l_bfile_length NUMBER;
    l_blob_length NUMBER;
    BEGIN
    SELECT FNAME, MTYPE
    INTO l_file_name, l_mime_type
    FROM AB
    WHERE DB_ID = p_file_id;
    l_bfile := BFILENAME ('IMG', l_file_name);
    -- MAKE SURE THE FILE EXIST
    IF ( DBMS_LOB.FILEEXISTS( l_bfile ) = 1 ) THEN
    DBMS_LOB.CREATETEMPORARY ( l_blob, TRUE, DBMS_LOB.SESSION );
    DBMS_LOB.FILEOPEN ( l_bfile );
    l_bfile_length := DBMS_LOB.GETLENGTH ( l_bfile );
    DBMS_LOB.LOADFROMFILE ( l_blob, l_bfile, l_bfile_length );
    DBMS_LOB.FILECLOSE ( l_bfile );
    l_blob_length := DBMS_LOB.GETLENGTH ( l_blob );
    OWA_UTIL.MIME_HEADER( NVL ( l_mime_type, 'Application/Octet' ), FALSE );
    HTP.P ( 'Content-length:' || l_blob_length );
    OWA_UTIL.HTTP_HEADER_CLOSE;
    WPG_DOCLOAD.DOWNLOAD_FILE ( l_blob );
    DBMS_LOB.FREETEMPORARY( l_blob );
    ELSE
    RAISE_APPLICATION_ERROR(-20007, 'Requested IMG does not exist');
    END IF;
    END FILE_TO_BLOB;
    I have GRANT EXECUTE to ZOROPIO for both the procedures:
    BLOB_TO_FILE
    FILE_TO_BLOB
    The Oracle database verison, Apex version, etc details are:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Language: en-gb
    Application Express 3.2.1.00.12
    Any sugestions, help, etc would be much appreciated.
    Thank you
    Daniel

    Hi everyone,
    I have check everyone possible and I am unable to find the cause of the problem.
    I decided to recreate an identical setup to the examples provided by Denes on his workspace and I still have the same issue.
    I have change the wwv_flow_epg_include_modules.authorize to include Denes procedure as you can see below.
    CREATE OR REPLACE function APEX_030200.wwv_flow_epg_include_mod_local( procedure_name in varchar2) return boolean is
    begin
    if upper(procedure_name) in ( 'my_image_display' ) then
    return TRUE;
    else
    return FALSE;
    end if;
    end wwv_flow_epg_include_mod_local;
    The only way I can get it to work is to change the function to RETURN TRUE before the IF statement.
    Any suggestion and this stage may prevent my insanity from getting to silly levels.
    Regards
    Daniel

  • Sub total icon is not displaying in alv report output

    Hi friends ,
    In alv report display on menu bar the icon : subtotals is not displaying at the output , I should not give subtotal in each field catalog .
    Plz give me solution, points will be rewarded.
    with regards,
    prasad.

    Hi,
    I think u r using PF-STATUS parameter in function module,
    if u use this parameter, you sholud give the icon name etc..
    otherwise by default it will appear.
    Check your code again.
    Give me exact requirement, if possible paste the code.
    Regards,
    Chandu

  • Do not display field in report output using ALV

    Hello friends,
    I have a dilemma here. I sorted my report using a dummy field named asset_dum. now, this is my basis of sub totals but I do not need to show it in the display. Is there a way or an option to do this?

    Hi,
    The problem with NO_OUT is that if the user changes the layout he can see the field and there is nothing in the system that would stop him from displaying the same.
    However TECH field should be useful in your case.
    TECH
    If this field is set, the relevant field is not displayed on the list and cannot be shown interactively. The field is only known in the field catalog. (For example, it must not be specified as a sorting criterion).
    Regards,
    Ravi
    Note : Please close the thread if the issue is resolved and mark all the helpful answers

  • Arabic Numerical font is not display in PDF report output

    I am facing an issue with Arabic Numerical font, If Query the data from form it is displaying Numeric data in Arabic font, If run a report for same data it is display in Normal format[Arabic font is not displaying].
    The below settings i had done
    1. I added font path to REPORTS_PATH
    2. Set the NLS_LANG
    3. I set font aliases properly in unifont.ali
    4.REPORTS_ARABIC_NUMERAL=CONTEXT
    5.REPORTS_BIDI_ALGORITHM=UNICODE
    Oracle Reports Developer 10.1.2.3
    NLS_LANG=AMERICAN_AMERICA.AR8ISO8859P6;
    REPORTS_PATH=$ORACLE_HOME/forms/custom:$ORACLE_HOME/guicommon/tk/admin:$ORACLE_HOME/bin:$ORACLE_HOME/reports/templates:$ORACLE_HOME/reports/samples/demo:$ORACLE_HOME/reports/integ:$ORACLE_HOME/reports/printers:${REPORTS_PATH}; export REPORTS_PATH
    [ PDF:Subset ]
    Arial..... = "arial.ttf"
    Arial...Bold.. = "arialbd.ttf"
    Arial..italic... = "ariali.ttf"
    Arial..italic.Bold.. = "arialbi.ttf"
    Tahoma..... = "tahoma.ttf"
    Can any one Please help me to fix this Issue.
    I search lot of sites and blogs but one gave any solution for this problem.
    Excepting Positive reply's
    Regards,
    Avinash

    Hi, check this two link...
    1. Re: PDF Reports in Unicode / Arabic & English
    2. http://www.orafaq.com/forum/t/162197/149761/
    Hope this helps
    If someone response is correct or helpful, mark it.

  • Regarding the File Adapter with Code Page problem

    Hi All,
    I have a scenario where I am processing file at receiver end. The code page of the file is Cp037. When I try with this, I am facing the problem. Is there anyway where I can chage the code page of the file which is to processed by File adapter receiver.
    I have one idea but I don't know whether it is possible or not. It is to use XML Anonymizer Module.
    Please get back to me with your ideas.
    Regards,
    Achari

    Hi Achaari,
    Cp037 ( EBCDIC ) is not a basic but an extended encoding set which might not be supported by the file encoding parameter at the receiver file adapter.
    Either you can try the code page conversion using java code  as mentioned in  this[ post|Code page conversion;
    Please refer Problem with EBCDIC
      Michale's reply and the sriram's reply which talks about  some work around using .BAT files.
    Regards,
    Srinivas

  • How to Determine File Code page of the txt file generated thru UTL_FIle

    Hi
    I want to know the file code page of the txt file that I have generated in Oracle using UTL_FILE.
    E.g., OUT_FILE := UTL_FILE.FOPEN(DIRNAME,vFILENAME,'W',2000);
    What is the way to do so? I have read on internet that if we want to know the code page of a file then we just have to open in any browser like IE and just check the encoding from there. Is this the correct way to know the encoding?
    Also, I want to know that whether file code page is dependent on OS or the source from which the file is being generated?

    "The Oracle character set is synonymous with the Windows code page. Basically, they mean the same thing."
    Source:http://www.databasejournal.com/features/oracle/article.php/3493691/The-Globalization-of-Language-in-Oracle---The-NLSLANG-variable.htm
    Means, in oracle we says character set which is = window's code page.
    "Determine the code page of your Oracle database ( = select parameter, value from nls_database_parameters and look for parameter NLS_CHARACTERSET)."
    Source:http://media.datadirect.com/download/docs/slnk/admin/intlangsupp.html
    Which already said by Pierre above.
    HTH
    Girish Sharma

  • Changing code page of File.

    Hi,
    I need ur help. I want to know, What is the way to change the code page of any file. and how we can detect code page of any file.
    thanks,
    Shaan.

    >
    Hi,
    I need ur help. I want to know, What is the way
    way to change the code page of any file. and how we
    can detect code page of any file.Read the file in using the file's original encoding, then write the file out with a different encoding.
    See File, FileReader, FileWriter, FileInputStream, FileOutputStream.
    In general, one cannot simply open a file and know the text encoding. If, however, you were to place an encoding tag in the file somewhere, perhaps as a header, you could more easily detect the file's code page.
    Regards,
    John o'Conner

  • How can we format the download file as it is as report output.

    hi all,
    I have a issue, when i execute the program the the report output displays on output screen.
    now, in menu when i down load this output data into a word file the format is not correct i.e. it is not as it is in report output screen.
    how we can correct this output format, when we download in word format file through menu.
    pls help me on this .its very urgent.
    thanks!
    vipin

    Vipin,
    U will have to use OLE methods to format your MS-WORD output.
    Check the tcode  DWDM for sample code
    Also check out the threads:
    Get WORD Options with OLE
    Re: OLE and MS Word
    Also search in code samples with OLE-MSWORD
    Reward if helpful,
    Karthik

  • Calling html file within web.show document as a report output

    /* this is blank html file included javascript for disabling mouse right click working fine*/
    WEB.SHOW_DOCUMENT ('http://prod.artisticmilliners.com:8000/files/file.html','_blank');
    /* this is oracle report output within model frame working fine*/
    WEB.SHOW_DOCUMENT ('javascript:void(window.open("'|| URL || '","","location=no,toolbar=no,menubar=no,status=no,"));self.close()','_self');
    I want to add show report output with right mouse click disable. Pleae guide how can i do it?

    Let me start by saying that disabling the right mouse will do nothing but frustrate users. It doesn't protect the page content from anything. There are various other ways to get the content from the page copied locally. And more importantly, this does not_ offer any kind of security.
    Ok, so you have decided to do it anyway ;)
    In order to make this happen, you would need to modify the report. I will assume that when you said "report" you meant Oracle Reports. Open the report file (.rdf) and edit the report's "Before Report Value".
    The default value is:
    <html>
    <head>
    <meta http-equiv="Content-Type"  content="text/html; charset=&Encoding">
    </head>
    <body dir=&Direction bgcolor="#ffffff">Change it to this:
    <html>
    <head>
    <meta http-equiv="Content-Type"  content="text/html; charset=&Encoding">
    </head>
    <script language="javascript">
    document.onmousedown=disableclick;
    status="Right Click Disabled";
    Function disableclick(e)
      if(event.button==2)
         alert(status);
         return false;   
    </script>
    <body oncontextmenu="return false" dir=&Direction bgcolor="#ffffff">Save the changes and retest.

  • Issue with File Download(messageDownload) on Search Page.

    Hi,
    I created a custom OAF search page which fetches values from one table. The document in getting stored in my custom table in a BLOB colums and NOT in FND_LOBS.
    The table has 3 collumns along with others:
    1st is primary key (Record_Seq) ==> number data type
    2nd to store actual file name (File1Name) ==> varcahar2 data type
    3rd to store the actual uploaded data (File1Data) ==> BLOB data type
    The reason for having the “File1Name” is so that I can display the original file name of the document that was uploaded, instead of just the “view” in the search page results .
    On the File1Data BLOB and created a messageDownload for that under query results table with following details:
    ID : File1Data
    ItemStyle : messageDownload
    FileMIME Type : pdf
    Datatype : BLOB
    View Instance : LacEmpExposureVO1
    view Attribute : File1Name
    File View Attribute : File1Data
    When I click on the "File1Name" data hyperlink, it is opening only the first document corresponding to the first record in the search page results.
    For example, If my search page returns 10 rows then when I click on the file1name on any row, It is open the first row file name only.
    I have a primary key column(RECORD_SEQ) in the Table / EO / VO which is displayed in the search page results.
    Also one weird thing is happening:
    If I try to do this more than 2 times then it is opening the update page with the first record from the search page results…
    I tried to print the context and it is nul the first time, But the second time then context is changing to "update". Dont know how this is happening????
    Any advice is greatly appreciated as it is very crucial for me to get this resolved ASAP. I have looked at several forums and did a lot of things as advised in the forums . But nothing seems to work for me.
    Thanks,
    Mir
    CO code for the search page
    ===========================
    if (pageContext.getParameter("Create")!= null)
    System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of CREATE");
    pageContext.setForwardURL
    ("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureCreatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, //Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    else if ("update".equals(pageContext.getParameter(EVENT_PARAM)))
    System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of UPDATE");
    System.out.println("LacEmpExposureCO ==> RecordSeq in PROCESS FORM REQUEST is: " + RecordSeq);
    HashMap params = new HashMap(1);
    params.put("RecordSeq", RecordSeq);
    pageContext.setForwardURL
    ("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureUpdatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params,
    true, //Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    else {           
    String strEvent = pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM);
    System.out.println(strEvent);
    System.out.println("Into the last ELSE part in LacEmpExposureCO.java");

    Duplicate post -- Issue with File Download(messageDownload) on Search Page.

Maybe you are looking for

  • One step DVD unable to capture video

    I have made many movies using one step dvd in the past. For some reason, now I get a message "Nothing Captured" "No video has been captured" when I try to create a new dvd from my video camera. I used the same camera and connection cords on another a

  • Problem combining selection tools in Photoshop CC 2014

    When I make a selection using the Quick Selection Tool in Photoshop CC and then switch to the Lasso Tool to refine the selection, it just adds to what I already had selected.  If I do the same thing in CC 2014, as soon as I click on the photo with th

  • Vista SP1 and CS3

    Can anyone report improvements in AE performance with Windows Service Pack 1? How about hardware compatability? We want to move up to Vista but we don't need more bugs. Thanks, Monty

  • Automated Facebook process?

    Every once in a while, something will flash on my screen for a split second.  It looks like a standard popup box with OK and Cancel but I can't ever read what it says.  So I looked in Console and the process that keeps popping up is this: com.apple.l

  • CC does not work after Uninstall and reinstall

    Adobe 24/7 help online does not solve the problem. They come up and said to uninstall all, and as the result, I can not access ALL my software. Please help. Error message screen shot attached below. This is on Home PC, OS: Windows7, 64bit, Core i5, 3