In SVT purchasing scenario we are trying to update the monitoring tables for planned quantities(CCRCT_PUPL) and confirmed quantities(CCRCT_PU) respectively using program RREGCH_VT.
We are entering the below mentioned values in the selection screen.
- Regulatory list : REACH
- Scenario: PUR
- Radio button : Delta Run
We have found a badi badi_ehsrc_track_proc called inside FM: CBRC_PUR_DATA_FILLwhich updates the monitoring table. Also for the definition for the badi SAP has provided an example class: CL_EXM_IM_EHSRC_TRACK_PROC which we are referring for badi implementation.
Inside the class it refers to a method IF_EX_BADI_EHSRC_TRACK_PROC~DATA_FILL which actually updates the monitoring tables based on scenarios. The code written inside the method refers to a lot of check conditions which requires to be satisfied before the tables are updated with the values.
PROBLEM:
Since we are running the report for PUR scenario the code checks whether the internal table X_PU_TAB or X_PU_DEL_TAB is not empty. But in our case no values are getting populated in either of the tables for normal purchase scenario.
We investigated on why the values are not getting populated in either of the tables. We found a FM: CBRC_PUR_MSEG_CO_FILL which is called inside the FM: CBRC_PUR_DATA_FILL.
But in debugging we were unable to find the root cause on why the condition tables were populated with no values. So we were unable to satisfy the check conditions inside the BADI implementation.
Kindly provide any pointers on this BADI implementation. Any sample code apart from that mentioned in the example classes would be really helpful.