<?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 VT01N user exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/vt01n-user-exit/m-p/4050131#M968141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello expert ABAPERS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement as follow:&lt;/P&gt;&lt;P&gt;- when user creates/changes a shipment document via VT01N/VT02N, I want to check to make sure all the criterias are met before user can click on the SHIPMENT START button.  (I want to check if there is a shipment cost document before they can start a shipment to PGI the goods)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the criterias are not met, I want to prevent the post goods issuing (as a result of clicking on the shipment start button) from happening and I want to uncheck this shipment start button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used exit EXIT_SAPLV56U_004, but I can't stop the PGI as it already happened and I can't uncheck the shipment start button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please guide me on how to handle this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2008 22:58:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-09T22:58:09Z</dc:date>
    <item>
      <title>VT01N user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vt01n-user-exit/m-p/4050131#M968141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello expert ABAPERS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement as follow:&lt;/P&gt;&lt;P&gt;- when user creates/changes a shipment document via VT01N/VT02N, I want to check to make sure all the criterias are met before user can click on the SHIPMENT START button.  (I want to check if there is a shipment cost document before they can start a shipment to PGI the goods)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the criterias are not met, I want to prevent the post goods issuing (as a result of clicking on the shipment start button) from happening and I want to uncheck this shipment start button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used exit EXIT_SAPLV56U_004, but I can't stop the PGI as it already happened and I can't uncheck the shipment start button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please guide me on how to handle this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 22:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vt01n-user-exit/m-p/4050131#M968141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T22:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: VT01N user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vt01n-user-exit/m-p/4050132#M968142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try BADI : "BADI_LE_SHIPMENT". You will get tons of matierial for this badi in this forum if you search.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 00:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vt01n-user-exit/m-p/4050132#M968142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T00:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: VT01N user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vt01n-user-exit/m-p/4050133#M968143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shekha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for directing me to this BADI.  I've searched on this topic and looks like this is what I need.  My problem is I don't know which transaction to get to V56FSTAT.  I tried SE37, SE38, and CMOD without any luck.  Could you kindly walk me thru this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V56FSTAT Shipment processing: Activities when setting a status&lt;/P&gt;&lt;P&gt;V56SLDET Shipment processing: Leg determination&lt;/P&gt;&lt;P&gt;V56LOCID Shipment Processing: Determine Location Identification&lt;/P&gt;&lt;P&gt;V56L0001 Status of Shipments for a Delivery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 15:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vt01n-user-exit/m-p/4050133#M968143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T15:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: VT01N user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vt01n-user-exit/m-p/4050134#M968144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not too sure about the direction you are going. if you want to implement one of the methods in the shipment badi, you have to go to se18/se19 and enter the badi name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For V56FSTAT which is not related to the BADI you can go to SMOD and check the details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 15:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vt01n-user-exit/m-p/4050134#M968144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T15:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: VT01N user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vt01n-user-exit/m-p/4050135#M968145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Muchas thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm almost there.  I digged into it and found either EXIT_SAPLV56U_004 or EXIT_SAPMV56A_001 that could do what I need.  I could do some validation here before allowing the users saving the document.  If the validation doesn't pass, I want to prevent them from checking the shipment start button (i_xvttk_wa-sttrg = 6)  (In VT01N, there are several status buttons, and the one I want to focus on is button #6 which will post goods issue the delivery)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I uncheck the button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF i_xvttk_wa-sttrg = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE i_xvttk_wa-shtyp.&lt;/P&gt;&lt;P&gt;    WHEN sto_rail.&lt;/P&gt;&lt;P&gt;      CLEAR ship_cost.&lt;/P&gt;&lt;P&gt;      SELECT fknum FROM vfkp&lt;/P&gt;&lt;P&gt;        INTO ship_cost WHERE rebel = i_xvttk_wa-tknum.&lt;/P&gt;&lt;P&gt;      ENDSELECT.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;       *&lt;STRONG&gt;I want to do the following:&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;          *&lt;STRONG&gt;- UNCHECK THE BUTTON&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;          *&lt;STRONG&gt;- REVERSE THE PGI if the PGI did happen&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;         *&lt;STRONG&gt;- SAVE the document.&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 18:21:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vt01n-user-exit/m-p/4050135#M968145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T18:21:33Z</dc:date>
    </item>
  </channel>
</rss>

