Can we run batch input session in foreground as well as in background

Hi SAP Gurus,
I have 23000 records to transfer from one gl account to other gl.
I want to run the session in foreground for 5 transactions and the rest will be processed in background. Is there any setting through which I can do it.
I mean to say the first 5 transactions will be processed in foreground as soon as the process starts and after that it will automatically goto background processing for the remaing records. This i desire for a check.
Regards,
Anirban

Hello Anirban,
Check the below program to split the number of session based number of records in file .
suppose if you enter 10,000 in selection-screen,if you have 30,000 records in file,then it creates 3 session each session will have 10,000 records.
I had requirement like i get 2,00,000 records at a time ,if i process all records using session method ,after 20,000 records i get short dump due to performance.
i created logic into number of session ,i guess it helps you.
Report     : ZMPPC015
Type       : Data upload
Author     : Seshu Maramreddy
Date       : 05/26/2005
Transport  : DV3K920025
Transaction: ??
Description: This ABAP/4 Program to Create Planned Independent
             Requirement for SMI plants using MD61 Transaction.
             It accepts tab-delimited spreadsheet input and
             creates BDC sessions.
report zmppc015 no standard page heading
                line-size 120
                line-count 55
                message-id zz.
Constants
constants : c_x type c value 'X'," Dynbegin
            c_tcode type tstc-tcode value 'MD61'." Transaction Code
Variables
data : v_lines_in_xcel like sy-tabix,
       l_tabix like sy-tabix,
       v_trans_in_ssn type i,
       v_ssnnr(4) type n," Counter
       v_ssnname like apqi-groupid,
       v_matnr(18) type c. " Material Number
Internal Tables
Internal table for file
data : begin of t_file occurs 0,
       matnr(18) type c,   " Material Number
       berid(10) type c,    " MRP Area
       PLNMG01(17) type n, " Forecast Month -01
       PLNMG02(17) type n, " Forecast Month -02
       PLNMG03(17) type n, " Forecast Month -03
       PLNMG04(17) type n, " Forecast Month -04
       PLNMG05(17) type n, " Forecast Month -05
       PLNMG06(17) type n, " Forecast Month -06
       PLNMG07(17) type n, " Forecast Month -07
       PLNMG08(17) type n, " Forecast Month -08
       PLNMG09(17) type n, " Forecast Month -09
       PLNMG10(17) type n, " Forecast Month -10
       PLNMG11(17) type n, " Forecast Month -11
       PLNMG12(17) type n, " Forecast Month -12
       WERKS(4) TYPE C,    " Plant
       end of t_file.
Internal table for BDCDATA Structure
data : begin of itab_bdc_tab occurs 0.
        include structure bdcdata.
data : end of itab_bdc_tab.
Selection-screen
selection-screen: skip 3.
selection-screen: begin of block id1 with frame.
parameters: p_name        like rlgrap-filename
                          default 'C:\My Documents\InputFile.txt'
                          obligatory,
bdc session name prefix
            p_bdcpfx(6)   default 'ZPIRCT'
                          obligatory,
number for transction per BDC session
            p_trnssn      type i
                          default 2000 obligatory,
retain the BDC session after successfull execution
            p_keep        like apqi-qerase
                          default c_x,
user who will be executing BDC session
            p_uname       like apqi-userid
                          default sy-uname
                          obligatory.
selection-screen : skip 1.
Requirement type
parameters : p_bedae like t459u-bedae,
From Date
             p_date like sy-datum default sy-datum obligatory.
selection-screen: end of block id1.
at selection-screen on value-request for p_name.
F4 value for Input file
  perform filename_get.
