PDF Download Problem

Hi,
I have one report using Reuse_Alv_List_Display as output. After that I have to download the output to PDF.
By using the following code I can able to download, But the Problem is I have 54 fields( total length to 900 characters) in the out put and while downloading through Spool I am getting only 17 fields in one row and remaining fields are getting in 2nd and 3rd rows and are getting overlap.
So is there any Possibility to download to 54 Fields in PDF.If so, Please help me...
*&      Form  USER_COMMAND
      Form for user-command for providing Pdf Functionlity.
-->  No Import / Export Parameters.
FORM user_command USING l_okcode LIKE sy-ucomm
                       l_selfield TYPE slis_selfield .
  CASE l_okcode.
    WHEN '&PDF'.
      g_flag = 'X'.
      PERFORM pdf_download.
  ENDCASE.
ENDFORM.                    " USER_COMMAND
*&      Form  PDF_DOWNLOAD
      Form for Pdf functionalty
-->  No Import / Export Parameters
FORM pdf_download .
  DATA l_spoolid TYPE tsp01-rqident.
Without archiving
  DATA: params LIKE pri_params,
  days(1) TYPE n VALUE 2,
  count(3) TYPE n VALUE 1, p_file TYPE rlgrap-filename,
  valid TYPE c.
  CLEAR l_spoolid.
  CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      destination    = 'LOCA'
      copies         = count
      list_name      = 'TEST'
      list_text      = 'SUBMIT ... TO SAP-SPOOL'
      immediately    = 'X'
      release        = 'X'
      new_list_id    = 'X'
      expiration     = days
      line_size      = 132
      line_count     = 25
      layout         = 'X'
      sap_cover_page = 'X'
      cover_page     = 'X'
      receiver       = 'SAP*'
      department     = 'System'
      no_dialog      = ' '
    IMPORTING
      out_parameters = params
      valid          = valid.
  IF valid <> space.
    EXPORT g_flag TO MEMORY ID 'M1'.
    SUBMIT z_fi_exec_customercollection WITH s_kunnr IN s_kunnr
                                WITH s_bukrs IN s_bukrs
                                WITH s_budat IN s_budat
                                     TO SAP-SPOOL
    SPOOL PARAMETERS params
    WITHOUT SPOOL DYNPRO
    AND RETURN.
  ENDIF.
  DATA: lt_spooltab TYPE STANDARD TABLE OF  rsporq WITH HEADER LINE ,
    lc_rq2name LIKE tsp01-rq2name.
  CONCATENATE sy-repid+0(8)
                sy-uname+0(3)
      INTO lc_rq2name SEPARATED BY '_'.
  CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
    EXPORTING
      rq2name       = lc_rq2name
      rqowner       = sy-uname
    TABLES
      spoolrequests = lt_spooltab
    EXCEPTIONS
      no_permission = 1
      OTHERS        = 2.
  IF sy-subrc <> 0.
    WRITE:/ 'Error in Find Spool request '.
  ENDIF.
  SORT lt_spooltab DESCENDING BY rqcretime.
  READ TABLE lt_spooltab INDEX 1.
  l_spoolid = lt_spooltab-rqident.
  SUBMIT rstxpdft4 WITH spoolno EQ l_spoolid
                   WITH download EQ 'X'
                   WITH  p_file EQ p_file
                   AND RETURN.
ENDFORM.                    " PDF_DOWNLOAD
*&      Form  SET_PF_STATUS
      Setting Modified Pf-Status to our program.
-->  No Import / Export Parameters.
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
  SET PF-STATUS 'ZSTANDARD_ALV_C'.
ENDFORM.                    " SET_PF_STATUS

Hi,
I dont know the possibility but we can do some thing by using the hirarchial list display, reduce the field lengths where ever is unnecessary you will get it.
Regards,
venkat appikonda.

