<?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: Requirement routine doesn't work properly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine-doesn-t-work-properly/m-p/2616413#M600578</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;If it is possible, prevent the system variants from overwriting. They can cause unneccessary, and unwanted problems. Try using your own variants instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2007 10:26:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-08T10:26:52Z</dc:date>
    <item>
      <title>Requirement routine doesn't work properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine-doesn-t-work-properly/m-p/2616411#M600576</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;I created a new requirement routine 901, activated it, attached it to output type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In code first I set SY-SUBRC = 4. Based on condition, i set it to 4 or clear it. Same code is written in both KOBED_901, KOBEV_901. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i go to VL32N  (inbound delivery), create an output proposal and then try to issue it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Control now goes to the routine. Even when SY-SUBRC receives 4, the output is not prevented. I can still continue to issue output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please tell me what went wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;useful answers are rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 10:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine-doesn-t-work-properly/m-p/2616411#M600576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T10:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement routine doesn't work properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine-doesn-t-work-properly/m-p/2616412#M600577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try writing EXIT statement... The thing might be that after the routinue, the cursor goes into some other code and may be here it is just passing off with some other due to which the output is been coming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 10:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine-doesn-t-work-properly/m-p/2616412#M600577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T10:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement routine doesn't work properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine-doesn-t-work-properly/m-p/2616413#M600578</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;If it is possible, prevent the system variants from overwriting. They can cause unneccessary, and unwanted problems. Try using your own variants instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 10:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine-doesn-t-work-properly/m-p/2616413#M600578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T10:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement routine doesn't work properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine-doesn-t-work-properly/m-p/2616414#M600579</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;the code looks something like this and no system variable is overwriting SY-SUBRC once set.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT vbeln&lt;/P&gt;&lt;P&gt;         posnr&lt;/P&gt;&lt;P&gt;         vgbel&lt;/P&gt;&lt;P&gt;         vgpos&lt;/P&gt;&lt;P&gt;         FROM lips INTO TABLE lt_lips&lt;/P&gt;&lt;P&gt;         WHERE vbeln = komkbe1-vbeln.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read first delivery item to get PO reference&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  READ TABLE lt_lips INTO ls_lips INDEX 1.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get Item category from PO item&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SELECT SINGLE pstyp&lt;/P&gt;&lt;P&gt;                  FROM ekpo&lt;/P&gt;&lt;P&gt;                  INTO lf_pstyp&lt;/P&gt;&lt;P&gt;                  WHERE ebeln = ls_lips-vgbel AND&lt;/P&gt;&lt;P&gt;                        ebelp = ls_lips-vgpos.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF lf_pstyp = '5'.&lt;/P&gt;&lt;P&gt;    sy-subrc = 4.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    CLEAR sy-subrc.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 11:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine-doesn-t-work-properly/m-p/2616414#M600579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T11:24:27Z</dc:date>
    </item>
  </channel>
</rss>

