on 03-25-2018 5:54 AM
Hello,
I am calling custom BADI functionality from default.lgf by the below script logic, in the BADI I get the data from FM RSDRI_INFOPROV_READ make some changes to it and append the data back to existing CT_DATA contents and run it. But when the execution completes I do not see the results in the EPM Excel but where as if I don't select the data from FM but instead append similar data which I received from the FM to CT_DATA through manual code I am able to see the results in EPM Excel. I am puzzled by this behavior and not able to proceed further. Could someone throw some light on the mistake I am making.
*XDIM_FILTER AUDITTRAIL = [AUDITTRAIL].properties("TRENDING") = "Y"
*START_BADI TEST1
QUERY = ON
WRITE = ON
VALIDATION = ON
DEBUG = ON
MEASURES=PERIODIC
*END_BADI
In the Custom BADI TEST1. I am getting data using the FM by passing the below parameters.
CALL FUNCTION 'RSDRI_INFOPROV_READ'
EXPORTING
i_infoprov = lc_infpro "Name of Info Provider
i_th_sfc = i_th_sfc
i_th_sfk = i_th_sfk
i_t_range = g_t_range
IMPORTING
e_t_data = g_t_data
e_end_of_data = g_end_of_data
CHANGING
c_first_call = l_first_call
EXCEPTIONS
illegal_input = 1
illegal_input_sfc = 2
illegal_input_sfk = 3
illegal_input_range = 4
illegal_input_tablesel = 5
no_authorization = 6
illegal_download = 7
illegal_tablename = 8
trans_no_write_mode = 9
inherited_error = 10
x_message = 11
no_commit_free_read = 12
OTHERS = 13.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
First of all it's better to use write back badi instead of custom logic in default.lgf.
Second - please explain the required business logic. What data you want to read?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.