<?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: Displaying Message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message/m-p/3925134#M940147</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;give message in the message class as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'No authorization to Create PR with this Cost Center:  &amp;amp;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if l_ebkn-kostl is not initial.&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'A_S_KOSTL'&lt;/P&gt;&lt;P&gt;ID 'BUKRS' dummy&lt;/P&gt;&lt;P&gt;ID 'KOSTL' FIELD l_ebkn-kostl.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;P&gt;l_bapiret2-number = '010' .&lt;/P&gt;&lt;P&gt;l_bapiret2-type = 'E'.&lt;/P&gt;&lt;P&gt;l_bapiret2-MESSAGE_V1 = EBKN-KOSTL.&lt;/P&gt;&lt;P&gt;l_BAPIRET2-id = 'ZMSG' ."WITH L_EBKN-KOSTL.&lt;/P&gt;&lt;P&gt;append l_BAPIRET2 to i_BAPIRET2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2008 11:14:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-02T11:14:07Z</dc:date>
    <item>
      <title>Displaying Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message/m-p/3925130#M940143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys i am doing a authority check for transaction ME51 validating the cost center.&lt;/P&gt;&lt;P&gt;i have created the message in se91 as &lt;/P&gt;&lt;P&gt;No authorization to Create PR with this Cost Center: ",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to display the cost center too with this message&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;No authorization to Create PR with this Cost Center:11148048&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Quavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if l_ebkn-kostl is not initial.&lt;/P&gt;&lt;P&gt;    AUTHORITY-CHECK OBJECT 'A_S_KOSTL'&lt;/P&gt;&lt;P&gt;    ID 'BUKRS' dummy&lt;/P&gt;&lt;P&gt;    ID 'KOSTL' FIELD l_ebkn-kostl.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      l_bapiret2-number = '010' .&lt;/P&gt;&lt;P&gt;      l_bapiret2-type = 'E'.&lt;/P&gt;&lt;P&gt;      l_BAPIRET2-id = 'ZMSG' ."WITH  L_EBKN-KOSTL.&lt;/P&gt;&lt;P&gt;      append l_BAPIRET2 to i_BAPIRET2.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 11:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message/m-p/3925130#M940143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T11:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message/m-p/3925131#M940144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SE91 when u create the message this way:&lt;/P&gt;&lt;P&gt;"No authorization to Create PR with this Cost Center: &amp;amp;". Say this message number is 001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in program, call this mesage like this:&lt;/P&gt;&lt;P&gt;message i001 with '100100'.&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, 02 Jun 2008 11:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message/m-p/3925131#M940144</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2008-06-02T11:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message/m-p/3925132#M940145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create your message in SE91 with a place holder and use ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create as ..&lt;/P&gt;&lt;P&gt;'No authorization to Create PR with this Cost Center. &amp;amp;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use ..&lt;/P&gt;&lt;P&gt;message E000 with cost_center.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 11:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message/m-p/3925132#M940145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T11:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message/m-p/3925133#M940146</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;If you want to display the error message then after checking the Sy-subrc write between the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if l_ebkn-kostl is not initial.&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'A_S_KOSTL'&lt;/P&gt;&lt;P&gt;ID 'BUKRS' dummy&lt;/P&gt;&lt;P&gt;ID 'KOSTL' FIELD l_ebkn-kostl.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;P&gt;message e100 with &amp;amp;L_EBKN-KOSTL&amp;amp;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the message that no authorization to create the PR after double clicking on the number(100).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you the error message with the number from the runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and reward points if useful,&lt;/P&gt;&lt;P&gt;C.Bharth Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 11:12:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message/m-p/3925133#M940146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T11:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message/m-p/3925134#M940147</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;give message in the message class as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'No authorization to Create PR with this Cost Center:  &amp;amp;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if l_ebkn-kostl is not initial.&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'A_S_KOSTL'&lt;/P&gt;&lt;P&gt;ID 'BUKRS' dummy&lt;/P&gt;&lt;P&gt;ID 'KOSTL' FIELD l_ebkn-kostl.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;P&gt;l_bapiret2-number = '010' .&lt;/P&gt;&lt;P&gt;l_bapiret2-type = 'E'.&lt;/P&gt;&lt;P&gt;l_bapiret2-MESSAGE_V1 = EBKN-KOSTL.&lt;/P&gt;&lt;P&gt;l_BAPIRET2-id = 'ZMSG' ."WITH L_EBKN-KOSTL.&lt;/P&gt;&lt;P&gt;append l_BAPIRET2 to i_BAPIRET2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 11:14:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message/m-p/3925134#M940147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T11:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message/m-p/3925135#M940148</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;Your structure i_bapiret2 will contain a field MESSAGE_V1, you need to pass the cost centre number to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 11:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message/m-p/3925135#M940148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T11:15:59Z</dc:date>
    </item>
  </channel>
</rss>

