SAP ABAD0_CREATE_ACCESS_ROUTINES Function Module for Generate Access Routines for Derivation Tables
ABAD0_CREATE_ACCESS_ROUTINES is a standard abad0 create access routines SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generate Access Routines for Derivation Tables processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for abad0 create access routines FM, simply by entering the name ABAD0_CREATE_ACCESS_ROUTINES into the relevant SAP transaction such as SE37 or SE38.
Function Group: ABAD0
Program Name: SAPLABAD0
Main Program: SAPLABAD0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ABAD0_CREATE_ACCESS_ROUTINES pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'ABAD0_CREATE_ACCESS_ROUTINES'"Generate Access Routines for Derivation Tables.
EXPORTING
I_TABLENAME = "Table Name
I_REPORTNAME = "ABAP Program Name
I_TAB_SOURCES = "
I_TAB_TARGETS = "
* I_NOT_TIME_DEPENDENT = "
* I_GUID_VERSION_ACTIVE = "
EXCEPTIONS
GENERATION_FAILED = 1
IMPORTING Parameters details for ABAD0_CREATE_ACCESS_ROUTINES
I_TABLENAME - Table Name
Data type: DNTAB-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_REPORTNAME - ABAP Program Name
Data type: TRDIR-NAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_TAB_SOURCES -
Data type: ABADR_TAB_SOURCESOptional: No
Call by Reference: Yes
I_TAB_TARGETS -
Data type: ABADR_TAB_TARGETSOptional: No
Call by Reference: Yes
I_NOT_TIME_DEPENDENT -
Data type: ABADR_FLAGOptional: Yes
Call by Reference: Yes
I_GUID_VERSION_ACTIVE -
Data type: ABADR_FLAGOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
GENERATION_FAILED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ABAD0_CREATE_ACCESS_ROUTINES Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_i_tablename | TYPE DNTAB-TABNAME, " | |||
lv_generation_failed | TYPE DNTAB, " | |||
lv_i_reportname | TYPE TRDIR-NAME, " | |||
lv_i_tab_sources | TYPE ABADR_TAB_SOURCES, " | |||
lv_i_tab_targets | TYPE ABADR_TAB_TARGETS, " | |||
lv_i_not_time_dependent | TYPE ABADR_FLAG, " | |||
lv_i_guid_version_active | TYPE ABADR_FLAG. " |
  CALL FUNCTION 'ABAD0_CREATE_ACCESS_ROUTINES' "Generate Access Routines for Derivation Tables |
EXPORTING | ||
I_TABLENAME | = lv_i_tablename | |
I_REPORTNAME | = lv_i_reportname | |
I_TAB_SOURCES | = lv_i_tab_sources | |
I_TAB_TARGETS | = lv_i_tab_targets | |
I_NOT_TIME_DEPENDENT | = lv_i_not_time_dependent | |
I_GUID_VERSION_ACTIVE | = lv_i_guid_version_active | |
EXCEPTIONS | ||
GENERATION_FAILED = 1 | ||
. " ABAD0_CREATE_ACCESS_ROUTINES |
ABAP code using 7.40 inline data declarations to call FM ABAD0_CREATE_ACCESS_ROUTINES
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single TABNAME FROM DNTAB INTO @DATA(ld_i_tablename). | ||||
"SELECT single NAME FROM TRDIR INTO @DATA(ld_i_reportname). | ||||
Search for further information about these or an SAP related objects