Fonction SAP BKK_IC_HY_GET_HDRACC_POSTDATE - Determination of Header Account for a Posting Date

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ACNUM BKK40-ACNUM_INT C 10
I_BKKRS BKK40-BKKRS C 4
I_POST_DATE SYST-DATUM D 8
I_TRACE IBKKM9-TRACE C 1 X

Paramètre Reférence Type Long. Description
E_DATE_FROM BKK610-DATE_FROM C 8
E_HDRACC_ACNUM BKK40-ACNUM_INT C 10
E_HDRACC_BKKRS BKK40-BKKRS C 4
E_RC SYST-SUBRC I 4
E_TREENR BKK610-TREENR C 12

Functionality
This function module uses the cash pooling-relevant hierarchy table todetermine the root account for a transferredaccount on a posting date.
"On a posting date" means that this date is in the following timeperiod:
from hierarchy from-date (included)
to hierarchy to-date (excluded)
If the transferred account is a root account on this date, this isreturned.

Value range
0: Selection has no errors
4: Nothing has been selected
12: Database is inconsistent - more than one hierarchy found