main processing
start-of-selection.
To get the data from file to Internal table
  perform getdata_fromfile.
  loop at t_file.
  hang on to xcel line num
    l_tabix = sy-tabix.
  if num-of-trnas-in-session = 0, create new BDC session
    if v_trans_in_ssn is initial.
      perform bdc_session_open.
    endif.
  begin new bdc script for rtg create trans
  fill in bdc-data for prod.version maintenance screens
    perform bdc_build_script.
  insert the bdc script as a BDC transaction
    perform bdc_submit_transaction.
  keep track of how many BDC transactions were inserted in the BDC
  session
    add 1 to v_trans_in_ssn.
  if the user-specified num of trans in BDC session is reached OR
  if end of input file is reached, close the BDC session
    if v_trans_in_ssn = p_trnssn or
       l_tabix = v_lines_in_xcel.
      perform bdc_session_close.
      clear v_trans_in_ssn.
    endif.
clear t_file.
  endloop.
top-of-page.
  call function 'Z_HEADER'
EXPORTING
  FLEX_TEXT1       =
  FLEX_TEXT2       =
  FLEX_TEXT3       =
*&      Form  filename_get
      F4 Value for input file
FORM filename_get.
  CALL FUNCTION 'WS_FILENAME_GET'
       EXPORTING
            DEF_PATH         = 'C:\Temp\ '
            MASK             = ',.,..'
            MODE             = 'O'
            TITLE            = 'Select File '(007)
       IMPORTING
            FILENAME         = p_name
       EXCEPTIONS
            INV_WINSYS       = 1
            NO_BATCH         = 2
            SELECTION_CANCEL = 3
            SELECTION_ERROR  = 4
            OTHERS           = 5.
  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.                    " filename_get
*&      Form  getdata_fromfile
      Upload the data from file to Internal table
FORM getdata_fromfile.
  CALL FUNCTION 'WS_UPLOAD'
       EXPORTING
            FILENAME                = p_name
            FILETYPE                = 'DAT'
       TABLES
            DATA_TAB                = t_file
       EXCEPTIONS
            CONVERSION_ERROR        = 1
            FILE_OPEN_ERROR         = 2
            FILE_READ_ERROR         = 3
            INVALID_TYPE            = 4
            NO_BATCH                = 5
            UNKNOWN_ERROR           = 6
            INVALID_TABLE_WIDTH     = 7
            GUI_REFUSE_FILETRANSFER = 8
            CUSTOMER_ERROR          = 9
            OTHERS                  = 10.
  if sy-subrc eq 0.
    sort t_file by matnr .
    delete t_file where matnr = ''.
    clear v_lines_in_xcel.
    describe table t_file lines v_lines_in_xcel.
    if v_lines_in_xcel is initial.
      write: / 'No data in input file'.
      stop.
    endif.
  else.
    write:/ 'Error reading input file'.
    stop.
  endif.
ENDFORM.                    " getdata_fromfile
*&      Form  bdc_session_open
      BDC_OPEN_GROUP
FORM bdc_session_open.
create bdc session name = prefix-from-selectn-screen + nnnn
  add 1 to v_ssnnr.
  concatenate p_bdcpfx v_ssnnr into v_ssnname.
  CALL FUNCTION 'BDC_OPEN_GROUP'
       EXPORTING
            CLIENT              = SY-MANDT
            GROUP               = v_ssnname
            KEEP                = p_keep
            USER                = p_uname
       EXCEPTIONS
            CLIENT_INVALID      = 1
            DESTINATION_INVALID = 2
            GROUP_INVALID       = 3
            GROUP_IS_LOCKED     = 4
            HOLDDATE_INVALID    = 5
            INTERNAL_ERROR      = 6
            QUEUE_ERROR         = 7
            RUNNING             = 8
            SYSTEM_LOCK_ERROR   = 9
            USER_INVALID        = 10
            OTHERS              = 11.
  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.                    " bdc_session_open
*&      Form  bdc_build_script
      BDC Script
FORM bdc_build_script.
Local Variables
  DATA : l_frdat(8) type c,  " From Date
         l_todat(8) type c,  " To Date
         l_frdat1(4) type c, " Year
         l_frdat2(2) type c, " Month
         l_frdat3(2) type c, " Day
         l_tdate like sy-datum, " Subtract date(1)
         l_todat1(4) type c,    " Year
         l_todat2(2) type c,    " Month
         l_todat3(3) type c.    " Day
   Get the material number from tables ZMSMI_FERR_RAW,
   ZMSMI_SNAP_RAW and ZMSMI_SIMP_RAW
  perform get_matnr.
