Exporting Local File in background

Hi,
  I want to export a flat file in background mode. I am currently using WS_DOWNLOAD but this doesn't work in background. What I think is that I will save it in UNIX directory. Can you please give some sample codes for this? or if there's still a way using WS_DOWNLOAD to do this in background?
I appreciate your response.
Thanks!

Use the transaction CG3Z to upload your file into application server.
Then you can use
open dataset.
transfer dataset.
close dataset.
commands to access that file from application server.

Similar Messages

  • Read local file in background

    hi everyone,
    i need to read local file in background,
    wich function do i need to use?
    thanks,
    dana.

    if you are reading in background file needs to be on application server.
    you can use following function modules.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
    OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
                          MESSAGE MSG_TXT.
    IF SY-SUBRC NE 0.
      WRITE: 'Err', MSG_TXT.
      EXIT.
    ENDIF.
    LOOP AT INT_TAB
    *your code
    ENDLOOP.
    Closing the File
    CLOSE DATASET FILENAME.

  • F.31- Missing List - Export - Local File Option

    Hi Guys,
    We have just upgraded to ECC6.0 from 4.6 . An issue we encountered is that one of the methods of exporting the data from F.31 is now grayed out. This is via List->Export->Local file.
    Also in the previous version we do have a Statistics at the end of the report, which is not available anymore.
    So I'm wondering if this is just by SAP design? Does anyone with ECC6.0 have use of the List->Export->Local file feature?
    Thanks

    Hello,
    Check mentioned SAP note ,which can guide you.
    1406744 - RFDKLI40, RFDKLI41: Unsupported functions available in menu
    Rgds
    Mani

  • Update table form local file as background Job

    Hi Expert,
         I have a requirement to update a database table through Text file in a background. I am trying to do through OPEN Database to upload the file to Application server and then triggerind a event for background job. please provide method to update the table in background job.
    Regards,
    Kapil.

    hi,
    if i have understood you can try this:
    1) create a custom event with transaction SM62.
    2) schedule the update job ( with the update program in its step )  trigging the event set in (1) .
    3) execute the program that upload the local file from presentation server to application server  .  The last istruction of this program has to be the call ot the custom event using BP_event raise fn module in the uplaoad is ok..
    4) if the event has been raised, the background job has been executed.
    Regards, luigi.

  • SE16N Export Local File - Header Line Every 60,000 Records

    Good Day,
       After a recent system upgrade to SAP ECC 6.0 Release 701, Level 007 (from Level 004), we received word that exporting to a local file from SE16N now creates a header line after every 60,000 records.  This occurs on both SAP GUI 7.10 Patch 15 and SAP GUI 7.20.
       We found notes 1309128 and 1017586, but our service pack level already implements the correction instructions listed. Is there a parameter (either system wide or SAP GUI specific) that needs to be set to disable the header lines? Is there anything else that we can check?
    Thank you for any help you may be able to provide!

    Hi,
    Sure it is unusual.
    have you checked whether the "header" was not repeated in the internal table itself?
    Best regards,
    Guillaume

  • Local file in background mode

    Hi experts,
    Is it possible to upload data from local drive(presentation server) to sap in background mode.
    As I know ,in the background mode we can upload files from application server only.
    but here my functional consultant saying they did  upload data from local drive to sap in background mode.
    please suggest.
    thanks in advance.
    sastry.

    hey,
    Yes it can be made possible,
    The only way to access files in a background job is to have them on the application server and opened via OPEN DATASET or similar.
    *--Local Variables
    DATA : l_file TYPE string,
    l_line TYPE string,
    l_index TYPE sy-tabix.
    *--Clear
    CLEAR : l_file.
    l_file = p_ipfile.
    *--Read the data from application server file.
    OPEN DATASET l_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    *--Error in opening file
    MESSAGE i368(00) WITH text-005.
    ENDIF.
    *--Get all the records from the specified location.
    DO.
    READ DATASET l_file INTO l_line.
    IF sy-subrc NE 0.
    EXIT.
    ELSE.
    SPLIT l_line AT cl_abap_char_utilities=>horizontal_tab
    INTO st_ipfile-vbeln
    st_ipfile-posnr
    st_ipfile-edatu
    st_ipfile-wmeng.
    APPEND st_ipfile TO it_ipfile.
    ENDIF.
    ENDDO.
    Regards,
    Midhun Abraham
    Edited by: Midhun Abraham on Oct 8, 2008 4:36 AM

  • F. 31 List Export local file_, =  *local file* became greyed out

    Hi,
    Recently we have Upgraded our SAP system with  EHP5, after that in T.code F.31 after executing, we are unable to down load the file as its grayed out,
    F. 31 > List > Export > local file, =  local file became greyed out  after upgrade. the user unable to download this file,
    please post your suggestion ASAP.
    Thanks in Advance.

    Hi,
    Try by Ctrl + Shift + F9, other wise download it from table KNKK,same information lied in to this table.
    Regards
    Ram

  • Runtime Error during export ALV Grid to Local File and Print Priview

    Hi all,
             While Exporting ALV grid to local file using menu List->export->local file , I m getting following runtime error,
             Field Symbol has not yet been assigned.
    Details of Errors:
    Program : SAPLKKBL
    Include :   LKKBLF99
    Module Type : (FORM)
    module name : GEN_FIELD_OUT2
    So. pls Suggest any good solution.
    Thanks & Regards,
    Sandip Sonar.

    hi
    this is happening just because you might have declared that your ALV list should have a checkbox, but defined no field as "checkbox" into your internal table.
    and one more thing to check up is that before you call the REUSE_ALV_GRID_DISPLAY, you need to fill a few parameters for instance is_layout. This one has a field box_fieldname, in which you have to enter the name of the field of the internal table that will store the 'X' as and when the checkbox is checked.
    hope this helps
    regards
    Aakash Banga

  • Exporting to a local file

    Hi,
    I have written a report and when i export the output to a local file (using: list - export--local file) it gives me short dump: GETWA_NOT_ASSIGNED.
    Thank you.
    Regards,
    Fred.

    Hi Fred,
    There is no need to use any function module for this requirement. As your report is a ALV report, you can use the standard toolbar of ALV for this purpose.
    There is a Export button present on the toolbar.You can proceed this like this:
    Export>Local File>spreadsheet(any from options)
    So you can tell your client to use this export button in toolbar for downloading purpose.
    Hope this solves yours problem.
    Regards,
    Brajvir

  • Export alv grid to local file

    Hi all,
             I m displaying records using ALV Grid , I want to export that ALV Grid to Local File ,
    using Menu->List->Export->Local File.
           I m able to export it in spreadsheet using option List-> Export->Spreadsheet, but while exporting to local file i m getting short dump with error  *Field Symbol Has not yet been Assigned*.
    Pls, Suggest any good Solution.
       Thanks & Regards ,
      Sandip Sonar.

    hi,,,,
    In your output are there any empty Columns, Because field Symbol Not assigned generally occurs if any one of your Internal table column is Blank, Just remove that Blank Column and then try it.
    Thanks
    Saurabh

  • Downloading Report output to a Local File

    Hi,
    I want to download the my ALV Report output to a local file.
    I am following the menu options from ALV output:
      LIST --> Export --> Local File --> Unconverted Format  --> I entered a text file name on the desktop.
    The data is being downloaded to Local text file, but some columns are missing.
    I don't know what is the reason?  Can anybody tell what may be the reason?
    Has anybody come across this issue earlier?
    Please let me know the solution.
    Thanks in advance,
    Sreenivas Reddy.

    Hi vik,
    I have followed the same steps
       LIST --> Export --> Local File --> Here I enter test.xls file on the desktop.
    I am missing the same columns, The heading are displayed for all fields, but data for some initial columns are missing.
    Can you please through some light on this error.
    Thanks,
    Sreeni.

  • How to download the application file to local file by back ground job?

    hi:
      can any one tell me how to download the application file to local file by back ground job? thanks in advance..
    Monson

    Hi,
    In order to download a file from application layer to a local file in background,
    first write a report(ZREPORT1) in which do the following steps:
    OPEN DATASET g_file_1 FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    loop the g_file and append all the data into another internal table.
    end of this report you shd have all the data in the application layer file into your internal table.
    Now create another report(ZREPORT2) and submit this report in background.
    that is,
    JOB_OPEN
    JOB_SUBMIT and
    JOB_CLOSE
    and in job_submit submit ZREPORT1 which downloads the file in application layer.
    Please reward points if helpful.
    Regards,
    Arul.

  • List save as local file is greyed out

    Hi All,
    After the ECC upgrdation, Save as local file path is greyed out for certain t.codes like mmbe, mm60 etc ALV reports
    whereas it is okay with mb52, mm5b (normal report)
    Path to save as local file is  " System>LIST>Save---> Local file, office folders, report tree is greyed out
    Is this standard behaviour or a bug?
    Raj
    Edited by: Raj on Jul 9, 2010 2:27 PM

    You have Export option for MM60 report in ECC 6.0 in Menu List-Export-Local file and check.
    And for MMBe you will have to do some work to get this option. Go to MMBE and execute and in output screen there is a Print icon click beside this icon and you will get options call print preview of view click on it and it will show print preview from here you can go to list-save-local file
    Just check it once

  • SAP Reports downloads to local file - Don't have spreadsheet option.

    Hi Experts,
    We have problem to download data from SAP report to Excel.  From SAP Menu--> List--> Export--> Local file - Don't have spreadsheet option.
    Could you please advise why spreadsheet option from local file is removed after upgrade support pack EHP7? As you can see from screen shot below attached , there is no option for spreadsheet .
    Can't we get it restored as it used to be before ?
    Thanks

    Hello
    We had the same issue and this text was repalace by this option
    Please check the note 2031959 - "Text with Tabs" export format in download list
    Regards

  • Alv grid output to local file errror

    Hi Friends,
       I am using reuse_alv_grid_display to display alv report..
    I am having 176 fields to display.. When i click
    export-->local file.. dump error occurs..
    It saying field symbol has not yet been assigned..
        The termination occurred in the ABAP program "SAPLKKBL" in "GEN_FIELD_OUT2"
    But When download it with few fields it's not showing error..
    Is there any setting to clear this dump error help me sort out this problem..
    Regards
    Boobalan.S

    Hi,
    Looks like the system is unable to handle the number of fields.
    However, can you let us know the dump reason as given in the dump.
    Regards,
    Ravi

Maybe you are looking for

  • Sharing Itunes with another party on same computer

    I am currently sharing my itunes with my younger sister, on the same laptop, and she has her own different tast in music, as do I. So now, instead of listening to Death Cab for Cutie, I am stuck with her Pussycat Dolls, and Ludacris. I have tried dif

  • Trying to install a non IP'ed zone for snort

    I'm trying to install a zone that runs only snort. I want it to run on a non-IP'ed interface (bge1 in this case) Without zones I normally do a plumb and arp up and then start snort running on the non-IP'ed interface and it works fine. I've tried givi

  • Can't download Adobe Reader - IE8 crashes

    Hi, I am astonished that something as simple as downloading a file isn't simple.   Anyway, the problem I seem to experience is that IE8 crashes (or appears to crash) when trying to download Adobe Reader.   I had a very similar problem today with tryi

  • Missing tags

    PC reset; files restored from external hard drive but tags missing in Photoshop elements 11

  • F6 Option SATA controller

    Hello,  I have 6 new 6427-CTO  D10   I ordered them with Dos to save Money.  Using the  F6 option to load the SATA driver for XP Pro 64bit,  There are about 10 controller drivers to choose from.  None seem to work, the system hangs on   Windows start