SAP GET_AT02A_TCODE_MEMIDRFHA Function Module for Get Values of TCODE and MEMORyID_RFHA from Other Values
GET_AT02A_TCODE_MEMIDRFHA is a standard get at02a tcode memidrfha SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Values of TCODE and MEMORyID_RFHA from Other Values 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 get at02a tcode memidrfha FM, simply by entering the name GET_AT02A_TCODE_MEMIDRFHA into the relevant SAP transaction such as SE37 or SE38.
Function Group: FTR_FORWARDS
Program Name: SAPLFTR_FORWARDS
Main Program: SAPLFTR_FORWARDS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function GET_AT02A_TCODE_MEMIDRFHA 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 'GET_AT02A_TCODE_MEMIDRFHA'"Get Values of TCODE and MEMORyID_RFHA from Other Values.
EXPORTING
I_SANLF = "Product Category
I_SFGTYP = "Financial Transaction Category
I_SFGZUSTT = "Transaction Activity Category
I_TRTYP = "Treasury: Subsequent screen control - initial position group
IMPORTING
E_TCODE = "Transaction Code
E_MEMORYID_RFHA = "Set/Get parameter for transaction number
IMPORTING Parameters details for GET_AT02A_TCODE_MEMIDRFHA
I_SANLF - Product Category
Data type: AT02A-SANLFOROptional: No
Call by Reference: Yes
I_SFGTYP - Financial Transaction Category
Data type: AT02A-SFGTYPOptional: No
Call by Reference: Yes
I_SFGZUSTT - Transaction Activity Category
Data type: AT02A-SFGZUSTTOptional: No
Call by Reference: Yes
I_TRTYP - Treasury: Subsequent screen control - initial position group
Data type: SY-UCOMMOptional: No
Call by Reference: Yes
EXPORTING Parameters details for GET_AT02A_TCODE_MEMIDRFHA
E_TCODE - Transaction Code
Data type: AT02A-TCODEOptional: No
Call by Reference: Yes
E_MEMORYID_RFHA - Set/Get parameter for transaction number
Data type: AT02A-MEMORYID_RFHAOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for GET_AT02A_TCODE_MEMIDRFHA 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_tcode | TYPE AT02A-TCODE, " | |||
| lv_i_sanlf | TYPE AT02A-SANLFOR, " | |||
| lv_i_sfgtyp | TYPE AT02A-SFGTYP, " | |||
| lv_e_memoryid_rfha | TYPE AT02A-MEMORYID_RFHA, " | |||
| lv_i_sfgzustt | TYPE AT02A-SFGZUSTT, " | |||
| lv_i_trtyp | TYPE SY-UCOMM. " |
|   CALL FUNCTION 'GET_AT02A_TCODE_MEMIDRFHA' "Get Values of TCODE and MEMORyID_RFHA from Other Values |
| EXPORTING | ||
| I_SANLF | = lv_i_sanlf | |
| I_SFGTYP | = lv_i_sfgtyp | |
| I_SFGZUSTT | = lv_i_sfgzustt | |
| I_TRTYP | = lv_i_trtyp | |
| IMPORTING | ||
| E_TCODE | = lv_e_tcode | |
| E_MEMORYID_RFHA | = lv_e_memoryid_rfha | |
| . " GET_AT02A_TCODE_MEMIDRFHA | ||
ABAP code using 7.40 inline data declarations to call FM GET_AT02A_TCODE_MEMIDRFHA
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 TCODE FROM AT02A INTO @DATA(ld_e_tcode). | ||||
| "SELECT single SANLFOR FROM AT02A INTO @DATA(ld_i_sanlf). | ||||
| "SELECT single SFGTYP FROM AT02A INTO @DATA(ld_i_sfgtyp). | ||||
| "SELECT single MEMORYID_RFHA FROM AT02A INTO @DATA(ld_e_memoryid_rfha). | ||||
| "SELECT single SFGZUSTT FROM AT02A INTO @DATA(ld_i_sfgzustt). | ||||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_i_trtyp). | ||||
Search for further information about these or an SAP related objects