Skip to Content
0
Former Member
Jul 07, 2008 at 03:38 PM

Create/update Billing plan in VA01/VA02

1250 Views

Hello,

I have to update or create billing plan lines for items in a user-exit in VA01/02.

I first tried to do it in MV45AFZZ / userexit_save_document_prepare, and change values in XFPLT (add lines or udpate lines).

BUT I have a problem for creation: The entry is created in XVBKD and XFPLA only if I went on the tab 'billing plan' before, else, no line in XVBKD and then no billing plan number to update (VBKD-FPLNR, ...).

SAP create the empty billing plan ONLY if the user went on that tab before... so if no, it's not possible to use functions (BILLING_SCHEDULE_READ, BILLING_SCHEDULE_SAVE...) because we have no FPLNR.

Any idea to tell SAP to ALWAYS create an empty billing plan for items? Or an other way to create lines in the billing plan?

Thanks a lot by advance !

Edited by: Mike on Jul 7, 2008 5:41 PM