SAP FRML538_CALL_NUTR_COMP_EXIT Function Module for NOTRANSL: RMS-FRM: Nutr. Contribution Exit
FRML538_CALL_NUTR_COMP_EXIT is a standard frml538 call nutr comp exit 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: Nutr. Contribution Exit 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 frml538 call nutr comp exit FM, simply by entering the name FRML538_CALL_NUTR_COMP_EXIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FRML538
Program Name: SAPLFRML538
Main Program: SAPLFRML538
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FRML538_CALL_NUTR_COMP_EXIT 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 'FRML538_CALL_NUTR_COMP_EXIT'"NOTRANSL: RMS-FRM: Nutr. Contribution Exit.
EXPORTING
IO_FRML_WBO = "RMS-RCP: Workbench Application Object - Recipe
IT_LAYGRP_MEMB = "RMSA: Layout Group Members
* IT_COMP_DATA = "RMSA: Composition Contribution
IO_FRML_NTR = "RMS-FRM: Contribution/Composition Nutrients
IS_ADDINF = "RMS-FRM: Additional Information for Function Module Calls
I_LEVEL = "View of a Formula
I_CONV_MODULE = "Function Name
I_FLG_NEED_SAVE = "General Indicator
I_OUTPUT_ID = "RMS-FRM: Object Identifier
I_SUBRECN = "Substance key
I_SUBID = "Substance
CHANGING
* XT_NTR_CMP_OUTTAB = "RMS-FRM: Nutritional Composition
XS_KEYPATH = "RMS-FRM: Formula 'Key' Path for Function Module Call
XT_COMP_DATA = "RMSA: Composition Contribution
XT_ID = "RMS-FRM: Table with IDs
EXCEPTIONS
NO_AUTHORITY = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for FRML538_CALL_NUTR_COMP_EXIT
IO_FRML_WBO - RMS-RCP: Workbench Application Object - Recipe
Data type: CL_FRML_WBOOptional: No
Call by Reference: No ( called with pass by value option)
IT_LAYGRP_MEMB - RMSA: Layout Group Members
Data type: FRMLTY_LAYGRP_MEMBOptional: No
Call by Reference: No ( called with pass by value option)
IT_COMP_DATA - RMSA: Composition Contribution
Data type: FRMLTY_CMPOptional: Yes
Call by Reference: Yes
IO_FRML_NTR - RMS-FRM: Contribution/Composition Nutrients
Data type: CL_FRML_NTR_CONTR_COMPOptional: No
Call by Reference: No ( called with pass by value option)
IS_ADDINF - RMS-FRM: Additional Information for Function Module Calls
Data type: FRMLS_ADDINFOptional: No
Call by Reference: No ( called with pass by value option)
I_LEVEL - View of a Formula
Data type: FRMLE_LEVELOptional: No
Call by Reference: No ( called with pass by value option)
I_CONV_MODULE - Function Name
Data type: FRMLE_FUNCNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_NEED_SAVE - General Indicator
Data type: RMSTE_FLAGOptional: No
Call by Reference: Yes
I_OUTPUT_ID - RMS-FRM: Object Identifier
Data type: FRMLE_RECNOptional: No
Call by Reference: No ( called with pass by value option)
I_SUBRECN - Substance key
Data type: FRMLE_SUBRECNOptional: No
Call by Reference: No ( called with pass by value option)
I_SUBID - Substance
Data type: FRMLE_SUBIDOptional: No
Call by Reference: Yes
CHANGING Parameters details for FRML538_CALL_NUTR_COMP_EXIT
XT_NTR_CMP_OUTTAB - RMS-FRM: Nutritional Composition
Data type: FRMLTY_NUTR_COMPOptional: Yes
Call by Reference: Yes
XS_KEYPATH - RMS-FRM: Formula 'Key' Path for Function Module Call
Data type: FRMLS_KEYPATHOptional: No
Call by Reference: Yes
XT_COMP_DATA - RMSA: Composition Contribution
Data type: FRMLTY_CMPOptional: No
Call by Reference: Yes
XT_ID - RMS-FRM: Table with IDs
Data type: FRMLTY_IDOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_AUTHORITY - No authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Internal error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FRML538_CALL_NUTR_COMP_EXIT 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_io_frml_wbo | TYPE CL_FRML_WBO, " | |||
| lv_no_authority | TYPE CL_FRML_WBO, " | |||
| lv_xt_ntr_cmp_outtab | TYPE FRMLTY_NUTR_COMP, " | |||
| lv_it_laygrp_memb | TYPE FRMLTY_LAYGRP_MEMB, " | |||
| lv_it_comp_data | TYPE FRMLTY_CMP, " | |||
| lv_xs_keypath | TYPE FRMLS_KEYPATH, " | |||
| lv_io_frml_ntr | TYPE CL_FRML_NTR_CONTR_COMP, " | |||
| lv_internal_error | TYPE CL_FRML_NTR_CONTR_COMP, " | |||
| lv_is_addinf | TYPE FRMLS_ADDINF, " | |||
| lv_xt_comp_data | TYPE FRMLTY_CMP, " | |||
| lv_xt_id | TYPE FRMLTY_ID, " | |||
| lv_i_level | TYPE FRMLE_LEVEL, " | |||
| lv_i_conv_module | TYPE FRMLE_FUNCNAME, " | |||
| lv_i_flg_need_save | TYPE RMSTE_FLAG, " | |||
| lv_i_output_id | TYPE FRMLE_RECN, " | |||
| lv_i_subrecn | TYPE FRMLE_SUBRECN, " | |||
| lv_i_subid | TYPE FRMLE_SUBID. " |
|   CALL FUNCTION 'FRML538_CALL_NUTR_COMP_EXIT' "NOTRANSL: RMS-FRM: Nutr. Contribution Exit |
| EXPORTING | ||
| IO_FRML_WBO | = lv_io_frml_wbo | |
| IT_LAYGRP_MEMB | = lv_it_laygrp_memb | |
| IT_COMP_DATA | = lv_it_comp_data | |
| IO_FRML_NTR | = lv_io_frml_ntr | |
| IS_ADDINF | = lv_is_addinf | |
| I_LEVEL | = lv_i_level | |
| I_CONV_MODULE | = lv_i_conv_module | |
| I_FLG_NEED_SAVE | = lv_i_flg_need_save | |
| I_OUTPUT_ID | = lv_i_output_id | |
| I_SUBRECN | = lv_i_subrecn | |
| I_SUBID | = lv_i_subid | |
| CHANGING | ||
| XT_NTR_CMP_OUTTAB | = lv_xt_ntr_cmp_outtab | |
| XS_KEYPATH | = lv_xs_keypath | |
| XT_COMP_DATA | = lv_xt_comp_data | |
| XT_ID | = lv_xt_id | |
| EXCEPTIONS | ||
| NO_AUTHORITY = 1 | ||
| INTERNAL_ERROR = 2 | ||
| . " FRML538_CALL_NUTR_COMP_EXIT | ||
ABAP code using 7.40 inline data declarations to call FM FRML538_CALL_NUTR_COMP_EXIT
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