Skip to Content
-1

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

Jan 25 at 12:40 PM

106

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Raymond Giuseppi
Jan 25 at 01:42 PM
1

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)

Share
10 |10000 characters needed characters left characters exceeded
Sandra Rossi Jan 25 at 09:22 PM
1

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Only and only use TABLES when an interface work area is required between Abap program and classic Dynpro.

0
Andras Margitics
Jan 31 at 09:57 AM
1

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

Share
10 |10000 characters needed characters left characters exceeded