<?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 Blocking delivery output types in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367437#M1401357</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;i have created VOFM requirement routine for the output &amp;amp; thn assigned tht VOFM routine to the output type in the output determination procedure,eventhough the output type is getting generated. below code for ur ref.how can i solve this iisue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_value TYPE ZVXXVALUE,&lt;/P&gt;&lt;P&gt;          w_subrc TYPE sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA: e_lips TYPE lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA: i_lips TYPE STANDARD TABLE OF lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONSTANTS: c_xlips(17) TYPE c VALUE '(SAPMV50A)XLIPS[]',&lt;/P&gt;&lt;P&gt;               c_main TYPE ZVXXMAIN VALUE 'STXH_VSLOC',&lt;/P&gt;&lt;P&gt;               c_value TYPE ZVXXVALUE VALUE '0098'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    FIELD-SYMBOLS: &amp;lt;fs_lips&amp;gt; TYPE ANY TABLE,&lt;/P&gt;&lt;P&gt;                   &amp;lt;fs_t_lips&amp;gt; TYPE lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    UNASSIGN &amp;lt;fs_lips&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN (c_xlips) TO &amp;lt;fs_lips&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF &amp;lt;fs_lips&amp;gt; IS ASSIGNED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      FREE i_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MOVE &amp;lt;fs_lips&amp;gt; TO i_lips[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      UNASSIGN &amp;lt;fs_t_lips&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT i_lips ASSIGNING &amp;lt;fs_t_lips&amp;gt; WHERE vbeln EQ komkbv2-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR e_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MOVE &amp;lt;fs_t_lips&amp;gt; TO e_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR w_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SELECT SINGLE value&lt;/P&gt;&lt;P&gt;          FROM ZVXXPARAM_GLOBAL&lt;/P&gt;&lt;P&gt;          INTO w_value&lt;/P&gt;&lt;P&gt;         WHERE main EQ c_main&lt;/P&gt;&lt;P&gt;           AND Sub1 EQ &amp;lt;fs_t_lips&amp;gt;-werks&lt;/P&gt;&lt;P&gt;           AND sub2 EQ c_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          IF w_value EQ &amp;lt;fs_t_lips&amp;gt;-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            MOVE 4 TO w_subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            MOVE 0 TO w_subrc.&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;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&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;sy-subrc = w_subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Veera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2009 13:28:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-17T13:28:08Z</dc:date>
    <item>
      <title>Blocking delivery output types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367437#M1401357</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;i have created VOFM requirement routine for the output &amp;amp; thn assigned tht VOFM routine to the output type in the output determination procedure,eventhough the output type is getting generated. below code for ur ref.how can i solve this iisue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_value TYPE ZVXXVALUE,&lt;/P&gt;&lt;P&gt;          w_subrc TYPE sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA: e_lips TYPE lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA: i_lips TYPE STANDARD TABLE OF lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONSTANTS: c_xlips(17) TYPE c VALUE '(SAPMV50A)XLIPS[]',&lt;/P&gt;&lt;P&gt;               c_main TYPE ZVXXMAIN VALUE 'STXH_VSLOC',&lt;/P&gt;&lt;P&gt;               c_value TYPE ZVXXVALUE VALUE '0098'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    FIELD-SYMBOLS: &amp;lt;fs_lips&amp;gt; TYPE ANY TABLE,&lt;/P&gt;&lt;P&gt;                   &amp;lt;fs_t_lips&amp;gt; TYPE lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    UNASSIGN &amp;lt;fs_lips&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN (c_xlips) TO &amp;lt;fs_lips&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF &amp;lt;fs_lips&amp;gt; IS ASSIGNED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      FREE i_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MOVE &amp;lt;fs_lips&amp;gt; TO i_lips[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      UNASSIGN &amp;lt;fs_t_lips&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT i_lips ASSIGNING &amp;lt;fs_t_lips&amp;gt; WHERE vbeln EQ komkbv2-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR e_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MOVE &amp;lt;fs_t_lips&amp;gt; TO e_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR w_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SELECT SINGLE value&lt;/P&gt;&lt;P&gt;          FROM ZVXXPARAM_GLOBAL&lt;/P&gt;&lt;P&gt;          INTO w_value&lt;/P&gt;&lt;P&gt;         WHERE main EQ c_main&lt;/P&gt;&lt;P&gt;           AND Sub1 EQ &amp;lt;fs_t_lips&amp;gt;-werks&lt;/P&gt;&lt;P&gt;           AND sub2 EQ c_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          IF w_value EQ &amp;lt;fs_t_lips&amp;gt;-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            MOVE 4 TO w_subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            MOVE 0 TO w_subrc.&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;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&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;sy-subrc = w_subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Veera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 13:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367437#M1401357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T13:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking delivery output types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367438#M1401358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just place a break point in the routine and go to delivery outputs in change mode and see where it is going wrong. At the end of the routine, sy-subrc should not be zero if you don't want to trigger the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 13:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367438#M1401358</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2009-11-17T13:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking delivery output types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367439#M1401359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for ur reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the end of the routine the sy-subrc  value is 4 only,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Veera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 13:45:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367439#M1401359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T13:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking delivery output types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367440#M1401360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please follow the forum rules and use code tags when you post code.  It would also be helpful if you would comment your code, especially if you expect others to read it.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the question of the SY-SUBRC value, you only assign '4' in one place, so if anything else happens, then the value assigned is always 0.  The output will NOT trigger if the value is 4, so you must be mistaken on the SY-SUBRC value.  A more common practice is to set the default value as '4' and then only switch to '0' if a certain condition is met.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 15:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367440#M1401360</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2009-11-17T15:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking delivery output types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367441#M1401361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brad Bohn  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to block output type (Eg: ZPR2)  only for particular storage location in VL02 transaction. i have created VOFM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;requirement routine for the output &amp;amp; thn assigned tht VOFM routine to the output type in the output determination &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;procedure,eventhough the output type is getting generated. how can i solve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Veera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 15:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367441#M1401361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T15:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking delivery output types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367442#M1401362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since storage location is a line item value in the delivery, you need to make sure that if at least one item has the 'blockable' value, then the return code is '4'.  Your code does not do that if there is a mix of storage locations on the delivery items.  You should exit the loop as soon as you assign '4', and then the '4' value will be assigned to SY-SUBRC.  Without debugging or looking at your delivery, that's the best guess as to why your code doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 17:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367442#M1401362</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2009-11-17T17:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking delivery output types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367443#M1401363</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;You have to raise a error message like below if sy-subrc is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; message id    'XYZ&lt;/P&gt;&lt;P&gt;              type   'E'&lt;/P&gt;&lt;P&gt;             number 'XXX' with  'Output' xnast-kschl&lt;/P&gt;&lt;P&gt;             'cannot be processed'&lt;/P&gt;&lt;P&gt;             raising error&lt;/P&gt;&lt;P&gt;              display like 'I'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 12:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-delivery-output-types/m-p/6367443#M1401363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T12:14:04Z</dc:date>
    </item>
  </channel>
</rss>

