Skip to Content
0
Oct 02, 2019 at 05:38 AM

Fox script reading a hierarchy node

309 Views

Hi,

How do we read in BPC optimized on S4 the standard hierarchy created for GL Accounts in S4? The standard hierarchy name is FS01 created on info object /ERP/GL_ACCT. I am not able to read this hierarchy through Foxscripts in RSPLAN tcode but at the same time I am able to read a hierarchy created on a custom BW info object (Z_GLACCT).

Please advise why we are able to read the hierarchy of the custom info object and not the standard one?

The following code does creates a dump on checking or saving it. FS01 hierarchy created on Info object does not have Verson.
-----------------------------------------------------

DATA SUM TYPE F.
DATA ACCT TYPE /ERP/GL_ACCT.
SUM = 0.
FOREACH ACCT IN VARIABLE ZVAR_ACCT_REV, HIENM = ZVAR_FS01.
SUM = {'/ERP/AMOUNT_L', ACCT, ZBPC_V02} + SUM.
ENDFOR.

-----------------------------------------------------

But Identical code on custom info object Z_GLACCT works.


Regards,