SAP ACC_ASSIGNMENT_REF_READ_SEC Function Module for TR-TM-SE: Read Account Assignment Reference from T037S
ACC_ASSIGNMENT_REF_READ_SEC is a standard acc assignment ref read sec SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for TR-TM-SE: Read Account Assignment Reference from T037S 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 acc assignment ref read sec FM, simply by entering the name ACC_ASSIGNMENT_REF_READ_SEC into the relevant SAP transaction such as SE37 or SE38.
Function Group: FV64
Program Name: SAPLFV64
Main Program: SAPLFV64
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ACC_ASSIGNMENT_REF_READ_SEC 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 'ACC_ASSIGNMENT_REF_READ_SEC'"TR-TM-SE: Read Account Assignment Reference from T037S.
EXPORTING
I_BUKRS = "
I_RANTYP = "
I_RREFKONT = "
IMPORTING
E_ACCOUNT_ASSIGNMENT_REFERENCE = "
EXCEPTIONS
I_BUKRS_INITIAL = 1 I_RANTYP_INITIAL = 2 I_RREFKONT_INITIAL = 3 ENTRY_NOT_FOUND = 4
IMPORTING Parameters details for ACC_ASSIGNMENT_REF_READ_SEC
I_BUKRS -
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_RANTYP -
Data type: T037S-RANTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_RREFKONT -
Data type: T037S-RREFKONTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ACC_ASSIGNMENT_REF_READ_SEC
E_ACCOUNT_ASSIGNMENT_REFERENCE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
I_BUKRS_INITIAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_RANTYP_INITIAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_RREFKONT_INITIAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENTRY_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ACC_ASSIGNMENT_REF_READ_SEC 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_bukrs | TYPE T001-BUKRS, " | |||
| lv_i_bukrs_initial | TYPE T001, " | |||
| lv_e_account_assignment_reference | TYPE T001, " | |||
| lv_i_rantyp | TYPE T037S-RANTYP, " | |||
| lv_i_rantyp_initial | TYPE T037S, " | |||
| lv_i_rrefkont | TYPE T037S-RREFKONT, " | |||
| lv_i_rrefkont_initial | TYPE T037S, " | |||
| lv_entry_not_found | TYPE T037S. " |
|   CALL FUNCTION 'ACC_ASSIGNMENT_REF_READ_SEC' "TR-TM-SE: Read Account Assignment Reference from T037S |
| EXPORTING | ||
| I_BUKRS | = lv_i_bukrs | |
| I_RANTYP | = lv_i_rantyp | |
| I_RREFKONT | = lv_i_rrefkont | |
| IMPORTING | ||
| E_ACCOUNT_ASSIGNMENT_REFERENCE | = lv_e_account_assignment_reference | |
| EXCEPTIONS | ||
| I_BUKRS_INITIAL = 1 | ||
| I_RANTYP_INITIAL = 2 | ||
| I_RREFKONT_INITIAL = 3 | ||
| ENTRY_NOT_FOUND = 4 | ||
| . " ACC_ASSIGNMENT_REF_READ_SEC | ||
ABAP code using 7.40 inline data declarations to call FM ACC_ASSIGNMENT_REF_READ_SEC
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 BUKRS FROM T001 INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single RANTYP FROM T037S INTO @DATA(ld_i_rantyp). | ||||
| "SELECT single RREFKONT FROM T037S INTO @DATA(ld_i_rrefkont). | ||||
Search for further information about these or an SAP related objects