SAP PROCESS_VARIANT_PARALLEL Function Module for create variant in parallel mode









PROCESS_VARIANT_PARALLEL is a standard process variant parallel SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for create variant in parallel mode 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 process variant parallel FM, simply by entering the name PROCESS_VARIANT_PARALLEL into the relevant SAP transaction such as SE37 or SE38.

Function Group: PROCESS_VARIANT_PARALLEL
Program Name: SAPLPROCESS_VARIANT_PARALLEL
Main Program: SAPLPROCESS_VARIANT_PARALLEL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function PROCESS_VARIANT_PARALLEL 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 'PROCESS_VARIANT_PARALLEL'"create variant in parallel mode
EXPORTING
IV_LOG_HANDLE = "Application Log: Log Handle
* IT_PROD_REPLENISHMENT = "Table type for Replenishment Data
* IT_PROD_EWM = "EWM Records
* IV_TESTMODE = ' ' "Single-Character Flag
* IV_NO_REFERENCE_HANDLING = ' ' "Single-Character Flag
IT_PMD = "Multiple product for mass creation/updation
IT_PRODVARIANTMATRIXCOMB = "#GENERATED#
IS_PARALLEL_CTRL = "Customizing for parallel mass processing
* IS_CLASSIF_CHANGE = "Classification Change
* IS_PROD_PLANT_MRP = "Structure for Mass processing of MRP Area
* IS_PROD_MLA_INPUT_GEN = "Structure for Mass processing of Variant for ML(CKML)
.



IMPORTING Parameters details for PROCESS_VARIANT_PARALLEL

IV_LOG_HANDLE - Application Log: Log Handle

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

IT_PROD_REPLENISHMENT - Table type for Replenishment Data

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

IT_PROD_EWM - EWM Records

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

IV_TESTMODE - Single-Character Flag

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_NO_REFERENCE_HANDLING - Single-Character Flag

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_PMD - Multiple product for mass creation/updation

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

IT_PRODVARIANTMATRIXCOMB - #GENERATED#

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

IS_PARALLEL_CTRL - Customizing for parallel mass processing

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

IS_CLASSIF_CHANGE - Classification Change

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

IS_PROD_PLANT_MRP - Structure for Mass processing of MRP Area

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

IS_PROD_MLA_INPUT_GEN - Structure for Mass processing of Variant for ML(CKML)

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

Copy and paste ABAP code example for PROCESS_VARIANT_PARALLEL 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_iv_log_handle  TYPE BALLOGHNDL, "   
lv_it_prod_replenishment  TYPE CMD_PRD_T_REPLNMT_DATA, "   
lv_it_prod_ewm  TYPE CMD_PRD_T_EWM_DATA, "   
lv_iv_testmode  TYPE CHAR1, "   SPACE
lv_iv_no_reference_handling  TYPE CHAR1, "   SPACE
lv_it_pmd  TYPE PMD_T_PROD_DATA, "   
lv_it_prodvariantmatrixcomb  TYPE ITPRODUCTVARIANTMATRIXCOMBWD, "   
lv_is_parallel_ctrl  TYPE MASS_S_PARALLEL_CTRL, "   
lv_is_classif_change  TYPE VCHCLF_S_CLASSIF_CHANGE, "   
lv_is_prod_plant_mrp  TYPE CMD_S_PROD_PLANT_MRP, "   
lv_is_prod_mla_input_gen  TYPE CMD_S_PROD_MTART_CKML. "   

  CALL FUNCTION 'PROCESS_VARIANT_PARALLEL'  "create variant in parallel mode
    EXPORTING
         IV_LOG_HANDLE = lv_iv_log_handle
         IT_PROD_REPLENISHMENT = lv_it_prod_replenishment
         IT_PROD_EWM = lv_it_prod_ewm
         IV_TESTMODE = lv_iv_testmode
         IV_NO_REFERENCE_HANDLING = lv_iv_no_reference_handling
         IT_PMD = lv_it_pmd
         IT_PRODVARIANTMATRIXCOMB = lv_it_prodvariantmatrixcomb
         IS_PARALLEL_CTRL = lv_is_parallel_ctrl
         IS_CLASSIF_CHANGE = lv_is_classif_change
         IS_PROD_PLANT_MRP = lv_is_prod_plant_mrp
         IS_PROD_MLA_INPUT_GEN = lv_is_prod_mla_input_gen
. " PROCESS_VARIANT_PARALLEL




ABAP code using 7.40 inline data declarations to call FM PROCESS_VARIANT_PARALLEL

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.

 
 
 
DATA(ld_iv_testmode) = ' '.
 
DATA(ld_iv_no_reference_handling) = ' '.
 
 
 
 
 
 
 


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!