on 2017 Sep 19 2:32 PM
Dear Experts,
I am trying to use basic BPC Data reading approach in SAP BPC 10.1 NW classic environment according to published How-to guide (How To Migrate BPC 7.x BADIs to BPC 10).
I need to read data from parent members so I use axis query (call method lo_sqe->run_axis_query_symm).
call method lo_sqe->run_axis_query_symm
exporting
it_axis = lt_axis
it_slicer = lt_slicer
importing
et_data = <lt_query_result>.
Does anyone know how to pass memberset rules (BAS,DEP etc) to such queries?
According to Appendix B I see that "ls_member" variable has "MEMBERSET_FORMULA" parameter but I have no idea how to use it.
ls_member-dimension = 'ACCOUNT'.
ls_member-member = 'PL110'. " <--- need something like BAS(PL_TOTAL) here
insert ls_member into table ls_axis.
insert ls_axis into table lt_axis.
clear ls_axis.
Please, share your ideas.
Regards,
Oleg.
Request clarification before answering.
If you look at the import table IT_AXIS you have:
DIMENSION
HIERARCHY
MEMBER
MEMBERSET_FORMULA
Therefore using your example, BAS(PL_TOTAL), would be something like:
DIMENSION = ACCOUNT
HIERARCHY = PARENTH1
MEMBER = PL_TOTAL
Cheers,
Lucas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just tested: run_axis_query_symm will ignore information stored in MEMBERSET_FORMULA!
LOOP AT it_cv ASSIGNING <ls_cv>.
l_dimname = <ls_cv>-DIMENSION.
append l_dimname to lt_dim_list.
LOOP AT <ls_cv>-MEMBER INTO l_member.
ls_member-DIMENSION = l_dimname.
ls_member-MEMBER = l_member.
if l_dimname = 'TIME'.
ls_member-MEMBERSET_FORMULA-TYPE = CL_UJO_QUERY_MEMBERSET=>GC_BASELEVEL.
endif.
insert ls_member into table ls_axis.
ENDLOOP.
insert ls_axis into table lt_axis.
clear ls_axis.
ENDLOOP.
Tested with GS_BASELEVEL or GS_SAMELEVEL
User | Count |
---|---|
13 | |
10 | |
2 | |
2 | |
2 | |
2 | |
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.