Submit in background

Is there any program to submit in background,  ALV report?
I tried in job_open and job_close, but nto worked out.

Hi,
You need to use the following function modules:
- JOB_CREATE - create the job
- JOB_SUBMIT - add a step in the job
- JOB_CLOSE - to pass the job to the background processing subsystem
Alternatively, you can use SUBMIT... VIA JOB, which is easier but gives you less control.
MJ

Similar Messages

  • Submit report background ------ problem

    Hi Friends,
    This is regarding submit program in background.
    I am calling program  like this..
              SUBMIT   ZXXXX
         VIA JOB name NUMBER number
         WITH P_MODE    EQ 'N'
         TO SAP-SPOOL
         SPOOL PARAMETERS print_parameters
         WITHOUT SPOOL DYNPRO
         AND RETURN.
    With this Job is creating successfully and status showing finished. But it seems program was not executed. no action has performed. time taken is 0 seconds
    the same code I tested in debug mode by commenting 
    *     VIA JOB name NUMBER number
    in the above statement.
    it is working fine. could you pls help me I want submit my program in background.
    for your information. Before submit I am using function module JOB_OPEN.
    and after submit I am using JOB_CLOSE.
    Pls help me. very urgent.
    Thanks in advance.
    Raghunath

    You can check the job status in SM37. Here is a working example, see what's different in your code:
    CONCATENATE 'Z' p_vkorg '_POST_RETURNS' INTO jobname.
      CLEAR jobcount.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname  = jobname
        IMPORTING
          jobcount = jobcount.
      IF sy-subrc <> 0.
      ENDIF.
      SUBMIT ...
              WITH p...
              VIA JOB jobname
              NUMBER jobcount
              USER user_name
           AND RETURN.
    * Close the job and run immediately
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount  = jobcount
          jobname   = jobname
          strtimmed = 'X'.            " Start immediately

  • No result  when I submit in background job a Z transaction

    Hi,
    I design a screen with the screen painters for my Z report instead of using SELECTION-SCREEN command to build my screen of selection. In the PAI process, I launch the same report in backgound with JOB_OPEN,SUBMIT, JOB_CLOSE and nothing happens. I go to SM50 and no job is found and SM37 confirm me thatt the job has been launch and terminate without error.
    My report, when the background checkbox is checked, launch it-self in background to insert rows in 2 Z tables. Theses 2 tasks take time and are not possible to process in foreground and the user can't wait after the result. That is why I Submit my report in background.
    I made it in another program with a selection screen built with SELECTION-SCREEN command and I never had this problem.
    It is possible to do a selection screen with the screenpainters and launchable in background or it is only possible with SELECTION-SCREEN command.

    JOB_OPEN,SUBMIT, JOB_CLOSE and nothing happens. I go
    to SM50 and no job is found and SM37 confirm me thatt
    the job has been launch and terminate without error.
    In SM50 you can see the jobs only while they are running. Since there is an entry in SM37, it means that the job has been initiated, so something did happen. Check the job log for the details (I strongly advise to add some messages in your program to track the progress).
    You might also want to take a look at the FM SUBST_START_REPORT_IN_BATCH. Here is a code example that I've just written recently to force the report execution in the background (a message is displayed to the user but the report runs in a backrgound job):
    PARAMETERS: p_vkorg TYPE tvko-vkorg OBLIGATORY MEMORY ID vko.
    DATA: rspar TYPE TABLE OF rsparams,
          wa_rspar LIKE LINE OF rspar.
    START-OF-SELECTION.
    IF sy-batch IS INITIAL.
      wa_rspar-selname = 'P_VKORG'.
      wa_rspar-kind = 'P'.
      wa_rspar-low  = p_vkorg.
      APPEND wa_rspar TO rspar.
      CALL FUNCTION 'SUBST_START_REPORT_IN_BATCH'
        EXPORTING
          iv_repname                          = sy-repid
        TABLES
          tt_reportparam                      = rspar
       EXCEPTIONS
         variant_exist_check_failed          = 1
         variant_update_failed               = 2
         variant_update_not_authorized       = 3
         variant_update_no_report            = 4
         variant_update_no_variant           = 5
         variant_update_variant_locked       = 6
         variant_insert_failed               = 7
         variant_insert_not_authorized       = 8
         variant_insert_no_report            = 9
         variant_insert_variant_exists       = 10
         variant_insert_variant_locked       = 11
         variant_write_failed                = 12
         no_batch_service                    = 13
         no_server_list                      = 14
         batch_scheduling_failed             = 15
         OTHERS                              = 16
      IF sy-subrc = 0.
        MESSAGE ‘Report started in background’ TYPE ‘I’.
      ELSE.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ELSE.
    <do stuff here>
    ENDIF.
    SUBST_START_REPORT_IN_BATCH actually calls JOB_OPEN, JOB_CLOSE but I just find it easier to use one FM instead of 2-3.

  • How to use Submit in background when report name is not static

    Hi all,
    I have an FM to which report name is being sent as an input parameter.
    So based on the report name I need to call that particular report in background and send the output as a HTML format to dealer's MAIL ID which is also sent as an input param.
    The logic for sending mail in background is achieved.
    I am using the followinf logic to submit the job.
    SUBMIT wf_report USER user_id VIA JOB lv_jobname NUMBER lv_jobcount
        to sap-spool immediately ' '
                         without spool dynpro
        WITH SELECTION-TABLE tb_seltab AND RETURN.
    wf_report holds the dynamic value of report.
    Here, tb_seltab holds various parameters and select-option values.Since I cannot pass a table to JOB_SUBMIT fm i had to use the SUBMIT statement.
    But the program dumps coz we need to explicitly mention the name of the program in the submit statement.
    Is there any other possibility to acheive this req when the report name is not going to be hardcoded?
    Thanks in advance.
    Regards,
    Chandra.

    You forgot the basics of using the SUBMIT.
    try like this it will work
    SUBMIT (wf_report ) USER user_id VIA JOB lv_jobname NUMBER lv_jobcount
    to sap-spool immediately ' '
    without spool dynpro
    WITH SELECTION-TABLE tb_seltab AND RETURN.
    Rhea.

  • SUBMIT and BACKGROUND Processing

    Dear ABAPers,
           I have created the BDC Program.I want to run this in Background job.
    I want to call this program using SUBMIT Statement.How to do this.I
    Thanks & Regards,
    Ashok.

    HI,
    REPORT zzreport1.
    DATA text TYPE c LENGTH 10.
    SELECTION-SCREEN BEGIN OF SCREEN 1100.
    SELECT-OPTIONS: selcrit1 FOR text,
    selcrit2 FOR text.
    SELECTION-SCREEN END OF SCREEN 1100.
    Calling program
    REPORT zzreport2.
    DATA: text TYPE c LENGTH 10,
    rspar_tab TYPE TABLE OF rsparams,
    rspar_line LIKE LINE OF rspar_tab,
    range_tab LIKE RANGE OF text,
    range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind = 'S'.
    rspar_line-sign = 'I'.
    rspar_line-option = 'EQ'.
    rspar_line-low = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign = 'E'.
    range_line-option = 'EQ'.
    range_line-low = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign = 'E'.
    range_line-option = 'EQ'.
    range_line-low = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
    WITH SELECTION-TABLE rspar_tab
    WITH selcrit2 BETWEEN 'H' AND 'K'
    WITH selcrit2 IN range_tab
    AND RETURN.

  • Submit button background

    Can I change the color of the background area that surrounds the submit button?

    The color of both the form Header and Footer are controled by the form header properties.  To change the color click on the top of the form where is says "Click to add header" (if you do not already have one).  In the Header Properties setting pallet that appears select the color you would like the Header/Footer to be. 
    Jeff Canepa
    Software Quality Engineer
    Adobe Systems, Inc.
    [email protected]

  • Problem with SUBMIT in Background

    Hi,
        I want to pass a internal table data to 2nd program from 1st program. I am using SUBMIT 2nd program and i am getting results in foreground , i am not getting in back ground .
    will you face this sort of problem ever.
    Please help me .
    Thanks in advance .
    Balaji.

    Hi Balaji,
    Please check this sample code.
    DATA: number TYPE tbtcjob-jobcount,
          name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    Hope this will help.
    Regards,
    Ferry Lianto

  • "cannot submit to background processing" while converting

    Post Author: PAyalon
    CA Forum: .NET
    Hi.
    In my web application I export reports to PDF, it's works fine on dev server, but throws exeption on IIS:
    "Error in File C:\WINDOWS\TEMP\temp_0d804620-e578-40f0-947e-7bd11af7e3a4.rpt: The request could not be submitted for background processing."
    I gave already all permissions to IIS_WPG and ASP.Net user but it still do not work.
    On my develop machine (win Xp) both servers work fine.
    My be I have a problem with license, course my test machine is server with 2 processors?

    Thanks, after a looooong night of re-installing
    back from DVD to 10.4, then up to 10.43,
    then re-installing FCP 4 and DVDSP 3, and doing all patches, both my Compressor 1.21 works great as before, and I got my printer settings back.
    An added bonus: 10.4 dumped my "processor" control panel, but A.Pack is working fine now, with BOTH processors! I guess with Tiger, you
    no longer need to utilize the "turning off of one processor fix" for A.Pack?

  • Can we submit the module pool code in background as a job.

    Hi All,
    Is there any possiblity that, we can capture the module pool program screen element, and run the process in background as a job using the same logic as module pool program.
    In other words, can we have any feasible solution to have push button on the transaction screen of a module pool  program, after clicking which, it will capture all the screen elements of module pool program and using the same logic of module pool program it will submit a job in background and process the data.
    Any hep will be appreciated.
    Thanks in adv.
    Regard,
    Vivek.

    Hi Prasenjit,
    Thanks for your reply.
    My question is, can we use "SUBMIT" statement in module pool program so as it will submit job in backgroung.
    The same logic of module pool we will write in executable statement and submit in background using SUBMIT. will this thing is feasible. I am trying the same. Anyways thanks.
    Regards,
    Vivek

  • Not getiing  spool if zprogram excutes in background which calls a submit

    Dear All,
    I have two programs with same selection screen , one is a z one and the other a standard one .
    i am calling the standard program from my z program using Submit with some restriction value in the selection screen of the standard program.
    Everything is OK , now the thing is i am not getting a spool in SM37 when i execute the z report (which calls the standards program with submit) in background .
    I want in  the one  spool like i am getting if i execute the standard program manually in background.
    Regards

    Hi Try this way..
    now it creates two spools...
    **** Subroutine to get the print parameters
      PERFORM get_print_parameters.
      CONCATENATE 'QU'
                   sy-datum+4(4)
                   sy-uzeit INTO
                   wa_pri_params-plist.
    *   Submit report in background and creating spool
      SUBMIT <Reportname> USING SELECTION-SET p_var
          TO SAP-SPOOL WITHOUT SPOOL DYNPRO
          SPOOL PARAMETERS wa_pri_params AND RETURN.
      COMMIT WORK AND WAIT.
    *   To fetch the spool number from TSP01 table
      IF sy-subrc EQ 0.
        SELECT rqident
               FROM tsp01
               INTO p_spool
    *             UP TO 1 ROWS
               WHERE rq2name = wa_pri_params-plist.
        ENDSELECT.
      ENDIF.
    FORM get_print_parameters .
    * Function Module to get the print parameters
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          destination            = 'BC01'                       "'LP01'
          list_name              = 'TEST'
          list_text              = 'SUBMIT ... TO SAP-SPOOL'
          immediately            = ' '
          line_size              = '2000'
          no_dialog              = 'X'
        IMPORTING
          out_parameters         = wa_pri_params
          valid                  = w_valid
    *** Begin of insert PJ051810
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
      IF sy-subrc <> 0.
        WRITE : 'Invalid Printer assigned'.
      ENDIF.
    *** End of insert PJ051810
    ENDFORM.                    " GET_PRINT_PARAMETERS
    Prabhudas

  • How to submit a ALV report in background

    Can you provide a peice of code to submit an ALV report in background?
    and is it possible to provide a  header information  dynmically, (changing when we say page down) in ALV?

    Hello,
    you can submit in background as a normal report.
    If you want to get the header informations. Handle through events. Events can be handle through registring the Event handler method.
    Eg:
    Events
        CREATE OBJECT eventhandler_object.
    register eventhandler
        SET HANDLER  eventhandler_object->handle_print_top_of_list
         FOR g_o_grid.
    CALL METHOD g_o_grid->set_table_for_first_display
    Reward if helps.
    Thanks,
    KrishnaKumar

  • Submit batch job daynamically using batch user id

    Hi,
    I need to submit the background job dynamically from ABAP program with BATCH user id.
    I have created new program. Users will execute program in foreground.
    Had issue with USER id. If I give my user id then batch job successfully creating. If I give u2018BAICHu2019 id then it is giving the error.
    Am I doing any thing wrong here?
    Code:
    Open Job
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname  = jobname
        IMPORTING
          jobcount = w_jobcount.
        SUBMIT zrufilep WITH p_file1 = sourfile
                        WITH p_file2 = destfile
                        VIA JOB jobname NUMBER w_jobcount
                        USER 'BATCH_FI'
                        AND RETURN.
    Schedule and close job.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              jobcount  = w_jobcount
              jobname   = jobname
              sdlstrtdt = sy-datum
              sdlstrttm = sy-uzeit.
    Thanks

    Can any body tell me if that authorization is given to the user, can he submit any other job from front end?
    As you can see if he can, it will conflict security issues of business. So If he is not permitted to execute these kind of statements in any other program, would he be confined to using diff user in this program only?
    Or is there any other way-out to confine the user for getting this authorization for a single T-code or such?

  • BACKGROUND PROCESSING, REPORT NOT LOADING, "OBJECT NOT SET TO INSTANCE..."

    Post Author: thecoffeemachine
    CA Forum: .NET
    I already posted this message in other Web sites, but I am almost getting crazy here and I need help:
    HI:
    The Web application I am testing was having several issues related to loading Crystal Reports. It was fixed and I do not know which of the 1000 things I did to fix it; but now it began, again, to have the same behavior after I had a conflict with another Web site that was in the same server.
    The thing is that I had another virtual directory where resided a copy of the same Web app. for testing purposes/working with the Visual Studio. The reports were loading all fine, very fast, all perfect... And suddenly the assemblies of one Web site and the other began to "blend" together and..... well the same behaviors appeared again. I tried to copy the last stable backup and rebuild the Web app... but it did not work.
    At the very first time that one requests the report, it shows without problem. At the second time it shows an error message related to "cannot submit to background processing", and sometimes "object not set to an instance.." ... and on the third time it just never shows up and the app. becomes unresponsive. I have to close the window and request the Web site again in another browser window. If I wish to see the report again I have to wait for hours until it shows it.
    I am using Visual Studio 2003 and the Crystal Report version that was shipped with that Visual Studio version. I am working with Windows Server 2003 and SQL Server 2000. Below is the VB code:
        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load             Me.SqlConnection1.Open()
           Me.SqlSelectCommand1.Parameters("@CourseCode").Value = Request.QueryString("CD")         Me.SqlSelectCommandReferences.Parameters("@CourseCode").Value = Request.QueryString("CD")         Me.SqlSelectCommandTextbook.Parameters("@CourseCode").Value = Request.QueryString("CD")         Me.SqlSelectCommandObjectives.Parameters("@CourseCode").Value = Request.QueryString("CD")         Me.SqlSelectCommandTopicData.Parameters("@CourseCode").Value = Request.QueryString("CD") Me.SqlSelectCommandCourseOutcomes.Parameters("@CourseCode").Value = Request.QueryString("CD")
            Me.SqlDataAdapterMainData.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseSyllabusData")         Me.SqlDataAdapterReferences.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseReferenceData")         Me.SqlDataAdapterTextBook.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseTextbookData")         Me.SqlDataAdapterObjectives.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseObjectivesData")         Me.SqlDataAdapterTopicData.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseTopicData")
    Me.SqlDataAdapterCourseOutcomes.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseOutcomes")
            Dim myExportOptions As CrystalDecisions.Shared.ExportOptions         Dim myDiskFileOptions As CrystalDecisions.Shared.DiskFileDestinationOptions         Dim myExportFile As String         Dim myReport As New ABETFormat         myReport.SetDataSource(Me.DtsSyllabusCompleteData1)
            myExportFile = "C:UNTempPDF" & Session.SessionID.ToString & ".pdf"         myDiskFileOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions         myDiskFileOptions.DiskFileName = myExportFile         myExportOptions = myReport.ExportOptions
            With myExportOptions             .DestinationOptions = myDiskFileOptions             .ExportDestinationType = .ExportDestinationType.DiskFile             .ExportFormatType = .ExportFormatType.PortableDocFormat         End With
            myReport.Export()
            Response.ClearContent()         Response.ClearHeaders()         Response.ContentType = "application/pdf"
            Response.WriteFile(myExportFile)         Response.Flush()         Response.Close()         System.IO.File.Delete(myExportFile)         Me.SqlConnection1.Close()
        End Sub
    I already have tried moving the Crystal Reports dll´s to the bin directory. ..... I have tried calling the Garbage Collector at page unload...I also have checked, inside the report, that the database is "up to date"... ... recycling the worker process of the IIS... etc...
    I see that, in debbuging mode inside the Visual Studio, when the page loads the debbuging window shows a message notifying that the symbols related to the Crystal Reports dll's could not be loaded.
    Should I need to modify the default properties of the database? I checked "database is case insensitive", "use indexes or server for speed".. I have tried checking and unchecking the box "performing grouping on server"
    Oh by the way, my report has about 4 subreports in it. Each report loaded shows 1 or 2 pages.
    ANY HELP WILL BE EXTREMELY APPRECIATED....
    MMS

    See  [Crystal Reports For Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23&overridelayout=true] article, page 107 and on for details on how to use Crystal reports in session.
    Ludek

  • How to transfer large transactional tables from RFC to background ABAP?

    Which is preferrable to use ABAP memory, SHARED MEMORY/BUFFER or SHARED ABAP OBJECTS in my scenario:  I have an external application sending two tables to an RFC.  The tables are made up of transaction data and can approach 1 GB in size.
    The RFC times out, since it is a dialogue process. Therefore, I programmed the RFC to SUBMIT a background job VIA JOB.
    QUESTION: How to import internal table into a program that was submitted via JOB?
    Do I have to use SHARED MEMORY/SHARED BUFFER, or can I still use ABAP memory?
    Can I send a table in a parameter in SUBMIT WITH construct?
    An issue I have encountered is that the result of the IMPORT FROM SHARED BUFFER constructu  is not consistent in consecutive executions. Why would the result of the  IMPORT be inconsistent if the code is exactly the same and the data is exactly the same?
    FYI I am building the memory ID dynamically and then sending in SUBMIT WITH parmeter?
    Please don't post links to SAP HELP documentation.. I have read it, re-read it and read it again.
    I really need expert experience, not generic documentation.
    Thanks in advance.

    Hi here is an example for the submit command use,
    You can call one selection screen from other selection screen program using SUBMIT command.
    The syntax is as follows -
    codeSUBMIT... VIA SELECTION-SCREEN
    USING SELECTION-SET <var>
    WITH <sel> <criterion>
    WITH FREE SELECTIONS <freesel>
    WITH SELECTION-TABLE <rspar>.[/code]
    e.g.
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    codeREPORT demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS paramet(14) TYPE c.
    SELECT-OPTIONS selecto FOR number.[/code]
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    codeREPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
    rspar TYPE TABLE OF rsparams,
    wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
    / 'Selection 2'.
    AT LINE-SELECTION.
    CASE sy-lilli.
    WHEN 4.
    seltab-sign = 'I'. seltab-option = 'BT'.
    seltab-low = 1. seltab-high = 5.
    APPEND seltab.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH paramet eq 'Selection 1'
    WITH selecto IN seltab
    WITH selecto ne 3
    AND RETURN.
    WHEN 5.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
    wa_rspar-low = 14. wa_rspar-high = 17.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
    wa_rspar-low = 'Selection 2'.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
    wa_rspar-low = 10.
    APPEND wa_rspar TO rspar.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH SELECTION-TABLE rspar
    AND RETURN.
    ENDCASE.[/code]
    => To leave a called program, you can use SUBMIT .... AND RETURN. by choosing F3 or F15 from list level 0 of the called report.
    Hope this helps.
    regards,
    venkat

  • How to pass an internal table to "submit job"

    Dear Expert,
    I use open_job & close_job to submit a background job.
    A text file is to be uploaded from local drive.
    Since we cant perform upload during the background,
    I will have to upload the file from local drive in foreground, and then submit to the background job.
    I tried to use Export [internal table] to memory and Import from  the background job, it doesnt work.
    How can I do this ??
    Thank you.

    hi ,
    you can do this using the open dataset...
    i think it is the best one..
    open dataset p_file  for input in text mode encoding default .
    loop at p_file.
    output0(10) = p_file0(10).
    output10(20) = p_file20(10).
    output30(10). = p_file30(10).
    output40(10). = p_file40(10).
    endloop.
    close p_file.
    regards,
    venkat.

Maybe you are looking for