‎2008 Jul 23 6:56 PM
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
‎2008 Jul 23 10:05 PM
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
‎2008 Jul 23 10:05 PM
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