Skip to Content
avatar image
Former Member

Populating BKPF ZZ field through BADI ACC_DOCUMENT

Hi experts,

We are trying to populate a BKPF-ZZ*** field using an implementation of the ACC_DOCUMENT BADI.

So far we:

- Enchanced ACCHD structure with the new ZZ Field (BKPF already had the ZZ field so it wasn't necessary to modify BKPF).

- Activated and implemented a CHANGE method of the ACC_DOCUMENT BADI, populating the field in C_ACCHD.

After debugging the function "BAPI_ACC_DOCUMENT_POST", the BADI is called and the field ZZ* in C_ACCHD is populated. After the BADI execution, structure and table ls_acchd and it_acchd still have the ZZ* field populated. However, in BKPF, when the document is created, the field ZZ* is not populated.

Did we miss any step to populate the field in BKPF ? Is a BTE needed to force it to move the field from ACCHD to BKPF ?

Thanks in advance.


Closing the question. To solve the issue and have the ZZ fields go through the enhanced BADI, customer-own ZZ* field is also needed in structure P_ACC of function group FACI as the data transport is IT_ACCHD -> T_ACCHD -> ACCHD_FI -> P_ACC -> BKPF. But include LFACIGEN, in which structure P_ACC is defined, must not be changed manually. Instead it may only be automatically generated by generation report SAPFACCG.

After executing report SAPFACCG in all systems, the field is populated through the BADI.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers