Skip to Content
-1

Error "/BI0/HCOSTELMNT" must be a flat structure. in sap BW 7.4

Hi Folks,

We are getting an error in one of the custom program "/BI0/HCOSTELMNT" must be a flat structure.

We have refereed the 1823174 sap not for changes and customer specific changes post upgrade but not able to resolve the same.

Declaration part is here,

TABLES: RSHIEDIR,
/BI0/HCOSTELMNT,
/BI0/JCOSTELMNT,
/bi0/mcostelmnt.

DATA: v_x type n,
v_y type n,

BEGIN OF WA_RSHIEDIR,
hieid type rshiedir-hieid,
END OF WA_RSHIEDIR,

BEGIN OF WA_HCOST,
nodeid type /bi0/hcostelmnt-nodeid,
iobjnm type /bi0/hcostelmnt-iobjnm,
nodename type /bi0/hcostelmnt-nodename,
tlevel type /bi0/hcostelmnt-tlevel,
parentid type /bi0/hcostelmnt-parentid,
childid type /bi0/hcostelmnt-childid,
nextid type /bi0/hcostelmnt-nextid,
intervl type /bi0/hcostelmnt-intervl,
x type n,
END OF WA_HCOST,

WA_HLVL1 type WA_HCOST,
WA_HLVLX type WA_HCOST,
WA_HCOPY type WA_HCOST,

Can anyone please help in case worked on this type of issue?

Thanks,

Bhavin Vyas

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 25 at 01:42 PM

    If the hierachy structure contains now a field of type sstring (of variable length) or an equivalent, it's now consider a deep structure and you have to adapt your code (moving for example such 'sstring' field to wide enough char fields)

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 25 at 09:22 PM

    TABLES only accepts flat structures. Replace TABLES /BI0/HCOSTELMNT with DATA /BI0/HCOSTELMNT TYPE /BI0/HCOSTELMNT.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 31 at 09:57 AM

    Hi Bhavin!

    Please check this note:

    "Note the attached correction instructions, which entail manual activities."

    2111579 - Automatic swapping of data element RSSHNODENAME(C60) with RSSHNODENAMESTR(SSTRING 1333) in hierarchy table

    Best regards, Andras

    Add comment
    10|10000 characters needed characters exceeded