<?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: Filling Message long text dynamically at runtime in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-message-long-text-dynamically-at-runtime/m-p/2791612#M651320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2008 14:01:33 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2008-01-08T14:01:33Z</dc:date>
    <item>
      <title>Filling Message long text dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-message-long-text-dynamically-at-runtime/m-p/2791608#M651316</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;       We have a requirement where we need to display warning message if transportation data is not maintained for any one of the line item while creating(ME21N)/changing(ME22N) STO.(when save button is pressed).  For this we are using FM   AQ_INT_SHOW_MESSAGE_AS_POPUP in the user exit EXIT_SAPMM06E_013. If the user clicks the question mark on the warning popup we need to display all the material numbers for which transportation data is not maintained. Also we need to keep the document under HOLD if the transportation data is not maintained for any one of the line item.Is there any way to achieve these requirements? Please suggest some solution for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 10:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-message-long-text-dynamically-at-runtime/m-p/2791608#M651316</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2007-09-04T10:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filling Message long text dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-message-long-text-dynamically-at-runtime/m-p/2791609#M651317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version are you on?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If on ECC5 or ECC6 then the BADI 'ME_PROCESS_PO_CUST' may give better options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at the following code implemented in the CHECK method of "ME_PROCESS_PO_CUST" BADI (from another post I did about this BADI) , you will see it adds a customer message to the standard PO error list using the macro MMPUR_MESSAGE from the MM_MESSAGES_MAC include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The invalidate() method prevents saving of the order until the error is fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could add separate messages for each material number with problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;METHOD if_ex_me_process_po_cust~check.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;NB: Add Type Group MMMFD to implementing class properties tab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: lt_items TYPE purchase_order_items,&lt;/P&gt;&lt;P&gt;l_item_wa TYPE purchase_order_item,&lt;/P&gt;&lt;P&gt;l_item TYPE mepoitem,&lt;/P&gt;&lt;P&gt;l_total TYPE brtwr,&lt;/P&gt;&lt;P&gt;l_matkl TYPE matkl,&lt;/P&gt;&lt;P&gt;l_flag TYPE c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;INCLUDE mm_messages_mac. "useful macros for message handling&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CLEAR: l_total, l_flag.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read PO Line Items list &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD im_header-&amp;gt;get_items&lt;/P&gt;&lt;P&gt;RECEIVING&lt;/P&gt;&lt;P&gt;re_items = lt_items.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Loop through items and calculate total&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT lt_items INTO l_item_wa.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get detail data for this line &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD l_item_wa-item-&amp;gt;get_data&lt;/P&gt;&lt;P&gt;RECEIVING&lt;/P&gt;&lt;P&gt;re_data = l_item.&lt;/P&gt;&lt;P&gt;l_matkl = l_item-matkl.&lt;/P&gt;&lt;P&gt;l_total = l_total + l_item-brtwr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if any lines missing contract number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF l_item-konnr IS INITIAL.&lt;/P&gt;&lt;P&gt;l_flag = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF l_flag = 'X'.&lt;/P&gt;&lt;P&gt;IF l_total &amp;gt; 5000.&lt;/P&gt;&lt;P&gt;mmpur_metafield mmmfd_agreement.&lt;/P&gt;&lt;P&gt;mmpur_message 'E' '06' '999'&lt;/P&gt;&lt;P&gt;'Purchase order over $5000.00 requires a contract' '' '' ''.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;invalidate the object&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD im_header-&amp;gt;invalidate( ).&lt;/P&gt;&lt;P&gt;LOOP AT lt_items INTO l_item_wa.&lt;/P&gt;&lt;P&gt;CALL METHOD l_item_wa-item-&amp;gt;invalidate( ).&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDMETHOD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other methods available for the Header or Line objects - possibly methods for "Hold".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 14:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-message-long-text-dynamically-at-runtime/m-p/2791609#M651317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T14:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filling Message long text dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-message-long-text-dynamically-at-runtime/m-p/2791610#M651318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using 4.6C version&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 04:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-message-long-text-dynamically-at-runtime/m-p/2791610#M651318</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2007-09-05T04:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filling Message long text dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-message-long-text-dynamically-at-runtime/m-p/2791611#M651319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody have some solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:40:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-message-long-text-dynamically-at-runtime/m-p/2791611#M651319</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2007-09-06T05:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filling Message long text dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-message-long-text-dynamically-at-runtime/m-p/2791612#M651320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 14:01:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-message-long-text-dynamically-at-runtime/m-p/2791612#M651320</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-01-08T14:01:33Z</dc:date>
    </item>
  </channel>
</rss>