Screen 0100.
  perform bdc_screen using  'SAPMM60X'     '0100'.
  perform bdc_field  using  'BDC_OKCODE'   '/EBDPT'.
  perform bdc_field  using  'AM60X-MATAW'  'X'.
  perform bdc_field  using  'AM60X-MATNR'  T_FILE-MATNR.
  perform bdc_field  using  'AM60X-PRGRP'  SPACE.
  perform bdc_field  using  'AM60X-PBDNR'  SPACE.
  perform bdc_field  using  'RM60X-BERID'  T_FILE-BERID.
  perform bdc_field  using  'AM60X-WERKS'  SPACE.
  perform bdc_field  using  'RM60X-VERSB'  '00'.
Converted the date as per MD61 Transaction.
From date
  l_frdat1 =  p_date+0(4).
  l_frdat2 =  p_date+4(2).
  l_frdat3 =  p_date+6(2).
  concatenate l_frdat2 l_frdat3 l_frdat1 into l_frdat.
To Date
  l_tdate = p_date - 1.
  l_todat1 =  l_tdate+0(4) + 1.
  l_todat2 =  l_tdate+4(2).
  l_todat3 =  l_tdate+6(2).
  concatenate l_todat2 l_todat3 l_todat1 into l_todat.
  perform bdc_field  using  'RM60X-DATVE'  l_frdat.
  perform bdc_field  using  'RM60X-DATBE'  l_todat.
  perform bdc_field  using  'RM60X-ENTLU'  'M'.
Screen 0127
  perform bdc_screen using  'SAPMM60X'     '0127'.
  perform bdc_field  using  'BDC_OKCODE'   '=WEIT'.
  if p_bedae is initial.
    perform bdc_field  using  'T459U-BEDAE'  space.
  else.
    perform bdc_field  using  'T459U-BEDAE'  P_BEDAE.
  endif.
Screen 0100.
  perform bdc_screen using  'SAPMM60X'     '0100'.
  perform bdc_field  using  'BDC_OKCODE'   '/00'.
  perform bdc_field  using  'AM60X-MATAW'  'X'.
  perform bdc_field  using  'AM60X-MATNR'  T_FILE-MATNR.
  perform bdc_field  using  'AM60X-PRGRP'  SPACE.
  perform bdc_field  using  'AM60X-PBDNR'  SPACE.
  perform bdc_field  using  'RM60X-BERID'  T_FILE-BERID.
  perform bdc_field  using  'AM60X-WERKS'  SPACE.
  perform bdc_field  using  'RM60X-VERSB'  '00'.
  perform bdc_field  using  'RM60X-DATVE'  l_frdat.
  perform bdc_field  using  'RM60X-DATBE'  l_todat.
  perform bdc_field  using  'RM60X-ENTLU'  'M'.
Screen 0200
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG01.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG02.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG03.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG04.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG05.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG06.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG07.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG08.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG09.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG10.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG11.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=SICH'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG12.
ENDFORM.                    " bdc_build_script
*&      Form  get_matnr
      Get the material number from tables ZMSMI_FERR_RAW,
      ZMSMI_SNAP_RAW and ZMSMI_SIMP_RAW
FORM get_matnr.
  clear v_matnr.
  case t_file-werks.
    when '0101'.
      select single cmatnr from zmsmi_simp_raw
             into v_matnr  where matnr = t_file-matnr.
      if sy-subrc eq 0.
        clear t_file-matnr.
        t_file-matnr = v_matnr.
      endif.
    when '0103'.
      select single cmatnr from zmsmi_ferr_raw
             into v_matnr  where matnr = t_file-matnr.
      if sy-subrc eq 0.
        clear t_file-matnr.
        t_file-matnr = v_matnr.
      endif.
    when '0102' or '0110' or '0111' or '0112' or '0113'
         or '0114' or '0115' or '0116' or '0117'.
      select single cmatnr from zmsmi_snap_raw
             into v_matnr  where matnr = t_file-matnr.
      if sy-subrc eq 0.
        clear t_file-matnr.
        t_file-matnr = v_matnr.
      endif.
  endcase.
