Error records in Batch Input

how to get the list of error records from batch input method.

u can record them using bdcmsgcoll and also in t100 table.
*&      Form  prepare_bdc_tab
Prepare BDC Table for updating Copack Purchase Prices
FORM prepare_bdc_tab .
  REFRESH gv_bdc_tab.
*MEK1 intial screen
  PERFORM bdc_dynpro      USING 'SAPMV13A' '0100'.
  PERFORM bdc_field       USING 'BDC_CURSOR' 'RV13A-KSCHL'.
  PERFORM bdc_field       USING 'BDC_OKCODE' '/00'.
  PERFORM bdc_field       USING 'RV13A-KSCHL' 'PB00'.
  PERFORM bdc_dynpro      USING 'SAPLV14A' '0100'.
  PERFORM bdc_field       USING 'BDC_CURSOR' 'RV130-SELKZ(03)'.
  PERFORM bdc_field       USING 'BDC_OKCODE' '=WEIT'.
  PERFORM bdc_field       USING 'RV130-SELKZ(01)' ''.
  PERFORM bdc_field       USING 'RV130-SELKZ(03)' 'X'.
  PERFORM bdc_dynpro      USING 'SAPMV13A' '1018'.
  PERFORM bdc_field       USING 'BDC_CURSOR' 'RV13A-DATBI(01)'.
  PERFORM bdc_field       USING 'BDC_OKCODE' '/00'.
  PERFORM bdc_field       USING 'KOMG-LIFNR' gs_data-lifnr.
  PERFORM bdc_field       USING 'KOMG-MATNR' gs_data-matnr.
  PERFORM bdc_field       USING 'KOMG-EKORG' gs_data-ekorg.
  PERFORM bdc_field       USING 'KOMG-ESOKZ(01)' '0'.
  PERFORM bdc_field       USING 'KONP-KBETR(01)'  gs_data-kbetr.
  PERFORM bdc_field       USING 'KONP-KONWA(01)' 'USD'.
  PERFORM bdc_field       USING 'KONP-KPEIN(01)'  gs_data-peinh.
  PERFORM bdc_field       USING 'RV13A-DATAB(01)' gs_data-datab.
  PERFORM bdc_field       USING 'RV13A-DATBI(01)' gs_data-datbi.
  PERFORM bdc_dynpro      USING 'SAPMV13A' '1018'.
  PERFORM bdc_field       USING 'BDC_CURSOR'  'KOMG-ESOKZ(01)'.
  PERFORM bdc_field       USING 'BDC_OKCODE'  '=SICH'.
ENDFORM.                    " prepare_bdc_tab
       Start new screen                                              *
FORM bdc_dynpro USING program dynpro.
  CLEAR:  gs_bdc_tab.
  gs_bdc_tab-program  = program.
  gs_bdc_tab-dynpro   = dynpro.
  gs_bdc_tab-dynbegin = gc_x.
  APPEND gs_bdc_tab TO gv_bdc_tab.
ENDFORM.                    "bdc_dynpro
       Insert field
FORM bdc_field USING fnam fval.
  CLEAR:  gs_bdc_tab.
  gs_bdc_tab-fnam = fnam.
  gs_bdc_tab-fval = fval.
  APPEND gs_bdc_tab TO gv_bdc_tab.
ENDFORM.                    "bdc_field
*&      Form  call_transaction_mek1
Call Transaction for updating CoPack Price entries
FORM call_transaction_mek1 .
*Local  Data Declaration
  CONSTANTS:lc_e         TYPE c VALUE 'E',
            lc_mek1(4)   TYPE c VALUE 'MEK1',
            lc_mode(1)   TYPE c VALUE 'N',
            lc_update(1) TYPE c VALUE 'U'.
  REFRESH: gv_bdc_msg.
