SAP AD1C_PROF_READ Function Module for NOTRANSL: DPP-Profil lesen
AD1C_PROF_READ is a standard ad1c prof read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: DPP-Profil lesen 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 ad1c prof read FM, simply by entering the name AD1C_PROF_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: AD1C
Program Name: SAPLAD1C
Main Program: SAPLAD1C
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function AD1C_PROF_READ 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 'AD1C_PROF_READ'"NOTRANSL: DPP-Profil lesen.
EXPORTING
I_PROFNR = "Profile
I_USAGE = "Usage
* I_FLAG_NO_BUFFER = ' ' "ABAP System Field: Background Processing Active
* I_FLAG_ALL_CHARS = ' ' "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
IMPORTING
E_PROF = "Profile Header
TABLES
* ET_FIELDS = "DIP profile: Field information
* ET_SEL = "Sources
* ET_SELA = "Selection Criteria
* ET_SELR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* ET_MAT = "DIP profile: Material determination
* ET_MATA = "DIP profile: Material determination criteria
* ET_MATR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
INPUT_ERROR = 1 PROF_NOT_FOUND = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLAD1C_002 Change COSEL
IMPORTING Parameters details for AD1C_PROF_READ
I_PROFNR - Profile
Data type: AD01C_PROF-PROFNROptional: No
Call by Reference: No ( called with pass by value option)
I_USAGE - Usage
Data type: AD01C_PROF-DPUSOptional: No
Call by Reference: No ( called with pass by value option)
I_FLAG_NO_BUFFER - ABAP System Field: Background Processing Active
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLAG_ALL_CHARS - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for AD1C_PROF_READ
E_PROF - Profile Header
Data type: AD01C_PROFOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for AD1C_PROF_READ
ET_FIELDS - DIP profile: Field information
Data type: AD01FIELDSOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_SEL - Sources
Data type: AD01C_SELOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_SELA - Selection Criteria
Data type: AD01C_SELAOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_SELR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: AD01_SELROptional: Yes
Call by Reference: No ( called with pass by value option)
ET_MAT - DIP profile: Material determination
Data type: AD01C_MATOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_MATA - DIP profile: Material determination criteria
Data type: AD01C_MATAOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_MATR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: AD01_MATROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INPUT_ERROR - Entry Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROF_NOT_FOUND - Profile Not Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for AD1C_PROF_READ 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_e_prof | TYPE AD01C_PROF, " | |||
| lv_i_profnr | TYPE AD01C_PROF-PROFNR, " | |||
| lt_et_fields | TYPE STANDARD TABLE OF AD01FIELDS, " | |||
| lv_input_error | TYPE AD01FIELDS, " | |||
| lt_et_sel | TYPE STANDARD TABLE OF AD01C_SEL, " | |||
| lv_i_usage | TYPE AD01C_PROF-DPUS, " | |||
| lv_prof_not_found | TYPE AD01C_PROF, " | |||
| lt_et_sela | TYPE STANDARD TABLE OF AD01C_SELA, " | |||
| lv_i_flag_no_buffer | TYPE SY-BATCH, " SPACE | |||
| lt_et_selr | TYPE STANDARD TABLE OF AD01_SELR, " | |||
| lv_i_flag_all_chars | TYPE BOOLE_D, " SPACE | |||
| lt_et_mat | TYPE STANDARD TABLE OF AD01C_MAT, " | |||
| lt_et_mata | TYPE STANDARD TABLE OF AD01C_MATA, " | |||
| lt_et_matr | TYPE STANDARD TABLE OF AD01_MATR. " |
|   CALL FUNCTION 'AD1C_PROF_READ' "NOTRANSL: DPP-Profil lesen |
| EXPORTING | ||
| I_PROFNR | = lv_i_profnr | |
| I_USAGE | = lv_i_usage | |
| I_FLAG_NO_BUFFER | = lv_i_flag_no_buffer | |
| I_FLAG_ALL_CHARS | = lv_i_flag_all_chars | |
| IMPORTING | ||
| E_PROF | = lv_e_prof | |
| TABLES | ||
| ET_FIELDS | = lt_et_fields | |
| ET_SEL | = lt_et_sel | |
| ET_SELA | = lt_et_sela | |
| ET_SELR | = lt_et_selr | |
| ET_MAT | = lt_et_mat | |
| ET_MATA | = lt_et_mata | |
| ET_MATR | = lt_et_matr | |
| EXCEPTIONS | ||
| INPUT_ERROR = 1 | ||
| PROF_NOT_FOUND = 2 | ||
| . " AD1C_PROF_READ | ||
ABAP code using 7.40 inline data declarations to call FM AD1C_PROF_READ
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 PROFNR FROM AD01C_PROF INTO @DATA(ld_i_profnr). | ||||
| "SELECT single DPUS FROM AD01C_PROF INTO @DATA(ld_i_usage). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_i_flag_no_buffer). | ||||
| DATA(ld_i_flag_no_buffer) | = ' '. | |||
| DATA(ld_i_flag_all_chars) | = ' '. | |||
Search for further information about these or an SAP related objects