BAPIAGRMNT SAP (BAPI Structure for Agreements) Structure details
Description: BAPI Structure for Agreements
Structure field list including key, data, relationships and ABAP select examples
BAPIAGRMNT is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "BAPI Structure for Agreements" Information within sap ABAP programs.
This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.
i.e. DATA: wa_BAPIAGRMNT TYPE BAPIAGRMNT.
The BAPIAGRMNT table consists of various fields, each holding specific information or linking keys about BAPI Structure for Agreements data available in SAP. These include AGREE_COND (Agreement (various conditions grouped together)), SALES_ORG (Sales Organization), DISTR_CHAN (Distribution Channel), DIVISION (Division).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class:Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced
SAP BAPIAGRMNT structure fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
OPERATION | Function | MSGFN | CHAR | 3 | MSGFN | ||||
AGREE_COND | Agreement (various conditions grouped together) | KNUMA | CHAR | 10 | Assigned to domain | ALPHA | KNUMA | VMBO | |
SALES_ORG | Sales Organization | VKORG | CHAR | 4 | Assigned to domain | VKORG | VKO | C_VKORG | |
DISTR_CHAN | Distribution Channel | VTWEG | CHAR | 2 | Assigned to domain | VTWEG | VTW | C_VTWEG | |
DIVISION | Division | SPART | CHAR | 2 | Assigned to domain | SPART | SPA | C_SPART | |
AGR_TYPE | Agreement type | BOART | CHAR | 4 | Assigned to domain | BOART | VBA | ||
CATEGORY | Category of the rebate agreement | BOABTYP | CHAR | 1 | ABTYP | ||||
APPLICATIO | Application | KAPPL | CHAR | 2 | Assigned to domain | KAPPL | KAP | ||
CREATED_BY | Name of Person who Created the Object | ERNAM | CHAR | 12 | USNAM | ||||
CREAT_DATE | Date on Which Record Was Created | ERDAT | DATS | 8 | DATUM | ||||
CREAT_TIME | Entry time | ERZET | TIMS | 6 | UZEIT | ||||
CHANGED_BY | Name of Person Who Changed Object | AENAM | CHAR | 12 | USNAM | ||||
CHANG_DATE | Changed On | AEDAT | DATS | 8 | DATUM | ||||
CHANG_TIME | Time last change was made | AEZET | TIMS | 6 | UZEIT | ||||
RECIPIENT | Rebate recipient | BONEM | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | VBE | |
AGRMT_CURR | Currency Key | WAERS | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
AGCURR_ISO | ISO Currency Code | BAPIISOCD | CHAR | 3 | ISOCD | ||||
EX_DESCR | External description for agreement | ABREX | CHAR | 20 | CHAR20 | ||||
STATOFAGRE | Status of the agreement | BOSTA | CHAR | 1 | BOSTA | ||||
VALID_FROM | Agreement valid-from date | ABDATAB | DATS | 8 | DATUM | ||||
VALID_TO | Agreement valid-to date | ABDATBI | DATS | 8 | DATUM | ||||
COND_GROUP | Condition type/table group for agreements | KOBOG | CHAR | 4 | Assigned to domain | KOBOG | |||
AGRMT_TEXT | Description of agreement (e.g. sales deal, promotion) | BOTEXT | CHAR | 40 | TEXT40 | ||||
PAY_METHOD | Payment Method | DZLSCH | CHAR | 1 | Assigned to domain | ZLSCH | |||
FRMOBJ_TYP | Frame Object/Maintenance Object for Agreement | AGR_FRAME_OBJECT_TYPE | CHAR | 1 | AGR_FRAME_OBJECT_TYPE | ||||
FRMOBJ_KEY | Frame Object/Maintenance Object for Agreement | AGR_FRAME_OBJECT_KEY | CHAR | 10 | AGR_FRAME_OBJECT_KEY | ||||
DEL_FLAG | Deletion Indicator for Agreement | AGR_DEL | CHAR | 1 | AGR_DEL | ||||
PAY_EXTERN | Only External Payment Allowed | PAY_EXTERN | CHAR | 1 | PAY_EXTERN |
Key field | Non-key field |
How do I retrieve data from SAP structure BAPIAGRMNT using ABAP code?
As BAPIAGRMNT is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on BAPIAGRMNT as there is no data to select.How to access SAP table BAPIAGRMNT
Within an ECC or HANA version of SAP you can also view further information about BAPIAGRMNT and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects