Application Development 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: 

Update BKPF-XREF1_HD in user exit

manish_mohan3
Participant
0 Kudos

Hi,

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?

Thank you,

Manish

5 REPLIES 5

former_member198275
Active Contributor
0 Kudos

Hi,

In T code level , do you have authorisation for create/change RV doc ?? just check the SU53 after u got the error .

0 Kudos

Yep, I do have the required authorizations. I even tried changing few other fields and it worked, but this one did not.

Is there any other FM that I could make use of?

Former Member

Hi,

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.

Former Member
0 Kudos

Hi,

You can use user exit EXIT_SAPLV60B_001 to update this field.

Regards,

Mohit

Former Member
0 Kudos

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.