‎2006 Mar 01 1:39 PM
Hi,
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.
Has anyone had a similar problem?
Is there a userexit that will allow this?
Thanks for your thoughts
Eric
‎2006 Mar 01 1:46 PM
hi,
did you check the include MV45AFZZ, here there are lot of user esits.
check the user exit <b>USEREXIT_MOVE_FIELD_TO_VBAP</b>
may solve your problem..
Regards
vijay
‎2006 Mar 01 1:50 PM
Hello,
the following program are the user exit for billing.
we often use RV60AFZC and RV60AFZZ.
RV60AFZA
RV60AFZB
RV60AFZC
RV60AFZD
RV60AFZZ
RV60BFZA
For Sales order
Pricing, item addtion deletion
MV45AFZZ
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.
Hope this helps somehow.
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.
regard
vinod
‎2007 Mar 16 6:41 AM
Hi Eric,
Could you please share the solution. I also have a similar kind of requirement.
I will highly appreciate your help.
Thanks and regards
Malthi