SAP REPL_LIST_IDOC_ANALYSE_HPR Function Module for Analyze an Assortment List IDoc and Convert the Data
REPL_LIST_IDOC_ANALYSE_HPR is a standard repl list idoc analyse hpr SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Analyze an Assortment List IDoc and Convert the Data 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 repl list idoc analyse hpr FM, simply by entering the name REPL_LIST_IDOC_ANALYSE_HPR into the relevant SAP transaction such as SE37 or SE38.
Function Group: WBB_HPR3
Program Name: SAPLWBB_HPR3
Main Program: SAPLWBB_HPR3
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function REPL_LIST_IDOC_ANALYSE_HPR 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 'REPL_LIST_IDOC_ANALYSE_HPR'"Analyze an Assortment List IDoc and Convert the Data.
EXPORTING
PI_T_EDIDD = "Table Type for EDIDD (IDoc Data Records)
PI_I_WBBH = "Sortimentslisten-Kopf-Informationen
PI_I_TWBBP = "Assortment list profile
* PI_I_STORE = "Outbound parameters for assortment users
CHANGING
PE_T_WBBP_SORT_HPR = "Sortimentslistenpositionen
PE_COUNT_MAT = "Number of materials for assortment list preparation
PE_COUNT_POS = "Number of items in the assortment list
PE_O_MERGED_IDOC = "Merged IDoc Class For The Assortment List
EXCEPTIONS
NO_SEG_REPEAT = 1 DYNAMIC_REDUCTION = 2
IMPORTING Parameters details for REPL_LIST_IDOC_ANALYSE_HPR
PI_T_EDIDD - Table Type for EDIDD (IDoc Data Records)
Data type: EDIDD_TTOptional: No
Call by Reference: Yes
PI_I_WBBH - Sortimentslisten-Kopf-Informationen
Data type: WBBHOptional: No
Call by Reference: Yes
PI_I_TWBBP - Assortment list profile
Data type: TWBBPOptional: No
Call by Reference: Yes
PI_I_STORE - Outbound parameters for assortment users
Data type: WDL_FILOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for REPL_LIST_IDOC_ANALYSE_HPR
PE_T_WBBP_SORT_HPR - Sortimentslistenpositionen
Data type: TABLE_WBBP_SORT_HPROptional: No
Call by Reference: Yes
PE_COUNT_MAT - Number of materials for assortment list preparation
Data type: WSL_INFO-WSL_CAND_NOOptional: No
Call by Reference: No ( called with pass by value option)
PE_COUNT_POS - Number of items in the assortment list
Data type: WSL_INFO-WSL_POS_NOOptional: No
Call by Reference: No ( called with pass by value option)
PE_O_MERGED_IDOC - Merged IDoc Class For The Assortment List
Data type: CL_WBBHPR_MERGED_IDOCOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_SEG_REPEAT - No repeated segments
Data type:Optional: No
Call by Reference: Yes
DYNAMIC_REDUCTION - Dynamic reduction not supported
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for REPL_LIST_IDOC_ANALYSE_HPR 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_pi_t_edidd | TYPE EDIDD_TT, " | |||
| lv_no_seg_repeat | TYPE EDIDD_TT, " | |||
| lv_pe_t_wbbp_sort_hpr | TYPE TABLE_WBBP_SORT_HPR, " | |||
| lv_pi_i_wbbh | TYPE WBBH, " | |||
| lv_pe_count_mat | TYPE WSL_INFO-WSL_CAND_NO, " | |||
| lv_dynamic_reduction | TYPE WSL_INFO, " | |||
| lv_pi_i_twbbp | TYPE TWBBP, " | |||
| lv_pe_count_pos | TYPE WSL_INFO-WSL_POS_NO, " | |||
| lv_pi_i_store | TYPE WDL_FIL, " | |||
| lv_pe_o_merged_idoc | TYPE CL_WBBHPR_MERGED_IDOC. " |
|   CALL FUNCTION 'REPL_LIST_IDOC_ANALYSE_HPR' "Analyze an Assortment List IDoc and Convert the Data |
| EXPORTING | ||
| PI_T_EDIDD | = lv_pi_t_edidd | |
| PI_I_WBBH | = lv_pi_i_wbbh | |
| PI_I_TWBBP | = lv_pi_i_twbbp | |
| PI_I_STORE | = lv_pi_i_store | |
| CHANGING | ||
| PE_T_WBBP_SORT_HPR | = lv_pe_t_wbbp_sort_hpr | |
| PE_COUNT_MAT | = lv_pe_count_mat | |
| PE_COUNT_POS | = lv_pe_count_pos | |
| PE_O_MERGED_IDOC | = lv_pe_o_merged_idoc | |
| EXCEPTIONS | ||
| NO_SEG_REPEAT = 1 | ||
| DYNAMIC_REDUCTION = 2 | ||
| . " REPL_LIST_IDOC_ANALYSE_HPR | ||
ABAP code using 7.40 inline data declarations to call FM REPL_LIST_IDOC_ANALYSE_HPR
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 WSL_CAND_NO FROM WSL_INFO INTO @DATA(ld_pe_count_mat). | ||||
| "SELECT single WSL_POS_NO FROM WSL_INFO INTO @DATA(ld_pe_count_pos). | ||||
Search for further information about these or an SAP related objects