Submit report to spool & import spool id

hi all.
   I want to submit the report to the sap spool & then import that spool number.
I want to use use SUBMIT statement.
give me the code

Hi,
use this 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.
From jobnumber you obtain the spool number.

Similar Messages

  • Submit report to spool,  from page 2?

    Dear experts,
    I need to send a report to spool via the "submit" command through my program, but I want to print pages from 2 to the end.
    SUBMIT rls10020 WITH s1_lgnum = lrf_wkqu-lgnum
                    WITH s1_lgtyp IN r_lgtyp
                    WITH s1_lgpla IN r_lgpla
                    WITH p_vari   = disvariant-variant
                    TO SAP-SPOOL
                    DESTINATION pri_params_pdest
                     IMMEDIATELY 'X'
                    WITHOUT SPOOL DYNPRO
                    AND RETURN.
    there seem to be no parameter available to send my request "FROM PAGE = 2".
    although if i send it to spool and go from sp01 to pint with changed parameters I can do it.
    Please help. Is there any parameter available for this?
    Thank you,
    Roxani Athousaki

    Hi,
    use this 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.
    From jobnumber you obtain the spool number.

  • CALL a report from WDA using SUBMIT to sap-spool

    Hi,
    I need to call a report from one of the methods of a WDA application.
    The out of this report is a sapscript. I want show it in WDA (PDF).
    The report is called when a user clicks EXECUTE button.
    The piece of the code is:
      call function 'GET_PRINT_PARAMETERS'
        exporting
          immediately            = 'X'
          new_list_id            = 'X'
          no_dialog              = 'X'
          receiver               = sy-uname
          release                = 'X'
          sap_cover_page         = 'X'
        importing
          out_archive_parameters = t_arcpar
          out_parameters         = t_pripar
          valid                  = i_valid
        exceptions
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          others                 = 4.
          submit hbrcced0
                          with pnppernr-low eq i_pernr
                          with pnpbukrs-low eq t_p0001-bukrs
                          with pnpbegda     eq i_begda
                          with pnpendda     eq i_endda
                          with p_expot      eq ''
                          with ano          eq v_gjahr
                          with respcc       eq v_sachn
                         to sap-spool
                         spool   parameters t_pripar
                         archive parameters t_arcpar
                         without spool dynpro
                         and return.
        if sy-calld eq ''.
          message 'err' type 'E'.
        else.
    If i execute this code in WDA, the sy-calld never is equal 'X'.
    But if i execute it in program (SE38) the sy-calld is 'X'.
    How i can call the program 'hbrcced0' in WDA ?
    Cheers,
    Silvio Galery

    Hi Silvio,
    a submit REPORT to spool does work from WDA.
    ONLY when "and return" is used.
    You have that, so it should work.
    Note you had print immediate on, so it will be output on printer,
    and not available to read after the call.
    (which option was the keep after print?, I would have to check docu)
    The sy-calld will be set to X  inside the REPORT when it is running.
    After the submit has run back inside WDA it is of course reset to space again.
    Cheers
    Phil.

  • Suppress spool in Submit Report

    Hi All
    I am doing a Submit Report in background in loop.
    I can check from the background job if the Submit was successful or not. But if it is successful I dont want any output in spool.
    By default it is creating a spool request for every Submit.
    But dont want any spool to be created as the submit will be executed no. of times.
    Kindly let me know if and how we can suppress the spool request. The code I have written is attached below.
    LOOP AT lt_t320a INTO ls_t320a.
               SUBMIT XYZ
                      WITH matnr   IN matnr
                      WITH werks   =  ls_t320a-werks
                      TO SAP-SPOOL SPOOL PARAMETERS print_parameters
                      WITHOUT SPOOL DYNPRO
                      VIA JOB job NUMBER jno
                      AND RETURN .
      ENDLOOP.
    Thanks in advance.
    Regards
    Prafulla

    Hi Narinder,
    I have tried without TO SAP-SPOOL but it doesn't work.
    Submit is automatically creating the spool request when run in background mode.
    Kind Regards
    Prafulla

  • Output of a report to spool

    Hi All,
    how to send output of a report to spool and output of of report should not be display  and i need spool number in status bar of the selection screen.all this function should happen when i exectute selcetion after providing varient in selection and selection secreen should not change and in staus bar i need spool number.
    thanks in advance

    Try this too
    Consider ZSPOOLTEST holds all your write statements.
    call ZSPOOLTEST from a program in this manner
    data: mstr_print_parms like pri_params.
    data: mi_rqident       like tsp01-rqident.
    call function 'GET_PRINT_PARAMETERS'
        exporting
          authority = space
          copies   = '1'
          cover_page                   = space
          data_set = space
          department                   = space
          destination                  = space
          expiration                   = '1'
          immediately                  = space
          in_archive_parameters        = space
          in_parameters                = space
          layout   = space
          mode     = space
          new_list_id                  = 'X'
          no_dialog = 'X'
          user     = sy-uname
        importing
          out_parameters               = mstr_print_parms
          valid    = mc_valid
        exceptions
          archive_info_not_found       = 1
          invalid_print_params         = 2
          invalid_archive_params       = 3
          others   = 4.
       if mstr_print_parms-pdest = space.
         mstr_print_parms-pdest = 'LOCL'.
       endif.
    submit (ZSPOOLTEST) to sap-spool without spool dynpro  "Include any selection screen entries if any
                        spool parameters mstr_print_parms
                        and return.
    perform get_spool_number using sy-repid
                                      sy-uname
                     changing mi_rqident.
    if mi_rqident is not initial.
    message s000(ZSD) with mi_rqident.     "Your message triggers here
    endif.
    form get_spool_number using f_repid
                             f_uname
                     changing f_rqident.
       data: lc_rq2name like tsp01-rq2name.
       concatenate f_repid+0(8)
                   f_uname+0(3)
         into lc_rq2name separated by '__'.
       select * from tsp01 where  rq2name = lc_rq2name
       order by rqcretime descending.
         f_rqident = tsp01-rqident.
         exit.
       endselect.
       if sy-subrc ne 0.
         clear f_rqident.
       endif.
    endform." get_spool_number

  • Writing a report to spool

    Dear all,
    I have a requirement to write the report output to spool. For that I have used the syntax, new-page print on and new-page print off. But in ECC 5.0 system is telling that the command is obsolate. Can you please suggest what can be done to write the output of a report to spool? Is there any function module available to write the output to spool?
    Thanks and regards,
    Atanu

    Hi,
    Example
    Without archiving
    DATA: PARAMS LIKE PRI_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LT50'
                COPIES                = COUNT
                LIST_NAME             = 'TEST'
                LIST_TEXT             = 'SUBMIT ... TO SAP-SPOOL'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 79
                LINE_COUNT            = 23
                LAYOUT                = 'X_PAPER'
                SAP_COVER_PAGE        = 'X'
                COVER_PAGE            = 'X'
                RECEIVER              = 'SAP*'
                DEPARTMENT            = 'System'
                NO_DIALOG             = ' '
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      SUBMIT RSTEST00 TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        WITHOUT SPOOL DYNPRO.
    ENDIF.
    Example
    With archiving
    DATA: PARAMS   LIKE PRI_PARAMS,
          ARPARAMS LIKE ARC_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION            = 'LT50'
                COPIES                 = COUNT
                LIST_NAME              = 'TEST'
                LIST_TEXT              = 'SUBMIT ... TO SAP-SPOOL'
                IMMEDIATELY            = 'X'
                RELEASE                = 'X'
                NEW_LIST_ID            = 'X'
                EXPIRATION             = DAYS
                LINE_SIZE              = 79
                LINE_COUNT             = 23
                LAYOUT                 = 'X_PAPER'
                SAP_COVER_PAGE         = 'X'
                COVER_PAGE             = 'X'
                RECEIVER               = 'SAP*'
                DEPARTMENT             = 'System'
                SAP_OBJECT             = 'RS'
                AR_OBJECT              = 'TEST'
                ARCHIVE_ID             = 'XX'
                ARCHIVE_INFO           = 'III'
                ARCHIVE_TEXT           = 'Description'
                NO_DIALOG              = ' '
      IMPORTING OUT_PARAMETERS         = PARAMS
                OUT_ARCHIVE_PARAMETERS = ARPARAMS
                VALID                  = VALID.
    IF VALID <> SPACE.
      SUBMIT RSTEST00 TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        ARCHIVE PARAMETERS ARPARAMS
        WITHOUT SPOOL DYNPRO.
    ENDIF.
    Best regards,
    Prashant

  • Report using spool in Russian

    Hey SAPians,
    i am stuck here with an issue. i am trying to print a report using spool in Russian, its status ends in error. however when i try printing same in english its status is complete.
    where am i going wrong, how do i make this work?
    THANKS IN ADVANCE
    Abhinav

    Hi,
    Why do you want to do
    SELECT  *
    FROM    table_name;
    inside the procedure?  Why not have your script run the procedure (without the query above), and then do that query afterwards, when you can use SPOOL to put the results in a file?
    If you really must write a file from a procedure, here's an example of how to use utl_file.
    First, SYSTEM (or some other user with the CREATE ANY DIRECCTORY system privilege) must create a directory, and grant privileges to use it.  For example:
    CREATE OR RPLEACE DIRECTORY  a_dir  AS 'C:\Foo\A_Folder';
    GRANT ALL ON DIRECTORY  a_dir  TO PUBLIC;
    Typically, SYSTEM does this once, and other people use it hundreds of times.
    You might create a file in that directory like this:
    CREATE OR REPLACE PROCEDURE  write_dept
    IS
        f  utl_file.file_type;
    BEGIN
        f := utl_file.fopen ('A_DIR', 'Dept.txt', 'W');
        FOR  r  IN  (  SELECT  *
                       FROM    scott.dept
        LOOP
            utl_file.put_line ( f
                              , TO_CHAR (r.deptno, 'FM00')
                                || ' '
                                || RPAD (r.dname, 15)
                                || r.loc
        END LOOP;
        utl_file.fclose (f);
    END  write_dept;
    SHOW ERRORS

  • FBL5N: missing one line item while viewing the report in spool

    Hi Experts,
    I 've got a problem while viewing FBL5N report in spool. The report is missing one line item, but when I
    execute it in foreground, the report was ok.
    Can somebody explain?
    TQ.

    Hello,
    It seems you should implement notes 1100728 and  1166251 !
    Best Regards,
    Glayds xing

  • Using the submit report

    Hi,
    can any one help me out how to get the output from a report by using the submit report . with out disturbing the report sequence of the calling programme
    ie need to capture the output of a report in back ground and use the output in the calling report with out any calling screens or stopping the report sequence,,,,,,,,,,,,
    ThankX in advance...............

    Hi Siva
    do it like this
    Construct job name
    PERFORM job_name USING v_text
    v_vsg
    CHANGING v_jobname.
    Open job
    PERFORM job_open USING v_jobname
    CHANGING p_jobcnt.
    Submit Job
    SUBMIT RLKOMM40
    WITH p_warehno = warehouse number
    WITH p_group = group
    VIA
    JOB v_jobname NUMBER p_jobcnt
    TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    WITH immediately = space
    WITH keep_in_spool = 'X' AND RETURN.
    *& Form job_name
    text
    FORM job_name USING p_v_text
    p_v_vsg
    CHANGING p_v_jobname.
    CONCATENATE p_v_text p_v_vsg INTO p_v_jobname.
    CONDENSE p_v_jobname.
    ENDFORM. " job_name
    *& Form job_open
    text
    FORM job_open USING p_v_jobname
    CHANGING p_p_jobcnt.
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    jobname = p_v_jobname
    IMPORTING
    jobcount = p_p_jobcnt
    EXCEPTIONS
    cant_create_job = 1
    invalid_job_data = 2
    jobname_missing = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " job_open
    Do Reward if helpful.
    Regards
    Azad.

  • Will SUBMIT report EXPORTING LIST TO MEMORY work, when Run in Background?

    You can use SUBMIT <report> EXPORTING LIST TO MEMORY, and then Call the FM LIST_FROM_MEMORY to get the Data.
    This works fine, when the Program is Run in Foreground. My question is, will it work when I Run the Program in Background? i.e. When I Run the Program in Background, will the SUBMIT Statement, Export the List to Memory? Because only then the FM LIST_FROM_MEMORY will get the Data.
    Any alternate solution to meet the same requirement will be appreciated.

    It works for me... my spool output looked like:
    11.01.2008          JC: Calling program - test list to memory                  1                                                                               
    ZLOCAL_JC_SDN_CALLING_PROGRAM                started at 12:54:29                        
    ZLOCAL_JC_SDN_CALLING_PROGRAM                call complete 12:54:30                     
    ZLOCAL_JC_SDN_CALLING_PROGRAM                started at 12:54:30                                                                               
    11.01.2008           JC: Called program - testing list to memory                                                                               
    ZLOCAL_JC_SDN_CALLED_PROGRAM                 was called at: 12:54:29                    
    for the following code:
    report zlocal_jc_sdn_calling_program.
    parameters:
      p_start(1)            type c.
    start-of-selection.
      perform testcase.
    *&      Form  testcase
    form testcase.
      data:
       lt_list              type table of abaplist.
      write: / sy-repid, 'started at', sy-uzeit.
      submit zlocal_jc_sdn_called_program
        exporting list to memory
        and return.
      write: / sy-repid, 'call complete', sy-uzeit.
      call function 'LIST_FROM_MEMORY'
        tables
          listobject = lt_list.
      write: / sy-repid, 'started at', sy-uzeit.
      call function 'WRITE_LIST'
        tables
          listobject = lt_list.
    endform.                    "testcase
    and
    report zlocal_jc_sdn_called_program.
    start-of-selection.
      write: / sy-repid, 'was called at:', sy-uzeit.

  • Skip Error message in submit report

    Hello Gurus,
    I am using SUBMIT <REPORT> command inside a loop of my calling report. For one record the SUBMIT <report> is throwing an eror message due to which my report is getting stopped by displaying the error message.
    My requirement is to skip the record if there is any error in SUBMIT <report> and process rest of the records.
    Please help me out.

    Hi,
    Vasanth's idea regarding doing a CALL FUNCTION IN BACKGRUOND TASK does work, unless you need to get back some information from the SUBMIT, as export parameters can't be set when using IN BACKGRUOND TASK.
    As i need to get data from the SUBMIT, i'll keep looking for other alternatives, so other ideas are still welcome...
    Regards,
    mr.
    Hi Manuel,
    Try calling report in background task like below:
        CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            jobname          = c_name                    "this name can be any name defined in constants(you do not have to create a job name anywhere in system or SM36)
          IMPORTING
            jobcount         = w_number
          EXCEPTIONS
            cant_create_job  = 1
            invalid_job_data = 2
            jobname_missing  = 3
            OTHERS           = 4.
    *" Job opened successfully
        IF sy-subrc EQ c_0.
    *" Call program to process IDoc
          SUBMIT ZSubmit WITH <any value>                                                      " e.g. p_field1 EQ <value>
                          VIA JOB c_name NUMBER w_number
                          AND RETURN.
    [Note: In ZSubmit report you can send the data to calling program through ABAP memory i.e. Use EXPORT parameter to export data
    Ex: constants: c_memory(7) type c value 'MEMORY1'.
    At the end of ZSubmit report, before returning to the calling program write below statement:
    EXPORT i_message TO MEMORY ID c_memory1.]
    *" Successful processing of IDoc
          IF sy-subrc EQ c_0.
    "Here you can import data from ZSubmit report
    import i_message from memory id c_memory1.
    After retrieving the data, free the memory otherwise it will affect the performance of your report:
    Free memory id c_memory1.
    *" Close the job
            CALL FUNCTION 'JOB_CLOSE'
              EXPORTING
                jobcount             = w_number
                jobname              = c_name
                strtimmed            = c_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.
    ENDIF.
    ENDIF.
    Hope this helps!
    Regards,
    Saba

  • Submit report to get output list

    Hi friends,
       I have one requirement to take output list of a transaction in one internal table.
    As the transaction is very much interactive , that perticular internal table gets populated somewhere in the middle of the standard program...later on that table undergoes further processing  to cope up with he interaction...
    using  SUBMIT report ,  we can export it to memory
    and using  FM  'LIST_FROM_MEMORY' we can get it back as following.
    list_tab contains data in two fields RFCSIZE  and RFCRECORD in numbers only...
    Submit   report_name  with SELECTION-TABLE SELTAB
            exporting list to Memory and return.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = list_tab
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
       BUT , Can we get the same output list (i.e before interaction) in one internal table...
    thanks

    Hi,
    You can check whether the list is exported in between before the submit.
    Supposed it is exported before the interaction den you can import it ..Just check the value is fetched and stored in a temporary table.
    Is it a csutom program or standard SAP one..?
    Hope this helps.
    Regards,
    Navin.

  • Submit report with dynamic selections

    Hi All,
    I am trying to Submit a report with dynamic selections. I am using the option SUBMIT REPORT WITH FREE SELECTIONS.
    But the dynamic selections are not getting passed.
    Request you to kindly provide some inputs
    My code is
    DATA: trange TYPE rsds_trange,
          trange_line LIKE LINE OF trange,
          trange_frange_t_line LIKE LINE OF trange_line-frange_t,
          trange_frange_t_selopt_t_line LIKE LINE OF trange_frange_t_line-selopt_t,
          texpr TYPE rsds_texpr.
    trange_line-tablename = 'PA0002'.
    *trange_frange_t_line-tablename = 'PA0002'.
    trange_frange_t_line-fieldname = 'GBJHR'.
    trange_frange_t_selopt_t_line-sign   = 'I'.
    trange_frange_t_selopt_t_line-option = 'EQ'.
    trange_frange_t_selopt_t_line-low    = '1987'.
    trange_frange_t_selopt_t_line-high   = '1987'.
    APPEND trange_frange_t_selopt_t_line TO   trange_frange_t_line-selopt_t.
    APPEND trange_frange_t_line TO trange_line-frange_t.
    APPEND trange_line TO trange.
    CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
      EXPORTING
        field_ranges = trange
      IMPORTING
        expressions  = texpr.
    submit RPCADVQ0
    VIA SELECTION-SCREEN
                    WITH SELECTION-TABLE rspar_tab
                    WITH FREE SELECTIONS it_texpr
                    and returN.
    Kindly provide your inputs
    Regards
    Reshma

    Hi Reshma,
    Use the FM - RS_REFRESH_FROM_DYNAMICAL_SEL before FREE_SELECTIONS_RANGE_2_EX.
      data: trange  type rsds_trange,
              g_repid type sy-repid.
    g_repid = 'RPCADVQ0'.
      call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
        exporting
          curr_report        = g_repid
          mode_write_or_move = 'M'
        importing
          p_trange           = trange
        exceptions
          not_found          = 1
          wrong_type         = 2
          others             = 3.
      if sy-subrc eq 0.
    " Do the changes to the trange
    CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
    EXPORTING
    field_ranges = trange
    IMPORTING
    expressions = texpr.
    submit RPCADVQ0
    VIA SELECTION-SCREEN
    WITH SELECTION-TABLE rspar_tab
    WITH FREE SELECTIONS it_texpr
    and returN.
    endif.
    Cheers,
    Kothand

  • Report output list to internal table using submit report

    Hello,
    I have a report that generates the output in the form of an abap list. I want this data in an internal table for further processing. the report internally does not do a export data to memory so i cannot use import later on to get the data.
    i did the following
    SUBMIT <report name> exportING LIST TO MEMORY and return.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = itab_list
      EXCEPTIONS
        not_found  = 4
        OTHERS     = 8.
    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        list_index         = -1
      TABLES
        listasci           = ascitab
        listobject         = itab_list
      EXCEPTIONS
        empty_list         = 1
        list_index_invalid = 2
        OTHERS             = 3.
    This returns the data in the ascitab, but the data contains additional unwanted info like lines and hyphens etc. Also the data is in a table with a single column, so pulling out individuals fields is again an issue. Is there a way to get this data into an internal table directly?
    best regards,
    Suraj

    hi suraj
    export the internal table  of report
    DATA: BEGIN OF SR_VBAK ,
          VBELN LIKE VBAK-VBELN,
          END OF SR_VBAK.
    DATA: IR_VBAK LIKE STANDARD TABLE OF SR_VBAK WITH HEADER LINE.
    EXPORT IR_VBAK TO MEMORY ID 'SALES'.
           SUBMIT <program name in which u want internal table records > AND RETURN.
    now import that data in submit program  .
    here u have to creat a internal table with same structure as the internal table from which u r trying to export the data
    DATA: BEGIN OF SR_VBAK,
          VBELN LIKE VBAK-VBELN,
          END OF SR_VBAK.
    DATA : IR_VBAK LIKE STANDARD TABLE OF SR_VBAK WITH HEADER LINE.
    IMPORT IR_VBAK FROM MEMORY ID 'SALES'.
    regards
    ANIL CHAUDHaRY

  • Re : submit report

    Hello Friends
                         I am calling another report in my program , I am passing the parameter to that program within my same program, but i don't want to get the output screen of the submitted report and it should process without displaying output screen
                            Hope you will understand my requirement.
    Thanks in Advance
       Nagaraj S

    u can  run it in the background
    *Submit report as job(i.e. in background) 
    data: jobname like tbtcjob-jobname value
                                 ' TRANSFER TRANSLATION'.
    data: jobcount like tbtcjob-jobcount,
          host like msxxlist-host.
    data: begin of starttime.
            include structure tbtcstrt.
    data: end of starttime.
    data: starttimeimmediate like btch0000-char1.
    Job open
      call function 'JOB_OPEN'
           exporting
                delanfrep        = ' '
                jobgroup         = ' '
                jobname          = jobname
                sdlstrtdt        = sy-datum
                sdlstrttm        = sy-uzeit
           importing
                jobcount         = jobcount
           exceptions
                cant_create_job  = 01
                invalid_job_data = 02
                jobname_missing  = 03.
      if sy-subrc ne 0.
                                           "error processing
      endif.
    Insert process into job
    SUBMIT zreport and return
                    with p_param1 = 'value'
                    with p_param2 = 'value'
                    user sy-uname
                    via job jobname
                    number jobcount.
      if sy-subrc > 0.
                                           "error processing
      endif.
    Close job
      starttime-sdlstrtdt = sy-datum + 1.
      starttime-sdlstrttm = '220000'.
      call function 'JOB_CLOSE'
           exporting
                event_id             = starttime-eventid
                event_param          = starttime-eventparm
                event_periodic       = starttime-periodic
                jobcount             = jobcount
                jobname              = jobname
                laststrtdt           = starttime-laststrtdt
                laststrttm           = starttime-laststrttm
                prddays              = 1
                prdhours             = 0
                prdmins              = 0
                prdmonths            = 0
                prdweeks             = 0
                sdlstrtdt            = starttime-sdlstrtdt
                sdlstrttm            = starttime-sdlstrttm
                strtimmed            = starttimeimmediate
                targetsystem         = host
           exceptions
                cant_start_immediate = 01
                invalid_startdate    = 02
                jobname_missing      = 03
                job_close_failed     = 04
                job_nosteps          = 05
                job_notex            = 06
                lock_failed          = 07
                others               = 99.
      if sy-subrc eq 0.
                                           "error processing
      endif.

Maybe you are looking for

  • Seeing times in day and week view

    Is it possible to see times (eg 7.00am, 7.30am, 8.00am, 8.30am, 9.00am, etc etc) along the y axis in day and week view of iCal? I can only see actual times when I in the process of making appointments, ie when wiping my cursor over a section of the p

  • ITunes and Front-Row no longer in Sync

    Since I moved my whole iTunes library to an external drive, Front-Row is no longer showing if a TV Show is new or not. And it won't update the iTunes counter for that show. The video-podcasts are working correctly. When I download a new one, it shows

  • Multi-level accumulation

    I need help! On following tables, "Proj_Dict_Cost" is a cost list to be a dictionary, And I want keep the accumulatative relation on "Proj_Cost". But It doesnot work Return an Error with code -4091. Where I missed? create table Proj_Dict_Cost ( Cost_

  • Changes to applications and gaming have no effect on WRT54Gv2.2 and restarting breaks routing

    If I power off my router and power it back on, nothing on my network can get out and none of the port forwarding works.  If I log into the router and use diagnostics to ping stuff outside my network it works just fine, but nothing on my network works

  • Making graphics

    Hi! I`m very beginner and I would like to know how can I make models?For example a cube,which I can move in the program?Where can I read about this.I don`t understand the official articles.I use j2sdk1.4.2_08 .Thanks for all help.