*Call MEK1 Transaction
  CALL TRANSACTION     lc_mek1
            USING      gv_bdc_tab
             MODE      lc_mode
           UPDATE      lc_update
    MESSAGES INTO      gv_bdc_msg.
  IF sy-subrc NE 0.
    IF gv_bdc_open_flag IS INITIAL.
      PERFORM bdc_open_group.
      gv_bdc_open_flag = gc_x.
    ENDIF.
    PERFORM bdc_insert_group.
    DELETE gv_bdc_msg WHERE msgtyp NE lc_e.
    REFRESH:gv_bdc_msg,
            gv_bdc_tab.
  ENDIF.
  CLEAR:gs_data.
ENDFORM.                    " call_transaction_mek1
*&      Form  bdc_open_group
Subroutine for Open BDC Group
FORM bdc_open_group .
  CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
      client              = sy-mandt
      group               = p_esnm
      user                = sy-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.
    WRITE :/ text-040. "Error in BDC_OPEN_GROUP
    EXIT.
  ENDIF.
ENDFORM.                    " bdc_open_group
*&      Form  BDC_INSERT_GROUP
Subroutine for calling BDC_INSERT for inserting BDC Table
FORM bdc_insert_group .
  CALL FUNCTION 'BDC_INSERT'
    EXPORTING
      tcode            = 'MEK1'
    TABLES
      dynprotab        = gv_bdc_tab
    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.
    WRITE :/ text-041. "Error in BDC_INSERT
    EXIT.
  ENDIF.
ENDFORM.                    " BDC_INSERT_GROUP
*&      Form  BDC_CLOSE_GROUP
Subroutine for Closeing of BDC group
FORM bdc_close_group .
  CALL FUNCTION 'BDC_CLOSE_GROUP'
    EXCEPTIONS
      not_open    = 1
      queue_error = 2
      OTHERS      = 3.
  IF sy-subrc <> 0.
    WRITE :/ text-042.         "Error in BDC_CLOSE_GROUP.
    EXIT.
  ENDIF.
ENDFORM.                    " BDC_CLOSE_GROUP
if u can see gv_bdc_msg is holding the messages
hope this helps
dont go through the code as it is ...it is only part of it
Message was edited by:
        Durgaprasad Kare

