<?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 Errors in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358193#M1037542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your requirement, you need to check if the required sucess message exists in the message table of the call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOO AT IT_DATA.

* fill the bdc data

*
    CALL TRANSACTION 'MIRO' USING    T_BDCDATA
                            OPTIONS  FROM L_OPT
                            MESSAGES INTO IT_MESS.
* check success message
  READ TABLE IT_MESS WITH KEY MSGID  = 'M8'
                              MSGNR  = '060'
                              MSGTYP = 'S'.
  CASE SY-SUBRC.
    WHEN others.
      W_ERROR    = W_ERROR + 1.
      IF W_ERROR = 1.                          "First error record.
  CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
      CLIENT = SY-MANDT
      GROUP  = Session
      KEEP   = 'X'
      USER   = Username.

  CALL FUNCTION 'BDC_INSERT'
    EXPORTING
      TCODE     = PL_TCODE
    TABLES
      DYNPROTAB = IT_BDCDATA.
ENDLOOP.

  IF ( W_ERROR &amp;gt; 0 ).                    "For Batch Input
  CALL FUNCTION 'BDC_CLOSE_GROUP'
    EXCEPTIONS
      NOT_OPEN    = 1
      QUEUE_ERROR = 2
      OTHERS      = 3.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2008 16:16:22 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2008-08-14T16:16:22Z</dc:date>
    <item>
      <title>Call Transaction Errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358188#M1037537</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;&lt;/P&gt;&lt;P&gt;I want to capture all the errors occured into a session after i do a call transaction with tcode F-30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would be easy for the user to reprocess the session instead of looking at the error log generated by call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate if someone provides me the approach or logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 15:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358188#M1037537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T15:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction Errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358189#M1037538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure about what session you are talking about... When you are processing with call transaction u never get a session rite.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a possibility that if you get any errors with the records you can append all those records into separate internal table and finally write to a file... and capture the error messages into another internal table and along with the error field write to a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that User can process the error file what ever your program generate once they verify and corrects the data based on the error messages file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 15:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358189#M1037538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T15:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction Errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358190#M1037539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a batch input session for failed CALL TRANSACTION records. I think this is what  SAP recommends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 15:59:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358190#M1037539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T15:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction Errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358191#M1037540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, call transaction doesn't not generate a session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my requirement i want to build a session for all the errors returned by call transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make it easier for the users to reprocess the errors without having to worry about the error log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 16:10:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358191#M1037540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T16:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction Errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358192#M1037541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So is your question answered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 16:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358192#M1037541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T16:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction Errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358193#M1037542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your requirement, you need to check if the required sucess message exists in the message table of the call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOO AT IT_DATA.

* fill the bdc data

*
    CALL TRANSACTION 'MIRO' USING    T_BDCDATA
                            OPTIONS  FROM L_OPT
                            MESSAGES INTO IT_MESS.
* check success message
  READ TABLE IT_MESS WITH KEY MSGID  = 'M8'
                              MSGNR  = '060'
                              MSGTYP = 'S'.
  CASE SY-SUBRC.
    WHEN others.
      W_ERROR    = W_ERROR + 1.
      IF W_ERROR = 1.                          "First error record.
  CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
      CLIENT = SY-MANDT
      GROUP  = Session
      KEEP   = 'X'
      USER   = Username.

  CALL FUNCTION 'BDC_INSERT'
    EXPORTING
      TCODE     = PL_TCODE
    TABLES
      DYNPROTAB = IT_BDCDATA.
ENDLOOP.

  IF ( W_ERROR &amp;gt; 0 ).                    "For Batch Input
  CALL FUNCTION 'BDC_CLOSE_GROUP'
    EXCEPTIONS
      NOT_OPEN    = 1
      QUEUE_ERROR = 2
      OTHERS      = 3.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 16:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358193#M1037542</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-08-14T16:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction Errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358194#M1037543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naimesh solution looks good , i will try that and update you guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 16:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358194#M1037543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T16:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction Errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358195#M1037544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all.&lt;/P&gt;&lt;P&gt;Solution works and awared the points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 16:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-errors/m-p/4358195#M1037544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T16:49:53Z</dc:date>
    </item>
  </channel>
</rss>

