<?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 ME_PROCESS_REQ_CUST Method PROCESS_ITEM flag the document item as invalid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-req-cust-method-process-item-flag-the-document-item-as-invalid/m-p/946297#M64283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm trying to make in transactions ME51N/ME52N/ME53N and autorisation check on account assignment(as cost center).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used method PROCESS_ITEM of interface IF_EX_ME_PROCESS_REQ_CUST as in note 611175, and programmed the authorisation check with the corresponding authorisation object, and added an error message if the check isn't OK.&lt;/P&gt;&lt;P&gt;The problem is that even if i get the error message ( no authorisation for cost center XXXXX) i can save the purchase req . It's like the document is considered as valid with no error in spite of the error message i added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to force this error message or other way to flag the document as invalid???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AL Mahdi BENABDESSELAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2005 14:39:42 GMT</pubDate>
    <dc:creator>almahdi_benabdesselam</dc:creator>
    <dc:date>2005-09-21T14:39:42Z</dc:date>
    <item>
      <title>ME_PROCESS_REQ_CUST Method PROCESS_ITEM flag the document item as invalid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-req-cust-method-process-item-flag-the-document-item-as-invalid/m-p/946297#M64283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm trying to make in transactions ME51N/ME52N/ME53N and autorisation check on account assignment(as cost center).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used method PROCESS_ITEM of interface IF_EX_ME_PROCESS_REQ_CUST as in note 611175, and programmed the authorisation check with the corresponding authorisation object, and added an error message if the check isn't OK.&lt;/P&gt;&lt;P&gt;The problem is that even if i get the error message ( no authorisation for cost center XXXXX) i can save the purchase req . It's like the document is considered as valid with no error in spite of the error message i added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to force this error message or other way to flag the document as invalid???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AL Mahdi BENABDESSELAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2005 14:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-req-cust-method-process-item-flag-the-document-item-as-invalid/m-p/946297#M64283</guid>
      <dc:creator>almahdi_benabdesselam</dc:creator>
      <dc:date>2005-09-21T14:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: ME_PROCESS_REQ_CUST Method PROCESS_ITEM flag the document item as invalid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-req-cust-method-process-item-flag-the-document-item-as-invalid/m-p/946298#M64284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why dont you use method "CHECK" called at save of req.&lt;/P&gt;&lt;P&gt;See below from note ( PARAMETER CH_FAILED will help you )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method CHECK                                                                                &lt;/P&gt;&lt;P&gt;o  Functions                                                                                &lt;/P&gt;&lt;P&gt;This method is called if the purchase requisition is posted or if        &lt;/P&gt;&lt;P&gt;       the user selects function 'Check'. Typically, the overall check          &lt;/P&gt;&lt;P&gt;       of the purchase requisition as well as the derivation of                 &lt;/P&gt;&lt;P&gt;       dependent data that is not necessary during processing in                &lt;/P&gt;&lt;P&gt;       PROCESS_HEADER and so on or would deteriorate the performance            &lt;/P&gt;&lt;P&gt;       there is carried out here.                                                                                &lt;/P&gt;&lt;P&gt;In the CHECK method, you can define enhancements for the overall         &lt;/P&gt;&lt;P&gt;       check or a separate overall check for the purchase requisition.                                                                                &lt;/P&gt;&lt;P&gt;o  Parameter                                                                                &lt;/P&gt;&lt;P&gt;-  IM_HEADER - PReq header                                                                                &lt;/P&gt;&lt;P&gt;The interface reference is of type IF_PURCHASE_REQUISITION.           &lt;/P&gt;&lt;P&gt;          You can use all methods defined there.                                                                                &lt;/P&gt;&lt;P&gt;-  IM_HOLD - hold                                                                                &lt;/P&gt;&lt;P&gt;The user has selected function 'Hold'.                                                                                &lt;/P&gt;&lt;P&gt;-  CH_FAILED - transaction/event failed                                                                                &lt;/P&gt;&lt;P&gt;When checking, if you have detected an error that makes               &lt;/P&gt;&lt;P&gt;          further processing of the purchase requisition impossible, you        &lt;/P&gt;&lt;P&gt;          can fill this parameter with 'X'. Then, processing is not             &lt;/P&gt;&lt;P&gt;          continued. Then, processing is not continued. You must make           &lt;/P&gt;&lt;P&gt;                                                                  Page 9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2005 14:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-req-cust-method-process-item-flag-the-document-item-as-invalid/m-p/946298#M64284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-21T14:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: ME_PROCESS_REQ_CUST Method PROCESS_ITEM flag the document item as invalid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-req-cust-method-process-item-flag-the-document-item-as-invalid/m-p/946299#M64285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use MEREQ001 and in that use EXIT_SAPLMEREQ_005 function module and had the logic or do checking whatever you want and if you want to flash error message write a message statement with error type e so that will leave RFQ has error one.revert back for fruther clarifications if any&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 15:13:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-req-cust-method-process-item-flag-the-document-item-as-invalid/m-p/946299#M64285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T15:13:46Z</dc:date>
    </item>
  </channel>
</rss>

