SAP RM_ALM_CONSTRUCT_POSITIONS Function Module for ALM: Generation of Simulated Positions (And Saving on Database)
RM_ALM_CONSTRUCT_POSITIONS is a standard rm alm construct positions SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for ALM: Generation of Simulated Positions (And Saving on Database) 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 rm alm construct positions FM, simply by entering the name RM_ALM_CONSTRUCT_POSITIONS into the relevant SAP transaction such as SE37 or SE38.
Function Group: JBAY
Program Name: SAPLJBAY
Main Program: SAPLJBAY
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RM_ALM_CONSTRUCT_POSITIONS 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 'RM_ALM_CONSTRUCT_POSITIONS'"ALM: Generation of Simulated Positions (And Saving on Database).
EXPORTING
I_RSIMLFNR = "
I_XTEXT = "Text Field for a More Precise Description
TABLES
I_IT_KNOTXSFGDT = "
E_IT_XSFGDT = "
E_IT_BSTD = "
E_IT_BSTD_II = "RM: Position of Extended Risk Objecs; Additional Data
E_IT_BSTDPO = "
E_IT_ONR00 = "
E_IT_ZUORD = "
ERROR_ITAB = "
EXCEPTIONS
NO_INPUT = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for RM_ALM_CONSTRUCT_POSITIONS
I_RSIMLFNR -
Data type: JBRDBRTBSTD-RSIMLFNROptional: No
Call by Reference: No ( called with pass by value option)
I_XTEXT - Text Field for a More Precise Description
Data type: JBRDBRTBSTD-XTEXTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RM_ALM_CONSTRUCT_POSITIONS
I_IT_KNOTXSFGDT -
Data type: RMS_KNOTXSFGDT_TABOptional: No
Call by Reference: No ( called with pass by value option)
E_IT_XSFGDT -
Data type: RMS_SFGDT_TABOptional: No
Call by Reference: No ( called with pass by value option)
E_IT_BSTD -
Data type: JBRDBRTBSTDOptional: No
Call by Reference: No ( called with pass by value option)
E_IT_BSTD_II - RM: Position of Extended Risk Objecs; Additional Data
Data type: JBRDBRTBSTDIIOptional: No
Call by Reference: Yes
E_IT_BSTDPO -
Data type: JBRDBRTBSTDPOOptional: No
Call by Reference: No ( called with pass by value option)
E_IT_ONR00 -
Data type: ONR00Optional: No
Call by Reference: No ( called with pass by value option)
E_IT_ZUORD -
Data type: RMS_KNOTBSTD_TABOptional: No
Call by Reference: No ( called with pass by value option)
ERROR_ITAB -
Data type: BAPIERROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_INPUT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RM_ALM_CONSTRUCT_POSITIONS 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_no_input | TYPE STRING, " | |||
| lv_i_rsimlfnr | TYPE JBRDBRTBSTD-RSIMLFNR, " | |||
| lt_i_it_knotxsfgdt | TYPE STANDARD TABLE OF RMS_KNOTXSFGDT_TAB, " | |||
| lv_i_xtext | TYPE JBRDBRTBSTD-XTEXT, " | |||
| lt_e_it_xsfgdt | TYPE STANDARD TABLE OF RMS_SFGDT_TAB, " | |||
| lv_internal_error | TYPE RMS_SFGDT_TAB, " | |||
| lt_e_it_bstd | TYPE STANDARD TABLE OF JBRDBRTBSTD, " | |||
| lt_e_it_bstd_ii | TYPE STANDARD TABLE OF JBRDBRTBSTDII, " | |||
| lt_e_it_bstdpo | TYPE STANDARD TABLE OF JBRDBRTBSTDPO, " | |||
| lt_e_it_onr00 | TYPE STANDARD TABLE OF ONR00, " | |||
| lt_e_it_zuord | TYPE STANDARD TABLE OF RMS_KNOTBSTD_TAB, " | |||
| lt_error_itab | TYPE STANDARD TABLE OF BAPIERR. " |
|   CALL FUNCTION 'RM_ALM_CONSTRUCT_POSITIONS' "ALM: Generation of Simulated Positions (And Saving on Database) |
| EXPORTING | ||
| I_RSIMLFNR | = lv_i_rsimlfnr | |
| I_XTEXT | = lv_i_xtext | |
| TABLES | ||
| I_IT_KNOTXSFGDT | = lt_i_it_knotxsfgdt | |
| E_IT_XSFGDT | = lt_e_it_xsfgdt | |
| E_IT_BSTD | = lt_e_it_bstd | |
| E_IT_BSTD_II | = lt_e_it_bstd_ii | |
| E_IT_BSTDPO | = lt_e_it_bstdpo | |
| E_IT_ONR00 | = lt_e_it_onr00 | |
| E_IT_ZUORD | = lt_e_it_zuord | |
| ERROR_ITAB | = lt_error_itab | |
| EXCEPTIONS | ||
| NO_INPUT = 1 | ||
| INTERNAL_ERROR = 2 | ||
| . " RM_ALM_CONSTRUCT_POSITIONS | ||
ABAP code using 7.40 inline data declarations to call FM RM_ALM_CONSTRUCT_POSITIONS
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 RSIMLFNR FROM JBRDBRTBSTD INTO @DATA(ld_i_rsimlfnr). | ||||
| "SELECT single XTEXT FROM JBRDBRTBSTD INTO @DATA(ld_i_xtext). | ||||
Search for further information about these or an SAP related objects