Posted: Mon Oct 08, 2007 4:36 pm Post subject: Cost Center Hierarchy
I made some utility program to my self
There is no one table that hold this data .
REPORT ZGET_COST_CENTER_GROUP .
parameters : pcst_ctr like cobrb-KOSTL.
types : begin of typ_member_group,
member(15) type c,
end of typ_member_group.
TYPES : begin of icostgr , " USE FOR BAPI_COST_GROUP (STAGE 7 )
costgr(15) type C,
acttypegr(15) type C,A
priceview type price,
priceupd type price,
end of icostgr.
types : begin of typ_get_group,
group_name like GRPVALUES-SETID,
end of typ_get_group.
*DATA : IT_icostgr TYPE icostgr OCCURS 0 WITH HEADER LINE.
DATA : IT_icostgr LIKE bapi0012_cclist OCCURS 100 WITH HEADER LINE.
data l_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
data : tbl_get_group type typ_get_group occurs 0 with header line.
data : it_member_group type typ_member_group occurs 0 with header line.
DATA: global_unique_info TYPE flag,
get_val like GRPHP2 ,
ls_info LIKE grphinfo ,
ld_over LIKE sy-datar ,
get_nodes like GRPOBJECTS occurs 0,
get_value like GRPVALUES occurs 0 WITH HEADER LINE,
get_lines like GRPMDLINE occurs 0,
get_form like GRPFORMULA occurs 0,
get_info like GRPFLDINFO occurs 0,
get_objct TYPE GRPOBJECTS occurs 0,
TMP_GROUP(15) TYPE C.
data : tmp_SETID like GRPVALUES-SETID .
* TMP_GROUP(15) TYPE C.
data : begin of st_mbs ,
m type c value 'X' ,
b type c value 'X' ,
s type c value 'X' ,
end of st_mbs.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.