Ansicht
Dokumentation

/SPE/AAC_DETERMINATION - Account Assignment Categories Determination

/SPE/AAC_DETERMINATION - Account Assignment Categories Determination

CL_GUI_FRONTEND_SERVICES - Frontend Services   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

AAC (Account Assignment Category) Determination

For a specified AAC, all defined elements will be returned for the given plant.

If the Validation Date is not given, then the system field SY-DATUM will be taken.

If you want to restrict the search to specified objects, you need to fill the importing tables TI_INTNUM and/or TI_EXTNUM appropriately. With the importing table TI_EXTNUMRA, you can specify ranges of objects.

Languagedependant texts will be returned in the exporting table TE_AAC_TEXT, according to the language ID entries in the importing table TI_LANGU.

The exporting table TE_AAC_OBJID contains the resulting list of all selected objects, e.g. the IDs of all Cost Centers.

The exporting parameter EP_FIELDCAT contains the names of the returned fields, separated by the specified delimiter character., e.g. "CSKS-KOKRS;CSKS-KOSAR;CSKS-WAERS".

The exporting table TE_AAC_FIELDS contains more detailed information about each object, whereas the object IDs are contained in the exporting table TE_AAC_OBJID. The number of lines in the exporting table TE_AAC_FIELDS computes as follows: Number of lines in the exporting table TE_AAC_OBJID multiplied with the number of fields which are specified in the exporting parameter EP_FIELDCAT.

The exporting table TE_RETURN contains several messages from the runtime of the module, which messages can be helpful in case of an unexpected error. Moreover, an application log will be written for each determination. The application logs can be retrieved with transaction SLG1, parameter Program = /SPE/AAC_DETERMINATION.

Example

Notes

An authority checkwill be done for the function module /SPE/AAC_DETERMINATION in function group /SPE/AACA. An additional authority check for the specified category will be done using the object /SPE/AAC, activity 16.

Further information

There are three BAdIDefinitions which can be implemented at the customer's site:

/SPE/AAC_IN - Enhancement-Spot /SPE/AAC_DETERMINATION_IN: Add and remove fields from the standard field list (exporting parameter EP_FIELDCAT ), create Customer Defined Categories and change the contents of the STATUS filter.
See also the example implementation /SPE/AAC_IN_EXAM, where the Category "Z1" for the Data Base Table PROJ is added, the field AUFK-KALSM is assigned to the category "11" (Order) and the status "Settlement Rule exists" is added to category "12" (WBS Elements).

/SPE/AAC_DB - Enhancement-Spot /SPE/AAC_DETERMINATION_DB: Data Base access for customer defined categories.
See also the example implementation /SPE/AAC_DB_EXAM, where a Data Base read access is implemented for the customer defined example category "Z1", and the resulting list of objects is distributed to the corresponding exporting tables.

/SPE/AAC_OUT - Enhancement-Spot /SPE/AAC_DETERMINATION_OUT: Handle the exporting tables (e.g.: delete specific lines from the resulting tables).
See also the example implementation /SPE/AAC_OUT_EXAM, where lines can be removed from the exporting tables TE_AAC_OBJID, TE_AAC_FIELDS and TE_AAC_TEXT.





Parameters

EP_FIELDCAT
EP_INFO_ZIP
EP_PACK_DONE
EP_SUBRC
EP_TEXT_ZIP
IP_CATEG
IP_DATE
IP_DBBYP
IP_DELIM
IP_PACKER
IP_PLANT
IP_SYUNAME
IP_UNICODE
TE_AAC_FIELDS
TE_AAC_OBJID
TE_AAC_TEXT
TE_RETURN
TI_EXTNUM
TI_EXTNUMRA
TI_INTNUM
TI_LANGU

Exceptions

Function Group

/SAPLAACA

Addresses (Business Address Services)   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 4210 Date: 20240423 Time: 133435     sap01-206 ( 87 ms )