Similar Messages

  • Pdf download problem in lion

    Safari can download most files ok. But, pdf downloads result in a dark blank screen and no download.  There is no problem downloading in Chrome. Repairing permissions hasn't worked

    If you use Adobe Acrobat to view PDF files...
    Apple Safari 5.1 and Adobe Reader/Acrobat Advisory

  • Strange PDF Download problem

    We are having a difficult time getting a PDF download to work with the
              Struts framework on WLS 5.1.
              This works fine with a servlet we have in production today, but when using
              Struts, it fails every time.
              We are submitting a form that contains a date and a type, and then going to
              a back-end vendor to retrieve the PDF stream and re-stream it back to the
              user. The URL that should work is as follows:
              http://xxxx/action/viewStmt?period=mm/dd/yy&type=PDF
              When we execute this URL, the action is invoked, the correct arguments are
              obtained, the vendor is called, and the streaming is done. However, the
              browser then pops up a message saying...
              "You have chosen to download a file from this location:
              yy&type=PDF from xxxx"
              and the download fails.
              We are doing almost the exact same thing with a servlet, and no such error
              happens. I don't know if this is Struts-related or some configuration
              issue.
              Any ideas?
              Thanks,
              John
              

    it sounds like the browser wants to download a file who's ContentType
              isn't set.
              try the following:
              response.setContentType(<ENTER PROPER PDF CONTENT TYPE HERE>);
              it'll probably be something like "application/pdf" or "text/pdf"
              with Struts you'll probably have to extend the Action bean to handle
              that. just have that extended Action read the type parameter and
              interpret it.
              hope that helps
              e.j. fuhr
              "John Bauer" <[email protected]> wrote in message news:<[email protected]>...
              > We are having a difficult time getting a PDF download to work with the
              > Struts framework on WLS 5.1.
              > This works fine with a servlet we have in production today, but when using
              > Struts, it fails every time.
              >
              > We are submitting a form that contains a date and a type, and then going to
              > a back-end vendor to retrieve the PDF stream and re-stream it back to the
              > user. The URL that should work is as follows:
              >
              > http://xxxx/action/viewStmt?period=mm/dd/yy&type=PDF
              >
              > When we execute this URL, the action is invoked, the correct arguments are
              > obtained, the vendor is called, and the streaming is done. However, the
              > browser then pops up a message saying...
              >
              > "You have chosen to download a file from this location:
              >
              > yy&type=PDF from xxxx"
              >
              > and the download fails.
              >
              > We are doing almost the exact same thing with a servlet, and no such error
              > happens. I don't know if this is Struts-related or some configuration
              > issue.
              >
              > Any ideas?
              >
              > Thanks,
              > John
              

  • Firefox and PDF download problems -- hanging and failures

    I am working in Windows XP and Firefox 12.0.
    We post our multi-page newsletter to our website in PDF, and then use a list to send a link to access it. When attempting to download using Firefox, the document will download all or part of the first page, and then hang -- sometimes in perpetuity, and sometimes with infinitesimally slow progress.
    It works just fine in Google Chrome.
    I tried disabling all of my plug-ins, including Adobe Acrobat (9.5.1.283). I left them all disabled, but re-enabled Adobe. No joy.
    I disabled Adobe and tried a straight-up download, then open with my local reader. No joy.
    What is going on, and how can I fix it?
    My Acrobat 9 Standard is 9.5.1 that I'm using to create the document in the first place.
    What can I do to fix MY system to get it to download and, more importantly, what information can I give our members to use so that they can successfully download it?

    I personally open PDFs in the stand-alone Adobe Reader rather than in the browser, but everyone has their own preference.
    Have you experimented with Firefox's application tab settings?
    orange Firefox button ''or'' classic Tools menu > Options > Applications
    In the search box on that tab, type pdf and pause for the list to be filtered. You should be able to toggle between viewing the PDF in the browser or launching it externally. I have mine set to "Always Ask."
    Generally speaking, when you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    If you host the PDFs on a site you can't actually visit, access the View Cookies dialog from this page and change the host name at the top of the box to the correct host name to access the relevant cookies.
    Then try downloading again. Does that help?

  • PDF Download Problems

    Hi, this is a repeat post but maybe no-one noticed it when I posted it several months ago:
    I have problems with filenames of downloaded pdfs. I download pdfs from the internet, and my computer corrupts the filenames. For example, it replaces all the spaces with the string "%20" and sometimes, instead of the name of the file, it is just all numbers and "#" signs. Of course, I can re-type the correct filename, but why on earth aren't the correct ones just coming down with the file?
    Very frustrating because I deal with a lot of academic docs.

    Try the Internet Explorer or disable the PDF Viewer of Chrome.

  • N900 PDF Download Problems

    Whenever I download a pdf from a web site I get a message that asks me whether I want to open the file with PDF Reader or Save to Device. If I try to open with PDF Reader I get a message saying "file format not supported" and the phone goes back to the desktop. If I save the file to the device and then try to open it, there is a ? symbol appear on the file and the phone requres me to choose a software format to open the file with. I pick PDF Reader, but again the message appears "file format not supported" and the phone goes back to the desktop.
    The issue is that when I first purchsed the phone about 6 weeks ago PDF Reader used to download files from the web and I could read them no problem. Last week the phone just wouldn't open a PDF from a web site and hasn't done since. Can anyone help?

    Try the Internet Explorer or disable the PDF Viewer of Chrome.

  • PDF Download Problem with Mozilla

    Actually more of a nuisance. Whenever I download (when in OS 9.2.2 using the Mozilla browser) a PDF document, the file downloads OK, however, instead of having the PDF icon it has a PictureViewer/QuickTime icon and the file Type is GIFf & Creator Code is ogle. Naturally, it won’t open using Adobe Reader. I have to change the file Type to PDF & Creator Code to CARO. Then Adobe Reader will open the file. The change in the Type and Creator Code does not change during download when using iCab or Explorer. I couldn’t find any setting in Mozilla that could cause this.
    Any suggestions?
     Cheers, Tom

    Hi, Tom -
    Check the settings for Helper Apps (IE calls them File Helpers) in Mozilla - since I don't use it, I'm not conversant with where they might be, although I'd imagine they'd be somewhere in its Preferences.
    Check also the settings in the Internet control panel, Advanced tab, File Mapping section; and the settings in the PC Exchange and File Translation tabs in the File Exchnage control panel.
    Make sure all appropriate ones are set to use Acrobat Reader as the linked app for PDF (or .pdf) files. There may be more that one linked pair in any of those places.

  • I bought a pdf book last year and had no problem reading it for a few months then all of a sudden I could no longer open it and to this day. Any other pdf download off internet I can still open and read, except for that particular book. Operating system i

    I bought a pdf book last year and had no problem reading it for a few months then all of a sudden I could no longer open it and to this day. Any other pdf download off internet I can still open and read, except for that particular book. Operating system is Windows 7 Home Premium, Adobe Reader XI 11.0.07.  When trying to open file I get msg "You did'nt login or your session has expired. Please log in to read this document for the first time". (Like I said I have read it before). So I log in but that prompts me to give the name of the file I want to export or convert to Word or something else, which is not what I want to do of course. I have not purchased any service from Adobe or Acrobat as I only need to read. Thanks for your help..

    Thank you for your reply. Operating system is Windows 7 Home Premium, Adobe Reader XI 11.0.07.  When trying to open file I get msg "You did'nt login or your session has expired. Please log in to read this document for the first time". (Like I said I have read it before). So I log in but that prompts me to give the name of the file I want to export or convert to Word or something else, which is not what I want to do of course. I have not purchased any service from Adobe or Acrobat as I only need to read. Thanks for your help.

  • Problems with PDF downloads

    I was ready to blame the latest update from Apple, but perhaps not. Here are the symptoms:
    Our church publishes a newsletter in PDF format which can be downloaded from their web site every month. This month, after the latest Apple update, the downloaded document has problems. General format is OK (boxes around text, images) but all text is simply grey bars that seem shaded from one side of the page to the other.
    If I save the document and try to open it in Preview the same problem.
    HOWEVER, if I open the document in the Adobe reader the document is fine!
    I thought this might be a problem with my iMac (first of the aluminium iMacs), so I tried this on my Apple laptop (recent vintage). Both machines run 10.6.8 with the latest updates from Apple applied. I have no funny "helper" programs; i.e. the software is pretty clean and all updated.
    Same issue on the laptop.
    HOWEVER I looked for a generic pdf download on the web and downloaded a PDF instruction sheet from the Moen (plumbing) web site - no problem!
    So now my suspicion is that the PDF document has the problem. But I would have thought that PDF is PDF and if the Adobe reader can handle the document that Safari and Preview should be able to? Is there some format switch in the program used to generate the PDF document that would cause the Apple programs to fail but Adobe to succeed?
    Any thoughts welcomed! I'd like to figure out if it's me or them.
    PS - I've not yet tried this on that "other" operating system. I could do that with a trip to the library

    Thanks guys. I think I'll just rely on Acrobat as suggested. Sounds like somehting has changed on their end as the previous month's file loads fine.
    I'll check with teh secretary ans see what has happened.
    Thanks

  • Strange problem of Pdf downloading  with Web Dynpro

    Hi, experts, I have to setup a project to realize pdf downloading with web dynpro. But unluckily, I have tried all the methods in this froum ,there's really strange problem .Because when I click the link of Download UI link, there's no reaction at all, I really don't know why.Below is the codes I used , can anyone help me ? thank you very much!
    public void wdDoInit()
        //@@begin wdDoInit()
              IWDAttributeInfo attInfo =
                   wdContext
                        .currentContextElement()
                        .node()
                        .getNodeInfo()
                        .getAttribute(
                        "Pdfsource");
              ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
              IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
              binaryType.setFileName("test.pdf");
              binaryType.setMimeType(WDWebResourceType.PDF);
              try {
                   int length =
                        (int) wdContext.currentPdfdownloadElement().getBin_Filesize();
                   byte b[] = new byte[length];
                   b = wdContext.currentPdfdownloadElement().getBin_File();
                   wdContext.currentContextElement().setPdfsource(b);
              } catch (Exception ex) {
    "Pdfsource" is the context value attribute of type binary.And Bin_File is the xstring type parameter from my RFC contains pdf content.
    I used two views and one customer-controller . I put some value in the first view to set search condition.and the second then appears and have the download UI element. Are there any additional codes I should use? pls help!

    Hi Hao,
    Try this out
    Suppose the file name is test.doc in c drive in server
    create a context attribute filedata of binary type
    bind it to data property
    write the following code
    try
       File input = new File("C:
    test.doc");
       int length =(int)input.length();
       //Create a byte array b to hold the file
       byte b[] = new byte[length];
       FileInputStream in = new FileInputStream(input);
       //Reading the file to a byte array b
       in.read(b);            
       in.close();
       //Setting the data from the byte array to the context element.
       wdContext.currentContextElement().setfiledata(b);
    catch(Exception ex)
      wdComponentAPI.getMessageManager().reportSuccess("Error in File 
      IO"+ex.toString());
    // Structure information of the context attribute
    IWDAttributeInfo attinfo = wdContext.getNodeInfo().getAttribute("filedata");
    IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attinfo.getModifiableSimpleType();
    // Default File name which appears when opened on client machine
    binaryType.setFileName("testing.doc");
    //Explicitly setting the file type
    binaryType.setMimeType(WDWebResourceType.DOC);

  • Can't open a pdf download from my bank

    Until a few days ago, I was able to go to statements from my online banking web site.  Since I updated my google web browser, I've been unable to get the download to work.  I don't know if that browser update has anything to do with the download problem??  I can open saved (in my computer) .pdf files in Adobe Reader (10.1.1).  I've tried to update Reader and the utility says I don't need updates.  Does anyone have any ideas for me?

    This seems to be a common problem with the upgrade Adobe Reader X 10.1.1.  Mine freezes as soon as I click "Open" on any pdf file, and I have to use Task Manager to get out of the program.  An Adobe tech support person (who wouldn't help without my paying a $39 fee) did say to go to the forum on freezing at http://forums.adobe.com/thread/886700.  Try what it suggests in the way of unclicking "protected mode" from General Preferences under Edit.

  • PDF download in IE 7

    I created a pdf download link to a _blank page, and when I
    try to download and view the pdf in IE 7, a new page comes up but
    the page is blank. The pdf does not view. Can someone offer insight
    to the problem? Thanks.

    If you're talking about the link by "Click Here to download a
    PDF version of
    this Recipe Style Guide" I clicked it, waited about 20
    seconds, then saw
    your Recipe Style Guide. It's only about 160K so it's not
    that large (for
    the record, I'm in a coffee shop right now with a not-so-good
    connection).
    It's working fine. Assuming that's what's causing you a
    problem.
    Mad Dog
    Dored wrote:
    > The link is:
    http://www.hadfield.net/copywrite.htm#recipe

  • What to do? When on a site with a PDF download I wish to open, the site commences to open in a new Tab but the information does not come through? This happens on all sites. The advanced Java Script is disabled.

    When on a site with a PDF download I wish to open, when I click on download the site commences to open in a new Tab but the information does not come through? This happens on all sites. The advanced Java Script is disabled. The new tab will sometimes flash black then go white with nothing else happening or just go white & nothing else?

    I had the same problem and also had PDF Download 3.0.02 installed. By removing this addon I can now select a PDF document which then opens up a normal Open With/Save dialogue allowing me to open the file or save it. Hope this helps.

  • Issue with PDF download

    Hi Guys,
    I am facing problem with the PDF download option. In the answers request I have to use Pivot tables to display data and since these pivot tables do not provide the option of Table Headings, I resorted to HTML to get a similar output. The issue I am facing right now is when I print it through PDF or Powerpoint, the HTML code I have written comes up instead of the result. In the case of excel or answers, I am getting the proper output. Is there some setting I am missing?? I am using the column with the HTML coding in the Columns section of the pivot table.
    Thnx!

    Hi,
    This is a known issue with HTML code embedded in your request, when you try to download the same in PDF, PowerPoint it will show the code.
    You can the following bugs regarding this in metalink.
    Bug 7187501: PDF SHOWS HTML TAGS WHILE PRINTING REPORT WITH BOLD LETTERS -HTML Tags Shown When Print or Export to PDF (Doc ID 1064060.1)
    Bug 9372634: HTML TAGS SHOWN WHEN PRINT/EXPORT TO PDF
    Bug 8899783: HTML TAGS APPEAR IN PDF REPORT
    Thanks,
    Vino

  • How to track a PDF download as a webpage hit?

    My website provides people with free information via about 50 PDF downloads. although I have excellent tracking software (Extreme Tracking) on each HTML page, I have absolutely no idea how many PDFs are being downloaded or from which region of the world they are being downloaded. Therefore I have no clear idea of visitor traffic to the site. Has anyone got a fix to this problem? Surely ACROBAT experts can find a way to tag a PDF with a small section of HTML in order to allow the page to be tracked as a hit? Any ideas welcome! Steppegold in Mongolia

    Thanks for the reply Michael,
    I was hoping beyond hope that a PDF could be tracked. Well the first person to come up with a solution is going to make billions $$$ that's for sure. Seems to me that if a top 3 or 4 lines of normal but tiny text were to be inserted in the top of the PDF, then clever software in a bot/spider might be able to convert this instantaneously into HTML and so the tracker code would then be activated. It really is worth someone spending time and $$ to solve this.
    Thanks again for your response. Steppegold Mongolia

Maybe you are looking for

  • Search Help not getting displayed

    Hi , I have included my own Search Help ZSH to Standard Search Help MAT1 which is related to field MATNR , in the following path.. In MAT1->MAT1_A, I have INCLUDED my Search Help. I have tested it in SE11, it's working fine. But, in VA01 screen when

  • How do I select multiple images in pages

    In Apple works drawing it was simple to select several images by click and dragging a box over some images and they were all selected at the same time. Now I only get a pointer arrow when over an object at all other times I get an I bar. Am I missing

  • Export 16:9 AVI??

    I have a 16:9 movie created in FCP. I need to make an uncompressed file for Powerpoint. Avi looks great but I don't see any options to make it 16:9??

  • SOLMAN_SETUP does not react

    I´ve installed a solution manager 7.1 and I start the solman_setup. The screen comes up but I can´t do anything. Are there other configurations to do before go to the setup?

  • Using active x reference in teststand

    I make multiple calls to active x dlls in multiple subsequences. Can anyone explain the advantages and disadvatages of creating a new object for each call? I initially created a new object only on the first call and then used the same local active x