Similar Messages

  • Error Message "No batch input data for screen SAPMF05A 0700" for FV60&FB60

    Dear All,
      I doing a BDC Upload program for Create Vendor Invoice and Park using FV60 ,But i can't upload successfully by Batch Input method and i am gettin the Error Message "No batch input data for screen SAPMF05A 0700'.I tried using FB60 and got the same error message. When i do in the direct method i can able to do it ,But can't park the document successfully and can do it untill sumilate only.
    How to overcome this issue and if you already encounter this kind of problem please advice me.
    Thanks in Advance.
    Deesanth

    Hi,
      Below is my recording.
        perform bdc_dynpro      using 'SAPMF05A'     '1100'.
        perform bdc_field       using 'INVFO-ACCNT'  gwa_inv_up-lifnr.
        perform bdc_field       using 'INVFO-BLDAT'  gwa_inv_up-bldat.
        perform bdc_field       using 'INVFO-XBLNR'  gwa_inv_up-xblnr.
        perform bdc_field       using 'INVFO-BUDAT'  gwa_inv_up-budat.
        perform bdc_field       using 'INVFO-MONAT'  '9'.
        perform bdc_field       using 'INVFO-BLART'  gwa_inv_up-blart.
        perform bdc_field       using 'INVFO-WRBTR'  gwa_inv_up-dmbtr.
        perform bdc_field       using 'INVFO-WAERS'  gwa_inv_up-waers.
        perform bdc_field       using 'INVFO-XMWST'  gwa_inv_up-xmwst.
        perform bdc_field       using 'INVFO-MWSKZ'  'P0'.
        perform bdc_field       using 'INVFO-SGTXT'  gwa_inv_up-sgtxt.
        perform bdc_dynpro      using 'SAPMF05A'     '1100'.
        perform bdc_field       using 'BDC_OKCODE'   '=PAYM'.
        perform bdc_field       using 'INVFO-GSBER'  gwa_inv_up-gsber.
        perform bdc_dynpro      using 'SAPMF05A'     '1100'.
        perform bdc_field       using 'BDC_OKCODE'   '=BS'.
        perform bdc_field       using 'INVFO-ZLSCH'  gwa_inv_up-zlsch.
        cnt = 1.
        cnt1 = 1.
        clear gwa_inv_line.
        loop at gt_inv_up  into gwa_inv_line  where indic = 'D'
                                       and count = gwa_inv_up-count.
          if cnt1 gt 1.
            concatenate 'ACGL_ITEM-MARKSP(' cnt ')' into fld.
            perform bdc_field using fld 'X'.
            perform bdc_dynpro using 'SAPMF05A' '1100'.
            perform bdc_field using 'BDC_OKCODE' '=0005'.
          endif.
          concatenate 'ACGL_ITEM-HKONT(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-lifnr.
          concatenate 'ACGL_ITEM-SHKZG(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-shkzg.
          concatenate 'ACGL_ITEM-WRBTR(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-dmbtr.
          concatenate 'ACGL_ITEM-MWSKZ(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-mwskz.
          concatenate 'ACGL_ITEM-SGTXT(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-sgtxt.
          concatenate 'ACGL_ITEM-GSBER(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-gsber.
          concatenate 'ACGL_ITEM-KOSTL(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-kostl.
          concatenate 'ACGL_ITEM-PROJK(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-posid.
          concatenate 'ACGL_ITEM-FISTL(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-fistl.
          concatenate 'ACGL_ITEM-FIPOS(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-fipos.
          concatenate 'ACGL_ITEM-GEBER(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-geber.
          perform bdc_field       using 'BDC_CURSOR' fld.
          cnt1 = cnt1 + 1.
        endloop.
        perform bdc_dynpro using 'SAPMF05A' '1100'.
        perform bdc_field  using 'BDC_OKCODE' '=BS'.
        perform bdc_dynpro      using 'SAPMSSY0' '0120'.
        perform bdc_field       using 'BDC_OKCODE' '=BP'.
        call transaction 'FB60' using gt_bdcdata mode 'N' pdate 'S'
                                        messages into gt_bdc_messages.
    Thanks,
    Deesanth

  • 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

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

  • PIR - LSWM Error in create batch input session

    Hi
    i made a conversion program Purchasing info record through Standard object / Direct Input in that Step 13 : Create Batch input session when i execute the Batch Input session i am getting the following error message
    Transaction 00000001 : no transaction code transfered.
    Please help me to solve this issue
    Thanks & Regards,
    mani.

    Hi
    Everything is working perfectly till STEP 10 : " Display Read Data"
    once if i convert it it was not populating the correct one. i cant find the T.Code ,Material Number & Indictor for Purchasing Info record.
    Please help me to solve thi s issue
    Thanks & Regards,
    Mani.

  • LEAVE TO TRANSACTION error in BDC batch input

    Hi ,
    When i run BDC for LT06 TCODE in background ,
    It is giving me LEAVE TO TRANSACTION IN BATCH INPUT IS NOT ALLOWED error though it is creating the transfer orders .
    could you please provide me a solution to avoid this error .
    earlier responce is helpfull
    Thanks

    Hi Gurus,
    I am running LT06 using session method not with call transaction .
    So when I try to run the session in foreground or back ground it is giing the above mentioned error .
    Inspite of the error it is creating the required transfer orders but the status  of the session is INCORRECT because of this error .
    Hope to get the earliest responce .
    Thanks

  • LSMW - Sending E-Mail about errors after a batch input has been processed..

    Hi All,
    I have a requirement in LSMW. The LSMW has to send an e-mail to a distribution list after all records are read and posted through LSMW i.e, if the method used is Batch Input Session then an e-mail has to be sent to a distribution list after the Batch Input Session has been processed. Kindly help me regarding this..
    Regards,
    Mahesh

    Hi,
    You can trigger an event once all the records are being processed and use that event to start the workflow. From workflow you can send mails to the initiator of the Batch session.
    Regards,
    Sumalatha

  • Error in generating Batch Input session from FF67 Transn

    Hi Folks,
      I have tried to create the batch input session from transaction FF67 (Process manual bank statement ) using the menu path settings-->specifications and chosen the option 2 for Processing type, after posting the statement manually, batch is not getting created, is there any settings to be configured apart from this, any help would be highly rewarded.
    Thanks in Adv.
    Rgds,

    Hi Dudes,
      Any hint on this issue would be highly helpful ,
    Thanks in Advance,
    Rgds,

  • Tracking only Error records from Batch file in BPEL process

    Hi,
    I am reading file of 1000 records from file adaptor and debatching into two instance of each 500 records. And using invoke insert operation writing into database.
    The first batch of 500 records processed successfully and written into database custom table.
    The second set of 500 records created warning instance with some error message and nothing is written to database from second set.
    The error is due to some wrong data in one row of second set of 500 records. Due to that single row error, the remaining 499 got rejected and nothing from second set is inserted into database.
    Do we have control on that only one record of second set(500records) and BPEL process should write remaining 499 records to database.
    Please help me on this issue. It would be great help. Thanks inadvance.
    Waiting for your replies.
    Thank you.
    Edited by: PraveenT2 on May 13, 2009 4:27 AM

    Hi james,
    Below is the schema file using for reading file
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    targetNamespace="http://TargetNamespace.com/readService"
    xmlns:tns="http://TargetNamespace.com/readService"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified" nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD"
    *nxsd:uniqueMessageSeparator="${eol}">*
    <xsd:element name="Root-Element">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="root" minOccurs="1" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="C1" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="C2" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="C3" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="C4" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    *and in bpel .xml file edited property for rejected file*
    activationAgent
    className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent"
    partnerLink="readService">
    <property name="rejectedMessageHandlers">
    file://C:/Initiatives/Employee/RejectedRecords
    </property>
    </activationAgent>
    The Issue i am facing is when i provide the datafile with all invalid values then process didn't create instance but made entry of all invalid record into directory path specified in bpel.xml while setting rejectMessageHandler property.
    But when i provide mix of valid and invalid records of file, then bpel process created instance with warning status.
    the file i was provided is :
    10,veer,10000,12
    20,james,2000,10
    Veer|name|Test
    Veer|name|Test
    Veer|name|Test
    10,file,10000,12
    20,error,2000,10
    I was expecting 1st,2nd,6th and 7th row should be processes and invalid 3rd,4th and 5th rows should get written into rejectedMessageHandlers folder set at bpel.xml. But instance has created and treated whole invalid rows + 10 as first column for 6th row as pasted below.
    <ns0:eno>Veer|name|Test
    Veer|name|Test
    Veer|name|Test
    10
    </ns0:eno>
    <ns0:ename>file</ns0:ename>
    <ns0:sal>10000</ns0:sal>
    <ns0:dept>12</ns0:dept>
    Nothing has written into rejectedMessageHandlers folder set at bpel.xml.
    Can you please help me on this issue. Thank you very much.
    Edited by: PraveenT2 on May 13, 2009 10:33 PM
    Edited by: PraveenT2 on May 13, 2009 10:34 PM
    Edited by: PraveenT2 on May 13, 2009 10:48 PM

  • LEAVE TO TRANSACTION error in BDC batch input FOR LT06 TCODE

    Hi,
    Iam running CALL TRANSACTION method for creating Material Document numbers for MB1B Tcode .
    On capturing the document numbers created in the above process Iam trying to run LT06 tcode to create Transfer orders using session method .
    All this process is in a single program .
    Here it is creating the transfer orders but with LEAVE TO TRANSATION is not allowed in batchinput error and hence the status of the session is INCORRECT .
    It would be helpful if i get the earliest responce .
    Thanks

    self

  • 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

  • Create batch input, does not include all records

    Have anyone experienced, when doing Create Batch Input from the LSMW menu it does not include all rows.
    For example I have a .txt file with 3000 records that I specify in "Specify Files"
    "Read Data"  reads 3000 records.
    "Convert Data" Converts 3000 records
    "Create Batch input Sessions" creates 2461 records? ?
    I have noticed that this happen when the system is busy running many batches and Idocs.

    I'm talking about LSMW programs with regular Batch input Recording.
    I haven't noticed which transactions it skips since I do not run the Batch, when I notice that it does not include all rows as I have read and converted.
    However usually if I "Create the batch input session" once again it includes all the records from the conversion before.
    But since Create a batch input can take a long time depending on the amount of transactions it creates this is not a desired option.
    So it is not possible that the transactions it does not create are errors since its possible to run them successfully. And I haven't used any SKIP TRANSACTION in the mapping step.
    But like I said this only happens when the system is running many batches / idocs at the moment, for example if we are loading the material master at the same time as I run my batch input programs.

  • LSMW Batch Input Recording for Create BOM

    Dear All,
    I want to do LSMW for Creating BOM using Batch Input Recording,
    I know that i have to make 2 time Recording, first for the BOM Header and second for the BOM item
    For the BOM header i have done it, but for the BOM item i got some trouble with the item number (POSNR),
    when i run the LSMW, for the first item (item 0010) was success, but for the item 0020, it can't work and i got error
    message " NO BATCH INPUT FOR SAPLCSDI 0150"
    How is the recording step by step for BOM Item so the Item number can increase well?
    Very need your help,
    Regards,
    Marufat

    Hello Santosh,
    Thanks for the reply,
    I already check in SM35 where i also thought that the main problem is about adding the new item number,
    but when i tried to do repeat recording, i can not find any entry for adding the line item, so the line item after 0010 cannot be input
    Is there any solution?
    Regards,
    Marufat

  • Error during batch Input TCode ME11

    Hi,
    I'm working on a bath input for tcode ME11 to post the Record Info.
    A warning message “You have not entered a planned delivery time” causes an error to the Batch Input. I can’t ignore. How I can ignore this message?
    If I call the transaction manually I can ignore the massge via "Enter".
    Thanks.

    Hi Salvatore,
    I'm in the same situation. I execute a BI, but it stops after a waring appears.
    If I proceed the transaction manually, the warning appears, but if I press ENTER the transaction ends successful.
    Did you solved your Problem or did you have an hint for me.
    Kind regards
    Yvonne Adler

  • Error "No batch input data for screen" in BDC for Tcode CN22

    Hi,
    The issue is When teh BDC code is run by Functional guys we are facing the error as "No batch input data for screen SAPLCONW 1100", when I am trying teh change the Network Activity Level User field in Tcode CN22. When I execute the same BDC code with Developer User id, it is executing perfectly.
    I have checked the User Profiles for both functional and Technical and both are same. What is my solution now?
    Regards,
    Deepthi.

    Hi
    Take Recording using the functional guy log in there might be user depended screen  sequence
    Regards
    Nilesh Gaikwad
    Edited by: Nilesh  Gaikwad on Jan 26, 2010 10:49 AM

Maybe you are looking for

  • Error: Illegal number of arguments passsed to the function call

    HI All, In our scenario we are using XSLT mapping with java enhancement.Its working fine in Stylus studio but when the same is imported into XI its throwing the below mentioned error: javax.xml.transform.TransformerException: com.sap.engine.lib.xml.u

  • Smartforms  -   print option

    hi i have done an requirement in smartforms. i dont need the dialog box (which contains output device name, page selection etc) when i take the print (smartforms).

  • Expand or stretch HDTV

      Sometimes pressing the HD Zoom button on my remote will Zoom, Expand, or Stretch the screen on my Samsung HDTV. Sometimes it will not!  Changing the settings for my TV has no effect. 1080,720.480 does not matter. Thursday night I could Zoom the TV

  • Non-computer storage for iPod

    Hi, I have been looking for a solution to this problem with little success and hope that someone here might have heard of something like it. I would like to store my CD collection digitally and use an iPod to listen to the music, but without the use

  • Contact form 3 hours off

    when I get a message from my website using the contact form. in the message information, the time is 3 hours off.. what can i do to this $nowTime=date("H:i:s"); to make it the right time??? and possibly not 24 hour time.