<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: BATCH INPUT SUBRC 1.001 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544505#M578618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you have the message id and number, you can use&lt;/P&gt;&lt;P&gt;FM: FORMAT_MESSAGE to retreive the actial message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: L_TEXT(50) TYPE C.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   ID              = SY-MSGID&lt;/P&gt;&lt;P&gt;   LANG            = SY-LANGU&lt;/P&gt;&lt;P&gt;   NO              = SY-MSGNO&lt;/P&gt;&lt;P&gt;   V1              = SY-MSGV1&lt;/P&gt;&lt;P&gt;   V2              = SY-MSGV2&lt;/P&gt;&lt;P&gt;   V3              = SY-MSGV3&lt;/P&gt;&lt;P&gt;   V4              = SY-MSGV4&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   MSG             = L_TEXT&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;   OTHERS          = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   WRITE:/ L_TEXT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;reawrds point for useful; answer....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2007 09:29:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-18T09:29:34Z</dc:date>
    <item>
      <title>BATCH INPUT SUBRC 1.001</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544503#M578616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus.&lt;/P&gt;&lt;P&gt;Im running a  batch input but what it happens is that if i run it in mode E the subrc given is 0 but if i run  it with mode N it returns a subrc of 1.001!!!&lt;/P&gt;&lt;P&gt;Does someone allready had this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thk, &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 09:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544503#M578616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T09:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: BATCH INPUT SUBRC 1.001</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544504#M578617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 1001 - Error in batch input processing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This occurs when there is some error in the BDC execution like wrong data, wrong field or format anything it can be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to debug with mode 'E' and see where the error happened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Please check if your recording is fine.&lt;/P&gt;&lt;P&gt;As it may be the case that you have done the recording well,but still there is something missing in the recording.&lt;/P&gt;&lt;P&gt;Is the recording fine when you are running it in foreground,or some ok-code is missing?,for eg you may have to press back button while in foreground,which should be in recording.&lt;/P&gt;&lt;P&gt;This can only be corrected if your recording is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 09:29:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544504#M578617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T09:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: BATCH INPUT SUBRC 1.001</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544505#M578618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you have the message id and number, you can use&lt;/P&gt;&lt;P&gt;FM: FORMAT_MESSAGE to retreive the actial message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: L_TEXT(50) TYPE C.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   ID              = SY-MSGID&lt;/P&gt;&lt;P&gt;   LANG            = SY-LANGU&lt;/P&gt;&lt;P&gt;   NO              = SY-MSGNO&lt;/P&gt;&lt;P&gt;   V1              = SY-MSGV1&lt;/P&gt;&lt;P&gt;   V2              = SY-MSGV2&lt;/P&gt;&lt;P&gt;   V3              = SY-MSGV3&lt;/P&gt;&lt;P&gt;   V4              = SY-MSGV4&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   MSG             = L_TEXT&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;   OTHERS          = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   WRITE:/ L_TEXT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;reawrds point for useful; answer....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 09:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544505#M578618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T09:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: BATCH INPUT SUBRC 1.001</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544506#M578619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Batch Input has a different response depending on the mode you are calling it. Mode 'N' means non-visible, and it rips off all non-error messages from the queue (more or less).&lt;/P&gt;&lt;P&gt;Mode 'E' is like to calling it visible, but only shows the screens if an error occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use MESSAGES into your CALL TRANSACTION sentence, and read the messages' table returned, you will have a lot more information about the batch than just by checking sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at this piece of crap code I use with my Batch Inputs to keep a more accurate control of them:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: it_err TYPE TABLE OF bdcmsgcoll.
CALL TRANSACTION 'your_tcode_here' USING it_bdc
  OPTIONS FROM wa_params
  MESSAGES INTO it_err.
CHECK LINES( it_err ) &amp;gt; 0.
CALL FUNCTION 'CONVERT_BDCMSGCOLL_TO_BAPIRET2'
  TABLES
    imt_bdcmsgcoll = it_err
    ext_return = it_re2.
APPEND LINES OF it_re2 TO it_ret.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I do the last call because I like to read all my messages like BAPI's returns, but if you check the structure used&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 09:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544506#M578619</guid>
      <dc:creator>VXLozano</dc:creator>
      <dc:date>2007-07-18T09:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: BATCH INPUT SUBRC 1.001</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544507#M578620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;messages are stored in table T100.&lt;/P&gt;&lt;P&gt;use following logic&lt;/P&gt;&lt;P&gt;call transaction 'VA01' using bdcdata mode 'A' update 'S' messages into messtab.&lt;/P&gt;&lt;P&gt;messages raen stoted in variable sy-msgv1,sy-&lt;/P&gt;&lt;P&gt;msgv2...&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;loop at messtab.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ID = MESSTAB-MSGID&lt;/P&gt;&lt;P&gt;LANG = MESSTAB-MSGSPRA&lt;/P&gt;&lt;P&gt;NO = MESSTAB-MSGNR&lt;/P&gt;&lt;P&gt;V1 = MESSTAB-MSGV1&lt;/P&gt;&lt;P&gt;V2 = MESSTAB-MSGV2&lt;/P&gt;&lt;P&gt;V3 = MESSTAB-MSGV3&lt;/P&gt;&lt;P&gt;V4 = MESSTAB-MSGV4&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;MSG = ZMSG_TEXT&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;rewards point for useful answer....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 09:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544507#M578620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T09:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: BATCH INPUT SUBRC 1.001</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544508#M578621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the sample code below.&lt;/P&gt;&lt;P&gt;messtab is of type BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;Call the transaction and then use T100 to get the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_mstring(480).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call transaction using&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;REFRESH messtab.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION tcode USING bdcdata&lt;/P&gt;&lt;P&gt;MODE ctumode&lt;/P&gt;&lt;P&gt;UPDATE cupdate&lt;/P&gt;&lt;P&gt;MESSAGES INTO messtab.&lt;/P&gt;&lt;P&gt;l_subrc = sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT messtab.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM t100 WHERE sprsl = messtab-msgspra&lt;/P&gt;&lt;P&gt;AND arbgb = messtab-msgid&lt;/P&gt;&lt;P&gt;AND msgnr = messtab-msgnr.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;l_mstring = t100-text.&lt;/P&gt;&lt;P&gt;IF l_mstring CS '&amp;amp;1'.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;1' WITH messtab-msgv1 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;2' WITH messtab-msgv2 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;3' WITH messtab-msgv3 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;4' WITH messtab-msgv4 INTO l_mstring.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH messtab-msgv1 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH messtab-msgv2 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH messtab-msgv3 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH messtab-msgv4 INTO l_mstring.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CONDENSE l_mstring.&lt;/P&gt;&lt;P&gt;WRITE: /4 messtab-msgtyp, l_mstring(250).&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;WRITE: /4 messtab.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;rewards point for useful answer....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards....&lt;/P&gt;&lt;P&gt;Abhay Singh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 09:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544508#M578621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T09:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: BATCH INPUT SUBRC 1.001</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544509#M578622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  pl make sure the screen that you have recorded looks alike in recorded/executing servers..i had this probl once, happened to later see that the configuration of fields in both the servers were different...this is just a suggestion if you have recorded the txn. in one server and trying to execute the bdc in another server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 09:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-subrc-1-001/m-p/2544509#M578622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T09:33:50Z</dc:date>
    </item>
  </channel>
</rss>

