cancel
Showing results for 
Search instead for 
Did you mean: 

cost center substitutions for CO doc. from Billing document

Former Member
0 Kudos

Hi gurus

when we create billing document , a controlling document is created automatically. our requirment is to substitute the cost center according to Customer group in Invoice\Sales order header data or "Storage Location " in Line item data.

i tried in GGB1 cost center substition

Cost Accounting > Line Item & callup point : 1

where it should be.

thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

ajaycwa1981
Active Contributor
0 Kudos

Hi

First of all, you should not be posting revenue from Billing to Cost Centers.. Catg 11 cost ele will always be postede statistical to cost centers

Anyways, if you still want to do it, you will have to use exit RGGBS000 in the substitution.... Maintain a Z table with mapping of Cust group to Cost Centers and call the Z table in your exit

I did the same for MIRO using vendor group...

Br, Ajay M

Former Member
0 Kudos

Hi

we are intended in posting "Customer discounts" ( Revenue Reducing Expense ) ( CEIem Category 12 : Sales Deduction ).

as we want to substitute cost center in co document automatically from Billing document (vf01).

and cost center substituion has Prerequisite : fileds in Billing document \ Sales Order (line item >> Storage location )or ( Header field >>Customer group \ Customer Region ).

when i see Application Area Cost Accounting > Line item . there i can see list of structure Structure VBAK Sales Document : Header Data , Structure VBAP Sales Document : item Data. there are my required fields.

in the same appliation area > line item , we had already configred more than one steps . working fine. that is Cost Center substitution on basis of internal order . working fine.

In same substituion , i add a new step. In prerequist . i seleted Sales Document Header data & select requried item & give constant value . & In substition gave requried cost center. but its not working.

My questions are

1) Which Application Area i should use . ( my view Cost Accounting ).

2) when i create Billing document (vf01 ) with reference to Sales Document ( va01 ). then where it will substitute the cost center. in Sales order . or Billing document or in Controlling document.

or where i should use said User Exist ". where these cost structure VBAK, VBRP works.

thanks

ajaycwa1981
Active Contributor
0 Kudos

Hi

1) Which Application Area i should use . ( my view Cost Accounting ).

use the application area Cost Accounting.. To avoid confusion, create your Subst in OKC9

2) when i create Billing document (vf01 ) with reference to Sales Document ( va01 ). then where it will substitute the cost center. in Sales order . or Billing document or in Controlling document.

It will subst in Controlling Doc....

However, I woulf again repeat that Catg 11/12 cost elements are posted statistically to cost centers... you wont be able to allocate them later on...

You should ideally post it to COPA.. You can do a Top Down Dist in COPA later on where it will allocate from higher level chars to Lower level chars (T code KE28)

br, Ajay M

Former Member
0 Kudos

Hi

I have seen

Application Area Cost Accounting > Line item . there i can see list of Structure

VBAK Sales Document : Header Data ,

Structure VBAP Sales Document : item Data.*

where these two used.?

Thanks.

ajaycwa1981
Active Contributor
0 Kudos

Hi

VBAK is used when you want to read the Header fields of the documents LIke customer, etc and write a Logic

VBAP is used when you want to read the Item data like Material, Mat Group etc and then write a logic accordingly

Br, Ajay M

Former Member
0 Kudos

In which document ( sales document or Controlling document ). vbak, vbap used. ( these tables are for sales orders ).

as my objective is " when i will creat sales order then billing document. there i want substition or even

when billing document is saved and Controlling document is generated . then in controlling document , cost center should be, as put in substitution.

if is is to be done throgh user exit , plz guide where . i substitue cost center according to customer group.

sales process is as.

sales order > billing document > Controlling document

thanks

thomas

ajaycwa1981
Active Contributor
0 Kudos

Hi

Please write the substitution in OKC9... At Line Item level... It will call up whenever posting happens in CO

I hope this clarifies... OKC9 will work...

Br, Ajay M

ajaycwa1981
Active Contributor
0 Kudos

Hi

Please write the substitution in OKC9... At Line Item level... It will call up whenever posting happens in CO

I hope this clarifies... OKC9 will work...

Br, Ajay M

ajaycwa1981
Active Contributor
0 Kudos

Hi

Please write the substitution in OKC9... At Line Item level... It will call up whenever posting happens in CO

I hope this clarifies... OKC9 will work...

Br, Ajay M

Former Member
0 Kudos

Hi

Substituion is not working. controlling document is posted , when billing document is generated. but instead of posting to a cost center it is showing as.

Object type : REO

Object Name : Profit. Analysis//3000/3... Profitability Analysis

actually we want to monitor in Plan vs Actual Cost center comparasion. in billing document we offer discount "Freight Discount". and we want a " statiscial posting to cost center..." in addition to gl posting

i set Cost element category 12: Sales deduction.

Thanks.

ajaycwa1981
Active Contributor
0 Kudos

Hi

Thats what I told you.. Postings to Cost center for revenues are going to be statistical for catg 11 and 12...

If you write a subst in OKC9, it would overwrite the Original CO object...

Write your ABAP code in such a way that the REAL posting goes to PSG (If you have COPA active).... and in addition posting goes to Cost Center...

In your ABAP code, put the condition "if COBL-Prof Segment is not INITIAL" and see again

Br, Ajay M