<?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: call transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/2804885#M655352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had this problem some days ago. Yes, is a batch input error. Try to find the message like the experts said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my program i get a warning message that gerenerate the error 1001. When i run the program with mode "n", sometimes, the error occured. When i run with mode "a" the error not occured, and the item was included ok in FB03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The warning message was like that: "Item already included with id &amp;lt;ID&amp;gt;". So, i talk with the QA to give me other data to do my test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2007 11:33:17 GMT</pubDate>
    <dc:creator>rodrigo_paisante3</dc:creator>
    <dc:date>2007-09-06T11:33:17Z</dc:date>
    <item>
      <title>call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/2804880#M655347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am using the call transaction method. Before executing the call transaction statement sy-subrc is 0 . After exectuing the call transaction statement sy-subrc is showing 1,001. Canyou plz tell me how can i overcome out of this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/2804880#M655347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/2804881#M655348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Navya..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the sy-subrc is not equal to zero it indicates that something went wrong in the statement. But we cant find out the exact error by looking at that value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sy-subrc is not zero.. so, check for these possible errors.&lt;/P&gt;&lt;P&gt;1) May be the data what we r trying to insert into the database is already exists.&lt;/P&gt;&lt;P&gt;2) Flat file may not be in the proper format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out these things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;veerendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 08:05:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/2804881#M655348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T08:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/2804882#M655349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sree,&lt;/P&gt;&lt;P&gt;   Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1001- Error in batch input processing. &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;Regards...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 08:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/2804882#M655349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T08:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/2804883#M655350</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 NE 0 .  MEANS THE TRANSACTION IS NOT UPDATED IN DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample code.. it helps ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using BDCMSGCOLL Structure we have to declare an itab.&lt;/P&gt;&lt;P&gt;DATA : IT_MSG LIKE TABLE OF BDCMSGCOLL .&lt;/P&gt;&lt;P&gt;Then We can catch the messages using:&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MK01'&lt;/P&gt;&lt;P&gt;USING IT_BDCDATA&lt;/P&gt;&lt;P&gt;MODE 'N'&lt;/P&gt;&lt;P&gt;MESSAGES INTO IT_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_MSG INTO WA_MSG &lt;/P&gt;&lt;P&gt;WHERE MSGTYP = 'E' OR MSGTYP = 'A'..&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;     &amp;lt;&amp;lt;PARAMETERS&amp;gt;&amp;gt;.&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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REWARD IF HELPFUL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 09:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/2804883#M655350</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-06T09:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/2804884#M655351</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;This error occurs when there is some error in the call transction like wrong data, wrong field or format anything it can be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for if really want to know detail above error you can use the following code which it captures all error and finally display the errors with detailed.&lt;/P&gt;&lt;P&gt;You can adjust the following code a/c to ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you know BDCMSGCOLL Structure captures the status of the call tranaction where it sucess or failurre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : TBL_ERROR LIKE TABLE OF BDCMSGCOLL,&lt;/P&gt;&lt;P&gt;TBL_COL occurs 0,&lt;/P&gt;&lt;P&gt;errmsg(100),&lt;/P&gt;&lt;P&gt;END OF TBL_ERR.&lt;/P&gt;&lt;P&gt;DATA :W_ERRMSG(100).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'FB01'&lt;/P&gt;&lt;P&gt;USING IT_BDCDATA&lt;/P&gt;&lt;P&gt;MODE 'N'&lt;/P&gt;&lt;P&gt;MESSAGES INTO TBL_ERROR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;LOOP AT TBL_ERROR INTO WA_ERROR&lt;/P&gt;&lt;P&gt;WHERE MSGTYP = 'E' OR MSGTYP = 'A'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**BUILT ERROR_MESSAGES.&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 = '-D'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;MSG = W_ERRMSG&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;TBL_COL-ERRMSG = W_ERRMSG.&lt;/P&gt;&lt;P&gt;APPEND TBL_COL.&lt;/P&gt;&lt;P&gt;CLEAR TBL_COL. &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DISPLAY THE ERROR MESSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT TBL_COL.&lt;/P&gt;&lt;P&gt;WRITE : / TBL_COL-ERRMSG.&lt;/P&gt;&lt;P&gt;CLEAR TBL_COL.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward with points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 10:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/2804884#M655351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T10:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/2804885#M655352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had this problem some days ago. Yes, is a batch input error. Try to find the message like the experts said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my program i get a warning message that gerenerate the error 1001. When i run the program with mode "n", sometimes, the error occured. When i run with mode "a" the error not occured, and the item was included ok in FB03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The warning message was like that: "Item already included with id &amp;lt;ID&amp;gt;". So, i talk with the QA to give me other data to do my test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 11:33:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/2804885#M655352</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-09-06T11:33:17Z</dc:date>
    </item>
  </channel>
</rss>

