<?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: Status Message for ABAP Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887946#M678492</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 would be using OPEN DATASET, to transfer the internal table contents to Application Server file.So check sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET.....&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF sy-subrc eq 0.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;transfer itab....&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Close Dataset.&lt;/P&gt;&lt;P&gt;Message 'File successfully saved!'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;else.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Message 'Error in saving the file !'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2007 03:16:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-20T03:16:31Z</dc:date>
    <item>
      <title>Status Message for ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887945#M678491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;I have an internal table. I placed the contents of the internal table on the application server using executable program. Everything works fine.&lt;/P&gt;&lt;P&gt;When I execute the program, the selection screen appears and after I give the inputs and execute again, the file is placed on the application screen and the screen is back to the abap code from selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a status message at the bottom indicating that the file was placed in the application server successfully. If it fails then I need the failure message that the file was not placed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out how I can get these messages when I execute my program and where I need to place this code in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 03:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887945#M678491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T03:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Status Message for ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887946#M678492</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 would be using OPEN DATASET, to transfer the internal table contents to Application Server file.So check sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET.....&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF sy-subrc eq 0.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;transfer itab....&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Close Dataset.&lt;/P&gt;&lt;P&gt;Message 'File successfully saved!'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;else.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Message 'Error in saving the file !'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 03:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887946#M678492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T03:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Status Message for ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887947#M678493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your program placing the content of internal table to Application server file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case, you can handle the status logic in your program. Let me know what is exactly happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 03:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887947#M678493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T03:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Status Message for ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887948#M678494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prashanth,&lt;/P&gt;&lt;P&gt;It did not work the way you mentioned.&lt;/P&gt;&lt;P&gt;It gives error in the syntax. Some message ID like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashish,&lt;/P&gt;&lt;P&gt;Yes, I am placing the contents of an internal table onto application server.&lt;/P&gt;&lt;P&gt;The program works fine.&lt;/P&gt;&lt;P&gt;But I want a status message once the program is executed successfully stating the file has been placed in application server if not then an error message.&lt;/P&gt;&lt;P&gt;I created a message class in SE91 and kept a message for 000 for successfuly placing of file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I proceed. What needs to be added in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 21:05:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887948#M678494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T21:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Status Message for ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887949#M678495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prashant's solution is correct. You need to use correct message id and message class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will display appropriate message after the process ends. Were you using the code suggested by Prashant as it is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 23:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887949#M678495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T23:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Status Message for ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887950#M678496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using this code. I already created a message class ybpmsg in se91 and saved the messages 000 - file ok and 001 - file not ok. Is there anything I need to add to this code.&lt;/P&gt;&lt;P&gt; Does the message statements work only under the event start of selection??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET.....&lt;/P&gt;&lt;P&gt;IF sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;transfer itab....&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Close Dataset.&lt;/P&gt;&lt;P&gt;MESSAGE S000(YBPMSG).&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;MESSAGE E000(YBPMSG).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2007 21:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887950#M678496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-22T21:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Status Message for ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887951#M678497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work. Just make following change regarding message no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET.....&lt;/P&gt;&lt;P&gt;IF sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;transfer itab....&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Close Dataset.&lt;/P&gt;&lt;P&gt;MESSAGE S000(YBPMSG).&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;MESSAGE E001(YBPMSG).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2007 22:24:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887951#M678497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-22T22:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Status Message for ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887952#M678498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ashish,&lt;/P&gt;&lt;P&gt;I tried that..It gives no error message in code but I dont see the message after I execute the code. When I execute, I get a selection screen and then when I execute again, I get back to the program. The file is placed in the application server. But I dont see any message.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2007 22:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887952#M678498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-22T22:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Status Message for ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887953#M678499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are aware of debugging, execute the program in debug mode. Let me know if you need any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2007 22:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/status-message-for-abap-program/m-p/2887953#M678499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-22T22:35:14Z</dc:date>
    </item>
  </channel>
</rss>

