11-03-2011 2:10 PM
Hi,
i have to update some Z fields in table VBRP. Which bapi can i use to maintain these custom fields ?
with kind regards,
Hans
11-03-2011 2:20 PM
Hi
Usually the rules to fill VBRK and VBRP tables are placed in the routine for copy (transaction VOFM): here you can place all code you need to fill custom fields too.
Max
11-03-2011 2:23 PM
Hi Max,
i have to update these Z fields in a separate program not in the standaard maintaince program. It will be used for a conversion program.
kind regards,
Hans
11-03-2011 2:26 PM
11-03-2011 2:35 PM
Hi Max,
a bapi will take care of the locking, consistency and correct update of the VBRP record.
So if there is a bapi that would be preferred.
Of course, i can update it on the VBRP table directly, but it is not that nice
regards,
Hans
11-03-2011 3:04 PM
Ok Hans
I know that, but bill document is an internal document, so usually all fields are from sales order and delivery, so it should be used the copy routines.
A BAPI has the same behavior of transaction so I don't know if it allows to fill z-field.
Try to check the std fm RV_INVOICE_CREATE or try to look for BAPIBILL
Max