SAP FRML781_LOM_CREATE_FROM_BOM_2 Function Module for NOTRANSL: RMS_FRM: Interface BOM - LOM









FRML781_LOM_CREATE_FROM_BOM_2 is a standard frml781 lom create from bom 2 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: Interface BOM - LOM 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 frml781 lom create from bom 2 FM, simply by entering the name FRML781_LOM_CREATE_FROM_BOM_2 into the relevant SAP transaction such as SE37 or SE38.

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



Function FRML781_LOM_CREATE_FROM_BOM_2 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 'FRML781_LOM_CREATE_FROM_BOM_2'"NOTRANSL: RMS_FRM: Interface BOM - LOM
EXPORTING
I_ADDINF = "Change Number
I_STKO = "BOM Header Data
I_FLG_LOM_EXIST = "Boolean Variable (X=True, -=False, Space=Unknown)
I_MATNR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_STLAN = "DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXCEPTIONS
NO_AUTHORITY = 1 CREATE_LOM_ERROR = 2
.



IMPORTING Parameters details for FRML781_LOM_CREATE_FROM_BOM_2

I_ADDINF - Change Number

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

I_STKO - BOM Header Data

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

I_FLG_LOM_EXIST - Boolean Variable (X=True, -=False, Space=Unknown)

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

I_MATNR - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: FRMLS_SCR_BOM-MATNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_STLAN - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: FRMLS_SCR_BOM-STLAN
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for FRML781_LOM_CREATE_FROM_BOM_2

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

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

EXCEPTIONS details

NO_AUTHORITY - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

CREATE_LOM_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for FRML781_LOM_CREATE_FROM_BOM_2 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_addinf  TYPE FRMLS_ADDINF, "   
lv_x_keypath  TYPE FRMLS_KEYPATH, "   
lv_no_authority  TYPE FRMLS_KEYPATH, "   
lv_i_stko  TYPE STKO, "   
lv_create_lom_error  TYPE STKO, "   
lv_i_flg_lom_exist  TYPE ESP1_BOOLEAN, "   
lv_i_matnr  TYPE FRMLS_SCR_BOM-MATNR, "   
lv_i_stlan  TYPE FRMLS_SCR_BOM-STLAN. "   

  CALL FUNCTION 'FRML781_LOM_CREATE_FROM_BOM_2'  "NOTRANSL: RMS_FRM: Interface BOM - LOM
    EXPORTING
         I_ADDINF = lv_i_addinf
         I_STKO = lv_i_stko
         I_FLG_LOM_EXIST = lv_i_flg_lom_exist
         I_MATNR = lv_i_matnr
         I_STLAN = lv_i_stlan
    CHANGING
         X_KEYPATH = lv_x_keypath
    EXCEPTIONS
        NO_AUTHORITY = 1
        CREATE_LOM_ERROR = 2
. " FRML781_LOM_CREATE_FROM_BOM_2




ABAP code using 7.40 inline data declarations to call FM FRML781_LOM_CREATE_FROM_BOM_2

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 MATNR FROM FRMLS_SCR_BOM INTO @DATA(ld_i_matnr).
 
"SELECT single STLAN FROM FRMLS_SCR_BOM INTO @DATA(ld_i_stlan).
 


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!