How to transfer a  bdc program online to background   job ?

Hi,
   I have created a  program using BDC for inserting items into a specific sales order, which woks well inline.
   Now i want to transfer it to background  job,Could u
give me steps in detail?  thanks in advance.

I understand that with your program you can create BDC seesion ( and not use Call Transaction ).
I am not sure if you want your program to run in batch or you want the session created by your program to run in batch. I am giving solution for both.
To schedule the processing of session in backgroud you can use report RSBDCSUB.
You can do in two ways -
Ist Method
Define a batch job in SM36 with two steps -
First Step - Your Custom Program ( with a variant )
Second Step - RSBDCSUB ( With a variant having
                         the session name ).
2nd Method
In your program after BDC_CLOSE_GROUP add a line.
SUBMIT RSBDCSUB WITH MAPPE EQ <SESSION_NAME>.
Scedule you program as a batch job in SM36 ( Single Step ). ( You can also test the program by running in online mode . After your programs executes , go and see in SM35. You will see that your session created in being processed or has been processed in background).
In Both ways the session created by BDC_OPEN_GROUP will be processed in background,

Similar Messages

  • Userexit or BADI for program *RMMRP000* for background job

    Hi,
    We are scheduling background job for MRP through SM36 using program  RMMRP000 or Through Transaction MDBT (MDBT is calling program RMMRP000) which creates PR (through background job).
    I want to default one field in PR (PO Price field in valuation tab in PR default to gross) using any userexit or BADI.
    Can any body suggest me userexit or BADI for program RMMRP000 for background job
    Regards.

    Hi,
    1. The below are the List of  Userexit for this MDBT t.CODE.
    2. But i dont see any one helping to resolve your issue.
    3. May be you should lookg at the Userexit for me21n or relevant Purhcase requisition creation transaction.
    reg
    dsk

  • How can we write BDC program to upload data in to line items(VA01) ?

    Error in processing BDC table control program...
    How can i populate data through bdc program dynamically, when some of the lines are in disable mode....
    for e.g ...
    in va01 transaction code ....
    1 to 5 lines are not in disable mode....
    but 5 to 10 lines are in disable mode...
    so hw u process those remaining disable lines at runtime and populate data in to the fields of line items...through bdc program..

    hi..friends.,
    yea actually this question has been raised by interviewer ...
    but just the same i replied as you did...
    but he told that we can upload the data....towards in to disabled line items
    at run time..with using change trasaction va02..with implementing bdc programm...
    so i just want to know the steps of how to perform it..
    Can anyone....my friends..
    byeeee.....

  • How to create a BDC program for given recording.

    i have to create a BDC program for uploading a file.
    currently i am using call function
      CALL FUNCTION 'F4_FILENAME'

    just check out the code below  it  is  for  updating two transactions
                           types Declaration                      *
    types: begin of t_tab1 ,
                vendor(10),
                material(18),
                pur_org(4),
                wglif(18),
          end of t_tab1.
                  Data Declaration                                 *
    data : begin of it_tab5 occurs 0,
              vendor(10),
              material(18),
             end of it_tab5.
    **DATA : BEGIN OF IT_TAB6 OCCURS 0,
             VENDOR(10),
             MATERIAL(18),
            END OF IT_TAB6.
    data: it_tab1 type standard table of t_tab1 with header line.
    data: wa_tab1 type t_tab1.
    data: wa_tab2 type t_tab1.
    data: it_tab3 like bdcdata occurs 0 with header line.
    data: it_tab4 like bdcdata occurs 0 with header line.
    data: it_tab2 type table of bdcmsgcoll with header line.
    data: d_file_name like ibipparms-path,
          d_file_name1 type string.
                       Start-of-selection                        *
    start-of-selection.
    FM for finding the flat file
      call function 'F4_FILENAME'
    EXPORTING
      PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
       importing
         file_name           = d_file_name.
      d_file_name1 = d_file_name.
    ******FM for uploading data from flat file into internal table
      call function 'GUI_UPLOAD'
        exporting
          filename                      = d_file_name1
         filetype                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
        tables
          data_tab                      = it_tab5
    exceptions
       file_open_error               = 1
       file_read_error               = 2
       no_batch                      = 3
       gui_refuse_filetransfer       = 4
       invalid_type                  = 5
       no_authority                  = 6
       unknown_error                 = 7
       bad_data_format               = 8
       header_not_allowed            = 9
       separator_not_allowed         = 10
       header_too_long               = 11
       unknown_dp_error              = 12
       access_denied                 = 13
       dp_out_of_memory              = 14
       disk_full                     = 15
       dp_timeout                    = 16
       others                        = 17.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
                     End-of-selection                         *
    end-of-selection.
      sort it_tab5 by vendor.
      loop at it_tab5.
        perform bdc_dynpro using 'SAPLBG00'  0101 .
        perform bdc_field using 'BDC_OKCODE' '/00' .
        perform bdc_dynpro using 'SAPLBG00'  1000 .
        perform bdc_field using 'BDC_OKCODE' '=BUCH' .
        perform bdc_field using 'BDC_SUBSCR'
        'SAPLBG00                                1101KOPF_1000'.
        perform bdc_field using 'GBGMK-GAART' '2' .
        perform bdc_field using 'GBGMK-GAERB' 'X' .
        perform bdc_field using 'BDC_SUBSCR'
          'SAPLBG00                          1103TAB_SUB_1000'.
        perform bdc_field using 'BDC_CURSOR' 'GBGMP-LSTNR(01)' .
        perform bdc_field using 'GBGMP-LSTNR(01)' it_tab5-material .
       call transaction 'BGM1' using it_tab3 mode 'E' messages into it_tab2
        refresh it_tab3.
        wa_tab1-pur_org = 'ABCP'.
        loop at it_tab2.
        endloop.
        perform bdc_dynpro using 'SAPMM06I'  0100 .
        perform bdc_field using 'BDC_CURSOR' 'EINE-EKORG' .
        perform bdc_field using 'BDC_OKCODE' '/00' .
        perform bdc_field using 'EINA-LIFNR' it_tab5-vendor .
        perform bdc_field using 'EINA-MATNR' it_tab5-material .
        perform bdc_field using 'EINE-EKORG' wa_tab1-pur_org .
        perform bdc_field using 'RM06I-NORMB' 'X' .
        perform bdc_dynpro using 'SAPMM06I'  0101 .
        perform bdc_field using 'BDC_CURSOR' 'EINA-WGLIF' .
        perform bdc_field using 'BDC_OKCODE' '=BU' .
        perform bdc_field using 'EINA-WGLIF' it_tab2-msgv1 .
        call transaction 'ME12' using it_tab3 mode 'E'.
        refresh it_tab3.
        refresh it_tab2.
      endloop.
    *&      Form  BDC_DYNPRO
         Start new screen
         -->P_FNAM  text
         -->P_FVAL  text
    form bdc_dynpro  using   program
                             dynpro.
      clear it_tab3.
      it_tab3-program  = program.
      it_tab3-dynpro   = dynpro.
      it_tab3-dynbegin = 'X'.
      append it_tab3.
    endform.                    " BDC_DYNPRO
    *&      Form  BDC_FIELD
       Insert field
         -->P_FNAM  text
         -->P_FVAL  text
    form bdc_field  using    fnam
                             fval.
      clear it_tab3.
      it_tab3-fnam = fnam.
      it_tab3-fval = fval.
      append it_tab3.
    endform.                    " BDC_FIELD
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 14, 2008 6:20 PM

  • How to get the custom program generated in Background

    Dear Freinds,
    I have written a below code in my submit program ( zreport) .
    REPORT  ZHRRPCPRRU0_SUBMIT  NO STANDARD PAGE HEADING MESSAGE-ID zhr_msg.
    SUBMIT RPTQTA00 VIA SELECTION-SCREEN
    WITH pnpbegda = sy-datum
    WITH pnpendda = lv_date
    with pnppernr = '99007057'.
    As per your logic i have used the submit program and i am able to default the dates  in the Standard program RPTQTA00 , that is perfectly correct . Now if run the standard report it is giivng me the ouput ..so the foreground concept is working correctly.
    Now if iam scheduling the Z report of the custom report (z program) where iam calling the submit program
    it is just scheduling and further when i look at the sm37 i can see the  job getting finished . However , i dont  find any spool because the standard report has not been executed , with my custom report (using the logic with submit program above in zprogram ) i am calling the standard program (RPTQTA00).
    so could you please let me know how the standard program will execute and get the spool genereated? in the case of background
    because when  i have executed only the standard report in background i can see that it is being exceuted spool as well, however when iam calling from custom program no spool is created because my custom program only submiting the standard report and it is not executing the standard report in the case of backround ...because when iam running the custom program in the Foreground it is calling the standard program and getting the values defaulted based on the parameters which i passed , so it gets defaulted later iam running the standard program manually .
    So please could you let me know how will the standard program also gets genereated in the backgroung along with my custom report.
    Thanks in advance
    regards
    madhuri,

    Hi Can you try the following?
    Hope this helps... (Taken from help)
    Example
    Scheduling a submitable program as a background task with the number number in a background request name. After scheduling, the background task is completed by function module JOB_CLOSE and released immediately.
    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.

  • How can i debug a program attached with a Job schedule ?

    Hi experts,
    In a background job one program plus one variant is attached, now I don't have any authorization  of SE38. I want to debug the program. How can it be possible?
    Thanks in Advance,
    Abhijit

    Hi
    GOTO SM51.
    There choose the server in which ur background program is running. Place the cursor on the line which shows your program. Choose the menu option 'Debugging'.
    Depending on your version the menu option is in different places.
    If you have the correct authorizations, a window pop will pop up, with your program in the debugger.
    Regards,
    Vishwa.

  • How do i turn off programs running in background with current updated software?

    How do i stop the apps running in background on updated iphone software?

    Double-tap on the Home button. You will see a preview of the app above the actual icon. Slide the preview up to kill it.
    Please get the iPhone User Guide (For iOS 7 Software)Sep 19, 2013 - 23 MB.

  • How to print result of transaction processing in background job?

    Hi experts,
    Could you give me advice how to resolve following task:
    I need to print a list of sales orders (transaction VA05) in background job.
    Are exist standard techniques for this? Or should I create new program (report) and create the job with printing of parameters?
    Thanks for advance

    Hi,
    Define a background job with the program  name  & variant.
    Pass the print specifications as well.
    Best regards,
    Prashant

  • Can we debug programs called in background job?

    Hi Everyone,
    Here is my question:
    I set some breaakpoints in program A which is call by another program B.
    And in B, it defines a background job to run A.
    but when i run program B , the berakpoints set in A don't work,why???
    (I can not run A directly, for it needs a large amount of parameters which can't be input manually)
    How to solve it? Thanks
    Regards.

    Hi,
    Yes if it is a custom program.
    Here how it works.
    - Put a endless loop in your code.
    - Run the program.
    - Go to SM50 and select your process.
    - Then go to Program/Session->Program-> Debugging.
    - It will open the debugger. Now come out of endless loop by changing values and check whatever you want.
    Regards,
    pranaya

  • Program works but background job for that program fails....

    I have a requirement where I have to collect the details of the purchase order and put the details in XML file format and FTP the XML file to an external third party FTP Server.
    To realize this I developed a report program which follows following logic.
    1)     First I collected the PO details by calling the BAPI BAPI_PO_GETDETAIL1.
    2)     Then using the following link "/people/r.eijpe/blog/2005/11/10/xml-dom-processing-in-abap-part-i--convert-an-abap-table-into-xml-file-using-sap-dom-approach
    I converted these PO details to the XML file format that the third party people accept.
           In the code I used u201CCALL METHOD cl_gui_frontend_services=>gui_downloadu201D and in this process first the XML file is generated and is getting stored on my deskytop.
    3)     Then I called HTTP_SCRAMBLE, FTP_CONNECT, FTP_COMMAND , FTP_DISCONNECT and RFC_CONNECTION_CLOSE.
    This works perfectly well and each time I execute the report the file is getting FTPu2019ed to the third party FTP server.
    Now I tried to schedule a batch job for this and the batch job fails with follwing errors
    02/25/2009 15:08:47 Error in Control Framework
    Message Class  = FES         
    Message Number = 022  
    Message Type   = E
    02/25/2009 15:08:47 Job cancelled after system exception ERROR_MESSAGE 
    Message Class  = 00        
    Message Number = 564  
    Message Type   = A                
    Can some one tell me what is going wrong. My report works perfect in front end but fails if I try to schedule a background job for it in SM36.
    Can you please tell me whatz going wrong with batch job? Any Help is highly appreciated.
    Regards,
    JEssica SAm

    Robert...Thanks for the reply...
    I am using follwing code
    l_xml_size = l_ostream->get_num_written_raw( ).
        CALL METHOD cl_gui_frontend_services=>gui_download
          EXPORTING
            bin_filesize = l_xml_size
            filename     = FILEPATH
            filetype     = 'BIN'
          CHANGING
            data_tab     = l_xml_table
          EXCEPTIONS
            OTHERS       = 24.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    Now what changes should i make..where should i store my XML file then instead of my desktop?
    and whih Function Module should i Use..

  • BDC failing as a Background Job

    Hi all,
    My BDC  for MIGO transaction is failing as a background job.
    Kindly advise.
    Dev

    function zs7_iedi_create_goodsreceipt.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(LOGNO) TYPE  ZLOGNO
    *"     REFERENCE(PO_NUMBER) TYPE  EBELN
    *"     REFERENCE(LFSNR) TYPE  LFSNR1
    *"     REFERENCE(LGOBE) TYPE  LGOBE
    *"     REFERENCE(FLAG) TYPE  CHAR0001 OPTIONAL
    *"     REFERENCE(DISMODE) TYPE  CTU_MODE DEFAULT 'N'
    *"     REFERENCE(DOCTYP) TYPE  ZDOCTYP DEFAULT 'GRE'
    *"  EXPORTING
    *"     REFERENCE(MATERIAL_DOCUMENT) TYPE  MBLNR
    *"  TABLES
    *"      L_T_RETURN STRUCTURE  MESSAGE OPTIONAL
    *"  EXCEPTIONS
    *"      GR_CREATION_FAILED
    ======================================================================
    FM Name       : ZS7_IEDI_CREATE_GOODSRECEIPT
    Creation Date : 02/21/2007
    Author        : Yogesh Sharma(SYOG)
    ======================================================================
    Description : This function module will be used by the workflow in
                  Industry EDI to create provisional/final goods receipt.
    ======================================================================
    Change History
    ======================================================================
    ChangeId     Date         Author            Request
    ======================================================================
    *&                      Clear & Refresh global data
      clear g_t_bdcdata.
      refresh g_t_bdcdata.
      clear g_wa_ctu_params.
      clear g_wa_bdcmsgcoll.
      clear g_t_bdcmsgcoll.
      refresh g_t_bdcmsgcoll.
      clear g_t_download.
      refresh g_t_download.
    *&                       BDC Recording
      if flag <> 'X' and flag is not initial.
        move text-001 to g_wa_download-msgtx.
        append g_wa_download to g_t_download.
        l_t_return[] = g_t_download[].
        raise gr_creation_failed.
      endif.
      perform f100_fill_bdc_entry using :
                   'X'  'SAPLMIGO'               '0001',
                   ' '  'BDC_OKCODE'             '=MIGO_OK_ACTION',
                   ' '  'GODYNPRO-ACTION'        'A01'.              "Goods Receipt
      perform f100_fill_bdc_entry using :
                   'X'  'SAPLMIGO'               '0001',
                   ' '  'BDC_OKCODE'             '=MIGO_OK_REFDOC',
                   ' '  'GODYNPRO-REFDOC'        'R01'.              "Purchase Order
      perform f100_fill_bdc_entry using :
                   'X'  'SAPLMIGO'               '0001',
                   ' '  'BDC_OKCODE'             '=OK_GO',
                   ' '  'GODYNPRO-PO_NUMBER'     po_number.          "Purchase Order Number
      perform f100_fill_bdc_entry using :
                   'X'  'SAPLMIGO'               '0001',
                   ' '  'BDC_OKCODE'             '=MIGO_OK_HEADER_OPEN'.
      perform f100_fill_bdc_entry using :
                   'X'  'SAPLMIGO'               '0001',
                   ' '  'BDC_OKCODE'             '=MIGO_OK_DETAIL_OPEN',
                   ' '  'GOHEAD-LFSNR'           lfsnr.                    "Delivery Note
                  ' '  'ZS7_IEDI_MKPF_EX-ZUSCH' flag.                     "Provisional/Final Deleted
      perform f100_fill_bdc_entry using :
                   'X'  'SAPLMIGO'               '0001',
                   ' '  'BDC_OKCODE'             '=OK_GO',
                   ' '  'GOITEM-LGOBE'           lgobe,                    "Stroage Location.
                   ' '  'GODYNPRO-DETAIL_TAKE'   'X'.                      "Item OK
      perform f100_fill_bdc_entry using :
                   'X'  'SAPLMIGO'               '0001',
                   ' '  'BDC_OKCODE'             '=OK_POST'.               "Save.
    *&        Parameter string for runtime of CALL TRANSACTION USING...
      g_wa_ctu_params-dismode = dismode.                          "Processing mode.
      g_wa_ctu_params-updmode = 'S'.                              "Update mode.
      g_wa_ctu_params-nobinpt = ' '.                              "No batch input mode (that is, SY-BINPT = SPACE).
      g_wa_ctu_params-nobiend = 'X'.                              "No batch input mode after the end of BDC data.
      g_wa_ctu_params-defsize = ' '.                              "Use default window size.
    *&                     Call transaction MIGO.
      set parameter id 'MBN' field space.
      call transaction 'MIGO' using g_t_bdcdata options from g_wa_ctu_params
                                                messages into g_t_bdcmsgcoll.
      if sy-subrc = '0'.
        clear g_flag.                                             "Clear Flag Value.
        get parameter id 'MBN' field material_document.           "Assigning created material document no.
        if material_document is initial.
          g_flag = 'X'.
        endif.
      else.
        g_flag = 'X'.                                             "Flag value set to 'X' to Raise Exception.
      endif.          "IF sy-subrc = '0'.
    *&         Filling Messages which occured during BDC into l_t_return.
      clear g_val.
      describe table g_t_bdcmsgcoll lines g_val.                  "Calculating number of filled lines of the table.
      if g_val <> 0.
        loop at g_t_bdcmsgcoll into g_wa_bdcmsgcoll.              "Fetching Message Text using Message-Id & Message-No.
          clear g_err_log.
          g_msgno = g_wa_bdcmsgcoll-msgnr.
          call function 'WRITE_MESSAGE'
            exporting
              msgid = g_wa_bdcmsgcoll-msgid
              msgno = g_msgno
              msgty = g_wa_bdcmsgcoll-msgtyp
              msgv1 = g_wa_bdcmsgcoll-msgv1
              msgv2 = g_wa_bdcmsgcoll-msgv2
              msgv3 = g_wa_bdcmsgcoll-msgv3
              msgv4 = g_wa_bdcmsgcoll-msgv4
            importing
              messg = g_err_log.
          move-corresponding g_err_log to  g_wa_download.
          append g_wa_download to g_t_download.                   "Storing messages text into table that occured during BDC.
        endloop.
        delete adjacent duplicates from g_t_download.
      endif.          "IF g_val <> 0.
      l_t_return[] = g_t_download[].
    *&           Raise Exception If the Call transaction failed.
      if g_flag = 'X'.
        raise gr_creation_failed.
      else.
        call function 'ZS7_IEDI_UPDATE_MESGLOG'
          exporting
            logno                        =  logno
            doctyp                       =  doctyp
            docnr                        =  material_document
          GJAHR                        =
          ITMNR                        =
            datum                        =  sy-datum
            uzeit                        =  sy-uzeit
            uname                        =  sy-uname
            tcode                        =  'MIGO'
            ttype                        =  'CRE'
         exceptions
           error_update                 = 1
           wrong_transaction_type       = 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.
      endif.          "IF g_flag = 'X'.
    This is my code of the function module and this function module is being called from a report with the importparameters being transported froma variants.

  • How to run a server program in the background on Linux or Windows?

    I just finished writing a Java network application with multiple clients and one server.
    However, I am not sure how I can run the server (SomeServer.class) in the background on Windows. Also when I am running it on Linux, I don't want it to terminate when I logout of the Linux shell.
    To run the server on Linux, should I use a command like this?
    nohup java -cp . SomeServer.class > output.txt &
    Or is there another command, or perhaps some code that I can add to the program so that it would run in the background automatically and/or continues even when I logout of the Linux shell??
    Sometimes, I also like to run the program on a Windows XP machine for testing purpose. How can I do it so that it runs in the background without openning a Console/Command Prompt window??
    (redirecting the standard output to a file)
    And is there an easy way to create a EXE file that runs the program with the default JRE in windows?

    On many UNIX systems there's a utility called detach which will launch the following command in such a manner that killing the shell will not kill the process. On systems that lack this command, I'd find an open source implementation and install it.

  • How do I turn off programs running in background

    With the upgrade to i0s 6, my ipad is using up battery quickly and I can't turn off the programs running in the background

    Double click the home button, touch and hold an app along the bottom until they all start to jiggle and get a red circle with a minus sign, touch each red circle and that app will be dismissed...do that for each app.

  • How to display more than 255 chars in background job with ALV Grid ????

    Hi All,
    I am using ALV grid with OO.
    I have used call screen for ALV grid display. I have to display more than 255 characters in width. While running it, I can see the list perfectly.
    But in background mode, the list is truncated after 255 chars.
    Can anybody help how to send complete list(width more than 255 chars) to spool.
    Thanks and Regards,
    Neha

    Hi SAP fan,
    <b>YES you can run the ALV report in background mode.
    To run the report in background do F9 instead of F8, then give immediate and save.
    Now goto Sm35 goto job overview and view the job listed
    Choose the job and press the spool button. It will show the list created on the next page. When u clcik the list u can see the ALV output.
    To see this the job should be in the finished status.
    How to define Periodic Jobs
    1.Execute transaction SM36
    2.Define Job name, Job class, Target server
    3.Click on 'START CONDITION' button
    4.Click on 'Date/Time' button
    5.Enter Scheduled start DATE & TIME. Check mark 'Periodic Job' field. Click on 'Period values' button and select 'Hourly' or 'Dialy' or 'Weekly' or 'Monthly' or Other period and SAVE. Go back to main screen.
    6.Click on 'STEPS' button and enter Program name and Variant under box 'ABAP Program'. Click on 'Print Specification' button and enter Printer name under 'Output device' and SAVE
    7.Click on SAVE button until you get message on bottom of the screen that describes 'Job XYZ saved with status: Scheduled'.
    8.Click on 'Job overview' button or execute SM37 transaction.
    9.Select the appropriate 'Job name', 'User name', 'Job Status' & Schedule date under 'Job start condition' and click on 'Execute' button or press F8.
    10.You will now see all your scheduled JOBS.
    <b>Case: 2</b>
    You can Run in Background but make sure it is alv list, not alv Grid FM. if you are uisng alv list not problem , but if you are using alv grid then you can code like this..
    if sy-batch = ' '.
    call 'REUSE_ALV_GRID_DISPLAY'.
    else.
    call 'REUSE_ALV_LIST_DISPLAY'.
    endif.
    if you are using OO alv then write this code..
    CALL METHOD cl_gui_alv_grid=>offline
                    RECEIVING e_offline = off.
        IF off IS INITIAL.
          CREATE OBJECT g_custom_container
                 EXPORTING container_name = g_container.
        ENDIF.
    <b>Case: 3</b>
    if you are using OO ALV.
    Just before creating the custom container check for the following condition.
    Batch or Web Reporting
    IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    CREATE OBJECT o_custcontainer
    EXPORTING
    container_name = lc_custcontrol
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6
    ENDIF.
    You can see the output in Spool in transaction SP01.</b>
    Good Luck and thanks
    AK

  • How to check the ALV output for the background job

    Hi Guru,
    We are having a cutomized report which will display the result like a ALV report.
    We configured it as an background job, after the completion of the background job, it will send the result to the SPOOL, and we can use SP02 to check the output,
    But it is not easy for user to directly check the result easily, is there an method we can save it as an spreadsheet and send the output to a specific location or mailbox and then user can check it easily
    thanks,

    In SM37 ,select the Job > Spool > Select Spool No > Display Contents > Here it will show you the Output of the Report.Now select Ctrl +Shift + F12 , it will ask you to save the Spread sheet in specified location.
    Best Regards,
    Ankur

