<?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/871184#M49879</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;Sample Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL TRANSACTION C_TCODE USING BDC_TAB MODE 'N' UPDATE 'S'.

RETURN_CODE = SY-SUBRC.

*--- Here we check the return code, if there was an error, we put the transaction in a bdc session for the user to review and correct.
IF SY-SUBRC NE 0.
	CALL FUNCTION 'BDC_OPEN_GROUP'
		EXPORTING
			CLIENT = SY-MANDT
			GROUP  = 'GRPNAME'
			USER   = 'USRNAME'
			KEEP   = 'X'.

	CALL FUNCTION 'BDC_INSERT'
		EXPORTING
			TCODE     = C_TCODE 
		TABLES
			DYNPROTAB = BDC_TAB.

	CALL FUNCTION 'BDC_CLOSE_GROUP'
		EXCEPTIONS
			NOT_OPEN    = 1
			QUEUE_ERROR = 2
			OTHERS      = 3.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Feb 2005 05:50:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-21T05:50:56Z</dc:date>
    <item>
      <title>Call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/871182#M49877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created batch input program posting documents in Batch input mode, it works fine.&lt;/P&gt;&lt;P&gt;But now i want to use the same in call transaction mode.&lt;/P&gt;&lt;P&gt;if error occurs in Call transaction mode,client wants to display this error in batch input session.(similar to Batch input mode).&lt;/P&gt;&lt;P&gt;Because its easy for them to trace the screen while error making.&lt;/P&gt;&lt;P&gt;could you pls guide me how to do this in case of Call transaction mode.&lt;/P&gt;&lt;P&gt;ambichan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2005 05:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/871182#M49877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-21T05:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/871183#M49878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand from your query that you want the messages to be logged in 'CALL TRANSACTION' mode. Please check the on-line documentation for the 'CALL TRANSACTION' where the messages get into an Internal table of type 'BDCMSGCOLL' which is a structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Murugesh AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2005 05:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/871183#M49878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-21T05:31: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/871184#M49879</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;Sample Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL TRANSACTION C_TCODE USING BDC_TAB MODE 'N' UPDATE 'S'.

RETURN_CODE = SY-SUBRC.

*--- Here we check the return code, if there was an error, we put the transaction in a bdc session for the user to review and correct.
IF SY-SUBRC NE 0.
	CALL FUNCTION 'BDC_OPEN_GROUP'
		EXPORTING
			CLIENT = SY-MANDT
			GROUP  = 'GRPNAME'
			USER   = 'USRNAME'
			KEEP   = 'X'.

	CALL FUNCTION 'BDC_INSERT'
		EXPORTING
			TCODE     = C_TCODE 
		TABLES
			DYNPROTAB = BDC_TAB.

	CALL FUNCTION 'BDC_CLOSE_GROUP'
		EXCEPTIONS
			NOT_OPEN    = 1
			QUEUE_ERROR = 2
			OTHERS      = 3.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2005 05:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/871184#M49879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-21T05:50:56Z</dc:date>
    </item>
  </channel>
</rss>

