<?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 default delivery block in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-delivery-block/m-p/4364027#M1038588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to put a defaullt Delivery block in sales order if the material is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; if sy-tcode = 'VA02'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   if xvbap-matnr ne yvbap-matnr.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   vbak-lifsk = '40'.   '40 is a Delivery block&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with this, the block is placed when the material is changed. but if someone manually checks and removes the block, while saving the order it puts back the block again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can i do to prevent that. I am a functional guy and trying to manage w/o a developer.&lt;/P&gt;&lt;P&gt;if anyone can provide the code. &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Aug 15, 2008 4:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2008 18:47:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-14T18:47:21Z</dc:date>
    <item>
      <title>default delivery block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-delivery-block/m-p/4364027#M1038588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to put a defaullt Delivery block in sales order if the material is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; if sy-tcode = 'VA02'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   if xvbap-matnr ne yvbap-matnr.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   vbak-lifsk = '40'.   '40 is a Delivery block&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with this, the block is placed when the material is changed. but if someone manually checks and removes the block, while saving the order it puts back the block again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can i do to prevent that. I am a functional guy and trying to manage w/o a developer.&lt;/P&gt;&lt;P&gt;if anyone can provide the code. &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Aug 15, 2008 4:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 18:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-delivery-block/m-p/4364027#M1038588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T18:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: default delivery block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-delivery-block/m-p/4364028#M1038589</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;look for user-exit &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;'USEREXIT_SAVE_DOCUMENT_PREPARE'&lt;/SPAN&gt; in the program SAPMV45A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can implement your logic depending on your transaction type.&lt;/P&gt;&lt;P&gt;check the field &lt;STRONG&gt;t180-trtyp&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;If this field is equal to 'H' then it is the create mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since in your case you only want to remove the delivery block when it is edited, your logic should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

IF T180-TRTYP NE 'H'.

....... your logic....
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;KD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 18:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-delivery-block/m-p/4364028#M1038589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T18:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: default delivery block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-delivery-block/m-p/4364029#M1038590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this did not help. When i manually remove the block and save, the block comes back again.&lt;/P&gt;&lt;P&gt;any other ideas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 20:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-delivery-block/m-p/4364029#M1038590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T20:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: default delivery block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-delivery-block/m-p/4364030#M1038591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you tell me what is the code you used in there.&lt;/P&gt;&lt;P&gt;Because that is exactly where I am using it and it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some time s another user-exit is invoked 'USEREXIT_MOVE_FIELD_TO_VBAK '&lt;/P&gt;&lt;P&gt;Please debug the program to check if this is being invoked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;KD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 12:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-delivery-block/m-p/4364030#M1038591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T12:30:05Z</dc:date>
    </item>
  </channel>
</rss>

