Is it possible to update BKPF-XREF1_HD for an RV accounting document? I have gone through the forum, but could not get any conclusive answer.
I tried using FI_DOCUMENT_CHANGE but it threw an error saying you are not authorized to modify BKPF-XREF1_HD. Is it because its an internal field?
We cannot make direct data entry into this field (BKPF-XREF1_HD). Only modification is possible based on the configuration done in OB32. Can enable this field using OB32. We can only enter reference to this field, using FB02 (change document), after the OB32 settings.
Also after creating the accounting document, you can run a Z program with FB02 BDC for updating this field.
As rightly mentioned by harishkumar.d , fields to be maintained in tcode OB32. Once the BKPF-XREF1_HD is maintained in the tcode, then only this can be updated. Also, you can go through the SPRO path Financial Accounting->Financial Accounting Global Setting->Rules for changing documents.