Maybe you are looking for

  • Strange system behavior on MBP, no way to install OS, kernel panics keeps happening

    Hi , I have a MBP mid 2009, with 8G Ram and 500 GB hard disk, the problem started 2 month ago when I was copying my files into my external hard drive due to strange crashes and kernel panics, that was the last time when My MBP was alive, a kernel pan

  • No multimedia with Acrobat Reader 9

    I have lots of .pdf slideshows (created using Phtoshop Album 2.0), they have embedded mp3 files in them. They played perfectly well with Reader 8.0, however now that I've upgraded to 9.0 they mp3 audio cannot be heard. How do I get the multimedia.api

  • ASR9000 l2transport egress load balancing

    Hi, I want to know how are the EFPs load balanced in the egress direction inside the etherchannel. The port-channel contains the service instances. For Example: If there are 4 member links inside the port-channel and 3 service-instances. For the egre

  • [New] Help with a VERY simple asterisk program.

    Alright...I feel like a complete idiot asking this question..but I'm having such trouble writing this program. The program description is here: Write a Java application using two for loops to produce the following pattern of asterisks. I guess I'm re

  • External Data Source For BAM Report

    Hi all, I have created one table in Sql Server 2008.I want BAM report for that table.so while creating BAM report I was creating External Data source but I really don't know the driver details.so please help me out. Thanks in advance Edited by: 92330