<?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 Screen-exit code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit-code/m-p/930548#M60742</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;want to add the field on the Additional data B tab of the VA01 and VA02 at header level.&lt;/P&gt;&lt;P&gt;Already one field is there now i want to add one more field.How to proceed.&lt;/P&gt;&lt;P&gt;I think i have to go with screen exits.Can you help me in proceeding further and where should i write the code.&lt;/P&gt;&lt;P&gt;I have to move the updated fields to the vbak table&lt;/P&gt;&lt;P&gt;The code is like this &lt;/P&gt;&lt;P&gt;If VBAK-ZZGrswgh less than ZTRKLMT-ZZweight OR&lt;/P&gt;&lt;P&gt;VBAK-ZZCubTot less than ZTRKLMT-ZZCube OR&lt;/P&gt;&lt;P&gt;VBAK-ZZPaltot less than ZTRKLMT-ZZPallet &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR VBAK_ZZTRKLMT. &lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;MOVE &amp;#145;X&amp;#146; TO VBAK_ZZTRKLMT.&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;should i write this code in the USEREXIT_MOVE_FIELD_TO_VBAK of program MV45AFZZ ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This user exit should trigger when &lt;/P&gt;&lt;P&gt;VBAK-AUART Equals 'ZWH' OR&lt;/P&gt;&lt;P&gt;VBAK-AUART Equals 'ZFV'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply soon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2005 08:28:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-19T08:28:16Z</dc:date>
    <item>
      <title>Screen-exit code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit-code/m-p/930548#M60742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;want to add the field on the Additional data B tab of the VA01 and VA02 at header level.&lt;/P&gt;&lt;P&gt;Already one field is there now i want to add one more field.How to proceed.&lt;/P&gt;&lt;P&gt;I think i have to go with screen exits.Can you help me in proceeding further and where should i write the code.&lt;/P&gt;&lt;P&gt;I have to move the updated fields to the vbak table&lt;/P&gt;&lt;P&gt;The code is like this &lt;/P&gt;&lt;P&gt;If VBAK-ZZGrswgh less than ZTRKLMT-ZZweight OR&lt;/P&gt;&lt;P&gt;VBAK-ZZCubTot less than ZTRKLMT-ZZCube OR&lt;/P&gt;&lt;P&gt;VBAK-ZZPaltot less than ZTRKLMT-ZZPallet &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR VBAK_ZZTRKLMT. &lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;MOVE &amp;#145;X&amp;#146; TO VBAK_ZZTRKLMT.&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;should i write this code in the USEREXIT_MOVE_FIELD_TO_VBAK of program MV45AFZZ ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This user exit should trigger when &lt;/P&gt;&lt;P&gt;VBAK-AUART Equals 'ZWH' OR&lt;/P&gt;&lt;P&gt;VBAK-AUART Equals 'ZFV'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply soon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2005 08:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit-code/m-p/930548#M60742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-19T08:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Screen-exit code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit-code/m-p/930549#M60743</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 are right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In USEREXIT_MOVE_FIELD_TO_VBAK of program MV45AFZZ upi need to add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF VBAK-AUART Equals 'ZWH' OR&lt;/P&gt;&lt;P&gt;   VBAK-AUART Equals 'ZFV'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If VBAK-ZZGrswgh lt ZTRKLMT-ZZweight OR&lt;/P&gt;&lt;P&gt;     VBAK-ZZCubTot lt ZTRKLMT-ZZCube OR&lt;/P&gt;&lt;P&gt;     VBAK-ZZPaltot lt ZTRKLMT-ZZPallet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR VBAK_ZZTRKLMT. &lt;/P&gt;&lt;P&gt;  Else.&lt;/P&gt;&lt;P&gt;    MOVE 'X' TO VBAK_ZZTRKLMT.&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;(I corrected your code but did not syntax check it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need to add the field to the screen.  Go into an order and go to the addition data B screen, click on the field that is already there and do "system &amp;gt; status".  There will be a subscreen shown (on this system it is 8309, can't remember if it is always the same).  Double click on this number and it will take you into screen painter so you can add the field.  If you want to be able to change it you will need to add some logic to USEREXIT_SAVE_DOCUMENT in the same program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2005 10:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit-code/m-p/930549#M60743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-19T10:03:06Z</dc:date>
    </item>
  </channel>
</rss>

