Ansicht
Dokumentation
POAC_CLD_BADI_SELDB - Change sel. criteria and fields for PO selection
BAL_S_LOG - Application Log: Log header data PERFORM Short ReferenceThis documentation is copyright by SAP AG.
This Business Add-In (BAdI) is used in Accruals for Purchase Orders (FI-GL-GL-POA) and is intended to be used in a Cloud edition only.
You can use this BAdI to change the fields which are selected from the database tables EKKO (purchase order header), EKPO (purchase order item), EKKN (account assignments for purchase order items) and EKKN (schedule lines for purchase order items). In addition, it is possible to modify the hard-coded selection criteria for the selection from EKKO and EKPO.
The BAdI interface method is CHANGE_SELECTION_FROM_DB.
To create translatable texts, go to the tile Custom Business Objects, and choose the tab Custom Code Lists. You can find details about how to implement custom code lists in the comments of the example implementation.
Inbound parameters:
- I_POHEADERSELECTEDFIELDS
This input parameter provides the list of fields selected from database table EKKO (purchase order header).
- I_POITEMSELECTEDFIELDS
This input parameter provides the list of fields selected from database table EKPO (purchase order item).
- I_POITEMASSIGNMTSELECTEDFIELDS
This input parameter provides the list of fields selected from database table EKKN (account assignments for purchase order items).
- I_POITEMSCHEDULESELECTEDFIELDS
This input parameter provides the list of fields selected from database table EKET (schedule lines for purchase order items).
- I_POHEADERSELECTOPTIONS
The input parameter provides the original criteria for the selection from table EKKO (purchase order header). For the selection from EKKO only records with 'BSTYP' (Purchasing Document Category) = 'F' are selected. Records with 'BSAKZ' (Control indicator for purchasing document type) = 'T' will be excluded.
- I_POITEMSELECTOPTIONS
The input parameter provides the original criteria for the selection from table EKPO (purchase order header). For the selection from EKPO all records with 'KZVBR' (Consumption posting) = 'A' and 'KZVBR' = ' ' will be excluded.
The abovementioned key fields are used for the foreign key relationships.
Outbound parameters:
- O_POHEADERSELECTEDFIELDS
This output parameter provides the list of fields selected from database table EKKO (purchase order header).
- O_POITEMSELECTEDFIELDS
This output parameter provides the list of fields selected from database table EKPO (purchase order item).
- O_POITEMASSIGNMTSELECTEDFIELDS
This output parameter provides the list of fields selected from database table EKKN (account assignments for purchase order items).
- O_POITEMSCHEDULESELECTEDFIELDS
This output parameter provides the list of fields selected from database table EKET (schedule lines for purchase order items).
- I_POHEADERSELECTOPTIONS
The output parameter provides the original criteria for the selection from table EKKO (purchase order header). For the selection from EKKO only records with 'BSTYP' (Purchasing Document Category) = 'F' are selected. Records with 'BSAKZ' (Control indicator for purchasing document type) = 'T' will be excluded.
- I_POITEMSELECTOPTIONS
The output parameter provides the original criteria for the selection from table EKPO (purchase order header). For the selection from EKPO all records with 'KZVBR' (Consumption posting) = 'A' and 'KZVBR' = ' ' will be excluded.
- Note: The output parameters must be filled with intended content. Copy the values from the corresponding input parameters if there are no changes.
A simple sample implementation is available that illustrates the intended use of the BAdI. This implementation adds an additional field to be selected from table EKPO. In addition, it removes the limitation of the selection from EKKO for 'BSTYP' (Purchasing Document Category) = 'F'.
ROGBILLS - Synchronize billing plans RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 4260 Date: 20240523 Time: 193205 sap01-206 ( 76 ms )