How to add entry in DT in BRF+
1) Maintained the table with Application name, user id, activity, ID (Decision table id) using T
code: ZCA_BRFAUTH. User will not be able to maintained DT value in case entry is not
maintained in T code ZCA_BRFAUTH
Note: If you click on Deactivate or entry is missing, then user will get authorization error.
2) Run T Code: BRF+/ BRFPLUS
BRF+ application will opened
3) Click on search button
4) Search with application name ZBRF_FIND_PARAM and click on search button
Open node ZBRF_FIND_PARAM
5) Navigate to ZBRF_FIND_PARAM -> Expression -> Decision Table -> ZDECISION
6) Click on EDIT button
7) Click on + button to add entry in DT
Note: in decision table Name and Target is mandatory, Source is optional.
8) Click as show below and select Direct Value Input
Enter the variable name and select OK
Same step need to done for DT field SOURCE and TARGET
9) After this entry will be added in Decision table
10) Click on CHECK, SAVE and ACTIVATE button
Now the entry is save and activated in DT in BRF+
How to use BRF+ FM
11) Call FM ZSD_FIND_PARAM_BRF in object.
Note: In FM ZSD_FIND_PARAM_BRF, IV_NAME is mandatory and IV_SOURCE is optional
Note: EV_STATUS will be 0 if entry found in Decision table, if entry missing in DT EV_STATUS
Wil be 4
Sample code:
DATA: IM_VAR_NAME TYPE ZCS_BRF_NAME,
IM_SOURCE TYPE ZCS_BRF_SOURCE,
LV_STATUS TYPE CHAR1,
LT_PARAM TYPE TABLE OF ZCS_BRF_FIND_PARAM,
LS_PARAM TYPE ZCS_BRF_FIND_PARAM.