<?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: Display Message while creating / changing PO . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-message-while-creating-changing-po/m-p/5808363#M1312859</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;badi me_process_po_cust contains the method process_item and process_header where u can put the validations whichever u want...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n in method check,u can provide appropriate messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kanishak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2009 12:30:47 GMT</pubDate>
    <dc:creator>kanishakgupta1</dc:creator>
    <dc:date>2009-07-07T12:30:47Z</dc:date>
    <item>
      <title>Display Message while creating / changing PO .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-message-while-creating-changing-po/m-p/5808359#M1312855</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;&lt;/P&gt;&lt;P&gt;Whenever a New PO is created against a WBS . I have to check if the value of this PO exceeds the total budet available for WBS . &lt;/P&gt;&lt;P&gt;Is there any BADI / BAPI / user exit where I can write my code and display my messages accordingly . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards , &lt;/P&gt;&lt;P&gt;Ambar .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 09:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-message-while-creating-changing-po/m-p/5808359#M1312855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-07T09:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Display Message while creating / changing PO .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-message-while-creating-changing-po/m-p/5808360#M1312856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this badi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ME_PROCESS_PO_CUST&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 09:10:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-message-while-creating-changing-po/m-p/5808360#M1312856</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-07-07T09:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Display Message while creating / changing PO .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-message-while-creating-changing-po/m-p/5808361#M1312857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for such a quick response . However , i couldnt make out much . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please elaborate a little bit .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 09:26:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-message-while-creating-changing-po/m-p/5808361#M1312857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-07T09:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Display Message while creating / changing PO .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-message-while-creating-changing-po/m-p/5808362#M1312858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try something like this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

METHOD if_ex_me_process_po_cust~process_item .

  DATA:l_if_header TYPE REF TO if_purchase_order_mm,
        ls_header TYPE mepoheader,
        lt_accounts TYPE purchase_order_accountings,
        st_account TYPE purchase_order_accounting,
        l_accounting TYPE REF TO if_purchase_order_account_mm,
        ls_mepoaccounting TYPE mepoaccounting,
        v_stufe  TYPE ps_stufe,
        l_text(100) TYPE c,
       doctype     TYPE bsart,
       Compcode type bukrs,
       docdate type ekko-bedat.

  INCLUDE mm_messages_mac.

  l_if_header = im_item-&amp;gt;get_header( ).
  ls_header   = l_if_header-&amp;gt;get_data( ).
  doctype     = ls_header-bsart .  "NB
  Compcode   = ls_header-bukrs.
  DOCDATE    = LS_HEADER-BEDAT.

      CHECK doctype NE 'UB'. "stock transport purchase order no restriction

      lt_accounts = im_item-&amp;gt;get_accountings( ).
      LOOP AT lt_accounts INTO st_account.
        l_accounting = st_account-accounting.
        ls_mepoaccounting = l_accounting-&amp;gt;get_data( ).
        CHECK ls_mepoaccounting-ps_psp_pnr NE space.
        SELECT SINGLE stufe FROM prps INTO v_stufe
        WHERE pspnr = ls_mepoaccounting-ps_psp_pnr.
        IF sy-subrc EQ 0.
          CHECK v_stufe LE 3.
          CONCATENATE 'WBS Element of Level greater than 3:'
          'IN Item:' ls_mepoaccounting-ebelp INTO l_text.
          mmpur_message_forced 'E' 'ME' '083' l_text ' '  ' '  ' '.
          CALL METHOD im_item-&amp;gt;invalidate( ).
        ENDIF.
      ENDLOOP.

  
ENDMETHOD.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 09:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-message-while-creating-changing-po/m-p/5808362#M1312858</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-07-07T09:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Display Message while creating / changing PO .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-message-while-creating-changing-po/m-p/5808363#M1312859</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;badi me_process_po_cust contains the method process_item and process_header where u can put the validations whichever u want...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n in method check,u can provide appropriate messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kanishak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 12:30:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-message-while-creating-changing-po/m-p/5808363#M1312859</guid>
      <dc:creator>kanishakgupta1</dc:creator>
      <dc:date>2009-07-07T12:30:47Z</dc:date>
    </item>
  </channel>
</rss>