ENDFORM.                    " get_matnr
*&      Form  bdc_screen
      BDC Script for Screen fields
     -->P_PROG   Program name
     -->P_SCRN   Screen Number
FORM bdc_screen USING    p_prog
                         p_scrn.
  clear itab_bdc_tab.
  itab_bdc_tab-program = p_prog.
  itab_bdc_tab-dynpro = p_scrn.
  itab_bdc_tab-dynbegin = c_x.
  append itab_bdc_tab.
ENDFORM.                    " bdc_screen
*&      Form  bdc_field
      BDC Script for Screen fileds
     -->P_NAM   Field name
     -->P_VAL   Field value
FORM bdc_field USING    p_nam
                        p_val.
  clear itab_bdc_tab.
  itab_bdc_tab-fnam = p_nam.
  itab_bdc_tab-fval = p_val.
  append itab_bdc_tab.
ENDFORM.                    " bdc_screen
*&      Form  bdc_submit_transaction
      BDC_INSERT Function Module
FORM bdc_submit_transaction.
Load BDC script as a trqansction in BDC session
  call function 'BDC_INSERT'
       EXPORTING
            tcode          = c_tcode
       TABLES
            dynprotab      = itab_bdc_tab
       EXCEPTIONS
            internal_error = 01
            not_open       = 02
            queue_error    = 03
            tcode_invalid  = 04.
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  refresh itab_bdc_tab.
ENDFORM.                    " bdc_submit_transaction
*&      Form  bdc_session_close
      text
FORM bdc_session_close.
  CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
  NOT_OPEN          = 1
  QUEUE_ERROR       = 2
  OTHERS            = 3
  skip 2.
  if sy-subrc ne 0.
    write: / 'Error Closing BDC Session ' , 'RETURN CODE: ', sy-subrc.
  else.
    write : /  'Session created:', v_ssnname,
            50 '# of transactions:', v_trans_in_ssn.
  endif.
ENDFORM.                    " bdc_session_close
Thanks
Seshu

