<?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 VA01 automatic line items in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01-automatic-line-items/m-p/1206894#M132485</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 have a request from our users that while in order creation (VA01) they would like to click an option that will check a table and add line item(s) to the order automatically. The problem is I can't use a BDC or BAPI because I am in the order and it has not yet been saved. I tried to add a line to XVBAP in debug but it does not add the line on the screen. &lt;/P&gt;&lt;P&gt;Has anyone had a similar problem?&lt;/P&gt;&lt;P&gt;Is there a userexit that will allow this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your thoughts&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Mar 2006 13:39:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-01T13:39:29Z</dc:date>
    <item>
      <title>VA01 automatic line items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01-automatic-line-items/m-p/1206894#M132485</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 have a request from our users that while in order creation (VA01) they would like to click an option that will check a table and add line item(s) to the order automatically. The problem is I can't use a BDC or BAPI because I am in the order and it has not yet been saved. I tried to add a line to XVBAP in debug but it does not add the line on the screen. &lt;/P&gt;&lt;P&gt;Has anyone had a similar problem?&lt;/P&gt;&lt;P&gt;Is there a userexit that will allow this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your thoughts&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 13:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01-automatic-line-items/m-p/1206894#M132485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-01T13:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: VA01 automatic line items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01-automatic-line-items/m-p/1206895#M132486</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;did you check the include MV45AFZZ, here there are lot of user esits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the user exit &amp;lt;b&amp;gt;USEREXIT_MOVE_FIELD_TO_VBAP&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;may solve your problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 13:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01-automatic-line-items/m-p/1206895#M132486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-01T13:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: VA01 automatic line items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01-automatic-line-items/m-p/1206896#M132487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the following program are the user exit for billing.&lt;/P&gt;&lt;P&gt;we often use RV60AFZC and RV60AFZZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RV60AFZA&lt;/P&gt;&lt;P&gt;RV60AFZB&lt;/P&gt;&lt;P&gt;RV60AFZC&lt;/P&gt;&lt;P&gt;RV60AFZD&lt;/P&gt;&lt;P&gt;RV60AFZZ&lt;/P&gt;&lt;P&gt;RV60BFZA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Sales order &lt;/P&gt;&lt;P&gt;Pricing, item addtion deletion &lt;/P&gt;&lt;P&gt;MV45AFZZ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I did not find documentation for the BADI either. But at the first glance the process of implementing it looks quite straightforward. I assume you run R/3 Enterprise (4.7). So, you should implement BADI 'BADI_SD_SALES' - this must be done in transaction SE19. In particular for the purpose of adding some additional items into sales document I would implement method SAVE_DOCUMENT_PREPARE. This method has changing table parameter FXVBAP of type VA_VBAPVB_T - it holds all the sales document items. Just add items of yours to it. Certainly, you have to fill all the appropriate fields carefully.&lt;/P&gt;&lt;P&gt;Hope this helps somehow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case you should use USEREXIT_DOCUMENT_SAVE_PREPARE subroutine (form). As far as I remember it has no parameters. To add items to the sales document you should modify internal table XVBAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regard&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 13:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01-automatic-line-items/m-p/1206896#M132487</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-03-01T13:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: VA01 automatic line items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01-automatic-line-items/m-p/1206897#M132488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share the solution. I also have a similar kind of requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will highly appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Malthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 06:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01-automatic-line-items/m-p/1206897#M132488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T06:41:50Z</dc:date>
    </item>
  </channel>
</rss>

