Problem Running a Batch Input!

Good Morning My Friends!
Let me explain how I work today.
I am running an RFC.
This RFC executes a JOB.
JOB executes a Batch Input BACK GROUND.
My problem is this.
If I only run the batch input it works, but when I call the RFC and it creates the job, the Batch Input does not work.
Following is the code that creates the JOB.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>
  CALL FUNCTION 'JOB_OPEN'
    EXPORTING
      delanfrep        = ' '
      jobgroup         = ' '
      jobname          = jobname
      sdlstrtdt        = sy-datum
      sdlstrttm        = sy-uzeit
    IMPORTING
      jobcount         = number
    EXCEPTIONS
      cant_create_job  = 1
      invalid_job_data = 2
      jobname_missing  = 3
      OTHERS           = 4.
IF sy-subrc EQ 0.
    SUBMIT zgpm_bat_inpl
                          WITH nome_per = nome
                          WITH descri = 'Descricao'
                          USER sy-uname
                          VIA JOB jobname NUMBER number
                          AND RETURN.
    exdate = sy-datum.
    extime = sy-uzeit.
    ADD 30 TO extime.
    DATA start_imediato LIKE btch0000-char1 VALUE 'X'.
Define o start do job.
    CALL FUNCTION 'JOB_CLOSE'
      EXPORTING
        jobname              = jobname
        jobcount             = jobcount
       sdlstrtdt            = exdate
       sdlstrttm            = extime
        strtimmed            = start_imediato
      EXCEPTIONS
        cant_start_immediate = 1
        invalid_startdate    = 2
        jobname_missing      = 3
        job_close_failed     = 4
        job_nosteps          = 5
        job_notex            = 6
        lock_failed          = 7
        invalid_target       = 8
        OTHERS               = 9.
    IF sy-subrc <> 0.
    ENDIF.
ENDIF.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<<<<
Following is the code that runs the Batch Input.
program :   zgpm_bat_inpl
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>
  opt_ctu_params-dismode = 'N'.
  opt_ctu_params-updmode = 'S'.
  opt_ctu_params-cattmode = ''.
  opt_ctu_params-defsize = ''.
  opt_ctu_params-racommit = 'X'.
  opt_ctu_params-nobinpt = ''.
  opt_ctu_params-nobiend = ''.
              CALL TRANSACTION (name_tran) USING it_bdcdata
                                        OPTIONS FROM opt_ctu_params
                                        MESSAGES INTO it_msg.
IF sy-subrc <> 0.
                LOOP AT it_msg .
                  WRITE: /, it_msg-dyname,
                            it_msg-dynumb,
                            it_msg-msgv1,
                            it_msg-msgv2,
                            it_msg-msgv3,
                            it_msg-msgv4.        
                ENDLOOP.
endif.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<<<<
Att:
Deivison BR

See note 311440. I think you can only run this in the foreground.
Rob