Similar Messages

  • Problem in running batch input session

    Hello Guys i developed a lsmw object .in step 13 after executing  create batch inputsession a session is created and i can see the session created but when i go to step 14 run batch input session .i couldnt find session there and eventually can not run session can any body help me please .

    Hi priya,
    in 13step session is created for test data.
    if session is created the message will be display like this " 1 batech input n number of record are created".
    if like message will display 14th step automatically run the session ifnot there is problem with in u flat file or miss match with some fileds.
    check it corrected than run the u lsmw project.
    i think now it will work.
    Reward is usefull.
    Thank's.
    Patil

  • LSMW Issue at step -Run Batch Input Session

    Dear gurus,
                     While uploading service master through lSMW while processing the system prompts a message specifying "Buffertable not upto date" at Run Batch Input Session step .So please investigate what is missing/wrong.
    Wirth regards,
    Raj

    I dont think that this has directly something to do with LSMW.
    It is more related to the transaction your try to post in the batch input.
    Search OSS with the error message number. I had seen some notes for number SE001, but your message is actually twice in the message table, and you did not tell the message number.
    If it is message SE001, then you may find programm corrections in OSS.
    Otherwise just log out and in again and try, or open a message at OSS yourself if the problem still persists

  • Running Batch Input sessions in One program

    Hi Guys.
    I am sure this question might have come up before. Reall y  need quick help in this hence posted the same.
    I need to develop a program which creates several batch input sessions.
    At the end of the program all these sessions should ve triggerred in the background.
    Please let me know if this can be done and if yes can someone send me psuedocode for same.
    This is very urgent.
    thx

    Hi Vijay,
    Using the following function modules you can create a batch input session.
    BDC_OPEN_GROUP
    BDC_INSERT
    BDC_CLOSE_GROUP
    Example - http://www.sap-img.com/abap/auto-disallowed-back-posting-to-previous-period.htm
    You can use the program RSBDCSUB to schedule batch input sessions in background.
    http://www.sap-img.com/abap/learning-bdc-programming.htm - How to write BDC program
    Executing batch-input sessions in background jobs - Example for how to call the bdc session.
    Hope these are helpful.
    Thanks
    Vinod

  • I am getting an error while running Batch input session.

    While running BDC getting error that "Enter Discount Base, Automatic calculation not possible". I checked all the settings at company code level, tax code settings, document type settings. I am not getting it. While doing mannual posting the error is not coming.
    Please help me on this.

    Hi,
       While creating Material master sometime warning message will come for some materials . So while doing the LSMW Recording method it will record howmany times you are entering the "Enter" key also. So while doing batch input fome article it may stop at some point, so better run the LSMW in foreground and check were it stops exactly.
    Regards
    GK.

  • Error when running Batch Input session for T code F.05

    When I am executing Foreign Currency Revaluation using the T Code F.05, I am unable to post the documents for Foreign Loss or gain, as these GL accounts have been defined as cost Element.
    Can any one suggest how to generate postings.
    Phani

    Hi Phani,
    This error could be becuase you have created the P&L gl accounts for forex gain and loss as cost element and you have not done the automatic assignment of cost Center to these GL accounts. Please do the necessary cost center assignment to T Code OKB9. Identify the PL gl accounts related to forex gain and loss and assign cost center.
    Hope this solves the problem
    Regards
    Paul

  • Error while Running BRS Batch input session

    Dear Gurus,
    When i am running Batch input session after BRS statement posted, system giving Error message:
    <b>No batch input data for screen SAPDF05X 3100</b>
    Entered, saved and posted the statement. after that while processing session getting error like this........How to overcome.
    Can we post statement directly without creating session.
    Regards,
    Venkat

    Hi,
    The ABAP Counterpart has to build an exception handling for this particular message.
    Normally these messages occur either after an upgrade or after a change in the account(different filed status)
    Provide points if usefull.
    Thanks,
    Praveen

  • Batch input session is not created

    hello iam migrating inventory balance using standard batch input method .when iam running batch input session it is not created so nothing getting transfered.
    and also when i uploaded the flat file and execute step read data it is showing 10 items but when execute next step show read data is showing only 1 item record.
    can any one help with this thanks in advance.
    Regards
    priya

    i got the answer i dint execute process overview after creating seesion

  • Batch input session in background

    hai guys,
    Can we execute Batch input session in background scheduling thru jobs.
    i tried with sm37. but there is not option i guess.
    could you pls guide us.
    ambichan.

    Hi Ambi,
    As Anand and Wolfgang suggested, what you need to do in your ZFB05 program is as follows. Insert this after you create the sessions.
    Add parameters to your ZFB05 program for the session background processing like date, session name etc.
    Then after you create your sessions, insert the following code
    *-- run in the background
          CALL FUNCTION 'JOB_OPEN'
               EXPORTING
                    jobname          = 'YOURJOBNAME'
               IMPORTING
                    jobcount         = v_jobcount
               EXCEPTIONS
                    cant_create_job  = 1
                    invalid_job_data = 2
                    jobname_missing  = 3
                    OTHERS           = 4.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            EXIT.
          ENDIF.
          submit rsbdcsub  with mappe    = 'YOURSESSIONNAME'
                           with z_verarb = 'X'
                           with fehler   = 'X'
                           USER sy-uname
                           VIA JOB 'YOURJOBNAME'
                           NUMBER v_jobcount AND RETURN.
    *-- close the job
               CALL FUNCTION 'JOB_CLOSE'
               EXPORTING
                    jobcount             = v_jobcount
                    jobname              = 'YOURJOBNAME'
                    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.
            MESSAGE ID sy-msgid TYPE 'W' NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
    Hope this helps,
    Srinivas

  • Regarding document type in  batch input session

    Hi,
        when i run int.cal. (f.16) it is calculating perfect and posting also perfect using TC FB01 when i run batch input session but the deflaut values i.e.. doument type is assigned DA but now the client want to change the document type from DA to DG. How to change the document type in batch input session name RFDZIS00
                          Advance thanks
    Dinesh

    try to change table t033e ANWND = 5 with tcode se11
    A.

  • Revaluation error"posting are in batch input session"

    HI All,
    we are using 6.0 version and user has executed  revaluation for FEB month,they were practised to use the online postings, but when they excute the revaluation there was an error message for  3 accts " valauation kept in batch input session "and accounts determination is missing for these accounts" and when we check the batch input session using SM35 there is no session with error. How to work on this ?
    Is there any particular transaction where we can check the batch input session and execute once the accounts are assigned ?
    Plz advice us, and is necessary for closing the month end activity.
    best Regards
    Stephen

    Execute the session either online or in display error mode. This will give you the exact point of error and also you will be able to get detailed error message.
    Regards
    Rakesh Pawaskar

  • How to run the Batch input session(SM35) in background thru Report program

    Hi Experts,
    I am working in one modification report requirement ,the report is Mass upload will update and run the file via batch input session. The client requirement is to implement the report execution in background mode , the batch input session will process automatically (ie. the job runs the batch input session in background and process the session ends).
    Currently, the report calls SM35 to write a batch input session and the user manually selects the session and record the transactions.
    Once the Transaction enters and the selection-screen inputs are given, then the transaction executed in background mode and all the above batch input process to be implemented.
    Please advise and guide me, how to proceed.
    I need your guidance to proceed via Call transaction using bdcdata statement, if it can be achieved the requirement.
    Thanks & Regards
    San.

    Hi Arabind Prasad,
    Thanks for your inputs.
    I know the process of the report Execution in background and job steps.
    I want the inputs for how to upload thru Batch input session in background job and the session should also processed automatically
    Currently the report logic declared like call transaction 'SM35' and skip first screen.Once the report (tcode) executed (not in background) It writes one session in SM35. The user should select the session and process the transaction manually.
    The new requirement is, if the report (tcode) executes in background mode...what and how the batch input session should be declared and how it process automatically (like you said mode 'N').
    Hope I am clear in my query.
    Please advise.
    Regards
    San.
    Edited by: San Learner on Mar 1, 2011 7:16 PM

  • Test run in Batch input session

    Hi All,
    I am Working on BDC Batch input session i am able to create the Session 'SM35'  through my program.I have two radio two buttons in my program one is test and real.Is it possible to test run for the BDC(Batch input session).
    Thanks,

    Hi All,
    After Running the Batch Input Session in SM35.Is it possible  to get the order number which is created in the Batch Session.
    Can any body please help me out.
    Thanks,
    Swapna.

  • LSMW  Field Mapping: can't map Batch Input Structure for Session Data

    In step 5 Maintain Field Mapping and Conversion Rules, I can not see Batch Input Structure for Session Data Fields.
    Can somebody tell what's wrong?
    Here's what I see:
    Field Mapping and Rule
            BGR00                          Batch Input Structure for Session Data
                Fields
                BMM00                          Material Master: Transaction Data for Batch Input

    Hi Baojing,
    To see structure BGR00  you have to map this structure first with input file structure in step 4 (maintain structure relationship).
    Regards
    Dhirendra

  • How Can we delete automatically Incorrect Batch Input Sessions

    Dear Experts
    As per Note 16083 the Schedule of below program only deletes
    successfully created Jobs
    SAP_REORG_BATCHINPUT | RSBDCREO | yes | daily
    How to delete Incorrect BATCH INPUT SESSIONS AUTHOMATICALLY
    Rgds

    Hi,
    You could use the following code sample on SDN:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4794fc01-0901-0010-0fbf-beadbebbec54
    Regards,
    Gary

Maybe you are looking for