<?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 error while creating order in PP in cs02. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-order-in-pp-in-cs02/m-p/12101163#M1972714</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;
  &lt;P&gt;I am making a class builder for the base quantity and required quantity should be same in PP. But if shows error &lt;/P&gt;
  &lt;P&gt;Please help.&lt;/P&gt;
  &lt;P&gt;SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S32 { color: #3399FF; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; }&lt;/P&gt;
  &lt;P&gt;METHOD IF_EX_BOM_UPDATE~CHANGE_AT_SAVE.&lt;BR /&gt; *** BREAK-POINT.&lt;BR /&gt; DATA :&lt;BR /&gt; LS_STPOB LIKE LINE OF DELTA_STPOB, "BOM item document table&lt;BR /&gt; LS_STPOB_1 LIKE LINE OF DELTA_STPOB, "&lt;BR /&gt; LS_STKOB LIKE LINE OF DELTA_STKOB, "BOM Header Document Table&lt;BR /&gt; LV_MENGE TYPE MENGE_D, "Material Master View: Alternative Quantity of Material&lt;BR /&gt; LV_MENGE1 TYPE MENGE_D, "&lt;BR /&gt; LS_MASTB LIKE LINE OF DELTA_MASTB, "Document table for MAST records&lt;BR /&gt; LT_PLANT TYPE RANGE OF CHAR50, "Sequence table for MRP units - scope of planning&lt;BR /&gt; LS_STASB LIKE LINE OF DELTA_STASB, "Document Table for STAS Records&lt;BR /&gt; LT_STASB TYPE CS01_STASB_TAB. "&lt;BR /&gt; DATA:V_ANSWER(1). " ADDED ON 23.09.2019&lt;BR /&gt; * IF SY-UCOMM EQ 'FCBU'.&lt;BR /&gt; CLEAR :LV_MENGE,LV_MENGE1.&lt;BR /&gt; SELECT&lt;BR /&gt; SIGN&lt;BR /&gt; OPTI&lt;BR /&gt; LOW&lt;BR /&gt; HIGH&lt;BR /&gt; INTO TABLE LT_PLANT&lt;BR /&gt; FROM TVARVC&lt;BR /&gt; WHERE NAME = 'ZMM_FEED_PLANT'&lt;BR /&gt; AND TYPE = 'S'.&lt;BR /&gt; IF SY-SUBRC IS INITIAL.&lt;BR /&gt; READ TABLE DELTA_MASTB INTO LS_MASTB INDEX 1.&lt;BR /&gt; IF SY-SUBRC IS INITIAL.&lt;BR /&gt; IF LS_MASTB-WERKS IN LT_PLANT.&lt;BR /&gt; BREAK-POINT.&lt;BR /&gt; IF SY-TCODE EQ 'CS02'.&lt;BR /&gt; READ TABLE DELTA_STKOB INTO LS_STKOB WITH KEY SELKZ = 'X'.&lt;BR /&gt; IF SY-SUBRC IS INITIAL.&lt;BR /&gt; LT_STASB = DELTA_STASB.&lt;BR /&gt; DELETE LT_STASB WHERE STLAL NE LS_STKOB-STLAL.&lt;BR /&gt; LOOP AT LT_STASB INTO LS_STASB WHERE STLAL EQ LS_STKOB-STLAL.&lt;BR /&gt; READ TABLE DELTA_STPOB INTO LS_STPOB WITH KEY STLKN = LS_STASB-STLKN&lt;BR /&gt; MEINS = 'KG'.&lt;BR /&gt; IF SY-SUBRC IS INITIAL.&lt;BR /&gt; READ TABLE DELTA_STPOB INTO LS_STPOB_1 WITH KEY&lt;BR /&gt; STLTY = LS_STPOB-STLTY&lt;BR /&gt; STLNR = LS_STPOB-STLNR&lt;BR /&gt; AEDAT = LS_STPOB-AEDAT&lt;BR /&gt; AENAM = LS_STPOB-AENAM&lt;BR /&gt; IDNRK = LS_STPOB-IDNRK&lt;BR /&gt; POSNR = LS_STPOB-POSNR&lt;BR /&gt; STVKN = LS_STPOB-STVKN&lt;BR /&gt; EFSRT = LS_STPOB-EFSRT&lt;BR /&gt; VBKZ = 'U'.&lt;BR /&gt; &lt;BR /&gt; * DATA: l_num TYPE CMS_DTE_SEQNO.&lt;BR /&gt; * CALL FUNCTION 'NUMBER_GET_NEXT'&lt;BR /&gt; * EXPORTING&lt;BR /&gt; * nr_range_nr = '01'&lt;BR /&gt; * object = 'ZAUTO'&lt;BR /&gt; * IMPORTING&lt;BR /&gt; * number = l_num&lt;BR /&gt; * EXCEPTIONS&lt;BR /&gt; * interval_not_found = 1&lt;BR /&gt; * number_range_not_intern = 2&lt;BR /&gt; * object_not_found = 3&lt;BR /&gt; * quantity_is_0 = 4&lt;BR /&gt; * quantity_is_not_1 = 5&lt;BR /&gt; * interval_overflow = 6&lt;BR /&gt; * buffer_overflow = 7&lt;BR /&gt; * OTHERS = 8.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; IF SY-SUBRC IS INITIAL.&lt;BR /&gt; LV_MENGE1 = LV_MENGE1 + LS_STPOB_1-MENGE.&lt;BR /&gt; ELSE.&lt;BR /&gt; LV_MENGE = LV_MENGE + LS_STPOB-MENGE.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt; LV_MENGE = LV_MENGE + LV_MENGE1.&lt;BR /&gt; BREAK-POINT.&lt;BR /&gt; IF LV_MENGE NE LS_STKOB-BMENG.&lt;BR /&gt; MESSAGE : 'Bill of material Base Quantity and requirement quantity should be same' TYPE 'E'. " COMMENT ON 23.09.2019&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ELSE.&lt;BR /&gt; LOOP AT DELTA_STPOB INTO LS_STPOB WHERE MEINS = 'KG'.&lt;BR /&gt; LV_MENGE = LV_MENGE + LS_STPOB-MENGE.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt; READ TABLE DELTA_STKOB INTO LS_STKOB INDEX 1.&lt;BR /&gt; IF SY-SUBRC IS INITIAL.&lt;BR /&gt; IF LV_MENGE NE LS_STKOB-BMENG.&lt;BR /&gt; MESSAGE : 'Bill of material Base Quantity and requirement quantity should be same' TYPE 'E'.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; *ENDIF.&lt;BR /&gt; * ENDIF.&lt;BR /&gt; ENDMETHOD.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2019 05:54:02 GMT</pubDate>
    <dc:creator>mohit_mantoo</dc:creator>
    <dc:date>2019-12-13T05:54:02Z</dc:date>
    <item>
      <title>error while creating order in PP in cs02.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-order-in-pp-in-cs02/m-p/12101163#M1972714</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
  &lt;P&gt;I am making a class builder for the base quantity and required quantity should be same in PP. But if shows error &lt;/P&gt;
  &lt;P&gt;Please help.&lt;/P&gt;
  &lt;P&gt;SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S32 { color: #3399FF; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; }&lt;/P&gt;
  &lt;P&gt;METHOD IF_EX_BOM_UPDATE~CHANGE_AT_SAVE.&lt;BR /&gt; *** BREAK-POINT.&lt;BR /&gt; DATA :&lt;BR /&gt; LS_STPOB LIKE LINE OF DELTA_STPOB, "BOM item document table&lt;BR /&gt; LS_STPOB_1 LIKE LINE OF DELTA_STPOB, "&lt;BR /&gt; LS_STKOB LIKE LINE OF DELTA_STKOB, "BOM Header Document Table&lt;BR /&gt; LV_MENGE TYPE MENGE_D, "Material Master View: Alternative Quantity of Material&lt;BR /&gt; LV_MENGE1 TYPE MENGE_D, "&lt;BR /&gt; LS_MASTB LIKE LINE OF DELTA_MASTB, "Document table for MAST records&lt;BR /&gt; LT_PLANT TYPE RANGE OF CHAR50, "Sequence table for MRP units - scope of planning&lt;BR /&gt; LS_STASB LIKE LINE OF DELTA_STASB, "Document Table for STAS Records&lt;BR /&gt; LT_STASB TYPE CS01_STASB_TAB. "&lt;BR /&gt; DATA:V_ANSWER(1). " ADDED ON 23.09.2019&lt;BR /&gt; * IF SY-UCOMM EQ 'FCBU'.&lt;BR /&gt; CLEAR :LV_MENGE,LV_MENGE1.&lt;BR /&gt; SELECT&lt;BR /&gt; SIGN&lt;BR /&gt; OPTI&lt;BR /&gt; LOW&lt;BR /&gt; HIGH&lt;BR /&gt; INTO TABLE LT_PLANT&lt;BR /&gt; FROM TVARVC&lt;BR /&gt; WHERE NAME = 'ZMM_FEED_PLANT'&lt;BR /&gt; AND TYPE = 'S'.&lt;BR /&gt; IF SY-SUBRC IS INITIAL.&lt;BR /&gt; READ TABLE DELTA_MASTB INTO LS_MASTB INDEX 1.&lt;BR /&gt; IF SY-SUBRC IS INITIAL.&lt;BR /&gt; IF LS_MASTB-WERKS IN LT_PLANT.&lt;BR /&gt; BREAK-POINT.&lt;BR /&gt; IF SY-TCODE EQ 'CS02'.&lt;BR /&gt; READ TABLE DELTA_STKOB INTO LS_STKOB WITH KEY SELKZ = 'X'.&lt;BR /&gt; IF SY-SUBRC IS INITIAL.&lt;BR /&gt; LT_STASB = DELTA_STASB.&lt;BR /&gt; DELETE LT_STASB WHERE STLAL NE LS_STKOB-STLAL.&lt;BR /&gt; LOOP AT LT_STASB INTO LS_STASB WHERE STLAL EQ LS_STKOB-STLAL.&lt;BR /&gt; READ TABLE DELTA_STPOB INTO LS_STPOB WITH KEY STLKN = LS_STASB-STLKN&lt;BR /&gt; MEINS = 'KG'.&lt;BR /&gt; IF SY-SUBRC IS INITIAL.&lt;BR /&gt; READ TABLE DELTA_STPOB INTO LS_STPOB_1 WITH KEY&lt;BR /&gt; STLTY = LS_STPOB-STLTY&lt;BR /&gt; STLNR = LS_STPOB-STLNR&lt;BR /&gt; AEDAT = LS_STPOB-AEDAT&lt;BR /&gt; AENAM = LS_STPOB-AENAM&lt;BR /&gt; IDNRK = LS_STPOB-IDNRK&lt;BR /&gt; POSNR = LS_STPOB-POSNR&lt;BR /&gt; STVKN = LS_STPOB-STVKN&lt;BR /&gt; EFSRT = LS_STPOB-EFSRT&lt;BR /&gt; VBKZ = 'U'.&lt;BR /&gt; &lt;BR /&gt; * DATA: l_num TYPE CMS_DTE_SEQNO.&lt;BR /&gt; * CALL FUNCTION 'NUMBER_GET_NEXT'&lt;BR /&gt; * EXPORTING&lt;BR /&gt; * nr_range_nr = '01'&lt;BR /&gt; * object = 'ZAUTO'&lt;BR /&gt; * IMPORTING&lt;BR /&gt; * number = l_num&lt;BR /&gt; * EXCEPTIONS&lt;BR /&gt; * interval_not_found = 1&lt;BR /&gt; * number_range_not_intern = 2&lt;BR /&gt; * object_not_found = 3&lt;BR /&gt; * quantity_is_0 = 4&lt;BR /&gt; * quantity_is_not_1 = 5&lt;BR /&gt; * interval_overflow = 6&lt;BR /&gt; * buffer_overflow = 7&lt;BR /&gt; * OTHERS = 8.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; IF SY-SUBRC IS INITIAL.&lt;BR /&gt; LV_MENGE1 = LV_MENGE1 + LS_STPOB_1-MENGE.&lt;BR /&gt; ELSE.&lt;BR /&gt; LV_MENGE = LV_MENGE + LS_STPOB-MENGE.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt; LV_MENGE = LV_MENGE + LV_MENGE1.&lt;BR /&gt; BREAK-POINT.&lt;BR /&gt; IF LV_MENGE NE LS_STKOB-BMENG.&lt;BR /&gt; MESSAGE : 'Bill of material Base Quantity and requirement quantity should be same' TYPE 'E'. " COMMENT ON 23.09.2019&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ELSE.&lt;BR /&gt; LOOP AT DELTA_STPOB INTO LS_STPOB WHERE MEINS = 'KG'.&lt;BR /&gt; LV_MENGE = LV_MENGE + LS_STPOB-MENGE.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt; READ TABLE DELTA_STKOB INTO LS_STKOB INDEX 1.&lt;BR /&gt; IF SY-SUBRC IS INITIAL.&lt;BR /&gt; IF LV_MENGE NE LS_STKOB-BMENG.&lt;BR /&gt; MESSAGE : 'Bill of material Base Quantity and requirement quantity should be same' TYPE 'E'.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; *ENDIF.&lt;BR /&gt; * ENDIF.&lt;BR /&gt; ENDMETHOD.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 05:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-order-in-pp-in-cs02/m-p/12101163#M1972714</guid>
      <dc:creator>mohit_mantoo</dc:creator>
      <dc:date>2019-12-13T05:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating order in PP in cs02.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-order-in-pp-in-cs02/m-p/12101164#M1972715</link>
      <description>&lt;P&gt;Use CODE button to format your code&lt;/P&gt;&lt;P&gt;Please, give us the error message &lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 06:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-order-in-pp-in-cs02/m-p/12101164#M1972715</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-12-13T06:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating order in PP in cs02.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-order-in-pp-in-cs02/m-p/12101165#M1972716</link>
      <description>&lt;P&gt;error is&lt;/P&gt;&lt;P&gt;Bill of material base quantity and requirement quantity should be same &lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 06:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-order-in-pp-in-cs02/m-p/12101165#M1972716</guid>
      <dc:creator>mohit_mantoo</dc:creator>
      <dc:date>2019-12-13T06:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating order in PP in cs02.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-order-in-pp-in-cs02/m-p/12101166#M1972717</link>
      <description>&lt;P&gt;use 'Comment' not 'Answer', answer is for a proposed solution  &lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 06:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-order-in-pp-in-cs02/m-p/12101166#M1972717</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-12-13T06:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating order in PP in cs02.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-order-in-pp-in-cs02/m-p/12101167#M1972718</link>
      <description>&lt;P&gt;You have your answer, there is a BOM with a definied quantity and you put a different quantity.&lt;/P&gt;&lt;P&gt;The transaction for BOM are CS01 / CS02 / CS03. Maybe you could find the tables behind using ST05 (SQL trace).&lt;/P&gt;&lt;P&gt;After this, put a trace on your program to find witch BOM is accessed, and you will be able to find witch quantity you need to set. &lt;/P&gt;&lt;P&gt;Maybe this control is a customizing, your functional should be able to explain it &lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 06:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-order-in-pp-in-cs02/m-p/12101167#M1972718</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-12-13T06:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating order in PP in cs02.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-order-in-pp-in-cs02/m-p/12101168#M1972719</link>
      <description>&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;can you resolve this issue&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 06:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-order-in-pp-in-cs02/m-p/12101168#M1972719</guid>
      <dc:creator>mohit_mantoo</dc:creator>
      <dc:date>2019-12-13T06:33:36Z</dc:date>
    </item>
  </channel>
</rss>

