Ansicht
Dokumentation
BUX_OXT_TASK_GEN_DDIC - Task API for DDIC objects
RFUMSV00 - Advance Return for Tax on Sales/Purchases CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
Functionality
This function module is the task API to define the data dictionary objects (DDIC) for the new extension. These objects are generated in the Easy Enhancement Workbench (EEW) for extensions of application objects, like Business Partner (BUPA) or Business Partner Relationship (BUPR).
- The task API generates the name for the application. This name is used in Business Data Toolset (BDT) as an internal identifier for the extension.
- The task API defines the new table for the extension and the following fields for the table:
- Parent object keys - For example, in the case of a business partner, the keys are CLIENT and PARTNER and in the case of a business partner relationship, the keys are CLIENT, RELTYP, PARTNER1 and PARTNER2.
- Time validity fields
- Other fields for the extension that you have entered through the wizard
- The task API defines a new structure for change document. This structure is typically defined by the Change Document API. However, if the change document API is not included in the EEW, this structure will not be generated. Since this structure is required by other APIs, this structure will also be generated by the DDIC task API.
- If you have selected the Check Table indicator for a field while creating the extension using the Wizard, the task API also defines the following objects for the field:
- Check table
- Text table for the Check table
- Check table function module
- Text table function module
- Maintenance view for the Check table
- The task API defines the Update API. This API is called to update the database.
In addition to the standard entries provided by the generic wizard, the task API also reads the following entries of the table IT_EXTENSIONDEF:
Parameter Name | Description |
---|---|
TIME_CONSTRAINT | Time constraint (With Gaps, No Gaps or Time Validity) of the extension |
TIME_DEPENDENCY | Time dependency (time dependent or time independent) of the extension |
CARDINALITY | Cardinality (1:1 or 1: N) of the extension |
The task API reads the following entries of Applications Knowledge Base table (OXT_ER_KNOWLEDGE) to define the parent object keys and time validity fields for the new table:
Node1 | Node2 | Parameter Name | Description |
---|---|---|---|
DDICGEN | INCLUDEKEY | DATETO | New key field to be added |
DDICGEN | INCLUDEPARENTKEY | RELTYPE | New parent key field to be added (only in case of BUPR) |
DDICGEN | INCLUDEFIELD | DATEFROM | New field to be added |
DDICGEN | EXCLUDEPARENTKEY | DATETO, REL_NUMBER | If a key field in the parent table is not required in the extension, then there should be an entry with this parameter name and parameter value as the key field of the parent (only in case of BUPR). |
DDICGEN | REFFIELD | CURR, QUAN | Any field to be added as a reference field to another field |
DDICGEN | DATA_ELEMENT | DATEFROM, DATETO, QUAN, RELTYPE, UNIT, CURR, CUKY | The data element of the field added through the knowledge base has to be made available here. The parameter name should be the same as the parameter name in INCLUDEKEY, INCLUDEPARENTKEY, INCLUDEFIELD or REFFIELD. |
DDICGEN | DATA_ELEMENT | RELTYPE | The data element of the field added through the knowledge base has to be made available here. The parameter name should be the same as the parameter name in INCLUDEKEY, INCLUDEPARENTKEY, INCLUDEFIELD or REFFIELD (only in case of BUPR). |
DDICGEN | DOMAIN | DATEFROM, DATETO, QUAN, RELTYPE, UNIT, CURR, CUKY | The domain of the field added through the knowledge base has to be made available here. The parameter name should be the same as the parameter name in INCLUDEKEY, INCLUDEPARENTKEY, INCLUDEFIELD or REFFIELD. |
DDICGEN | DOMAIN | RELTYPE | The domain of the field added through the knowledge base has to be made available here. The parameter name should be the same as the parameter name in INCLUDEKEY, INCLUDEPARENTKEY, INCLUDEFIELD or REFFIELD (only in case of BUPR). |
The task API updates the:
- Table CT_GOX_HEADER with the details of the objects to be generated
- Table CT_TASKPARAMLIST with the following information:
Parameter Name | Description |
---|---|
TABL | Name of the generated table |
FIELD | Name of the field for the generated table. All fields of the table use this parameter. This parameter is the child of the TABL parameter. |
ROWGUID | Row GUID of the field. This parameter is the child of the FIELD parameter. |
ISKEY | Key field information of the field. This parameter is the child of the FIELD parameter. |
DTEL | Name of the data element for the field. This parameter is the child of the FIELD parameter. |
DOMA | Name of the domain for the field. This parameter is the child of the DTEL parameter. |
PARENT_KEY | Parent key information of the field. This parameter is the child of the FIELD parameter. |
Note: The value of the parameter PARENT_KEY is marked as 'X' for parent key fields. | |
KEY_LENGTH_CHANGED, Parameter Value - 'X' | Information about the change in the length of the key field, in case you change the same during regeneration of the extension using the wizard. |
STRUC_CHD | Details of the new structure for change document. This parameter is the child of the TABL parameter. |
CHECKTABLE | Name of the Check table. This parameter is the child of the FIELD parameter. |
APICHECKFUNC | Name of the Check table function module. This parameter is the child of the FIELD parameter. |
APITEXTFUNC | Name of the Text table function module. This parameter is the child of the FIELD parameter. |
FUNCTION_GROUP | Name of the function group containing the Update API. This parameter is the child of the TABL parameter. |
APIUPDATE | Name of the Update API. This parameter is the child of the TABL parameter. |
REFFIELD | Name of the field, which is the reference field for a field. This parameter is the child of the FIELD parameter. |
SEMANTICAL_KEY | Semantical key of the table, which is not a key field in the table. This is required in usages like BW. This parameter is the child of the FIELD parameter. |
Example
Notes
Further information
Parameters
CT_GOX_HEADERCT_POSTPROC
CT_TABLE_ENTRIES
CT_TASKPARAMLIST
IT_EXTENSIONDEF
IT_GOX_HEADER_OLD
IT_TAB_HEADER_OLD
IV_MODE
IV_NAMESPACE
IV_NSPCSHT_CUS
IV_NSPCSHT_DEV
T_RETURN
Exceptions
SEMANTICAL_ERRORTECHNICAL_ERROR
Function Group
BUX_OXT_TASKRFUMSV00 - Advance Return for Tax on Sales/Purchases General Material Data
This documentation is copyright by SAP AG.
Length: 11051 Date: 20240523 Time: 171401 sap01-206 ( 122 ms )