Similar Messages

  • What are the problems in processing batch input sessions?

    hi,
    What are the problems in processing batch input sessions? How is batch input process different from processing on line?
    regards.

    sorry, question resolved.

  • 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.

  • 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

  • Problem while executing Batch Input session

    HI All,
           I am creating batch input session for transaction FB01.After creating the sesson when I am trying to execute it, its giving me the pop up "Session XYZ is being processed by user" and doesnt allow to excute it.
      Pease suggest me the solution on this.
      I have tried using "COMMIT WORK" , " COMMIT WORK AND WAIT", but it is not working.
    Regards
    Saurabh

    HI Saurabh
      I guess you are trying to process a session which already being processed. You can check the session that are currently in processing state via tab <b>"In Processing".</b> We an process the sessions that are in <b>"New"</b> or <b>"Incorrect"</b> State.
    Kind Regards
    Eswar

  • Batch input problem in SM35

    Dear all,
    I am uploading the bank statements using manual bank statements through Z transaction, Once uploaded system is generating the batch input session for the same.
    When i run the batch input session system not clearing outgoing payment automatically based on the assignment field, as i have alreday mentioned the same assignment while posting the document and in the excel file.
    I am getting the following message while running the batch input session.
    No batch input data for screen SAPDF05X 3100
    Message no. 00344
    Diagnosis
    The transaction sent a screen that was not expected in the batch input session and which therefore could not be supplied with data.
    Possible reasons:
    1. The batch input session was created incorrectly. The sequence of screens was recordly incorrectly.
    2. The transaction behaves differently in background processing in a batch work process than when running in dialog (SY-BATCH is queried and changes the screen sequence).
    3. The transaction has undergone user-specific Customizing and therefore certain screens may be skipped or processed differently, according to the current user. If the person who created a batch input session is not the same as the person now processing it, this problem may occur frequently.
    System Response
    None.
    Procedure
    For 1: Either re-create the session or process it in expert mode. Correct the batch input program.
    For 2. It is very difficult to analyze this problem, particularly in the case that the screen sequence or the display-only options of fields differ according to whether the transaction is being processed in the background or as an online dialog. It could also be that this kind of transaction cannot run with batch input.
    For 3: Have the creator of the session process it. If no error occurs now, then this is a program with user-specific Customizing.
    Please let me know solution for the same.
    Regards,
    Anand

    Hi,
    This may not be a solution but may help you to isolate the problem
    a) Are you able to load the bank statement for other banks without error ?
    b) Try for the same bank in a different system .
    c) If it is working for different bank then check the file format is the same for both the banks.
    d) If it is working in different system check the ABAP code for any changes between the system,
    e) Are you getting this message for all the line items or only for some line items ?
    Regards
    K.R

  • Funds Commitment Batch-Input running in Job

    Hi Folks,
    I'm having some trouble with a batch-input running in job for transaction FMZ1.
    When I run the batch-input in a dialog process (no job) it works perfectly, however when I execute this same program in a Job the job doesn't finishes, and when I debug the job, it freezes when calling transaction FMZ1.
    Does anyone know if I'm missing something? Or is there any restriction for this transaction to be executed in a job?
    Thanks in advance.
    Regards,
    Gilberto Li

    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

  • 2 batch inputs always run in sequence in LSMW

    Hi all,
       Is it possible to run 2 batch inputs( one is for create material , other is change material tranactions) in sequence in LSMW, If possible please let me know?
    Thanks & Regards
    RK

    Hi
    No its not possible to run two in sequence in one shot
    u need to run one by one and one after the other
    bcoz mapping of structured fields will be clashed
    hope this is clear
    reward pts if helpful
    regards
    sreenivas

  • Problem Batch Input SAPLSLVC_FULLSCREEN 0700

    Hi experts,
    I have a problem during my batch input recording. The requirement I have is to maintain the communication type TLX (Télex) when i´m creating a new vendor. I'm creating a BDC for XK01, and when i´m trying to input the "other communication" details for the vendor, recording stop. I saw on SDN similar problems: (  ) But i don´t see the solution.
    My code is like this:
       PERFORM bdc_dynpro      USING 'SAPMF02K' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR' 'RF02K-KTOKK'.
        PERFORM bdc_field       USING 'RF02K-KTOKK' i_sol-ktokk.
        PERFORM bdc_field       USING 'RF02K-BUKRS' i_sol-bukrs.
        PERFORM bdc_field       USING 'RF02K-EKORG' ekorg.
        PERFORM bdc_field       USING 'BDC_OKCODE' '/00'.
         PERFORM bdc_dynpro      USING 'SAPMF02K' '0111'.
          PERFORM bdc_field       USING 'BDC_CURSOR'   'ADDR1_DATA-REGION'.
          PERFORM bdc_field       USING 'ADDR1_DATA-NAME1' i_sol-name1.
          PERFORM bdc_field       USING 'ADDR1_DATA-POST_CODE1' i_sol-pstlz.
          PERFORM bdc_field       USING 'ADDR1_DATA-STREET' i_sol-stras.
         PERFORM bdc_field       USING 'ADDR1_DATA-NAME2' i_sol-name2.
          PERFORM bdc_field       USING 'ADDR1_DATA-SORT1' i_sol-sort1.
          PERFORM bdc_field       USING 'ADDR1_DATA-SORT2' i_sol-sort2.
          PERFORM bdc_field       USING 'BDC_OKCODE' '=$MCO'.
          PERFORM bdc_dynpro      USING 'SAPLSLVC_FULLSCREEN' '0700'.     
          PERFORM bdc_field       USING 'BDC_OKCODE' '=%_GC 117 3'.
          PERFORM bdc_dynpro      USING 'SAPLSZA6' '0500'.
          PERFORM bdc_field       USING 'BDC_CURSOR' 'ADTLX-TLX_NUMBER(01)'.
          PERFORM bdc_field       USING 'ADTLX-TLX_NUMBER(01)' i_sol-telx1.
          PERFORM bdc_field       USING 'BDC_OKCODE' '=CONT'.
    I think the problem is that the cursor in dynpro 700 appears in first position (Fax) and i want to put it on the télex position, but any codes i try resolved it.
    Thanks in advanced.
    Edited by: Noaser on Aug 19, 2010 11:47 AM

    Hello,
    Solved problem, I changed my code:
          PERFORM bdc_dynpro    USING 'SAPMF02K'                     '0111'.
          PERFORM bdc_field       USING 'BDC_OKCODE'                '=$TLX'.
          PERFORM bdc_field       USING 'BDC_CURSOR'                 'ADDR1_DATA-REGION'.
          PERFORM bdc_field       USING 'ADDR1_DATA-NAME1'    i_sol-name1.
          PERFORM bdc_field       USING 'ADDR1_DATA-POST_CODE1' i_sol-pstlz.
          PERFORM bdc_field       USING 'ADDR1_DATA-STREET'  i_sol-stras.
          PERFORM bdc_field       USING 'ADDR1_DATA-HOUSE_NUM1'  i_sol-house_num1.
          PERFORM bdc_field       USING 'ADDR1_DATA-CITY1'      i_sol-ort01.
          PERFORM bdc_field       USING 'ADDR1_DATA-COUNTRY' spras.
          PERFORM bdc_field       USING 'ADDR1_DATA-REGION'   i_sol-regio.
          PERFORM bdc_field       USING 'ADDR1_DATA-LANGU'    i_sol-spras.
          PERFORM bdc_field       USING 'ADDR1_DATA-NAME2'    i_sol-name2.
          PERFORM bdc_field       USING 'ADDR1_DATA-SORT1'    i_sol-sort1.
          PERFORM bdc_field       USING 'ADDR1_DATA-SORT2'    i_sol-sort2.
          PERFORM bdc_field       USING 'ADDR1_DATA-REMARK' i_sol-comentarios.
          PERFORM bdc_field       USING 'SZA1_D0100-TEL_NUMBER' i_sol-telf1.
          PERFORM bdc_field       USING 'SZA1_D0100-FAX_NUMBER' i_sol-telfx.
          PERFORM bdc_field       USING 'SZA1_D0100-SMTP_ADDR'  i_sol-email.
          PERFORM bdc_field       USING 'SZA1_D0100-MOB_NUMBER' i_sol-mob_number.
          PERFORM bdc_dynpro      USING 'SAPLSZA6'                    '0500'.
          PERFORM bdc_field       USING 'BDC_CURSOR'                 'ADTLX-TLX_NUMBER(01)'.
          PERFORM bdc_field       USING 'ADTLX-TLX_NUMBER(01)' i_sol-telx1.
          PERFORM bdc_field       USING 'BDC_OKCODE'                 '=CONT'.
          PERFORM bdc_dynpro      USING 'SAPMF02K'                    '0111'.
          PERFORM bdc_field       USING 'BDC_OKCODE'                 '/00'.
    Regards.

  • Error in batch input through a job (mm01)

    Hi,
    I have a problem with a batch input on MM01.
    I want to extend material for a new center and I do it through a batch input. If I execute this batch input with F8 and in mode = 'N', it ends ok.
    The problem is when I run this program with a job, the material is not added to the new center.
    Can anyone help me?
    Thanks,
    Liliana.

    Hi,
    Try using BAPI BAPI_MATERIAL_SAVEDATA...
    Check this link for a sample code..
    http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm
    Thanks,
    Naren

  • LSMW- Batch Input session getting error

    Hi All,
    I created LSMW object for Tcode KO01 and its creating the Internal order as expceted.But even after creating the document the Batch Input session status is showing incorrect.No messages are also displayed in the log.
    Please let me know why this is happening.
    Thanks in Advance,
    Savitha

    Hi,
    Detail Error Message is as follows:
    No batch input data for screen SAPLIMR0 1110
    Message no. 00344
    Diagnosis
    The transaction sent a screen that was not expected in the batch input session and which therefore could not be supplied with data.
    Possible reasons:
    1. The batch input session was created incorrectly. The sequence of screens was recordly incorrectly.
    2. The transaction behaves differently in background processing in a batch work process than when running in dialog (SY-BATCH is queried and changes the screen sequence).
    3. The transaction has undergone user-specific Customizing and therefore certain screens may be skipped or processed differently, according to the current user. If the person who created a batch input session is not the same as the person now processing it, this problem may occur frequently.
    System Response
    None.
    Procedure
    For 1: Either re-create the session or process it in expert mode. Correct the batch input program.
    For 2. It is very difficult to analyze this problem, particularly in the case that the screen sequence or the display-only options of fields differ according to whether the transaction is being processed in the background or as an online dialog. It could also be that this kind of transaction cannot run with batch input.
    For 3: Have the creator of the session process it. If no error occurs now, then this is a program with user-specific Customizing.
    Regards,
    ababfk

  • ME11 BATCH INPUT

    hi. I'm having problem with my batch input. here is my code:
      PERFORM BDC_DYNPRO TABLES BDCDATA USING  'SAPMM06I' '0100'.
      PERFORM BDC_FIELD TABLES BDCDATA USING:
        'BDC_OKCODE'                     '=ENTR',
        'EINA-LIFNR'                     I_REC-VENDOR,
        'EINA-MATNR'                     I_REC-MATNR,
        'EINE-EKORG'                     'BE01',
        'EINE-WERKS'                     P_WERKS.
      PERFORM BDC_DYNPRO TABLES BDCDATA USING  'SAPMM06I' '0102'.
      PERFORM BDC_FIELD TABLES BDCDATA USING:
        'BDC_OKCODE'                     '=ENTR',
        'EINE-APLFZ'                     I_REC-PLADEL,
        'EINE-NETPR'                     I_REC-NETPR.
      PERFORM BDC_DYNPRO TABLES BDCDATA USING  'SAPLSPO1' '0100'.
      PERFORM BDC_FIELD TABLES BDCDATA USING:
        'BDC_OKCODE'                     '=YES'.
      CALL TRANSACTION 'ME11' USING BDCDATA
                              MODE 'E'
                              UPDATE 'S'
                              MESSAGES INTO ITAB_MSG.
    but when i run my program the screen shows up and needs to press enter to continue.
    I need to create info record thru batch input but the 2nd screen shows up everytime i run the program. Please let me know what i did wrong.
    thanx.

    There may be probelm in recarding.....
    u can also test that recording in SHBD...(check it weather it is properly recorded or not)...
    Ramesh.

  • Batch input on MD74, MD75, MD76

    hello everyone.
    This is first time to use this forum for me,
    what I want to do is : befor I use MD64,  I want to use  MD74, MD75,MD76 to
    delete  all of data in table PBED,PBHI,PBIM.
    so, when run T-code  MD74, MD75, MD76 ,
    the paramater  only key date ' 99991231' is inputed,
    and I can delete all of the date by running t-code MD74,MD75,MD76.
    and ,  I created a batchinput program to call transcation md74,md75,md76
    on the same paramater.   but  I can not delete all of the date by my program,
    only can delete some data in PBIM,PBHI,PBED, 
    maybe only can delete 1000 data in PBIM one time, 
    have you any one know why ?
    please help me,
    thanks , everyone.
    Harry

    Hi,TAJUDDIN MOHAMMED
    I am so glad to see you replay. thanks a lot.
    I think there is no problem about parameter setting.
    and, I read the souce code of MD74,  but I am not sure
    I saw the source like this  do 1000 times. ....
    maybe ,when run in batch input, there is this limit .
    I will confirm it tomorrow,  
    thank you again.
    Best regards
    Harry

  • Conflicting Error Messages in Batch Input Screen SAPLCOIH 3000

    Hi,
    Appreciate it if someone could guide me on a small batch input issue I have with the creation of a new work order and attempting to place costs in a specific line of a value category. I am able to work out and try to place the cursor in the field I need (PMCOEA-SKOSTENKGR(8)) but when I run the bactgh input session it comes up with the error message "No batch input data for screen SAPLCOIH 3000". When I try and alter this to throw the screen required I then get the message "Field PMCOEA-SKOSTENKGR(8) does not exist in the screen SAPLCOIH 3000"?
    I am confused by this. can any one shed any light on this please?
    Thanks

    Hi,
    Thanks for your reply. Yes I have also tried both stepping thru the process online and in background with the same outcome. I'm tring to understand whether there is an issue with trying to supply estimated cost details via batch input. All my other screen processing up to this point (including adding all work order header, notifications and long text information) works perfectly and without problem. The batch input tells me to supply this screen but when I do I get a conflicting error that it is not the correct screen. I'm trying to find whether I should be supplying a subscreen instead.
    Any further help appreciated.
    Thanks

