<?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 PO error message problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-error-message-problem/m-p/4682820#M1101023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usign the userexit &lt;STRONG&gt;'EXIT_SAPMM06E_012&lt;/STRONG&gt;' doing the validations at the time of purchase order creation LIKE checking the each poitem material classifications &lt;STRONG&gt;width&lt;/STRONG&gt;if no width populating the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is :getting the error message in header level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I need to populate the error message in item level.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example for one purchase order we have the two items for the second item material we dont have the width . for that material I need to display error message (me21n)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me how we can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Oct 2008 13:18:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-17T13:18:41Z</dc:date>
    <item>
      <title>PO error message problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-error-message-problem/m-p/4682820#M1101023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usign the userexit &lt;STRONG&gt;'EXIT_SAPMM06E_012&lt;/STRONG&gt;' doing the validations at the time of purchase order creation LIKE checking the each poitem material classifications &lt;STRONG&gt;width&lt;/STRONG&gt;if no width populating the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is :getting the error message in header level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I need to populate the error message in item level.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example for one purchase order we have the two items for the second item material we dont have the width . for that material I need to display error message (me21n)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me how we can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 13:18:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-error-message-problem/m-p/4682820#M1101023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T13:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: PO error message problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-error-message-problem/m-p/4682821#M1101024</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;Exit code required for this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 13:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-error-message-problem/m-p/4682821#M1101024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T13:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: PO error message problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-error-message-problem/m-p/4682822#M1101025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi The below is the exit code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:     gt_zminvcomp_plant  TYPE zminvcomp_plant&lt;/P&gt;&lt;P&gt;                                         OCCURS 0 WITH header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;RANGES: r_plant  FOR ekpo-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:gs_lfa1  TYPE lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:gv_object TYPE objnum,&lt;/P&gt;&lt;P&gt;     gt_class TYPE sclass        OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;     gt_objectdata TYPE clobjdat OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:c_class LIKE klah-class VALUE 'CLS_FIX_STD_COST',&lt;/P&gt;&lt;P&gt;          c_atnam LIKE clobjdat-atnam VALUE 'CHR_FIX_STD_COST_PLANTS',&lt;/P&gt;&lt;P&gt;          c_ctype_001 LIKE klah-klart VALUE '001'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; gs_lfa1 = i_lfa1.&lt;/P&gt;&lt;P&gt;  IF ( sy-tcode = 'ME21N' OR&lt;/P&gt;&lt;P&gt;       sy-tcode = 'ME22N' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To get the Plant data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SELECT * FROM zminvcomp_plant&lt;/P&gt;&lt;P&gt;             INTO TABLE gt_zminvcomp_plant.&lt;/P&gt;&lt;P&gt;    REFRESH r_werks1.&lt;/P&gt;&lt;P&gt;    LOOP AT gt_zminvcomp_plant.&lt;/P&gt;&lt;P&gt;      r_werks1-sign = 'I'.&lt;/P&gt;&lt;P&gt;      r_werks1-low = gt_zminvcomp_plant-werks.&lt;/P&gt;&lt;P&gt;      r_werks1-option = 'EQ'.&lt;/P&gt;&lt;P&gt;      APPEND r_werks1.&lt;/P&gt;&lt;P&gt;      CLEAR r_werks1.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT gt_ekpo WHERE NOT matnr IS initial.&lt;/P&gt;&lt;P&gt;        IF gt_ekpo-loekz &amp;lt;&amp;gt; 'L'.      "for not deleted items&lt;/P&gt;&lt;P&gt;          CLEAR gv_object.&lt;/P&gt;&lt;P&gt;          gv_object = gt_ekpo-matnr.&lt;/P&gt;&lt;P&gt;                PERFORM to_get_classification_data.&lt;/P&gt;&lt;P&gt;               IF gt_ekpo-werks IN r_plant AND NOT r_plant[] IS INITIAL.&lt;/P&gt;&lt;P&gt;                ELSE.&lt;/P&gt;&lt;P&gt;                  mmpur_message 'E' 'ZZ' '048' ''&lt;/P&gt;&lt;P&gt;                                         ''&lt;/P&gt;&lt;P&gt;                                         ''&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;      ENDLOOP.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  to_get_classification_data&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM to_get_classification_data.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            class              = c_class&lt;/P&gt;&lt;P&gt;            classtype          = c_ctype_001&lt;/P&gt;&lt;P&gt;            object             = gv_object&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            t_class            = gt_class&lt;/P&gt;&lt;P&gt;            t_objectdata       = gt_objectdata&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            no_classification  = 1&lt;/P&gt;&lt;P&gt;            no_classtypes      = 2&lt;/P&gt;&lt;P&gt;            invalid_class_type = 3&lt;/P&gt;&lt;P&gt;            OTHERS             = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH r_plant.&lt;/P&gt;&lt;P&gt;  LOOP AT gt_objectdata.&lt;/P&gt;&lt;P&gt;    CASE gt_objectdata-atnam.&lt;/P&gt;&lt;P&gt;      WHEN c_atnam.&lt;/P&gt;&lt;P&gt;        r_plant-low = gt_objectdata-ausp1.&lt;/P&gt;&lt;P&gt;        r_plant-sign = 'I'.&lt;/P&gt;&lt;P&gt;        r_plant-option = 'EQ'.&lt;/P&gt;&lt;P&gt;        APPEND r_plant.&lt;/P&gt;&lt;P&gt;        CLEAR r_plant.&lt;/P&gt;&lt;P&gt;    ENDCASE. "gt_objectdata-atnam&lt;/P&gt;&lt;P&gt;  ENDLOOP.   "gt_objectdata&lt;/P&gt;&lt;P&gt;ENDFORM.                    " to_get_classification_data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 13:35:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-error-message-problem/m-p/4682822#M1101025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T13:35:53Z</dc:date>
    </item>
  </channel>
</rss>

