SAP FRML172_COPY_STRUCT Function Module for NOTRANSL: RMS-FRM: füllt Dialogstruktur über Lese-API
FRML172_COPY_STRUCT is a standard frml172 copy struct 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: RMS-FRM: füllt Dialogstruktur über Lese-API 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 frml172 copy struct FM, simply by entering the name FRML172_COPY_STRUCT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FRML172
Program Name: SAPLFRML172
Main Program: SAPLFRML172
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FRML172_COPY_STRUCT 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 'FRML172_COPY_STRUCT'"NOTRANSL: RMS-FRM: füllt Dialogstruktur über Lese-API.
EXPORTING
I_COPY_FORMULA = "RMS-FRM: Object Identifier
I_ADDINF = "RMS-FRM: Additional Information for Function Module Calls
CHANGING
X_KEYPATH = "RMS-FRM: Formula 'Key' Path for Function Module Call
EXCEPTIONS
INTERNAL_ERROR = 1 PARAMETER_ERROR = 2 CHANGE_NUMBER_NOT_FOUND = 3 FORMULA_ALREADY_EXISTS = 4 FORMULA_NAME_SYNTAX = 5 NAME_OUT_OF_RANGE = 6 FORMULA_CATEGORY_INVALID = 7 NO_AUTHORITY = 8 FOREIGN_LOCK = 9
IMPORTING Parameters details for FRML172_COPY_STRUCT
I_COPY_FORMULA - RMS-FRM: Object Identifier
Data type: FRM31_KEY_TYPEOptional: No
Call by Reference: Yes
I_ADDINF - RMS-FRM: Additional Information for Function Module Calls
Data type: FRMLS_ADDINFOptional: No
Call by Reference: Yes
CHANGING Parameters details for FRML172_COPY_STRUCT
X_KEYPATH - RMS-FRM: Formula 'Key' Path for Function Module Call
Data type: FRMLS_KEYPATHOptional: No
Call by Reference: Yes
EXCEPTIONS details
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHANGE_NUMBER_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FORMULA_ALREADY_EXISTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FORMULA_NAME_SYNTAX -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NAME_OUT_OF_RANGE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FORMULA_CATEGORY_INVALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FOREIGN_LOCK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FRML172_COPY_STRUCT 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_x_keypath | TYPE FRMLS_KEYPATH, " | |||
| lv_internal_error | TYPE FRMLS_KEYPATH, " | |||
| lv_i_copy_formula | TYPE FRM31_KEY_TYPE, " | |||
| lv_i_addinf | TYPE FRMLS_ADDINF, " | |||
| lv_parameter_error | TYPE FRMLS_ADDINF, " | |||
| lv_change_number_not_found | TYPE FRMLS_ADDINF, " | |||
| lv_formula_already_exists | TYPE FRMLS_ADDINF, " | |||
| lv_formula_name_syntax | TYPE FRMLS_ADDINF, " | |||
| lv_name_out_of_range | TYPE FRMLS_ADDINF, " | |||
| lv_formula_category_invalid | TYPE FRMLS_ADDINF, " | |||
| lv_no_authority | TYPE FRMLS_ADDINF, " | |||
| lv_foreign_lock | TYPE FRMLS_ADDINF. " |
|   CALL FUNCTION 'FRML172_COPY_STRUCT' "NOTRANSL: RMS-FRM: füllt Dialogstruktur über Lese-API |
| EXPORTING | ||
| I_COPY_FORMULA | = lv_i_copy_formula | |
| I_ADDINF | = lv_i_addinf | |
| CHANGING | ||
| X_KEYPATH | = lv_x_keypath | |
| EXCEPTIONS | ||
| INTERNAL_ERROR = 1 | ||
| PARAMETER_ERROR = 2 | ||
| CHANGE_NUMBER_NOT_FOUND = 3 | ||
| FORMULA_ALREADY_EXISTS = 4 | ||
| FORMULA_NAME_SYNTAX = 5 | ||
| NAME_OUT_OF_RANGE = 6 | ||
| FORMULA_CATEGORY_INVALID = 7 | ||
| NO_AUTHORITY = 8 | ||
| FOREIGN_LOCK = 9 | ||
| . " FRML172_COPY_STRUCT | ||
ABAP code using 7.40 inline data declarations to call FM FRML172_COPY_STRUCT
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.Search for further information about these or an SAP related objects