SAP FRML171_COPY_STRUCT Function Module for NOTRANSL: RMS-FRM: füllt Dialogstruktur über Lese-API









FRML171_COPY_STRUCT is a standard frml171 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 frml171 copy struct FM, simply by entering the name FRML171_COPY_STRUCT into the relevant SAP transaction such as SE37 or SE38.

Function Group: FRML171
Program Name: SAPLFRML171
Main Program: SAPLFRML171
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FRML171_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 'FRML171_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
* I_ADDINF_TARGET = "

IMPORTING
ET_ITEM_GUIDS = "

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 FRML171_COPY_STRUCT

I_COPY_FORMULA - RMS-FRM: Object Identifier

Data type: FRM31_KEY_TYPE
Optional: No
Call by Reference: Yes

I_ADDINF - RMS-FRM: Additional Information for Function Module Calls

Data type: FRMLS_ADDINF
Optional: No
Call by Reference: Yes

I_ADDINF_TARGET -

Data type: FRMLS_ADDINF
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FRML171_COPY_STRUCT

ET_ITEM_GUIDS -

Data type: FRM31_TY_T_ITEM_COPY
Optional: No
Call by Reference: Yes

CHANGING Parameters details for FRML171_COPY_STRUCT

X_KEYPATH - RMS-FRM: Formula 'Key' Path for Function Module Call

Data type: FRMLS_KEYPATH
Optional: No
Call by Reference: Yes

EXCEPTIONS details

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

PARAMETER_ERROR -

Data type:
Optional: No
Call by Reference: Yes

CHANGE_NUMBER_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

FORMULA_ALREADY_EXISTS -

Data type:
Optional: No
Call by Reference: Yes

FORMULA_NAME_SYNTAX -

Data type:
Optional: No
Call by Reference: Yes

NAME_OUT_OF_RANGE -

Data type:
Optional: No
Call by Reference: Yes

FORMULA_CATEGORY_INVALID -

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: Yes

FOREIGN_LOCK -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FRML171_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_et_item_guids  TYPE FRM31_TY_T_ITEM_COPY, "   
lv_internal_error  TYPE FRM31_TY_T_ITEM_COPY, "   
lv_i_copy_formula  TYPE FRM31_KEY_TYPE, "   
lv_i_addinf  TYPE FRMLS_ADDINF, "   
lv_parameter_error  TYPE FRMLS_ADDINF, "   
lv_i_addinf_target  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 'FRML171_COPY_STRUCT'  "NOTRANSL: RMS-FRM: füllt Dialogstruktur über Lese-API
    EXPORTING
         I_COPY_FORMULA = lv_i_copy_formula
         I_ADDINF = lv_i_addinf
         I_ADDINF_TARGET = lv_i_addinf_target
    IMPORTING
         ET_ITEM_GUIDS = lv_et_item_guids
    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
. " FRML171_COPY_STRUCT




ABAP code using 7.40 inline data declarations to call FM FRML171_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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!