Problem while downloading sform..

HI all,
I am converting smartform to pdf format.
but i get the error 0 bytes transported, code page 0000.
can anyone help me plz

hI..
data: i_otf LIKE itcoo OCCURS 100 WITH HEADER LINE,
      i_pdf LIKE tline OCCURS 100 WITH HEADER LINE.
data: op_option type SSFCTRLOP,
job_output type SSFCRESCL.
*DATA : w_FILE_NAME type string,
      w_File_path type string,
      w_FULL_PATH type string,
      W_bin_filesize TYPE i. " Binary File Size
op_option-getotf = 'X'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
     EXPORTING
       formname                 = 'ZHRM_BANK_LETTER'
  VARIANT                  = ' '
  DIRECT_CALL              = ' '
  IMPORTING
      fm_name                  = f_name
EXCEPTIONS
  NO_FORM                  = 1
  NO_FUNCTION_MODULE       = 2
  OTHERS                   = 3
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  "ME
  SORT itab BY srno.
*sort itab by pernr.
  RANGES : c_abkrs FOR pa0001-abkrs.
  c_abkrs-sign = 'I'.
  c_abkrs-option = 'EQ'.
  c_abkrs-low = p_abkrs-low.
  c_abkrs-high = p_abkrs-high.
  APPEND c_abkrs.
  CALL FUNCTION f_name "'/1BCDWB/SF00000005'
     EXPORTING
  ARCHIVE_INDEX              =
  ARCHIVE_INDEX_TAB          =
  ARCHIVE_PARAMETERS         =
   CONTROL_PARAMETERS          = OP_OPTION  "***CHANGED
  MAIL_APPL_OBJ              =
  MAIL_RECIPIENT             =
  MAIL_SENDER                =
  OUTPUT_OPTIONS             =
   USER_SETTINGS               = 'X'  "***CHANGED
       p_abrp                  = p_pabrp
       p_pabrj                 = p_pabrj
       p_abkrs                 = c_abkrs-low
IMPORTING
   DOCUMENT_OUTPUT_INFO       = JOB_OUTPUT  "***CHANGED
  JOB_OUTPUT_INFO            =
  JOB_OUTPUT_OPTIONS         =
     TABLES
       itab                       = itab
  EXCEPTIONS
    formatting_error           = 1
    internal_error             = 2
    send_error                 = 3
    user_canceled              = 4
    OTHERS                     = 5
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
*****CHANGED ON
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
   FORMAT                      = 'PDF'
   MAX_LINEWIDTH               = 132
  ARCHIVE_INDEX               = ' '
  COPYNUMBER                  = 0
  ASCII_BIDI_VIS2LOG          = ' '
  PDF_DELETE_OTFTAB           = ' '
IMPORTING
   BIN_FILESIZE                = w_binfile_size
  BIN_FILE                    =
  TABLES
    otf                         = job_output-otfdata
    lines                       = I_PDF
