cancel
Showing results for 
Search instead for 
Did you mean: 

BADI UJ_CUSTOM_LOGIC and CT_DATA appended data does not come back to EPM

0 Kudos

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.

former_member186338
Active Contributor
0 Kudos

You are using incorrect tags in this question. Please correct!

Use only single primary tag:

SAP Business Planning and Consolidation, version for SAP NetWeaver


Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186338
Active Contributor
0 Kudos

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?

former_member186338
Active Contributor
0 Kudos

P.S.

What is your BPC version?

Are you reading data from BPC cube?

Why not to use run_rsdri_query?

...

0 Kudos

Vadim,

Thank you for your reply. I am working on BPC 10.1 Classic. Yes the issue is fixed by changing the ct_data using cl_uja_admin_mgr=>read_mbr_data. Appreciate your time.

Regards,

Joe.

former_member186338
Active Contributor
0 Kudos

Still, absolutely strange to use custom logic in default.lgf instead of write back badi!