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

Customer Fields in Billing Documents SD / FI

Former Member
0 Likes
1,130

Hi Gurus,

Has anyone ever succeeded in filling custom fields in SD invoice and transfer them to FI invoice ?

I'm trying to fill customer fields in billing documents in SD and FI.

Technically, we put a customer append in BKPF with our fields, and another one in structure ACCHD.

SD user exits work fine, and I can find my customer fields filled in in substitution/validation (RGGBR000 and RGGBS000).

But when the FI document is created, my fields are empty...

The standard FM FI_DOCUMENT_PROJECT and code related are using structure XBKPF and BKPF. At the end, I've found form CREATE_HEADER in include LFACIF4R called to fill in the XBKPF structure.

However, this form moves corresponding p_acc to xbkpf. And the structure P_ACC is described in include LFACIGEN, but manually... There's a list of around 380 fields, but mine obviously are not there.

So I'm about to enhance this include, but do you think I should ? Is there any other way to fulfill my requirements ?

Thanks in advance !

N H

1 ACCEPTED SOLUTION
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
677

I'm not sure what those RGG.. things are, but if you add a custom field to VBRP/VBRK and BKPF then you should be able to copy it to BKPF/BSEG in the user exits provided for the billing document transfer to accounting:

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erplo/sdUserexits

1 REPLY 1
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
678

I'm not sure what those RGG.. things are, but if you add a custom field to VBRP/VBRK and BKPF then you should be able to copy it to BKPF/BSEG in the user exits provided for the billing document transfer to accounting:

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erplo/sdUserexits