Ansicht
Dokumentation

FKK_SAMPLE_2605 - INV: Add Selection Criteria for Selection of Open Items

FKK_SAMPLE_2605 - INV: Add Selection Criteria for Selection of Open Items

Fill RESBD Structure from EBP Component Structure   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

In the function module processed at event 2605, you can influence the scope of open items for selection in invoicing.

Some of the invoicing functions integrated in an invoicing process process the open items that were already posted before invoicing. In the standard system, the invoicing program makes all open items of the contract account being invoiced and of the related business partner available for this.

In some applications, however, it can be useful to restrict this selection - dependent on the makeup of the invoicing unit and on the invoicing functions integrated in invoicing. For example you might want only items to be selected that are related to the contracts that are to be processed in invoicing.

This selection restriction is intended to improve:

  • The transparency of the invoicing process
  • The performance of the invoicing run

The invoicing parameters and information about the makeup of the invoicing unit are transferred to the program.

Table C_SELTAB containing selections is expected by the program. It is not necessary here to structure the selections for the contract account and business partner, since the invoicing program does this automatically.

In addition, in table C_AGRTAB, you can return the clearing restrictions that are to be taken into account during the selection. The invoicing program automatically considers some of the invoicing-related clearing restrictions (such as 7, 8, I).

Example

Billing documents are processed in the invoicing unit for contracts (VTREF) 4711 and 4712. You would like only open items for these two contracts to be selected in invoicing.

You return the following selection in C_SELTAB:

SELNR SELFN SELCU
0001 VTREF 4711
0002 VTREF 4712

You would also like items without reference to a contract to also be selected. You return in C_SELTAB:

SELNR SELFN SELCU
0001 VTREF 4711
0002 VTREF 4712
0003 VTREF

You want items to be selected as above, but only those that are due at the latest in the next 14 days - in relation to the document date of invoicing. Assuming that the document date is June 5, 2013, you return the following in C_SELTAB:

SELNR SELFN SELCU SELCO
0001 VTREF 4711
0001 FAEDN   20050619
0002 VTREF 4712
0002 FAEDN   20050619
0003 VTREF
0003 FAEDN   20060619

Note: different numbers in SELFNR represent an OR linkage of the selection criteria; the same number represents an AND linkage.

Notes

Further information





Parameters

C_AGRTAB
C_SELTAB
E_DONT_SELECT_OPEN_ITEMS
I_INV_UNIT_PUBLIC

Exceptions

Function Group

FKKINV_EVENT

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 5900 Date: 20240523 Time: 051410     sap01-206 ( 62 ms )