<?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 Re: Changing VBKD items fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-vbkd-items-fields/m-p/457741#M14225</link>
    <description>&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;         Recently had a same situation where we wanted to set &lt;STRONG&gt;VBKD-KDKG1 = 01 &lt;/STRONG&gt;line item wise. As per the VBKD working, it holds header record that applies to all the items of the order, until and unless there is any change in item level VBKD fields. So, to achieve this functionality dynamically via code, I have done below.&lt;/P&gt;&lt;P&gt;Used &lt;STRONG&gt;MV45AFZB-USEREXIT_CHECK_VBKD &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Checked for the corresponding line item in XVBKD[ ], &lt;/P&gt;&lt;P&gt;   a. if available, changed the XVBKD-KDKG1 = 01.&lt;/P&gt;&lt;P&gt;   b. if not available, inserted new record to XVBKD[ ] copying header record (i.e. posnr = 000000). And made it's POSNR = VBAP-POSNR.&lt;/P&gt;&lt;P&gt;2. System will use these records for further processing too.&lt;/P&gt;&lt;P&gt;We restricted this for VA01 and VA02.&lt;/P&gt;&lt;P&gt;Gurus, kindly correct me if anywhere it is wrong.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2019 06:53:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-03-20T06:53:09Z</dc:date>
    <item>
      <title>Changing VBKD items fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-vbkd-items-fields/m-p/457740#M14224</link>
      <description>&lt;P&gt;Hi SAP gurus,&lt;/P&gt;&lt;P&gt;I have a problem trying to
change VBKD-J_1AREGIO in table VBKD.&lt;/P&gt;&lt;P&gt;Although I searched the forum
for similar questions/cases, I didn´t find an answer that fulfilled our
requirements.&lt;/P&gt;&lt;P&gt;Outr client wants to fulfill
VBKD-J_1AREGIO with the region of the plant (TW001-REGIO) at ítem level (when
VBKD-POSNR  &amp;lt;&amp;gt; ‘000000’). Al header level we want the región of the
customer (KNA1-REGIO).&lt;/P&gt;&lt;P&gt;The problem is that in
USEREXIT_MOVE_FIELD_TO_VBKD &lt;STRONG&gt;the number of registers in VBAP and VBKD are not
the same.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We are aware of the way SAP storages information (if data at header level and items level is the same, it only persist the header data register in VBKD). That´s not the case which I´m Talking.&lt;/P&gt;&lt;P&gt;We need to be changing the
VBKD-J_1ACAE in both, sales order creation – VA01- and sales order modification
–VA02- since the plant of the position could be modified.&lt;/P&gt;&lt;P&gt;Also, after passing values to
J_1AREGIO at header and ítems levels, data don´t persist as we want, &lt;STRONG&gt;it gets
modified.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Does anyone knows why?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 19:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-vbkd-items-fields/m-p/457740#M14224</guid>
      <dc:creator>maximiliano_isoba</dc:creator>
      <dc:date>2017-04-06T19:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Changing VBKD items fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-vbkd-items-fields/m-p/457741#M14225</link>
      <description>&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;         Recently had a same situation where we wanted to set &lt;STRONG&gt;VBKD-KDKG1 = 01 &lt;/STRONG&gt;line item wise. As per the VBKD working, it holds header record that applies to all the items of the order, until and unless there is any change in item level VBKD fields. So, to achieve this functionality dynamically via code, I have done below.&lt;/P&gt;&lt;P&gt;Used &lt;STRONG&gt;MV45AFZB-USEREXIT_CHECK_VBKD &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Checked for the corresponding line item in XVBKD[ ], &lt;/P&gt;&lt;P&gt;   a. if available, changed the XVBKD-KDKG1 = 01.&lt;/P&gt;&lt;P&gt;   b. if not available, inserted new record to XVBKD[ ] copying header record (i.e. posnr = 000000). And made it's POSNR = VBAP-POSNR.&lt;/P&gt;&lt;P&gt;2. System will use these records for further processing too.&lt;/P&gt;&lt;P&gt;We restricted this for VA01 and VA02.&lt;/P&gt;&lt;P&gt;Gurus, kindly correct me if anywhere it is wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 06:53:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-vbkd-items-fields/m-p/457741#M14225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-03-20T06:53:09Z</dc:date>
    </item>
  </channel>
</rss>

