Batch Input. Transaction KSU5 and KOK4

Hi,
I would like to execute transactions KSU5 and KOK4 in background.
The system generates this error message 00344: "No batch input data for screen..." When the batch input session is processed online the error does not occur.
Regards.

Hi Martin,
How can I execute this report in operation MODE 'E'?
Regards.

Similar Messages

  • Batch Input for VA31 and adding new partner

    Dear All,
    I have a already well running program, which is creating new scheduling agreement via transaction VA31 in batch input mode.
    Now, there is a new requirement to add one partner in the header. I made a recording and saw that there is a subcreen SAPLV09C. I extended the program, but doesn't matter I'm doing I always get the message:
    No batch input data for screen SAPMV45A 4002
    Does anyone has experience with adding new partners in the header and can explain me how to make the right development.
    Thanks in advance.
    Klaus

    Hi Klaus,
    If you get the error No Batch input data for screen proceed as follows:
    1. In the Installation Assistant mark the foreground checkbox (in the column FG of the Installation Assistant project view) of this specific eCATT.
    2. Activate the project again.
    3. Run the eCATT in foreground
    seee this links
    ftp://ftp.software.ibm.com/software/websphere/integration/wbiadapters/library/doc/pdf/mysap4/mysap4_60.pdf
    www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm - 9k -
    thanks
    karthik
    reward me if usefull

  • BATCH INPUT transaction FB02

    Hello Friends,
    I have a programme which uses batch-input with transaction FB02. The idea here is to put a dunning block to several documents. This works fine and the BSEG-MANSP field is updated. But when I run transaction F150 (the wholde dunning process) the blocked documents still come up here...even though they are blocked... but if I do an ABAP direct update on the MHND-MANSP field (this also indicates that document is blocked, but is not set when running FB02 ) it works, then these documents are not dunned in F150. Is there any way to block the documents from being dunned in F150 without using the direct mhnd update?
    Best regards
    Baljinder Singh

    if you want to leave a batch session try "/bend" or "/n" to move to the next record.

  • Batch input transaction MIGO

    Hi,
    I want to call transaction MIGO twice in a report using batch input:
    once with Goods Receipt acition(A01)  AND
    once with Goods issue action(A07).
    My problem is that MIGO remebers the last MIGO transaction and does not accept new batch input fields for antother action.
    Does anyone know how to refresh the MIGO memory or something?
    Best Regards
    Anne M Johannessen

    Try with the code b4 batch input is called.
    Delete from Esdus where uname = sy-uname.
    This will delete the user settings for that user.
    Tharani

  • Problems with the batch in transaction MB1A and MB21

    Hi everybody, I am new in the MM module. I am having a problem with transaction MB1A and MB21, when i try to select a batch for the movement 901. if i click the match code for the material's batch, the system shows me all the batches for the material, but some of these batches don't have available quantity stock and order creates the reservation or the material output. The system dont allow negative stock. Do you have any idea of this problem? Regards.

    Hi,
    In IM, when you select a batch with possibile entries, system always shows the available batches no matter whether stock is there are not.
    However, if you setup batch determination strategy for example, when you are processing in MB1A, SAP fills the batch based on the criterion you define in:
    MBC1Logistics -->Materials Management -->Inventory Management -->Environment -->Batch Search Strategy -->MBC1 - Create
    Select appropriate strategy (if defined in your system, say for mvt ty)
    maintain search strategy and sort criteria for your movement type here.
    Hope this helps!

  • HELP with a Batch Input - Transaction VF01

    Hi
    It's me again, with another question... this time it's a Batch Input, creating a delivery with more than 20 items, how can I do with the error
    Field KOMFK-VBELN(69) does not exit in the screen SAPMV60A 0102
    and if I click on OK-Code how to indicate (in code lines) to simulate the process <b>EDIT</b> (From Menu bar) <b>More Documents F7</b>
    Thanks in advance!!!
    Tokio

    Thanks to all of you...
    These are my fist lines to answer one of my posted problems ...
    Preview code lines:
    perform bdc_dynpro using 'SAPMV60A' '0102'.                          
       loop at entregas.                                                 
         move sy-tabix to fila.                                          
         concatenate 'KOMFK-VBELN(' fila ')' into cadena.                
         perform bdc_field using cadena entregas-entrega.                                                                               
    IF FILA GE '20'.                                                
           PERFORM BDC_FIELD USING 'BDC_OKCODE'  '=P+'.                  
           MOVE SY-TABIX TO FILA.                                        
           CONCATENATE 'KOMFK-VBELN(' FILA ')' INTO CADENA.              
           PERFORM BDC_FIELD USING CADENA ENTREGAS-ENTREGA.              
         ENDIF.
    New code lines:
    CLEAR ENTREGAS.
    PERFORM BDC_DYNPRO USING 'SAPMV60A' '0102'.
      LOOP AT ENTREGAS.
         MOVE SY-TABIX TO FILA.
       IF FILA LT 22.
          CONCATENATE 'KOMFK-VBELN(' FILA ')' INTO CADENA.
          PERFORM BDC_FIELD USING CADENA ENTREGAS-ENTREGA.
       ENDIF.
       IF FILA EQ 22.
        CONCATENATE 'KOMFK-VBELN(' FILA ')' INTO CADENA.
        PERFORM BDC_FIELD USING CADENA ENTREGAS-ENTREGA.
        PERFORM BDC_OKCODE USING '=FKAN'.
        PERFORM BDC_DYNPRO USING 'SAPMV60A' '0102'.
       ENDIF.
       IF FILA GE 23. BREAK FOSTKFRT.
         DATA: FILA2(2), CNT2 LIKE SY-TABIX VALUE 2. MOVE CNT2 TO FILA2.
         CONCATENATE 'KOMFK-VBELN(' FILA2 ')' INTO CADENA.
         PERFORM BDC_CURSOR USING CADENA.
         PERFORM BDC_FIELD USING CADENA ENTREGAS-ENTREGA.
         CNT2 = CNT2 + 1.
       ENDIF.
      ENDLOOP.
      CLEAR CNT2.
    I hope these lines could help.
    Regards
    Tokio

  • Need change Batch input transaction me21

    Hi all,
    I have to modify a existing report that load data via bdc,
    i have to add ekko-wkurs field in bdc.
    my question is, after put the field wkurs in internal table with other data, how can modify the bdc?
    writing this:  perform bdc_field       using 'EKKO-WKURS'
                                           tab-01-tst-cambio.
    and if it the right way, where I exactly put this piece of program?
    I paste a piece of report where I put this:
    perform bdc_dynpro      using 'SAPMM06E' '0100'.
        perform bdc_field       using 'EKKO-LIFNR'
                                      TAB-01-TST-CODICE_FORNITORE.
        perform bdc_field       using 'RM06E-BSART'
                                      'ZAPI'.
        perform bdc_field       using 'RM06E-BEDAT'
                                      TAB-01-TST-DATA_ODA.
        perform bdc_field       using 'RM06E-BSTNR'
                                       TAB-01-TST-NUM_ODA.
        perform bdc_field       using 'EKKO-EKORG'
                                      'Z535'.
        perform bdc_field       using 'EKKO-EKGRP'
                                      'Z34'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '/00'.
        perform bdc_dynpro      using 'SAPMM06E' '0514'.
        perform bdc_field       using 'EKKO-BUKRS'
                                      TAB-01-TST-SOCIETA.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      'ENTE'.
        perform bdc_dynpro      using 'SAPMM06E' '0120'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=KOPF'.
        perform bdc_dynpro      using 'SAPMM06E' '0101'.
        perform bdc_field       using 'EKKO-ZTERM'
                                      TAB-01-TST-CON_PAG.
        perform bdc_field       using 'EKKO-WAERS'
                                      TAB-01-TST-DIV_ODA.
    aggiunta del campo wkurs
        PERFORM BDC_FIELD       USING 'EKKO-WKURS'
                                      TAB-01-TST-CAMBIO.
        PERFORM BDC_FIELD       USING 'EKKO-IHREZ'
                                      'CONVERSIONE'.
        perform bdc_field       using 'BDC_OKCODE'
                                      'AB'.
    thanks all.

    Hi Fabrizio
    I believe It's right what you have done:
    If this is old code:
    perform bdc_dynpro using 'SAPMM06E' '0101'.
    perform bdc_field using 'EKKO-ZTERM' TAB-01-TST-CON_PAG.
    perform bdc_field using 'EKKO-WAERS' TAB-01-TST-DIV_ODA.
    It's right to add your new code here
    PERFORM BDC_FIELD USING 'EKKO-WKURS' TAB-01-TST-CAMBIO.
    Infact the field 'EKKO-WKURS' is in screen SAPMM06E0101 so it's right place the code where the field of that screen are filled.
    Max

  • In which tables are batch input error messages logged?

    does anybody know in which table are the batch input error messages logged?
    I have to display the error messages which have occured during the transaction
    I tried to find out, but i could see only the table BDCMSGCOLL, this table has only the Batch input message number and not the message itself?
    does anybody know about the batch input error messages?

    hi,
    check the sample code below.
    messtab is of type BDCMSGCOLL.
    Call the transaction and then use T100 to get the message.
    DATA: l_mstring(480).
    call transaction using
      REFRESH messtab.
      CALL TRANSACTION tcode USING bdcdata
                       MODE   ctumode
                       UPDATE cupdate
                       MESSAGES INTO messtab.
      l_subrc = sy-subrc.
      SKIP.
      LOOP AT messtab.
        SELECT SINGLE * FROM t100 WHERE sprsl = messtab-msgspra
                                  AND   arbgb = messtab-msgid
                                  AND   msgnr = messtab-msgnr.
        IF sy-subrc = 0.
          l_mstring = t100-text.
          IF l_mstring CS '&1'.
            REPLACE '&1' WITH messtab-msgv1 INTO l_mstring.
            REPLACE '&2' WITH messtab-msgv2 INTO l_mstring.
            REPLACE '&3' WITH messtab-msgv3 INTO l_mstring.
            REPLACE '&4' WITH messtab-msgv4 INTO l_mstring.
          ELSE.
            REPLACE '&' WITH messtab-msgv1 INTO l_mstring.
            REPLACE '&' WITH messtab-msgv2 INTO l_mstring.
            REPLACE '&' WITH messtab-msgv3 INTO l_mstring.
            REPLACE '&' WITH messtab-msgv4 INTO l_mstring.
          ENDIF.
          CONDENSE l_mstring.
          WRITE: /4 messtab-msgtyp, l_mstring(250).
        ELSE.
          WRITE: /4 messtab.
        ENDIF.
      ENDLOOP.

  • LSMW - Error in Inventory - Create batch input session

    Hello good day.
    I'm trying to create a batch input session for inventory upload (Standard Batch Input program - RM07MMBL) and when I select the Name of logical file = "MM_INVENTORY_MANAGEMENT_GOODS_MOVEMENT" and press F8, the following error occurs:
    <b>Sequential file mmgoods cannot be opened
    Message no. M7 850</b>
    Now as the legend says.... I've contacted my system administrator and he keeps telling me everything is ok, but the error keeps appearing, where can I see if I have authorization for this "file" ???
    Where is it created ??
    I need more info on this.
    Your help is very much appreciated.
    Thank you.
    Juan

    go to file transaction n check for the logical file path and logical file weather it is defined correctly r not?
    if it is correctly defined check for the file, weather the flat file is defined at the correct location which is defined in the logical file path
    u can refer the below link also
    Re: Logical file
    Regards,
    Naveen

  • BDC Batch input session method

    Hi ,
               I am new to SAP progamming. Pls let me know the basics of BDC Batch Input session method and Call transaction method. I want to know the pros and cons of both methods with justification. Please help me in this regarding.

    Hi,
    Session method.
    1) synchronous processing.
    2) can tranfer large amount of data.
    3) processing is slower.
    4) error log is created
    5) data is not updated until session is processed.
    Call transaction.
    1) asynchronous processing
    2) can transfer small amount of data
    3) processing is faster.
    4) errors need to be handled explicitly
    5) data is updated automatically
    Check these link:
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://www.sap-img.com/abap/question-about-bdc-program.htm
    http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
    http://www.planetsap.com/bdc_main_page.htm
    Session method:
    1. Data migration is done in two steps .. Generate session and Process session.
    So resouces can be used efficiently. good for bulkdata migration.
    2. Session method generates error log when u process a session.
    3. No SY-SUBRC can be returned after each transaction is called.
    4. Provides synchronous Updation only...
    Call transaction method:
    1. Data migration is done in single steps ..bcoz Transactions are called immediately after filling BDCDATA table. So good for small amount of data.
    2. We have to collect error messages using BDCMSGCOLL Table
    3. Returns SY-SUBRC and Messages ..after each Call Transaction..very useful feature for further processing based on the Status and Messages..
    4. Supports Asynch or Synch Updation.
    Example code for session method
    Here is the porgram for Purchase order
    REPORT zmm0069 NO STANDARD PAGE HEADING
                                      MESSAGE-ID z0
                                      LINE-SIZE  132
                                      LINE-COUNT 65(2).
                         Internal Tables                                 *
    *Internal table for the purchasing info records fields.
      DATA: BEGIN OF i_inforecord OCCURS 0,
            matnr(18),
            lifnr(10),
            uom(3),
            ekgrp(3),
            planned_time(3),
            under_tol(3),
            over_tol(3),
            qty(10),
            price_cat(5),
            inco(3),
            designation(28),
            netpr(13),
            scale_qty1(10),
            scale_pr1(13),
            scale_qty2(10),
            scale_pr2(13),
            scale_qty3(13),
            scale_pr3(10),
            scale_qty4(13),
            scale_pr4(10),
            scale_qty5(13),
            scale_pr5(10),
            scale_qty6(13),
            scale_pr6(10),
            scale_qty7(13),
            scale_pr7(10),
            scale_qty8(13),
            scale_pr8(10),
            scale_qty9(13),
            scale_pr9(10),
            scale_qty10(13),
            scale_pr10(10),
            END OF i_inforecord.
    Internal table for Old and New Vendor number
      DATA : BEGIN OF i_lfb1 OCCURS 1,
             lifnr(10),
             altkn(10),
             END   OF i_lfb1.
    Declare internal table for Call Transaction and BDC Session
      DATA: i_bdc_table LIKE bdcdata OCCURS 0 WITH HEADER LINE.
                         Global Variables                                *
      DATA: g_counter(2) TYPE n,
            g_field_name(18) TYPE c,
            zc_yes  TYPE syftype VALUE 'X'.
                         Selection Screen                                *
      SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
      PARAMETERS: p_fname1 TYPE localfile .
      SELECTION-SCREEN SKIP 1.
      SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-002.
      PARAMETERS: p_rloc1 AS CHECKBOX  DEFAULT 'X'.
      SELECTION-SCREEN BEGIN OF BLOCK c WITH FRAME TITLE text-003.
      PARAMETERS p_group(12) OBLIGATORY DEFAULT 'ZPURCHINFO'.
      SELECTION-SCREEN END OF BLOCK c.
      SELECTION-SCREEN END OF BLOCK b.
      SELECTION-SCREEN END OF BLOCK a.
    **WRITE the report header
      TOP-OF-PAGE.
        INCLUDE zheading.
                         Start of selection                              *
      START-OF-SELECTION.
    Load Input file
        PERFORM f_load_input_file.
    Create BDC records.
        PERFORM create_bdc_records .
    *&      Form  Create_BDC_records
          Perform the BDC for the records in the internal table
      FORM create_bdc_records .
        IF NOT i_inforecord[] IS INITIAL.
    Open BDC session
          PERFORM open_bdc_session.
          SELECT lifnr altkn FROM lfb1 INTO TABLE i_lfb1
                              FOR ALL ENTRIES IN i_inforecord
                              WHERE altkn = i_inforecord-lifnr.
    Sorting the Internal table for better performance
          SORT i_lfb1 BY altkn.
          LOOP AT i_inforecord.
    ***Mapping Old Vendor number to the new Vendor number
            READ TABLE i_lfb1 WITH KEY altkn = i_inforecord-lifnr BINARY
                                                                  SEARCH.
            IF sy-subrc EQ 0.
              i_inforecord-lifnr = i_lfb1-lifnr.
            ENDIF.
            CLEAR i_bdc_table[].
            PERFORM insert_screen_header.
         call transaction 'ME11' using i_bdc_table
                       mode 'A'.
         CLEAR i_bdc_table.
          ENDLOOP.
          CLEAR i_inforecord[].
          PERFORM close_bdc_session.
    Release the BDC sessions created
          PERFORM release_bdc.
        ENDIF.
      ENDFORM.                    " open_group
    *&      Form  bdc_dynpro_start
          Start the screen for the transfer of fields
      FORM bdc_dynpro_start  USING    p_g_program_1
                                      p_g_screen.
        CLEAR i_bdc_table.
        i_bdc_table-program  = p_g_program_1.
        i_bdc_table-dynpro   = p_g_screen.
        i_bdc_table-dynbegin = 'X'.
        APPEND i_bdc_table.
      ENDFORM.                    " bdc_dynpro_start_start
    *&      Form  bdc_insert_field
           Insert field                                                  *
      FORM bdc_insert_field USING f_name f_value.
        IF f_value <> space.
          CLEAR i_bdc_table.
          i_bdc_table-fnam = f_name.
          i_bdc_table-fval = f_value.
          APPEND i_bdc_table.
        ENDIF.
      ENDFORM.                    "bdc_insert_field
    *&      Form  open_bdc_session
          Open a BDC session
      FORM open_bdc_session .
    Open BDC session and create and update records
        CALL FUNCTION 'BDC_OPEN_GROUP'
          EXPORTING
            client                    = sy-mandt
          DEST                      = FILLER8
            group                     = p_group
          HOLDDATE                  = FILLER8
            keep                      = 'X'
            user                      = sy-uname
          RECORD                    = FILLER1
          PROG                      = SY-CPROG
        IMPORTING
          QID                       =
       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.                    " create_bdc_session
    *&      Form  insert_screen_header
          Screen flow for the transfer of fields
      FORM insert_screen_header .
    First Screen 100
        PERFORM bdc_dynpro_start USING 'SAPMM06I' '0100'.
        PERFORM bdc_insert_field USING:'BDC_CURSOR' 'EINA-LIFNR',
                                       'BDC_OKCODE' '/00',
                                       'EINA-LIFNR' i_inforecord-lifnr,
                                       'EINA-MATNR' i_inforecord-matnr,
                                       'EINE-EKORG' '1000',
                                       'RM06I-NORMB' zc_yes.
    Next Screen 101
        PERFORM bdc_dynpro_start USING 'SAPMM06I' '0101'.
        PERFORM bdc_insert_field USING : 'BDC_CURSOR' 'EINA-MAHN1',
                                         'BDC_OKCODE' '/00',
                                         'EINA-MEINS' i_inforecord-uom.
    *Next Screen 102
        PERFORM bdc_dynpro_start USING 'SAPMM06I' '0102'.
        PERFORM bdc_insert_field USING : 'BDC_CURSOR' 'EINE-INCO2',
                                     'EINE-APLFZ' i_inforecord-planned_time,
                                     'EINE-EKGRP' i_inforecord-ekgrp,
                                     'EINE-NORBM' i_inforecord-qty.
        PERFORM bdc_insert USING  'EINE-UEBTK' ' '.
        PERFORM bdc_insert_field USING:'EINE-PEINH' i_inforecord-scale_qty1,
                                       'EINE-BPRME' i_inforecord-uom,
                                       'EINE-UNTTO' '5',
                                       'EINE-UEBTO' '25',
                                       'EINE-MEPRF' i_inforecord-price_cat,
                                       'EINE-NETPR' i_inforecord-netpr,
                                       'EINE-INCO1' i_inforecord-inco,
                                      'EINE-INCO2' i_inforecord-designation.
    Checking for Scale quantities
        IF i_inforecord-scale_qty2 = space.
          PERFORM bdc_insert_field  USING 'BDC_OKCODE' '=BU'.
          PERFORM insert_bdc_new.
        ELSE.
          PERFORM bdc_insert_field  USING 'BDC_OKCODE' '=KO'.
    Next Screen 201
          PERFORM bdc_dynpro_start USING 'SAPMV13A' '0201'.
          PERFORM bdc_insert_field USING : 'BDC_CURSOR' 'RV13A-DATAB',
                                            'BDC_OKCODE' '=PSTF'.
    Next Screen 201
          PERFORM bdc_dynpro_start USING 'SAPMV13A' '0201'.
          PERFORM bdc_insert_field USING : 'BDC_CURSOR' 'KONP-KSCHL(01)',
                                           'BDC_OKCODE' '=PSTF',
                                           'RV130-SELKZ(01)' zc_yes.
    LAST SCREEN 303
          PERFORM bdc_dynpro_start USING 'SAPMV13A' '0303'.
          PERFORM bdc_insert_field USING : 'BDC_CURSOR' 'KONM-KBETR(03)',
                                           'BDC_OKCODE' '=SICH'.
    Counter to Loop the Item level entry
          g_counter = 0.
          PERFORM scale_entry USING i_inforecord-scale_qty2
                                    i_inforecord-scale_pr2.
          PERFORM scale_entry USING i_inforecord-scale_qty3
                                    i_inforecord-scale_pr3.
          PERFORM scale_entry USING i_inforecord-scale_qty4
                                    i_inforecord-scale_pr4.
          PERFORM scale_entry USING i_inforecord-scale_qty5
                                    i_inforecord-scale_pr5.
          PERFORM scale_entry USING i_inforecord-scale_qty6
                                    i_inforecord-scale_pr6.
          PERFORM scale_entry USING i_inforecord-scale_qty7
                                    i_inforecord-scale_pr7.
          PERFORM scale_entry USING i_inforecord-scale_qty8
                                    i_inforecord-scale_pr8.
          PERFORM scale_entry USING i_inforecord-scale_qty9
                                    i_inforecord-scale_pr9.
          PERFORM scale_entry USING  i_inforecord-scale_qty10
                                     i_inforecord-scale_pr10.
          PERFORM insert_bdc_new.
        ENDIF.
      ENDFORM.                    " insert_screen_header
    *&      Form  insert_bdc
          Insert BDC
      FORM insert_bdc_new .
        CALL FUNCTION 'BDC_INSERT'
           EXPORTING
             tcode                  = 'ME11'
          POST_LOCAL             = NOVBLOCAL
          PRINTING               = NOPRINT
          SIMUBATCH              = ' '
          CTUPARAMS              = ' '
           TABLES
             dynprotab              = i_bdc_table
        EXCEPTIONS
          internal_error         = 1
          not_open               = 2
          queue_error            = 3
          tcode_invalid          = 4
          printing_invalid       = 5
          posting_invalid        = 6
          OTHERS                 = 7
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CLEAR i_bdc_table[].
      ENDFORM.                    " insert_bdc
    *&      Form  close_bdc_session
         Close the BDC session
      FORM close_bdc_session .
        CALL FUNCTION 'BDC_CLOSE_GROUP'
             EXCEPTIONS
                  not_open    = 1
                  queue_error = 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.
      ENDFORM.                    " close_bdc_session
    *&      Form  f_load_input_file
          Upload the file
      FORM f_load_input_file.
    Check always Local file for upload
        IF p_rloc1 = zc_yes.
          CALL FUNCTION 'WS_UPLOAD'
               EXPORTING
                    filename                = p_fname1
                    filetype                = 'DAT'
               TABLES
                    data_tab                = i_inforecord
               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 <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            STOP.
          ENDIF.
        ENDIF.
      ENDFORM.                    " f_load_input_file
    *&      Form  release_bdc
         Release the session
      FORM release_bdc.
        SUBMIT rsbdcsub WITH mappe EQ p_group
                        WITH von EQ sy-datum
                        WITH bis EQ sy-datum
                        WITH fehler EQ '.'
                        EXPORTING LIST TO MEMORY
                        AND RETURN.
      ENDFORM.                    " release_bdc
    *&      Form  scale_entry
          Populate the Scale quantities
         -->P_SCALE_QTY
         -->P_SCALE_PRICE
      FORM scale_entry USING    p_scale_qty
                                p_scale_price.
    Increment the Counter
        g_counter = g_counter + 1.
        IF p_scale_qty <> space.
          CONCATENATE 'KONM-KSTBM('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_insert_field USING g_field_name p_scale_qty.
          CONCATENATE 'KONM-KBETR('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_insert_field USING g_field_name p_scale_price.
        ENDIF.
      ENDFORM.
    *&      Form  bdc_insert
          To uncheck the Unlimited (UEBTK)
      FORM bdc_insert USING  f_name f_value.
        CLEAR i_bdc_table.
        i_bdc_table-fnam = f_name.
        i_bdc_table-fval = f_value.
        APPEND i_bdc_table.
      ENDFORM.                    " bdc_insert
    Reward points if it is usefull ....
    Cheers,
    Chandra Sekhar.

  • IQ08 batch input

    Hello All,
    With IQ08 you can set deletion flag for a range of equipments. I want to automate this process with a Z program through Batch input
    Steps:
    1 - Enter a range of equipments.
    2 - Select all materials.
    3 - in the menu: Goto --> Functions --> Deletionflag --> Set
    I already created the recording with SM35, but It's not working.
    I believe the problem isin the step 3. How to record that step if it's not in the screen and I'm clicking the menu?.
    Is there a way to achieve this?
    Thanks in advance

    First read some documentation, start with [Managing Batch Input Sessions|http://help.sap.com/saphelp_nw04/helpdata/en/69/c2501a4ba111d189750000e8322d00/frameset.htm] - [The Transaction Recorder|http://help.sap.com/saphelp_nw04/helpdata/en/67/42fcd5f61011d1bcf9080009b4534c/frameset.htm]
    When you performed via SHDB the recording of the transaction, the "Goto --> Functions --> Deletionflag --> Set" was recorded as an ok_code (function code LVSE?) - check the recording and ask SHDB to generate the template report from which you will copy part of source in your program.
    Why did you use IQ08 (selection) and not a simpler transaction like IQ02 or IE02, remember that Batch-Input is limited and does not perform well when enjoy transactions are called.
    Regards,
    Raymond

  • 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

  • Batch Number Transactions Report  - TURN OFF

    We are managing our batches in B1 2007A; however, our customers do not care what batches they're receiving, per se. 
    That being said, we do not want batch reports to be created each time an invoice is readied to be printed, as we simply X each report that appears (batch number transactions report, batch report in document).  Can these be turned off if batch management is on?
    Thank you!
    Russell Clayton

    Thanks for the clarification request -
    When we use the document printing feature, we can skip the generation/printing of batch number transaction reports and such; however, when we're doing one-off invoices (not a large run, which is common with our company), the simpleness of choosing print preview and only seeing the invoice pop up would be ideal, as we do not want to print the batch reports at this time (only track within the system).

  • T-codes for batch input

    regards,
    still need the t-codes for the following:
    Batch Input: Physical Inventory document for cycle counting, vendor consignment,project stk and ABC Analysis for cycle counting. thanks

    IM level see:
    MI01 Create Physical Inventory Document
    MI02 Change Physical Inventory Document
    MI03 Display Physical Inventory Document
    MI04 Enter Inventory Count with Document
    MI05 Change Inventory Count
    MI06 Display Inventory Count
    MI07 Process List of Differences
    MI08 Create List of Differences with Doc.
    MI09 Enter Inventory Count w/o Document
    MI10 Create List of Differences w/o Doc.
    MI11 Recount Physical Inventory Document
    MI12 Display changes
    MI20 Print List of Differences
    MI21 Print physical inventory document
    MI22 Display Phys. Inv. Docs. f. Material
    MI23 Disp. Phys. Inv. Data for Material
    MI24 Physical Inventory List
    MI31 Batch Input: Create Phys. Inv. Doc.
    MI32 Batch Input: Block Material
    MI33 Batch Input: Freeze Book Inv.Balance
    MI34 Batch Input: Enter Count
    MI35 Batch Input: Post Zero Stock Balance
    MI37 Batch Input: Post Differences
    MI38 Batch Input: Count and Differences
    MI39 Batch Input: Document and Count
    MI40 Batch Input: Doc., Count and Diff.

  • SM35-Downloading the Logs for the Batch-Input Session

    Hi Folks,
    I have above 300 Batch-Input sessions imported, and most of them ended with errors, right now I am copying the errors from line to line into excel but this is time consuming. Does any body has a solution to download the logs created through the Batch-Input session into excel sheets. So that I can send through mail to my customer.
    Any help would be appriciated.
    Thanks in Advance.
    Sanjeev.

    Okay... I have one more crude way of downloading the log but this will only work if you have the new abap debugger available..
    1. Go to SM35
    2. Select the session and Click the log button
    3. Select the log you want to download, activate debugging and choose display
    4. Put a breakpoint at the statement "Call screen 1400."
    5. Select "Switch to New ABAP debugger" from the Debugging option in the toolbar
    6. Go to the "Tables" tab and enter BDCLM and hit enter
    7. Click the "Services of the tool" option. This is the last of the 6 buttons available on the Tables tab besides the table control which displays the contents of internal table BDCLM
    8. Choose "Save to local file" option on the following popup
    Pretty lengthy and cumbersome approach but I think this is the only option available if you cannot migrate the program to production.
    -Kiran

Maybe you are looking for

  • Changes in PR allowed even if PO exists

    Dear Gurus In CJ20N , for a material/service, changes in quantity,price in the PR are allowed even if PO exists for the same PR. Can anyone suggest some solution to this problem. Is there any user exit or can we write some validation to stop the same

  • Link between "Log of posting run" and GL document

    Dear all my friends, is there any table where "Log of posting run" stored ? if yes, can we link between "Log of posting run" Ref document and GL document ? i mean, link line item of "Log of posting run" Ref document with line item of GL document (Dep

  • No USER_SDO_* Views in schema

    Sorry, LJ Qian, I can't see my replies on yours answer. There is another problem - after import schema scott doesn't contain neigter USER_SDO_* Views, no associated triggers. So supplied script only drops source tables. Creating tables with such name

  • Initialization without data transfer

    Hi bw experts, when i am loading data to ods 0fiap_o06.actually i loadded selection wise data in same infopackage for full update .after that when i try load initialization without data transfer iam getting this error 1.Full updates already available

  • Empty message after call

    When my Skype contacts call me i get en empty message. Sometimes a get en empty message after a call too.. Ex. When my dad calls me, i get an empty message shortly before i recieve his call. Attachments: Udklip.PNG ‏8 KB