EXCEPTIONS
   ERR_MAX_LINEWIDTH           = 1
   ERR_FORMAT                  = 2
   ERR_CONV_NOT_POSSIBLE       = 3
   ERR_BAD_OTF                 = 4
   OTHERS                      = 5 .
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = w_binfile_size
filename = 'c:\test_pdf_sf.pdf'
FILETYPE = 'BIN'
tables
data_tab = i_pdf
*FIELDNAMES =
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Similar Messages

  • Japanese character problem while downloading file to application server

    Hello All,
    We are facing a strange problem while downloading a file to application server when file contains japanese text.
    We are downloading vendor and customer information in a flat file format on application server. When the login language is EN program show ouput in a properly formatted manner.
    When the login language is JA (japanese) program does download file with customer vendor data. I can see the description is japanese language but the formatting is gone for a toss.
    We are facing similar issue with other programs downloading files on the application server.
    I am using OPEN DATASET........ENCODING DEFAULT. and working on unicode enabaled ECC 6.0 system
    Quick help appriciated.
    Thanks!

    Hi
    Sometimes this also happens because of your desktop setting.Make sure that your OS also supports the JAPANESSE language.
    Ask your technical support team to enable them in your desktop.
    Thanks & Regards
    Jyo

  • Facing a Problem while downloading the data from ALV Grid to Excel Sheet

    Hi Friends,
    Iam facing a problem while downloading the data from ALV Grid to excel sheet. This is working fine in Development server , when comes to Quality and Production servers I have this trouble.
       I have nearly 11 fields in ALV Grid and out of which one is PO number of length 10 , all the ten numbers are visible in the excel sheet if we download it from development server but when we download it from Quality or Production it is showing only 9 numbers.
    Can any one help me out in this case.

    hi...
    if this problems happens dont display the same internal as u finally got.
    just create new internal table without calling any standard data elements and domains... but the new internal table s similar like ur final internal table and move all the values to new int table.
    for eg.
    ur final internal int table for disp,
         data : begin of itab occur 0,
                        matnr like mara-matnr,
                   end of itab.
    create new like this,
               data : begin of itab occur 0,
                        matnr(12) type N,
                   end of itab.

  • Problem while downloading  OS X Lion

    I have an annoying problem while downloading the OS X Lion at about 60-70 % of the download its says that my internet dropped out try again, i've try this many time and still the same problem at 60-70% of the download. What can i do any suggestion?
    thanks

    Do you have the Install Mac OS Lion.app in your /Applications folder?
    If so double-click to install.
    If you no longer have the download then go to MAS > Purchases tab, hold option and download again.

  • Facing problem while downloading ALV grid Output into Excel

    Hi Guys,
    I am facing problem while downloading ALV grid Output into Excel.
    It is downloading into excel, but all character columns first and next all quantity columns it is displaying. But I need columns order as it is in the grid.
    If I take all columns as characters it works fine. But it will be problem for calculating total, subtotals of quantity columns
    Can someone help me regarding this
    thanks for your help

    Hi,
    Open up Excel on your desktop. Goto Tools > Macro > Security.
    Make sure that your security is set to Medium (or less). SAP uses OLE automation to run the Excel instance and in Office 2003 (for example), Microsoft has increased their default security setting to High. With the High setting, the output to Excel fails.
    Was this your problem? Don't forget those points, either.
    check with this wetther it is solved or not.
    Regards,
    sana.

  • Problem while downloading a ALV report to excel

    Hi experts,
    I have an ALV report which took long time to extract records from various table. So while there is some restriction the report can be executed well in foreground. And the report can be extracted well to excel sheet. But while there is hudge records, i have to execute the report in backgroung. And then from spool i generally prefers to download the report to excel.
    There is a field UOM where it contains value ' " ' for some records. And also there may be possiblity that other fields can also contain the same.
    Now my problem is: while download to excel... When ever there is a value ' " ' from this point to the next value ' " '. It is treating as one record. and keep that in a same position in the excel sheet.
    But i want to keep all the values in there respective fields. Can you please how can i do that? Please give me some solution...
    regards,
    charles.

    If anybody have any solution please send me....

  • Problem while downloading the alv output to excel file.

    Hii,
    While downloading the alv output to an excel file i am facing a problem. Either the output comes as 1.23456E+11 or the values get cut .
    Cant put in txt file  as the users require to calculate directy and i have even tried to increase the output length .But both doesnt help.
    So what are the other ways to do so.
    Edited by: mansi_v27 on Mar 24, 2010 12:35 PM

    Hi,
    Welcome to SCN!!!.
    Please go through the forum rules. This has been discussed many times. You can search in the forum for this.
    Infact there is no problem. Just expand that excel cell. You can see the full value. This is standard excel property.
    Thanks,
    Vinod.

  • Problem while downloading ALV GRID Output to Local Spreadsheet(Excel) File.

    Hi,
    I am displaying output in ALV GRID. While downloading the output to Excel file using "Local File" option provided by ALV.
    But while downloading the columns and their respective values are coming in single column vertially of excel file instead of horizontal.
    e.g. Grid output is as follows.
    F1 F2
    V1 V2
    (F represents Field Title, and V represent Value)
    Downloaded Excel File content:-
    F1
    F2
    V1
    V2
    Please help.

    Hi ,
    Please use below FM :
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    filename = 'C:\Documents and Settings\akshayr2403\Desktop\docs\rep.xls'
    FILETYPE = 'WK1'
    WRITE_FIELD_SEPARATOR = 'X'
    tables
    data_tab = it_vbak
    EXCEPTIONS
    FILE_WRITE_ERROR = 1
    NO_BATCH = 2
    GUI_REFUSE_FILETRANSFER = 3
    INVALID_TYPE = 4
    NO_AUTHORITY = 5
    UNKNOWN_ERROR = 6
    HEADER_NOT_ALLOWED = 7
    SEPARATOR_NOT_ALLOWED = 8
    FILESIZE_NOT_ALLOWED = 9
    HEADER_TOO_LONG = 10
    DP_ERROR_CREATE = 11
    DP_ERROR_SEND = 12
    DP_ERROR_WRITE = 13
    UNKNOWN_DP_ERROR = 14
    ACCESS_DENIED = 15
    DP_OUT_OF_MEMORY = 16
    DISK_FULL = 17
    DP_TIMEOUT = 18
    FILE_NOT_FOUND = 19
    DATAPROVIDER_EXCEPTION = 20
    CONTROL_FLUSH_ERROR = 21
    OTHERS = 22
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Also, if your problem still persist, please refer SAP's demo code on ALV "BCALV_FULLSCREEN_DEMO".
    There are many sample codes available, what you need to do is just go to SE38 and put BCALV* and do F4.
    I hope this will help you.
    Regards,
    Rahul Mahajan

  • Problem while downloading Chinese chatracters into an excel file

    Hi All ,
      While downloading Chinese characters into an excel file , using GUI_DOWNLOAD function module , im getting JUNK Characters instead of chinese characters.
      But if im downloading the same chinese data into an text file or unix file , there is no such problem.
    Thanks in advance and points will be rewarded for helpful answer.
    Regards,
    K.S.R

    Hi, I have the same problem. Anyone has solution now?
    Wu Hao
    2008/08/21

  • HT1338 Problem while downloading the update for the Macbook 10.8.2

    Dear Mr/Mrs
    This Abdelhameed Ata
    I just bought A MACBOOK PRO, and I'm facing this problem that I can not shut down or restart the device because of this following reason.
    The device it forze while downloading the software, I mean i can use the laptop but the downloading has stopped or forze . so please help me what am I suppose to do?

    Perform a Permissions Repair using Disc Utility...
    Verify or Repair Disk Permissions
    Then Restart your Mac.
    Next...
    Go here  >  http://support.apple.com/kb/DL1581 and Download and Install the Combo Update.
    After a Successful Install be sure to Restart your computer.

  • Bootcamp problem while downloading software

    Hello,
    I'm trying to install Windows 7 via bootcamp assistant, but I've always the same problem.
    While downloading the newest software and drivers for my mac book air (this is the first step of all), the download aborts with the message
    "The software can not be installed because it is not available on the software update server."
    Well, I tried it about 20 times or more, today, yesterday, ..!
    Anybody has an idea?
    Best regards,
    Florian

    Sometimes, Boot Camp Assistant doesn't work with the process of downloading the Boot Camp drivers.
    As you say you have got a Late 2010 MacBook Air, these are the drivers you need, so download them from the Apple site > http://support.apple.com/kb/DL1630
    Follow Apple's steps to install Windows > http://manuals.info.apple.com/MANUALS/1000/MA1559/en_US/Boot_Camp_Install-Setup_ Late2010.pdf

  • Problems while downloading pdf attachments

    hi
    I am using JavaMail 1.4.4 and trying to implement mail client. Everything is working fine but I am unable to download pdf attachments savefile method of mimebodypart* skips some bytes while saving attachments._
    for example
    like if I am downloading a attachment using web browser it sizes as 38Kb but if I am downloading same attachment using java code then it sizes as 37.3Kb it skips some bytes.....
    may be I am guessing wrong but generally it skips when attachment password protected but sometimes same code works for password protected attachments...
    appreciate any help...
    Thanks in advance.....
    Edited by: 909080 on Jan 19, 2012 7:00 AM

    Did you post the same problem on stackoverflow.com? See my comments there.

  • Code Page Problem while downloading to PC in DUF Format

    Hi,
    I have a problem where in i tried to download a XML Structure that has been built in using ABAP and then download the same as .duf file in PC Frontend. The file is then used to upload the details in some webportal.
    The Problem is, there is a text which contains a special character ' ī ' in Latvian format which while getting downloaded is changed as # (can be seen when opened using Notepad). I tried passing Codepage 1900 (checked from table TCP0C) to the function Module 'GUI_DOWNLOAD'. Now it changes the special character as ' ļ '.
    How do i overcome this problem with codepage or do i need to make any settings?
    Any help on this will be greatly appreciated. Let me know incase of further explanations or details are required.
    Thanks,
    Prashanth

    hi
    check whether the character is set to the unicode with reference to the language key

  • Problem while download purchased app from AppWorld

    I had purchased a game from AppWorld and I had started to download this games to my playbook but while I download, I got an internet conection problem and I lost internet connection for a while. After I reconnect internet and I try to re-download this game again, I got req. to re-purchase for this game again.
    What can I do to download this game again without re-purchase?
    Thanks in advance.

    If it is not in app world's my world request a refund after you give the invoice number and it can be purchased again. You will need to contact support. The refund will show up on the account in a few days.
    Be a Shepard and not an iSheep.

  • Help with Boot Camp Assistant network problem while downloading windows support system!

    I need to download Windows support software, but just keep encountering a problem which says "Can't download Windows Support Software because of a network problem." What should I do? I'm currently using Boot Camp Assistant v5.0.0, and OS X 10.8.2. Help! What can I do to solve this network problem? Please and thank you (:

    I have the same problem.  Anyone out there?  Hello?

Maybe you are looking for

  • End Routine ABAP to read from Internal table and do calculation.

    Hi All... I have completed some coding in a start routine to extract some fields from a DSO containing Master Data (Stock Age) into an internal table (the internal table has been defined in the global declarations area) which will then be read in the

  • Imported Photos not showing up in Library of I-Photo

    I am converting old slides on a Wolverine SNaP converter.  The digital images show up in the "Last Import" window after importing them, and I can drag them into a folder I create, but when I go to the Library they aren't there.  Does anybody have a s

  • ITunes automatically quiting

    Whenever I try to open iTunes I get an error message saying that iTunes has encountered a problem and needs to close. It sent me a link to try and fix it but it didn't work. I've also sent an Error Report countless times. I'm getting kind of mad caus

  • MONTH END CLOSING ACTIVITY

    Dear all pl, explain few questions 1) What r the month end closing activities done in SAP PP? 2) How do u capture product cost? 3) What is Teco, closing a prod. orderand order settlement? thanks Raj

  • Monthly Tonnage report

    Hi Gurus,              Can anyone please let me know what all the fields needed to do Monthly Tonnage report. If you have program please send it to me . I want to do the report for the same. Thanks , Ashok...