<?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 source code change in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-change/m-p/1551820#M250287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When creating a sales order for a service product, a SAP standard validation exists that prevents entering a value different from 1.Therefore it is decided to remove this quantity 1 validation from the sales order transaction as suggested by SAP. This must only be done for service order type ZS01. All other order types should maintain limited to quantity 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In form bedingung_pruefen_005 (include LV07A005)&lt;/P&gt;&lt;P&gt; tables: t003o.&lt;/P&gt;&lt;P&gt;    clear:  t003o.&lt;/P&gt;&lt;P&gt;    if not t459k-auart is initial.&lt;/P&gt;&lt;P&gt;      select single * from t003o where auart eq t459k-auart.&lt;/P&gt;&lt;P&gt;      if ( vbep-wmeng &amp;gt; 1000 or&lt;/P&gt;&lt;P&gt;           vbep-cmeng &amp;gt; 1000 ) and&lt;/P&gt;&lt;P&gt;           t003o-autyp eq service.&lt;/P&gt;&lt;P&gt;        error_exception = true.&lt;/P&gt;&lt;P&gt;        da_sy-msgno = '696'.&lt;/P&gt;&lt;P&gt;        da_sy-msgv1 = vbap-posnr.&lt;/P&gt;&lt;P&gt;        error_exception = true.&lt;/P&gt;&lt;P&gt;        exit. " Aus Do-Loop, nicht aus Bedingung!&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;Want i want is not to check whether t459k-auart is initial, but whether the value is not in a newly defined custom table. (eg. zsales)&lt;/P&gt;&lt;P&gt;Implementing this change should consider OSS note 956056.&lt;/P&gt;&lt;P&gt;This note describes the problem and also gives an indication what other routines must be considered when the change is done. &lt;/P&gt;&lt;P&gt;Please find hereafter the detaled information of this note&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Background programming information:&lt;/P&gt;&lt;P&gt;Where is the quantity 1 set ?&lt;/P&gt;&lt;P&gt;When the item and the schedule line are created in the STRUKTUR_ANLEGEN_POSITION routine in the  FV45SFST_STRUKTUR_ANLEGEN_POSI include program, the VBEP-WMENG schedule line quantity is filled with the component quantity (SDSTPOX-MNGKO).&lt;/P&gt;&lt;P&gt;This in turn is filled with the fixed value QUAN_1 when the BOM item is created in STRUKTUR_ANLEGEN in the FV45SFST_STRUKTUR_ANLEGEN include program.&lt;/P&gt;&lt;P&gt;The call stack for this is as follows:&lt;/P&gt;&lt;P&gt;  1 SAPFV45S FORM STRUKTUR_ANLEGEN_POSITION&lt;/P&gt;&lt;P&gt;  2 SAPFV45S FORM STRUKTUR_AUS_XSTB&lt;/P&gt;&lt;P&gt;  3 SAPFV45S FORM STRUKTUR_ANLEGEN&lt;/P&gt;&lt;P&gt;  4 SAPFV45P FORM VBAP_BEARBEITEN_ENDE&lt;/P&gt;&lt;P&gt;  5 SAPFV45P FORM REPAIRITEMS_GENERATE&lt;/P&gt;&lt;P&gt;  6 SAPMV45A FORM FCODE_PREP_40&lt;/P&gt;&lt;P&gt;  7 SAPLV00F FORM FCODE_BEARBEITEN&lt;/P&gt;&lt;P&gt;Where is message V1696 output?&lt;/P&gt;&lt;P&gt;This message is output because of the source code in the routine in the BEDINGUNG_PRUEFEN_005 include in program LV07A005.&lt;/P&gt;&lt;P&gt;In the case of items with a service order, the only quantity permitted is 1.&lt;/P&gt;&lt;P&gt;The call stack for this is as follows:&lt;/P&gt;&lt;P&gt;  1 SAPLV07A FORM BEDINGUNG_PRUEFEN_005&lt;/P&gt;&lt;P&gt;  2 SAPLV07A FUNCTION SD_ORDER_SUBSEQUENT_ALLOWED&lt;/P&gt;&lt;P&gt;  3 SAPFV45E FORM VBEP_BEARBEITEN_BESCHAFFUNG&lt;/P&gt;&lt;P&gt;  4 SAPFV45E FORM VBEP_BEARBEITEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;question : please help me in coding?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Aug 2006 15:15:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-16T15:15:51Z</dc:date>
    <item>
      <title>source code change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-change/m-p/1551820#M250287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When creating a sales order for a service product, a SAP standard validation exists that prevents entering a value different from 1.Therefore it is decided to remove this quantity 1 validation from the sales order transaction as suggested by SAP. This must only be done for service order type ZS01. All other order types should maintain limited to quantity 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In form bedingung_pruefen_005 (include LV07A005)&lt;/P&gt;&lt;P&gt; tables: t003o.&lt;/P&gt;&lt;P&gt;    clear:  t003o.&lt;/P&gt;&lt;P&gt;    if not t459k-auart is initial.&lt;/P&gt;&lt;P&gt;      select single * from t003o where auart eq t459k-auart.&lt;/P&gt;&lt;P&gt;      if ( vbep-wmeng &amp;gt; 1000 or&lt;/P&gt;&lt;P&gt;           vbep-cmeng &amp;gt; 1000 ) and&lt;/P&gt;&lt;P&gt;           t003o-autyp eq service.&lt;/P&gt;&lt;P&gt;        error_exception = true.&lt;/P&gt;&lt;P&gt;        da_sy-msgno = '696'.&lt;/P&gt;&lt;P&gt;        da_sy-msgv1 = vbap-posnr.&lt;/P&gt;&lt;P&gt;        error_exception = true.&lt;/P&gt;&lt;P&gt;        exit. " Aus Do-Loop, nicht aus Bedingung!&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;Want i want is not to check whether t459k-auart is initial, but whether the value is not in a newly defined custom table. (eg. zsales)&lt;/P&gt;&lt;P&gt;Implementing this change should consider OSS note 956056.&lt;/P&gt;&lt;P&gt;This note describes the problem and also gives an indication what other routines must be considered when the change is done. &lt;/P&gt;&lt;P&gt;Please find hereafter the detaled information of this note&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Background programming information:&lt;/P&gt;&lt;P&gt;Where is the quantity 1 set ?&lt;/P&gt;&lt;P&gt;When the item and the schedule line are created in the STRUKTUR_ANLEGEN_POSITION routine in the  FV45SFST_STRUKTUR_ANLEGEN_POSI include program, the VBEP-WMENG schedule line quantity is filled with the component quantity (SDSTPOX-MNGKO).&lt;/P&gt;&lt;P&gt;This in turn is filled with the fixed value QUAN_1 when the BOM item is created in STRUKTUR_ANLEGEN in the FV45SFST_STRUKTUR_ANLEGEN include program.&lt;/P&gt;&lt;P&gt;The call stack for this is as follows:&lt;/P&gt;&lt;P&gt;  1 SAPFV45S FORM STRUKTUR_ANLEGEN_POSITION&lt;/P&gt;&lt;P&gt;  2 SAPFV45S FORM STRUKTUR_AUS_XSTB&lt;/P&gt;&lt;P&gt;  3 SAPFV45S FORM STRUKTUR_ANLEGEN&lt;/P&gt;&lt;P&gt;  4 SAPFV45P FORM VBAP_BEARBEITEN_ENDE&lt;/P&gt;&lt;P&gt;  5 SAPFV45P FORM REPAIRITEMS_GENERATE&lt;/P&gt;&lt;P&gt;  6 SAPMV45A FORM FCODE_PREP_40&lt;/P&gt;&lt;P&gt;  7 SAPLV00F FORM FCODE_BEARBEITEN&lt;/P&gt;&lt;P&gt;Where is message V1696 output?&lt;/P&gt;&lt;P&gt;This message is output because of the source code in the routine in the BEDINGUNG_PRUEFEN_005 include in program LV07A005.&lt;/P&gt;&lt;P&gt;In the case of items with a service order, the only quantity permitted is 1.&lt;/P&gt;&lt;P&gt;The call stack for this is as follows:&lt;/P&gt;&lt;P&gt;  1 SAPLV07A FORM BEDINGUNG_PRUEFEN_005&lt;/P&gt;&lt;P&gt;  2 SAPLV07A FUNCTION SD_ORDER_SUBSEQUENT_ALLOWED&lt;/P&gt;&lt;P&gt;  3 SAPFV45E FORM VBEP_BEARBEITEN_BESCHAFFUNG&lt;/P&gt;&lt;P&gt;  4 SAPFV45E FORM VBEP_BEARBEITEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;question : please help me in coding?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2006 15:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-change/m-p/1551820#M250287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-16T15:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: source code change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-change/m-p/1551821#M250288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In form bedingung_pruefen_005 (include LV07A005)&lt;/P&gt;&lt;P&gt;tables: t003o, zsales.&lt;/P&gt;&lt;P&gt;clear: t003o.&lt;/P&gt;&lt;P&gt;if not t459k-auart is initial.&lt;/P&gt;&lt;P&gt;select single * from t003o where auart eq t459k-auart.&lt;/P&gt;&lt;P&gt;if ( vbep-wmeng &amp;gt; 1000 or&lt;/P&gt;&lt;P&gt;vbep-cmeng &amp;gt; 1000 ) and&lt;/P&gt;&lt;P&gt;t003o-autyp eq service.&lt;/P&gt;&lt;P&gt;error_exception = true.&lt;/P&gt;&lt;P&gt;da_sy-msgno = '696'.&lt;/P&gt;&lt;P&gt;da_sy-msgv1 = vbap-posnr.&lt;/P&gt;&lt;P&gt;error_exception = true.&lt;/P&gt;&lt;P&gt;select single * from zsales where auart eq t459K-auart.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  error_exception = false.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;exit. " Aus Do-Loop, nicht aus Bedingung!&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2006 15:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-change/m-p/1551821#M250288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-16T15:32:33Z</dc:date>
    </item>
  </channel>
</rss>

