Function module for custom report for cost center group
Hello all,
I wonder, if there is any SAP function module for following query:
We have got a custom program, which evaluates cost centers. We would like to evaluate a cost center group, like it is available within the report painter - the output screen is splitted into two parts, on the left part there is the cost centre group hierarchy and on the right side, there are the values for the node, which is selected within the hierarchy.
Is there any standard function module od do we have to program it ourself?
Thanks in advance
Hi Peter,
You have a BAPI which gives you the details of cost centre group, if this is what you are looking for:
BAPI_COSTCENTERGROUP_GETLIST
Regards,
Eli
Similar Messages
-
Not able to Access R/3 Tables, Function Modules through Crystal Reports
Hi Gurus,
I am working on Crystal Reports 2008 - V12.2.0, When I am trying to connect SAP R/3 system through the Data connectivity SAP Table,Cluster or FM,
I could see only the very few tables , and cannot see all Tables and not any Info sets or Function Modules,
But, I can access BW system, problem facing only with SAP R/3 system,
Suggest me on this,
Thanks
SivaHey here..,,
There is a limitation to show all Tables, Function Modules in Crystal reports for R/3. To see them,
In Options:
You will see Table_Name Like%: Text box, go there and give the starting or ending characters of FM's.
Eg: Z% or %Z
Then Click on Ok.
Now try to connect to R/3 again or Refresh the Connection, it will list out as you opted.
Hope it should help you.
Thank You!! -
Function module for Profit Center group and Cost Center group changes
All,
The requirement is to change the profit center group and cost center group from one node to another. Please remember it is trying to simulate the transactions KCH5 and OKEO programatically.
I would like to know if somebody had this requirement previously and had made use of some function module or some other technique which will help in changing the standard hierarchy nodes.
Help is much appreciated.
Regards,
HariAll,
The requirement is to change the profit center group and cost center group from one node to another. Please remember it is trying to simulate the transactions KCH5 and OKEO programatically.
I would like to know if somebody had this requirement previously and had made use of some function module or some other technique which will help in changing the standard hierarchy nodes.
Help is much appreciated.
Regards,
Hari -
Customized report for cost centers by different cost centers
Hi All,
Customized report for cost centers by different cost centers:
I need to build a customised report with the following format:
Cost element columns | Cost center 1 | cost center 2 | cost center 3, etc -> dynamic cost center columns
CE 1 .............................. amount xxx | . amount xxx | .. amount xxx
CE 2 .............................. amount xxx | . amount xxx | .. amount xxx
CE 3 .............................. amount xxx | . amount xxx | .. amount xxx
CE 3 .............................. amount xxx | . amount xxx | .. amount xxx
User selection screen:
Controlling are:
Fiscal Year:
From period to period:
cost center group ... <range of CC group> or
cost center value ... <range of CC value>
Questions:
From the above selection screens, I need to pull out all the data stored in the table: COEP
But, the problem is that inside this table, there is no cost center or cost center group stored; and therefore the program should be smart enough to pull out all the documents from the table: COEP and then make sure that the document / list of documents that pull out should belongs to the cost center or cost center group, as well as date range.
KIndly advise how functional description/design should be built in order ABAPer can understand the requirement?
What should be the tables to refer in order meet the requirement.
Similar Standard SAP cost center report should be S_ALR_87013611 - Cost Centers: Actual/Plan/Variance, but this report read from many tables.Hi,
Please find the logic below & try it at your system-
Here cost center group is not possible (also i not checked it so do it on your own simultaneously i am trying the same).
Use Table BSEG-> in bseg give the cost center-> with the help of cost center find the account number (field HKONT)-> take this GL account number & got to table COEP-> in this give the GL account number at field 'offsetting account' (field GKONT) & you will get the line item.
Try it & let me know if you have any question.
Thanks -
Functional areas vs. cost center groups for cost of goods sales
What are the benefits of using functional areas over cost center groups when building your p&l for cost absorbtion or visa versa? Which of the two is recommended?
Hi,
1: a P&L statement does not only contain cost-center related postings, you can have different CO-objects (Internal order, WBS-Element,...)but all of them contain the functional area in its master record.
The P&L reporting structure (created via report painter) can use account groups but restricted to one functional area for porper P&L structure creation.
Best regards, Christian -
Get Name for CO Cost Center Group and BGD Processing
Hi,
I use these function modules to get the cost center group nodes in the CO hierarchy.
If I pass it a value that is in two controlling areas
if prompts another screen to pick which controlling area we want to look in. My problem is when I try to run this report in the background it gets hung up on this screen waiting for input. any ideas on how to get around this.
here is the reference code.
thanks
Please note that the following logic is parts of SAP example report
RGSEX001.
Get the internal Set-ID from the external name of the set
Selection of sets can be restricted to a specific set class or
to sets matching a specific table field.
See documentation of function module G_SET_GET_ID_FROM_NAME
If the set class, subclass and setname is known, function module
G_SET_ENCRYPT_SETID should be used alternatively (see RGSEX020)
CALL FUNCTION 'G_SET_GET_ID_FROM_NAME'
EXPORTING
shortname = w_set
old_setid = w_setid
IMPORTING
new_setid = w_setid.
Read the complete hierarchy (set and all subsets)
CALL FUNCTION 'G_SET_TREE_IMPORT'
EXPORTING
setid = w_setid "Set-ID, not the Setname!!!
no_table_buffering = ' '
TABLES
set_hierarchy = it_hierarchy
set_values = it_values.Hi!
For reading cost center hierarchy you can try K_HIERARCHY_TABLES_READ.
It returns near the same info as one you've mentioned, works well for single controlling area and I hope in case of ambiguity it will raise one of exceptions provided. Give it try.
Regards,
Maxim. -
Extract expense for a designated cost center group
Hi,
There is a problem that we want get expense for a designated cost center group instead of cost center and store in the cube. We can get the cost center group but it is a node in a hierachy. I don't know how to map cost center to it's group.
Thanks in advance.>
rahul dsnr wrote:
> Hi,
> Thanks for ur reply, but those FM's are not providing Cost center group for a cost center.
>
> Can u provide me a better solution to find cost center group for a cost center.
>
> Regards,
> Rahul
Do you mean that you want to read the cost centre group hierarchy for a cost centre? So that instead of entering a cost centre group and reading down the hierarachy until you get to the cost centre codes at the bottom, you want to enter a cost centre and then read up the hierarchy until you get to the cost centre group at the top of the hierarchy. If so, I don't think there is a function module to do what you want. The cost centre group hierarchy data is held in table SETNOTE, so you could have a look at that. -
How to Created custom report for Ship not Billed (SD/FI)?
Hi all,
I am anticipating to write some abap reports..Here is one of them..
Anyone can help me with writing a Report , how to do 'Custom Report for shipped not Billed(SD/FI)' ..But since I am new to Abap , if you wish to reply, please use a little more detail and simple explanation, step by step so I can understand what is the idea, how it can be acheived...what kind of report should be used , techniques, tables etc...:)
Appreciate your help!
Regards,
BobyHi Boby,
You need to create custom transaction to achive these results.
you will have selection-screen ,it would be :
Date : Here date would be mandatory - Ranges Option
Customer - Optional field - Ranges
Order # Sales Order (Optional) Ranges
Invoice # - Invoice # (Optional) Ranges
You will get the data based on ur selection-screen criteria ...
First you will have customer order details from diffrent table
VBAK,
VBAP,
LIKP
LIPS
VBRK,
VBRP
KNA1,
VBFA Tables ( See the my sample program )
Output would be :
Customer # Custome Name Order # Delivery # Invoice # Netpr, Netquantity ,
Check the condition whether invoice table has VBRK-RFBSK = ''.
See the my sample program : This is sales report by monthly..
REPORT ZFDSALES_REPORT no standard page heading
message-id zwave.
Data Declaration Part
TYPE-POOLS
type-pools : slis.
Tables
tables : VBAK,
VBAP.
Internal table for VBAK Table
data : begin of i_vbak occurs 0,
vbeln like vbak-vbeln,
bstnk like vbak-bstnk,
vdatu like vbak-vdatu,
end of i_vbak.
Internal table for VBAP and MATNR
data : begin of i_vbap occurs 0,
vbeln like vbap-vbeln,
matnr like vbap-matnr,
kdmat like vbap-kdmat,
kwmeng like vbap-kwmeng,
netpr like vbap-netpr,
maktx like makt-maktx,
end of i_vbap.
Internal tables
data : begin of i_sales occurs 0,
vdatu like vbak-vdatu,
bstnk like vbak-bstnk,
matnr like vbap-matnr,
maktx like makt-maktx,
kdmat like vbap-kdmat,
kwmeng like vbap-kwmeng,
netpr like vbap-netpr,
end of i_sales.
Variable for ALV
data : v_repid like sy-repid,
gt_fieldcat type slis_t_fieldcat_alv.
Selection-screen
selection-screen : begin of block blk with frame title text-001.
select-options : s_vbeln for vbak-vbeln,
s_erdat for vbak-erdat,
s_ernam for vbak-ernam,
s_vdatu for vbak-vdatu obligatory,
s_BSTNK for vbak-BSTNK,
s_KUNNR for vbak-kunnr,
s_matnr for vbap-matnr,
s_KDMAT for vbap-KDMAT.
selection-screen : end of block blk.
Initilization
initialization.
v_repid = sy-repid.
S T A R T - O F - S E L E C T I O N ****************
start-of-selection.
Get the data from VBAK and VBAP Tables
perform get_vbak_vbap.
E N D - O F - S E L E C T I O N *****************
end-of-selection.
Display the data
perform dispolay_data.
*& Form get_vbak_vbap
Get the data from VBAK and VBAP Table
FORM get_vbak_vbap.
Get the data from VBAK Table
select vbeln bstnk vdatu from vbak into table i_vbak
where vbeln in s_vbeln
and bstnk in s_bstnk
and vdatu in s_vdatu
and kunnr in s_kunnr
and erdat in s_erdat
and ernam in s_ernam.
if sy-subrc ne 0.
message e000(zwave) with 'No data found for given selection'.
endif.
Get the data from VBAP Table
select avbeln amatnr akdmat akwmeng a~netpr
b~maktx into table i_vbap
from vbap as a inner join makt as b on bmatnr = amatnr
for all entries in i_vbak
where a~vbeln in s_vbeln
and a~kdmat in s_kdmat
and a~abgru = space
and a~matnr in s_matnr
and a~matnr ne '000000000000009999'
and a~matnr ne '000000000000004444'
and a~matnr ne '000000000000008888'
and a~matnr ne '000000000000001111'
and a~werks = '1000'
and b~spras = 'E'
and a~vbeln = i_vbak-vbeln.
if sy-subrc ne 0.
message e000(zwave) with 'No data found for given selection'.
endif.
sort i_vbak by vbeln.
sort i_vbap by vbeln matnr.
loop at i_vbap.
read table i_vbak with key vbeln = i_vbap-vbeln
binary search.
if sy-subrc eq 0.
i_sales-bstnk = i_vbak-bstnk.
i_sales-vdatu = i_vbak-vdatu.
i_sales-matnr = i_vbap-matnr.
i_sales-kdmat = i_vbap-kdmat.
i_sales-maktx = i_vbap-maktx.
i_sales-netpr = i_vbap-netpr.
i_sales-kwmeng = i_vbap-kwmeng.
append i_sales.
else.
continue.
endif.
clear : i_sales,
i_vbap,
i_vbak.
endloop.
sort i_sales by vdatu bstnk matnr.
refresh : i_vbap,
i_vbak.
ENDFORM. " get_vbak_vbap
*& Form dispolay_data
Display the data
FORM dispolay_data.
Fill the Fiedlcat
PERFORM fieldcat_init using gt_fieldcat[].
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = v_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = i_sales
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDFORM. " dispolay_data
*& Form fieldcat_init
text
-->P_GT_FIELDCAT[] text
FORM fieldcat_init USING e01_lt_fieldcat type slis_t_fieldcat_alv.
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
Delivery Date
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'VDATU'.
LS_FIELDCAT-OUTPUTLEN = 12.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Delivery Date'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Purchase Order #Material Description
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'BSTNK'.
LS_FIELDCAT-OUTPUTLEN = 25.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Purchase Order #'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material
CLEAR LS_FIELDCAT.
LS_FIELDCAT-REF_FIELDNAME = 'MATNR'.
LS_FIELDCAT-REF_TABNAME = 'MARA'.
LS_FIELDCAT-FIELDNAME = 'MATNR'.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Material #'.
ls_fieldcat-seltext_M = 'Material #'.
ls_fieldcat-seltext_S = 'Material #'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material Description
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MAKTX'.
LS_FIELDCAT-OUTPUTLEN = 40.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Material Description'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Customer Material #
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'KDMAT'.
LS_FIELDCAT-OUTPUTLEN = 35.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Customer material no.'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Quantity
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'KWMENG'.
LS_FIELDCAT-OUTPUTLEN = 15.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Quantity'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Net Price
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'NETPR'.
LS_FIELDCAT-OUTPUTLEN = 15.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Net Price'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
ENDFORM. " fieldcat_init
Reward Points if it is helpful
Thanks
Seshu -
Hello there,
I am looking for easier ways to generate custom reports for UCCX 7, I am asking incase I go away an spend heaps of time programming stored procedures and crytal reports if there is a report pack out there or some documentation to make it a bit easier.
Our call center team leader is asking for reports to be written for the system or modification of existing reports as the ones included are either too crowded with information or do not display what we actually want.
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
As an example, there is a report called ‘Agent Not Ready Reason Code Summary Report’, this report lists some not ready codes such as 32756 etc.. (i.e. Pre-defined system codes), however we want to list our own not ready codes as well as remove some of the system ones from the report as we don’t really want them there.
Another example is the Agent state details report, one of the columns is 'Reason Code', this is fine, however it would be nice to have a summary at the end of the report for a total count of each not ready code (with the not ready code name not just the code).
Is there anyone out there who has written/customised reports for UCCX or know where I can find some more documentation? I have searched around but not found anything, Cisco TAC have said that they only deal with the connection of Crystal Reports to UCCX, the coding itself and help with regards to that you are basically on your own with.
ThanksHi
There are other ways of reporting, but you are still on your own with it unless you find someone who writes a package. I'm not aware of any...
Re your specific queries though:
‘Agent Not Ready Reason Code Summary Report’ - when running the report, you can go to the 'detailed' tab, and on that tab you can select 'Reason Code' as a filter and pick the codes you are interested in.
Also that same report shows the summary (i.e. totals) of the time in those reason codes doesn't it? So that's what you wanted to see on the other report?
Final point (and this is a common one that comes up) is that for some reason the 'reason' codes only appear as numbers in the DB. There are no lookup tables where you can link them to names for reporting. This basically means the best you can do is to edit the Crystal templates so that the static table listing the codes at the top of the report has the codes you have configured. Obviously this isn't dynamic, but it is easy as far as Crystal goes...
Hope this helps
Aaron
Please rate helpful posts... -
Why authorization for cost center groups does not worked ?
hello all,
I would like to give authorization for a CO report (S_ALR_87013625) based on authorization values : cost center groups.
But, unfortunately, it doesn't work. I get a message : No authorization for x of x read records.
Is it only possible to give authorization on standard hierarchy and cost center ?
Please, help me
Thanks and best regardshi,
Run the su53 transaction.See what authorization was missing -
TAble for cost center group in 3.0 F transaction.
hi,
i need to develop a report to extract cost center data from r/3 in 3.0 F version.
can u guys help me that which table has got entries for cost center group.
waiting for your replies,
Regards,
Rachanahi ,
I have checked in csks, cska, cskb, and cssk as well, but i didnt find a field which holds the cost center group information ..please help me as this is a bit urgent ..
Thanks in advance ,
Regards,
RaAchana -
Need a drop down list for cost center group
Hello,
I need to add the cost center group selection option to my program. I have added it to the selection options of my program and I would like to have a drop down list on this field. I have looked at the t-code KS13 and I am thinking that this is what I need. I am not sure if this is a search help or something else. if this is a search help, is it possible to use the same search help in my program? can some please let me know how I would do this in my program? possibly a code example?
thanks in advance for the help.PARAMETER: p_sostat(15) TYPE c AS LISTBOX VISIBLE LENGTH 16,
name = 'p_sostat'.
CLEAR sostatlist[].
value-text = text-101. "'Open'(101).
value-key = '1'.
APPEND value TO sostatlist.
value-text = text-102. "'On Hold'(102).
value-key = '2'.
APPEND value TO sostatlist.
value-text = text-103. "'Drop/Pull'(103).
value-key = '3'.
APPEND value TO sostatlist.
value-text = text-104. "'Pending'(104).
value-key = '4'.
APPEND value TO sostatlist.
value-text = text-105. "'Floor'(105).
value-key = '5'.
APPEND value TO sostatlist.
value-text = text-106. "'Kitted'(106).
value-key = '6'.
APPEND value TO sostatlist.
value-text = text-107. "'Packed'(107).
value-key = '7'.
APPEND value TO sostatlist.
value-text = text-108. "'PGI'(108).
value-key = '8'.
APPEND value TO sostatlist.
value-text = text-109. "'EDI Error'(109).
value-key = '9'.
APPEND value TO sostatlist.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = sostatlist. -
Modification assistant for customer reports
Hi,
How to enable modification assistant for the reports in customer namespace ?
Regards,
Rafal Olechowskisorry for the late reply.
No You can not do it through Modifictaion Overview for Custom reports, unless and untill its an standard SAP program.
Might be there any standard functions which could help you, but am not sure of this.
And as i said the version management and the version comparision can help you know the changes done in any report. in the version management only you can find the version comparision based on the requests.
Regards
Gopi -
Custom Report For Excise On Sales
hi friends,
i need custom report for excise on sale like below format, can you please guide me to prapare FS for below requirement.
Material Code And Discriptiion
Sales Order No
Delivery No
Billing No
Accounting No
Excise Invoice No
Sold to Party
Billed Qty
gross value
bed
ecess
cess
she
total excise duty
invoice value
Regds
Ashwinidear friend,
you can try the standard t-code SDO1 and change the layout
good luck! -
Transaction code for Custom report
Hi,
How to create transaction code for Custom report ?
the custom report is a drilldown report of COPA, which can seen in tcode FDI3.
then how to add this new transaction to the menu path Easy assess->FI->AR->Information system->Reports->customers:items.
Thanks,
SwethaHi Swetha,
There is a special way to assign tcodes to such reports. Normally you create the report via report painter/writer. These reports are part of library and report group.
Create the tcode in SE93. Then at the bottom of the screen you would find option to specify report group, report name, variant to lauch with. Don't have system to specify the exact way of specifying, if you need I can provide on monday. You can take some existing COPA standard report and check from SE93.
--Ram
Maybe you are looking for
-
Latest MBP and high temperature ?
Does anyone who bought the latest MacBook Pro have any problems with is heating up extremely ?
-
Mac Book OSX 10..4 Memory
I just bouhgt a Mac Book 1.83GHZ Duo Core with 60G of memory... However I only show 34G left. Did Apple install that much software to warrant using up 25G of memory..?
-
Need to remove Wrongly added(register) Host name through OAM
Hi, Some how one wrong hosts is added (for standy DB) (register) through OAM, for Standby. I want to add the new correct host name for host. there is a delete option for this. Can we simple delete this host name , or any implication of deleting this
-
Not seeing block diagram when opening vi
Hi, This is trivial but frustrating. When I open a vi I see the front panel, and then have to press ctrl E to see the block diagram. Can anyone tell me if there a way of opening the vi and seeing both the front panel and block diagram immediately ? M
-
Listening for an event outside of the object...
Hey, I spent a lot of my day trying to figure out how to listen for an event outside of an instantiated object of my own. I made my own class called Link. When my Link class is instantiated, a Loader object (var loader:Loader) is added and it loads a