SAP LTR2_RN_CREATE Function Module for LTR2 Create renumbering project
LTR2_RN_CREATE is a standard ltr2 rn create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for LTR2 Create renumbering project 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 ltr2 rn create FM, simply by entering the name LTR2_RN_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: LTR2_RN
Program Name: SAPLLTR2_RN
Main Program: SAPLLTR2_RN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LTR2_RN_CREATE 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 'LTR2_RN_CREATE'"LTR2 Create renumbering project.
EXPORTING
IV_CTX_TYPE = "Analysis: Context Type
* IV_CTX_ID = "Analysis: Context ID
* IV_SCN = "LTR2 Analysis: Scenario, migration or converion
* IV_RETENTION_DAYS = "Retention Days
* IV_DESC = "LTR2 Short Text
* IR_LOGGER = "ULV Logger
IMPORTING
ER_RN = "LTR2 RN: Public API
EV_RN_GUID = "LTR2 RN: Renumbering GUID
EV_CREATED = "True for new renumbering project is created
ER_LOGGER = "ULV Logger
IMPORTING Parameters details for LTR2_RN_CREATE
IV_CTX_TYPE - Analysis: Context Type
Data type: CNV_ANA2_CONTEXT_TYPEOptional: No
Call by Reference: Yes
IV_CTX_ID - Analysis: Context ID
Data type: CNV_ANA2_CONTEXT_IDOptional: Yes
Call by Reference: Yes
IV_SCN - LTR2 Analysis: Scenario, migration or converion
Data type: LTR2_ANA2_SCENARIOOptional: Yes
Call by Reference: Yes
IV_RETENTION_DAYS - Retention Days
Data type: /LTB/RET_DAYSOptional: Yes
Call by Reference: Yes
IV_DESC - LTR2 Short Text
Data type: LTR2_STXTOptional: Yes
Call by Reference: Yes
IR_LOGGER - ULV Logger
Data type: CL_CNV_MBT_ULV_LOGGEROptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for LTR2_RN_CREATE
ER_RN - LTR2 RN: Public API
Data type: CL_LTR2_RN_PROVIDEROptional: No
Call by Reference: Yes
EV_RN_GUID - LTR2 RN: Renumbering GUID
Data type: LTR2_RN_GUIDOptional: No
Call by Reference: Yes
EV_CREATED - True for new renumbering project is created
Data type: ABAP_BOOLOptional: No
Call by Reference: Yes
ER_LOGGER - ULV Logger
Data type: CL_CNV_MBT_ULV_LOGGEROptional: No
Call by Reference: Yes
Copy and paste ABAP code example for LTR2_RN_CREATE 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_er_rn | TYPE CL_LTR2_RN_PROVIDER, " | |||
| lv_iv_ctx_type | TYPE CNV_ANA2_CONTEXT_TYPE, " | |||
| lv_iv_ctx_id | TYPE CNV_ANA2_CONTEXT_ID, " | |||
| lv_ev_rn_guid | TYPE LTR2_RN_GUID, " | |||
| lv_iv_scn | TYPE LTR2_ANA2_SCENARIO, " | |||
| lv_ev_created | TYPE ABAP_BOOL, " | |||
| lv_er_logger | TYPE CL_CNV_MBT_ULV_LOGGER, " | |||
| lv_iv_retention_days | TYPE /LTB/RET_DAYS, " | |||
| lv_iv_desc | TYPE LTR2_STXT, " | |||
| lv_ir_logger | TYPE CL_CNV_MBT_ULV_LOGGER. " |
|   CALL FUNCTION 'LTR2_RN_CREATE' "LTR2 Create renumbering project |
| EXPORTING | ||
| IV_CTX_TYPE | = lv_iv_ctx_type | |
| IV_CTX_ID | = lv_iv_ctx_id | |
| IV_SCN | = lv_iv_scn | |
| IV_RETENTION_DAYS | = lv_iv_retention_days | |
| IV_DESC | = lv_iv_desc | |
| IR_LOGGER | = lv_ir_logger | |
| IMPORTING | ||
| ER_RN | = lv_er_rn | |
| EV_RN_GUID | = lv_ev_rn_guid | |
| EV_CREATED | = lv_ev_created | |
| ER_LOGGER | = lv_er_logger | |
| . " LTR2_RN_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM LTR2_RN_CREATE
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