Toady short tutorial about extending the decision tree in the process chain. As you probably know decision three blocks can be extended. In our example, we want to run delta info package in everyday processing, and depending on our customizing perform a full load.
Basically, if the value of param ISIP in our customer table is set to DELTA, we want to execute the delta info package. If param will be set to the FULL, execute ISIP in full mode.
Mainly object used to achieve our goal is BAPI: RSAR_CONNECTOR, where we need to create the function, which can be later used in formula:
Lets go to se18, and create new implementation
The best idea now is to NOT ACTIVATE this implementation before fully fill implementing the class. Let’s just double click on the class name
Basic class should look like below:
class ZCL_IM_ISIP_CUST definition
create public .
interfaces IF_EX_RSAR_CONNECTOR .
!IV_CUST_ID type STRING
value(RV_RUN_MODE) type STRING .
CLASS ZCL_IM_ISIP_CUST IMPLEMENTATION.
SELECT SINGLE param FROM zexcust
WHERE id = @iv_cust_id
DATA: ls_cust_function TYPE sfbeoprnd.
ls_cust_function-tech_name = 'C_CHECK_CUST'.
ls_cust_function-descriptn = 'Check cust table to define correct ISIP'.
ls_cust_function-class = 'ZCL_IM_ISIP_CUST'.
ls_cust_function-method = 'CHECK_CUST'.
APPEND ls_cust_function TO c_operands.
After using our new function C_CHECK_CUST in the process chain, we get desired result