Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function module to update custom fields of vbrk table

achal_mukaty
Explorer
0 Likes
6,543

Hi All,

I have appended two zz fields in VBRK table now I need to know which function module I can use to update these custom fields of VBRK table.

Hi All,

I have appended two zz fields in VBRK table now I need to know which function module I can use to update these custom fields of VBRK table.

7 REPLIES 7
Read only

gianpietro_dalzio2
Participant
5,439

Do you mean something like a BAPI or do you want to fill the fields while processing a billing document (e.g. in transaction VF02)?

Read only

achal_mukaty
Explorer
0 Likes
5,439

dalzio like a BAPI, So custom fields can be updated during runtime. Two custom fields are ZPDF and ZPDFDT. ZPDF will capture the check box if a particular invoice is generated IDOC and PDF file...So I need to check if this field is activate(X) or not. And ZPDFDT will update the date of PDF file placed in AL11 repository.

Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
5,439

Hello achal_mukaty

As you are going to update only custom Z-fields in VBRK table, I'd say it's safe to update them directly with SQL statement. Just make sure, you update only the Z-fields and that you enqueue / lock the invoice first.

Best regards

Dominik Tylczynski

Read only

vijay_hariharan
Contributor
5,439

Hello,

You may check the Billing User Exit RV60AFZC -> USEREXIT_FILL_VBRK_VBRP to fill details in Custom fields during Invoice creation.. there are other includes that you can find with RV60AFZ* if the above doesn't satisfy your requirement..

All the Best!

Regards,
Vijay

Read only

0 Likes
5,439

vijay.hariharan Isn't there any function module to change the custom field value from old value to new value like we have for BKPF table which is 'FI_DOCUMENT_CHANGE'.

Read only

0 Likes
5,439

Well you can check RV_INVOICE_DOCUMENT_UPDATE but i have my doubts if you can update your Custom fields here.. The BAPI_BILLINGDOC_EDIT for Invoice Update calls VF02 directly so it isn't actually updating anything directly..

Read only

achal_mukaty
Explorer
0 Likes
5,439

vijay.hariharan Can't update the custom fields using this