<?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 add z fields to vbak - saving problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055490#M1353088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;searched sdn forums and the web and didnt got the solution : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am inserting an input/output field in sales order header data 'additional data b'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i add the following code in user exitS : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USEREXIT_MOVE_FIELD_TO_VBAK ,  USEREXIT_SAVE_DOCUMENT  : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBAK-ZFIELD = SCREEN_STRUCURE-ZFIELD . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN USEREXIT_SAVE_DOCUMENT_PREPARE : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;I ADDED SOME CHECKS ** &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field isn't saving in vbak . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe im passing it to vbak from the rong strcture (   SCREEN_STRUCURE = mycomp_vbak_add_data  that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is the only one avalible in this user exit  )  ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what other structures available in this user exit or what additinal code i have to add ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2009 16:52:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-04T16:52:06Z</dc:date>
    <item>
      <title>add z fields to vbak - saving problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055490#M1353088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;searched sdn forums and the web and didnt got the solution : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am inserting an input/output field in sales order header data 'additional data b'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i add the following code in user exitS : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USEREXIT_MOVE_FIELD_TO_VBAK ,  USEREXIT_SAVE_DOCUMENT  : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBAK-ZFIELD = SCREEN_STRUCURE-ZFIELD . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN USEREXIT_SAVE_DOCUMENT_PREPARE : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;I ADDED SOME CHECKS ** &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field isn't saving in vbak . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe im passing it to vbak from the rong strcture (   SCREEN_STRUCURE = mycomp_vbak_add_data  that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is the only one avalible in this user exit  )  ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what other structures available in this user exit or what additinal code i have to add ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 16:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055490#M1353088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T16:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: add z fields to vbak - saving problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055491#M1353089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why did you name your screen field differently than your VBAK field?  The value transfer is automatic if the names are the same.  Don't use USEREXIT_SAVE_DOCUMENT for the VB* fields - see the documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 17:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055491#M1353089</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2009-09-04T17:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: add z fields to vbak - saving problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055492#M1353090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the additional data B screen you have direct access to VBAK structure. So if you added an append to VBAK with field ZZ_FIELD01, you just need to add an input field to additional data B screen and name it VBAK-ZZFIELD01. This will automatically transfer the value and save it to the DB when you save the order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other thing, if you want to change data that is upposed to be saved to the DB you need to do this in the SAVE_DOCUMENT_PREPARE exit, because after that (and before the DOCUMENT_SAVE exit) the data is passed into update task, so any changes in the SAVE_PREPARE exit will not be saved to the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 17:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055492#M1353090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T17:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: add z fields to vbak - saving problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055493#M1353091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think u have added this field at append structure .&lt;/P&gt;&lt;P&gt;From there u want to pass your field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is many userexit are present .other than MV45AFZZ  need to search only which is best suits your requirment .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extensive debug and ur problem will solve it not found Please revert .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 17:53:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055493#M1353091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T17:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: add z fields to vbak - saving problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055494#M1353092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello and thanks to all , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did add this field at append structure ( " SCREEN_STRUCTURE "   is the append structure that i add in to ) . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any other userexits that i have to update and with what special code ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 18:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055494#M1353092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T18:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: add z fields to vbak - saving problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055495#M1353093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's no special code required unless you need to validate the value or change the screen attributes of the field dynamically.  Use the user exits in MV45AFZZ for this or the flow logic for the Additional Data B screen.  I don't know what 'SCREEN_STRUCTURE' refers to for Additional Data B modifications - the standard (first proposed) append struture for VBAK is ZAVBAK and that's what should be used here even in ERP 6.0.  Make sure that you adjust any BAPI calls and structures accordingly to populate the field being added.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 19:06:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055495#M1353093</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2009-09-04T19:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: add z fields to vbak - saving problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055496#M1353094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i validate the field in userexit_prepare_to_save .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont remember ( i am not at work ) the name of the append structure so i wrote 'SCREEN_STRUCTURE'   ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it may be ZAVBAK but any way the value of the field dosnt save to vbak . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 19:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055496#M1353094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T19:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: add z fields to vbak - saving problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055497#M1353095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then your screen field and VBAK field do not have the same name...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 20:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055497#M1353095</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2009-09-04T20:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: add z fields to vbak - saving problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055498#M1353096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go  to se80 and add your field on the screen 4021&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 12:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-z-fields-to-vbak-saving-problem/m-p/6055498#M1353096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-23T12:18:56Z</dc:date>
    </item>
  </channel>
</rss>

