Fonction SAP BKK_COND_CLOSE_GET_PERIOD - Period for Posting Date

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ACNUM_INT BKK91-ACNUM_INT C 10 Internal Account Number
I_BKKRS BKK91-BKKRS C 4 Bank Area
I_CLOS_TYP BKK92-CLOS_TYP C 4 Operation
I_DATE_POST_ACT BKK91-DATE_POST D 8 X Current Date
I_DATE_POST_ITEM BKK91-DATE_POST D 8 Posting Date
I_XNOMESSAGE BOOLE-BOOLE C 1 ' ' X

Paramètre Reférence Type Long. Description
E_CP SYST-SUBRC I 4 Current Period Flag (See Documentation)
E_POSTING_NR BKK92-CLOS_NR N 3 Posting Number
E_POSTING_NRADD BKK92-CLOS_NRADD N 3 Suffix for Posting Number
E_POSTING_YEAR BKK92-CLOS_YEAR N 4 Posting Year

Exception Description
NO_PERIOD_FOUND Period Cannot Be Determined

Functionality
Determination of the posting period that belongs to a date.
There are three different situations:

  • e_cp=0: The period is the current one and was exported from the time
  • period table.
    • e_cp=1: If the specified posting date is before the date of the next
    • balancing, then the year and number of the next period are calculated,and both the old (E_CURR_YERA_OLD/E_CURR_NR_OLD) and new values aretransferred to the interface.
      • e_cp=2: The date is in a period that was already balanced.