DOWNLOAD SMARTFORM IN TXT FORMAT

NORMALLY WE DOWNLOAD SMARTFORM IN PDF FORMAT BUT I HAVE REQUIREMENT TO DOWNLOAD IN TEXT FORMAT.
PLEASE HELP.
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Jul 24, 2008 6:24 PM

when you generate the spool you can down load that in txt format
Function is used RSPO_DOWNLOAD_SPOOLJOB when you want to do that programatically.
Using the spool number, and provide the path where you want to down load that time mention the name
C:\smart.txt
it will be downloaded .

Similar Messages

  • Download file in txt format

    Hi,
    Im using Forms 6i,
    The output data is not spliting into lines by line .in between the lines there is a small box.If i open the same file in word itis spliting line by line.
    PROCEDURE do_based_customers (p_org_id in number,p_user_id in number,p_inv_org in number,p_location in varchar2,
              p_route in varchar2, p_dodatefrom in date,p_dodateto in date, p_dofrom in number, p_doto in number) is
    l_path varchar2(100) := '/export/home/loadman';
    l_filename varchar2(20000) := 'hht_cust_'||sysdate||'.txt' ;
    l_buffer varchar2(80) := 'this is a test';
    l_outfile utl_file.file_type;
    cursor c1 is
    select * from table;
    begin
    l_outfile := utl_file.fopen(l_path, l_filename, 'w');
    for rec1 in c1
    loop
         l_filename := rec1.cust_code||'~'||rec1.cust_name||'~'||rec1.ROUTE_CODE||'~'||rec1.LOCATION_CODE;
              utl_file.put_line(l_outfile, l_filename);
    end loop;
    utl_file.fclose(l_outfile);
    exception
    when others then
    utl_file.fclose(l_outfile);
    dbms_output.put_line(sqlerrm);
    end do_based_customers;
    Thsi is the code to download the data.Itis saving in a TEXT FORMAT.
    Can any one help me in this to get reslove my problem.

    Maybe you need ot issue unix2dos -ascii oldfile newfile on the os.

  • How can I download & save an .txt ebook from Russian site in cyrillic and save in Word 2013.

    I wish to download ebooks in.txt format and save them in MS Word 2013. The books are in Russian language and therefore need to be converted into cyrillic. I am now using Windows 8 and Firefox19. On my OLD system (xp) and Word 2000 I had no problems. As soon as I pushed the download button, Firefox gave me the option to open the document in MS Word and after that it would give the option to download in cyrillic. Now all that has gone on the new system. Please help! Thanks. The site I am using is Tululu.org

    Hello seagull58, see : [https://support.mozilla.org/en-US/kb/set-how-firefox-handles-different-file-types#os=win8&browser=fx19 Set how Firefox handles different types of files]
    also : [https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file#os=win8&browser=fx19 Change what Firefox does when you click on or download a file]
    thank you

  • How to download a file from the net and save it into .txt format in a datab

    Can some one show me a tutorial on how to download a file from the net and save it into .txt format in a database?
    Thank you,

    http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html

  • Problem in downloading records .txt format

    Hi,
    I have to download records in a .txt file from two custom tables(Header and Item table) while the header records and item records are identified by the first two characters of each string downloaded in the .txt file. Can you help me out by giving some code piece on this.
    Swarup Banerjee.

    can i know the file format (fields) and 3-4 first records of it.
    if possible send more details.

  • Downloading Smartforms Output into MS Word format

    Hi,
    Is there any way to download Smartform Output data in to MS Word.?...like the way we download Smartform data into PDF format.
    is there any FM available to handle this like CONVERT_OTF, CONVERT_OTF_2_PDF in case of PDF.
    Full points for useful answers.
    Thanks,
    Sree.

    Check these links
    https://forums.sdn.sap.com/click.jspa?searchID=15917117&messageID=4709514
    https://forums.sdn.sap.com/click.jspa?searchID=15917117&messageID=2950348
    Thanks,
    Phani.

  • Downloading in .txt format separated by comma

    Hello everyone,
    In order to download an internal table in .txt format separated by comma (,) , I am using :
    1.        SAP_CONVERT_TO_CSV_FORMAT
    2.       GUI_DOWNLOAD
    The problem is that the file downloaded is separated by ; and not comma.
    I am not passing any Filetype in GUI_DOWNLOAD and the extension is .TXT.
    I dont want to use REPLACE ALL OCCURANCES OF  before calling GUI_DOWNLOAD.
    Can someone plz suggest another way ?
    Thanks

    CONSTANTS :  c_delim TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
    CONCATENATE   'Physical Inventory Document'
                    'Item '
                    'Material '
                    'Material Description'
                    'Material Group'
                    INTO wa_excel_dwnld-line
                                   SEPARATED BY c_delim.
                   APPEND wa_excel_dwnld TO it_excel_dwnld.
                   CLEAR: wa_excel_dwnld.
    LOOP AT it_output INTO wa_output.
    CONCATENATE   wa_output-iblnr
                      wa_output-zeili
                      wa_output-matnr
                      wa_output-maktx
                      wa_output-matkl  
                     INTO wa_excel_dwnld-line
                           SEPARATED BY c_delim.
        APPEND wa_excel_dwnld TO it_excel_dwnld.
    ENDLOOP.
    CLEAR wa_excel_dwnld.
    DATA: l_flname     TYPE string,
                          l_string     TYPE string.
    MOVE p_file TO l_flname.
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = l_flname
          filetype                = 'ASC'
          write_field_separator   = '#'
        TABLES
          data_tab                = it_excel_dwnld
        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.
    Download in CSV if you want comma separated file.
    Revert if you need any more help.

  • Need to Download Smartform Data from OTF format to CSV file

    Hi,
      I need to download smartform data from OTF format to CSV file. Is there any Function module to download Smartform data from
      OTF format to CSV file.
    Regards,
    Selvapriya S.

    Not that I know of.  There is a lot of data in the OTF file besides the field values you are printing (formats, headers. positions, fonts, etc).
    You might be able to use the CONVERT_OTF function module and take the default format of 'ASCII'.  Once it is converted to an ASCII data format, you might be able to write some ABAP code to strip off the extraneous data and parse the fields you need.

  • Download SmartForms in SAP R/3 4.6d / 4.7

    Sorry if this posted in the wrong place.
    My customer is using Smartforms with SAP R/3 4.6d and 4.7. I need to get a sample of SmartForms from them. I am not sure if that version of SAP allows users to download/upload SmartForms in XML format. If not, what format it will be downloaded?
    I know Netweaver 2004 is able to download SmartForms in XML but I am not if SAP R/3 4.6d and 4.7 is able to do so...Can someone please advice me?
    Thanks and best regards,

    In 46C you can only download them (I guess it's the same for 46D), in 4.70 / 6.20 you can download and upload them via the Utilities menu.
    Peter

  • Txt format in a file created by the Payment Medium Program

    Hi,
    I need some help with a query from Payroll France.
    They use the transaction PC00_M06_FFOT (program RFFOF_V) to transfer payment data to banks.
    This program creates a txt file that is accessible to the payroll and accounting teams. This file is stored on local discs and as txt format it can be modified.
    The last audit pointed to this as a potential issue. The data in this file is very sensitive and shoud be secured against any modification.
    The program is SAP standard and the txt format is compliant with the system used by banks. That is why I am not sure if the file format can be modified. We were thinking perhaps a PDF fike would be an option. However, our Development do not want to touch at the change before we know if this will not be a problem for the banks' system.
    I've created a note for SAP about already but they say it is not really an error and in fact beyond their scope.
    Would appreciate some advice from you.
    Thanks,
    Monika.

    Monika :
    When running payment transfer to the bank (i.e. RFFOT or RFFOV), you have an option to either have the output file created (at application server) or a temse file created (which you would go to DME management to process downloading to a file (e.g. in your local PC machine).
    Having the ACH file created on application server site usually should be quite secure in my opition (first of, not many ee should have access to application servers; second, you can control not to allow non-authorized personnel to access to certain directories in application server; third, usually, when ACH file is created, it usually will be picked up by an automate process to send the file to the bank (rather than manual process)) .  Just my thought on your audit issue .
    Rgds.

  • Download Spool in list Format

    Dear Friends,
       While downloading the spool job into the GUI,i want to download it into list format as appearing in sap,rather than excel pdf or txt.Please suggest.Also when using downloading to PDF format,the width is not getting adjusted.Please Help.
    Thanks in Advance

    Hello Susan.
    When you perform the download to PDF, SAP uses the SAPWIN printer driver. When you print with a defined SAP printer, uses PCL driver. Maybe that's why you have different width comparing both printings. This is for SAP forms (Sapscript, Smartfomrs). It could be the same for list format. Please, refer to note 183948.
    I don't know how to download to list format. Sorry.
    Hope this would help you.
    Regards,
    Andrés Sarcevic.

  • Is there a way to download data into CSV format?

    Is there a way to download data into CSV format?
    I can't do this using delimiter as ',' because user wants the decimal format in the ','s only.
    Any suggestions?

    go through this link...
    Download CSV file in presentation server through FM GUI_DOWNLOAD
    Re: how to create a CSV file
    type-pools:TRUXS.
    data: begin of itab occurs 0,
          vbeln like vbap-vbeln,
          posnr like vbap-posnr,
          end of itab.
    data:  itab1 type TRUXS_T_TEXT_DATA.
      select vbeln
             posnr
             up to 10 rows
             from vbap
             into table itab.
    CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
    EXPORTING
       I_FIELD_SEPERATOR          = ','
      TABLES
        I_TAB_SAP_DATA             = itab
    CHANGING
       I_TAB_CONVERTED_DATA       =  itab1
    EXCEPTIONS
       CONVERSION_FAILED          = 1
       OTHERS                     = 2
    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
          filename = 'C:TEMPtest.TXT'
        TABLES
          data_tab = itab1
        EXCEPTIONS
          OTHERS   = 1.

  • Downloading smartform as pdf (protecting)

    Hi,
       I have downloaded smartform contents into a pdf file.
    Is there any way to protect the document like setting a password for the document.
    That is,i have downloaded that pdf.while opening it must want to ask a password before opening.Is it possible via SAP.
    Anybody plz help me

    Hi Ramya
    Refer this link
    Re: Smartform in pdf format.
    Thanks,
    Syf

  • Hi, I have converted different smartforms to pdf format.How to combine pdf?

    Hi All,
    I have converted different smartforms to pdf format. How to combine all the pdf's into single pdf.
    I need all the smartforms to be in single pdf.
    Please help me in this regard.
    Thanks in advance.

    Hi Keshu,
    Individual pdf should be sent to individual user.
    And at last all the pdfs of the smartform should be combined into one.
    And admin have the provision to download it .
    I mean the requirement is
    For example.
    For the month of september i will generate Pay Slip to each employee. And each pdf will be send to corresponding employee.
    And finally all the pay slips of all the employees will be combined into single PDF and admin will download it and keep it for reference.
    So as of now. I have generated individual pdfs and mailed it accordingly.
    But how to combine it into one PDF is my question.
    Please help me in this regard.
    Thanks in advance.

  • Downloading Smartform in PDF

    While downloading smartform into PDF the character formatting such as "BOLD, UNERLINE,ITALIC" are not reflecting in the PDF document.
    The following function modules are used for downloading:
    1)'CONVERT_OTF'
    2)'GUI_DOWNLOAD'
    The printer used is 'LOCL' (Local Windows Printer).

    hi friend,
    plz Check if the smartstyle for the  respective smartform is transported or not.
    Regards,
    K.S.Kannan

Maybe you are looking for

  • Logical System and Client copy

    Hi Gurus ,              I just now finished ECC 6.0 successfully , I want to take the client copy . But i hacve one doubt , In client creation one TAB logical system is there , Kindly advice me how to create Logical system and steps . Regards Selvan

  • ITunes on locked disk?

    Just got new computer and created a new user account on it but now I cant use iTunes. Get error message saying it's on "locked" disk! I'm the Admin and the sole owner on computer. Help!

  • Table to find Opportunities based on Activities

    Hi I have a requirement wherein I need to retrieve opportunities based on Activities. Could you please let me know in which table can i find the relation between these two ? (or) do we an FM? Best Regards Anil

  • Sales order list according to docu. type

    HI, How I can get list of sales order according to document type? Regards, Chetan.

  • Post tax in advanced customer payment

    can we post tax in F-29 down payment?  i check FBKP and found it is impossible. also can we post to liability account instead of AR reconcillation account in F-29? I checked the FBKP, the Special G/L account needs to be reconcillation. Any solution i