Maybe you are looking for

  • New FaunOS Live Arch-Based DVD/USB Distro Now Available

    Hello fellow archers, We have just released the latest version of FaunOS. Since this version of FaunOS is the answer to the most important question in the universe, we have named it "fortytwo." FaunOS-fortytwo contains many improvements over previous

  • How Can PC User Transfer AOL Contacts to iPhone?

    Does anyone know a way that a PC user can tranfer AOL email address contact history to iPhone 3G? In an earlier thread, Allan Sampson solved this need for a Mac user via Internet_Utilities/aolserviceassistant.html. Is there any way for a PC user like

  • How to 'Suppress Units' in IP?

    In SEM-BPS you had an option, when creating a layout, to 'Suppress Units' against key figures.  How do you do that in Query Designer for creating a Planning Query? Any help would be appreciated, Jaime

  • Eclipse3.0 console error help.....

    Hi all, I did post this previously, for some reason I didnt get a response.I am posting it again.Will hope for a response. Aug 10, 2004 11:25:34 AM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.In

  • Photoshop Elements 8 Text Problem

    I am VERY new to Photoshop Elements. I was editing a photo and adding text yesterday.  I was going to make the text box smaller, and when doing this it ended up stacking my text ontop of each other. So now i have a bunch of garbled words, one typed r