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

Function IDOC_ENGINE 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 'IDOC_ENGINE'"Assortment List IDoc Formatting (HPR).
EXPORTING
T_SITES = "Table Of Stores
* WBB_ID = "ID for Objects Changed in WBB
DLD_MODE = "Downloadmode der Sortimentsliste
DATE_STAMP = "Date and Time, Current (Application Server) Date
TIME_STAMP = "Date and Time, Current Application Server Time
CHANGING
PROCESS_INFO = "Transfer Structure For Server Group And Maximum Processes
* T_ART_FOR_ALL = "Table Type for Store-Independent Changes
* T_ART_FOR_SITES = "Table Type for Store-Specific Article Changes
T_BBTYPES = "Table Type For Database Table TWBB
* T_DLDNR = "Table Type for SITE_BBTYP_DLDNUM
IMPORTING Parameters details for IDOC_ENGINE
T_SITES - Table Of Stores
Data type: WDL_FIL_TABLEOptional: No
Call by Reference: Yes
WBB_ID - ID for Objects Changed in WBB
Data type: WBB_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
DLD_MODE - Downloadmode der Sortimentsliste
Data type: DLMODOptional: No
Call by Reference: No ( called with pass by value option)
DATE_STAMP - Date and Time, Current (Application Server) Date
Data type: SY-DATUMOptional: No
Call by Reference: Yes
TIME_STAMP - Date and Time, Current Application Server Time
Data type: SY-UZEITOptional: No
Call by Reference: Yes
CHANGING Parameters details for IDOC_ENGINE
PROCESS_INFO - Transfer Structure For Server Group And Maximum Processes
Data type: EXT_PROCESS_INFOOptional: No
Call by Reference: Yes
T_ART_FOR_ALL - Table Type for Store-Independent Changes
Data type: TABLE_ART_FOR_ALLOptional: Yes
Call by Reference: Yes
T_ART_FOR_SITES - Table Type for Store-Specific Article Changes
Data type: TABLE_ART_FOR_SITESOptional: Yes
Call by Reference: Yes
T_BBTYPES - Table Type For Database Table TWBB
Data type: TWBB_TABLE_TYPEOptional: No
Call by Reference: Yes
T_DLDNR - Table Type for SITE_BBTYP_DLDNUM
Data type: SITE_BBTYP_DLDNUM_TABLEOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for IDOC_ENGINE 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_t_sites | TYPE WDL_FIL_TABLE, " | |||
| lv_process_info | TYPE EXT_PROCESS_INFO, " | |||
| lv_wbb_id | TYPE WBB_ID, " | |||
| lv_t_art_for_all | TYPE TABLE_ART_FOR_ALL, " | |||
| lv_dld_mode | TYPE DLMOD, " | |||
| lv_t_art_for_sites | TYPE TABLE_ART_FOR_SITES, " | |||
| lv_t_bbtypes | TYPE TWBB_TABLE_TYPE, " | |||
| lv_date_stamp | TYPE SY-DATUM, " | |||
| lv_t_dldnr | TYPE SITE_BBTYP_DLDNUM_TABLE, " | |||
| lv_time_stamp | TYPE SY-UZEIT. " |
|   CALL FUNCTION 'IDOC_ENGINE' "Assortment List IDoc Formatting (HPR) |
| EXPORTING | ||
| T_SITES | = lv_t_sites | |
| WBB_ID | = lv_wbb_id | |
| DLD_MODE | = lv_dld_mode | |
| DATE_STAMP | = lv_date_stamp | |
| TIME_STAMP | = lv_time_stamp | |
| CHANGING | ||
| PROCESS_INFO | = lv_process_info | |
| T_ART_FOR_ALL | = lv_t_art_for_all | |
| T_ART_FOR_SITES | = lv_t_art_for_sites | |
| T_BBTYPES | = lv_t_bbtypes | |
| T_DLDNR | = lv_t_dldnr | |
| . " IDOC_ENGINE | ||
ABAP code using 7.40 inline data declarations to call FM IDOC_ENGINE
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 DATUM FROM SY INTO @DATA(ld_date_stamp). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_time_stamp). | ||||
Search for further information about these or an SAP related objects