<?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: VBKD table update for VA01 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593108#M1567478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am not mistaken,&lt;/P&gt;&lt;P&gt;XVBKD is the internal table.&lt;/P&gt;&lt;P&gt;VBKD is the work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;VBKD-BSTKD_E = VBAK-VBELN
modify xvbkd from vbkd.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jovito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jan 2011 10:59:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-03T10:59:44Z</dc:date>
    <item>
      <title>VBKD table update for VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593106#M1567476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to update VBKD-BSTKD_E field with the sales document number for VA01 transaction code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 'USEREXIT_SAVE_DOCUMENT' to update the internal table XVBKD-BSTKD_E by VBAK-VBELN. I can able to modify the XVBKD internal table but these entries are not reflecting in standard VBKD database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only 'USEREXIT_SAVE_DOCUMENT' is holding the document number other userexits 'USEREXIT_SAVE_DOCUMENT_PREPARE' and 'USEREXIT_MOVE_FIELD_TO_VBKD' are not getting the document number value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in the above requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Naresh Durki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 12:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593106#M1567476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-30T12:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: VBKD table update for VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593107#M1567477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any solution please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 10:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593107#M1567477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T10:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: VBKD table update for VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593108#M1567478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am not mistaken,&lt;/P&gt;&lt;P&gt;XVBKD is the internal table.&lt;/P&gt;&lt;P&gt;VBKD is the work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;VBKD-BSTKD_E = VBAK-VBELN
modify xvbkd from vbkd.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jovito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 10:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593108#M1567478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T10:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: VBKD table update for VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593109#M1567479</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;Something doesn't sound good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using transaction VA01, it means you're creating a sales order, so you can know the document number as soon as you save it: that explain as you can see it in USEREXIT_SAVE_DOCUMENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe any exit can help you, but you need to change the standard program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 11:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593109#M1567479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T11:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: VBKD table update for VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593110#M1567480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the VBELN value and updating the same value to XVBKD internal table. But, the field value is not getting updated to the standard database VBKD table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 11:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593110#M1567480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T11:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: VBKD table update for VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593111#M1567481</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;Yes I've understood it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's is because probaly you update XVBKD in USEREXIT_SAVE_DOCUMENT: only here you can know the sales order number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this exit is to update some own tables, so every change done in sales document is lost here, you shoudl use USEREXIT_SAVE_DOCUMENT_PREPARE: but here you can't know the number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's mean you need to place your code between those two user-exits, but any exit is there, so you have to change the standard: or you try to change it after saving the sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One chance can be to call a function module USEREXIT_SAVE_DOCUMENT, this function has to be called in UPDATE TASK, here you can transfer the sales order number and call the bapi BAPI_SALESORDER_CHANGE in order to change the value of VBKD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 11:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593111#M1567481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T11:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: VBKD table update for VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593112#M1567482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank..you very much for you reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea where can I update the field BSTKD_E(Ship to party reference PO number) in BAPI BAPI_SALESORDER_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 11:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593112#M1567482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T11:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: VBKD table update for VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593113#M1567483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See field PURCH_NO_S in ORDER_HEADER_IN &amp;amp; ORDER_HEADER_INX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 12:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593113#M1567483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T12:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: VBKD table update for VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593114#M1567484</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;Yes Vinod is right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field is ORDER_HEADER_IN-PURCH_NO_S and set the corresponding field flag in ORDER_HEADER_INX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 12:05:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593114#M1567484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T12:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: VBKD table update for VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593115#M1567485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I am expecting the BSTKD_E in item table. why because, for each line item I can have different BSTKD_E value. But this field is in Header and I can not maintain for different line items of an sales order. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 12:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593115#M1567485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T12:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: VBKD table update for VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593116#M1567486</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;If you get some records from VBKD table, you can see there's always a record having the item number equal to 000000, this particular record is valid for all items (except the item having an own record in VBKD, in this case the VBKD-POSNR = VBAP-POSNR):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's as usually the data of VBKD are the same for all items&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you need to set a value valid for all items, you need to set BSTKD_E in header data (ORDER_HEADER_IN), if you need to set a different value for every item or for certain item, you have to set PURCH_NO_S in the corrisponding item of ORDER_ITEM_IN:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;infact both structures ORDER_HEADER_IN and ORDER_HEADER_IN have the field PURCH_NO_S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you need to set the sales order number in PURCH_NO_S, and it will be the same for all item, so it should be correct to transfer the value as header data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway just before calling the BAPI, you can do a selection for VBKD table in order to know if there is the header record only or if there are records for some items:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case you need to transfer the value in header and item structure too:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM VBKD WHERE VBELN = P_VBELN.
   IF VBKD-POSNR = '000000'
      ORDER_HEADER_IN-PURCH_NO_S = P_VBELN.
      ORDER_HEADER_INx-PURCH_NO_S = 'X'.
  ELSE.
      ORDER_ITEM_IN-PURCH_NO_S = P_VBELN.
      ORDER_ITEM_INx-PURCH_NO_S = 'X'.      
      APPEND ORDER_ITEM_IN.
  ENDIF.
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 14:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593116#M1567486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T14:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: VBKD table update for VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593117#M1567487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I resolved my issue by creating a BDC program for VA02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your timely help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 11:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbkd-table-update-for-va01/m-p/7593117#M1567487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-04T11:20:53Z</dc:date>
    </item>
  </channel>
</rss>

