<?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: Posting Illegal Statement Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-illegal-statement-error/m-p/1104207#M104287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2005 08:54:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-14T08:54:29Z</dc:date>
    <item>
      <title>Posting Illegal Statement Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-illegal-statement-error/m-p/1104205#M104285</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;Can anyone help me with my problem. It's like this. I have an output type ZRD3 in billing document (VF01) which performs special function (8). this output type calls my routine to perform automatic posting of credit memo request. I used call transaction (for BDC) and submit command but the error says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POSTING_ILLEGAL_STATEMENT&lt;/P&gt;&lt;P&gt;This program is triggered in the update task. There, the following ABAP/4 statements are not allowed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  - CALL SCREEN&lt;/P&gt;&lt;P&gt;  - CALL DIALOG&lt;/P&gt;&lt;P&gt;  - CALL TRANSACTION&lt;/P&gt;&lt;P&gt;  - SUBMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I would delete the call transaction and submit command, my program would work but i need the 2 commands for my program to run correctly and perform its function. Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 06:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-illegal-statement-error/m-p/1104205#M104285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T06:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Illegal Statement Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-illegal-statement-error/m-p/1104206#M104286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 07:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-illegal-statement-error/m-p/1104206#M104286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T07:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Illegal Statement Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-illegal-statement-error/m-p/1104207#M104287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 08:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-illegal-statement-error/m-p/1104207#M104287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T08:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Illegal Statement Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-illegal-statement-error/m-p/1104208#M104288</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;You have an error in your transaction logic. You try to trigger in your output message a new transaction - but the first transaction (VF01) is not finished. &lt;/P&gt;&lt;P&gt;Especially calling in an update task causes a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to separate this into two independent steps. Without changing your whole logic (and coding), fastest way might change the execution of your message to 'manual' or 'job' (dispatch time 1, 2 or 3, but not 4 - immediately).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use report RSNAST00 to execute your message outside of the update task. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 12:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-illegal-statement-error/m-p/1104208#M104288</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-11-14T12:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Illegal Statement Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-illegal-statement-error/m-p/1104209#M104289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't use dispatch time 4 - immediately? But my program should auto create credit memo request after saving the document. Thus, using RSNAST00 manually is not possible. Do you have any suggestions on how to implement this one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 01:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-illegal-statement-error/m-p/1104209#M104289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T01:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Illegal Statement Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-illegal-statement-error/m-p/1104210#M104290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned, do not use 4-immediate processing. Create an event, using tcode SM62. Raise it in your code in the special function using BP_RAISE_EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define a job to be triggered, after the event is raised and do all that you want to do in the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 02:49:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-illegal-statement-error/m-p/1104210#M104290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T02:49:14Z</dc:date>
    </item>
  </channel>
</rss>

