Change cost assignment (cost center) in confirmation with badi?
Dear experts,
for a certain request, we want to implement logic that will clear out the cost center when creating or saving the confirmation.
We have tried the DOC_CHANGE BADI but this does not seem to do the trick. following code:
LOOP AT acct_data into ls_acct_data.
IF ls_acct_data-acc_cat EQ 'OR'.
CLEAR ls_acct_data-cost_ctr.
ENDIF.
MODIFY acct_data from ls_acct_data.
ENDLOOP.
ET_ACC[] = acct_data
Is my code wrong, or should i use another badi?
Regards,
Tom
Hi,
I have tried the following but does not seem to change anything:
Loop at IT_ACC into ls_acct_data.
If ls_acct_data-acc_cat EQ 'OR'.
CLEAR ls_acct_data-cost_ctr.
Endif.
MODIFY it_acc from ls_acct_data transporting acc_cat.
Endloop.
Also with the following method, it is not changing the account assignment. I am in doubt that this badi could actually change the account assignment on confirmation?
Loop at IT_ACC into ls_acct_data.
If ls_acct_data-acc_cat EQ 'OR'.
CLEAR ls_acct_data-cost_ctr.
Append ls_acct_data TO lt_acc.
Endif.
Endloop.
ET_ACC[] = lt_acc.
Edited by: Tom Seminckx on Jan 20, 2009 1:18 PM
Similar Messages
-
PR05 Cost Assignment cost center default
Hello,
I want to have the employee's cost center defaulted on the PR05 screen.
I want to default it at the Entire Trip's Cost Assignment.
I am aware of the user exits available, however, i need to know if there is a way to default it without using the user exits.
Thanks,
JerryHi jerry,
By default, all trip cost is charged to employee's cost centre ( even if you have not been mentioned any cost centre) otherwise as per calculation guidelines.
http://help.sap.com/saphelp_46c/helpdata/en/e6/3152a396d811d194c100a0c92946ae/content.htm
if you want to strict that trip shall be charged only employee cost center, then you have to change following.
Cost assignment specification: Complete Trip RP_TRAVEL_COBL_1700
Following is the more help available for your information.
I hope it would serve your purpose..
Best Regards,
Muhammad Umer
Set Up Variable Layout for Account Assignment Objects
The travel expenses accounting dialog contains the option to record cost assignment specifications for the complete trip, additional destinations (stopovers), receipts and the kilometer/miles distribution.
The user is provided with two options for this purpose: The entry area Alternative Cost Assignment to Master Cost Center in the travel expenses dialog, or the Enhanced Cost Assignment function.
Travel Management offers five different coding blocks that you can use to control the cost assignments within Travel Expenses accounting.
In this IMG activity you define the screen layout for the account assignment objects - the selection and order of these objects. In addition you can specify the field characteristics for each of the account assignment objects.
You can make these settings in relation to a specific user or the organizational assignment of the employee.
To do this, copy the return value from the feature TRVCO as a variable key into the key of the fields with which you want to set up the coding block.
Note
The feature TRVCO is only evaluated during screen layout of a coding block if it is assigned to the corresponding function module in the view Screen modification for assignment data. This view can be accessed using the entry Check assignment of feature TRVCO to coding blocks in the selection screen for the IMG activity Set up variable layout for account assignment object
In the standard version feature TRVCO is assigned to function modules. You should not change the following assignments:
Coding Block for Function Module
Cost assignment specification: Complete Trip RP_TRAVEL_COBL_1700
Cost assignment specification: Receipts RP_TRAVEL_COBL_1701
Cost assignment specification: Destinations RP_TRAVEL_COBL_1702
Cost assignment specification: Miles/KMs Distrib. RP_TRAVEL_COBL_17
Activities
1. Check the assignment of feature TRVCO to the function modules for the coding blocks using the appropriate action in this activity.
2. You can create new entries as follows:
a) Choose the action Account assignment object: Cost assignment specification: <appropriate entry area> in this IMG activity.
b) In the variable key field, enter the required return value from the feature TRVCO.
c) Enter the name of the field needed in the Variable name field.
d) Specify the field attributes for the field. -
Change default cost assignment specification
Hello,
I do have an organisation which assignes all travel expenses to (project) orders instead of cost centers.
Is there a way to change the default cost assignment (cost centers) to (project) orders on the travel expense WebDynpro?
As there is no project order maintained in any employee related Infotype this should force the traveller to select the appropriate (project) order from a list.
Thanks for your feedback,
WolfgangHello Wolfgang
Good news you can do this by customizing
You can even hide unused cost objects if you need only orders.
This can be customized here : Financial accounting (new) => travel management => Employee Self-Services => Interface Configuration for web dynpro interface in travel management => Set up variable layout for account assignment objects
Hope this helps
Mathieu -
Cost center assignment view as soon as the open the cost assignment section
Hi SRM Experts,
When creating a shopping cart we have to click several times to view the cost center assignment, is there a way to have it viewable as soon as the open the cost assignment section to complete their project code information.
Standard Process: Item Details -> Cost Assignment -> Details -> Cost Center (here we are able to enter cost center) - BBPSC02 Transaction
Required Process: Item Details -> Cost Assignment -> Cost Center (here we are able to enter cost center) - BBPSC02 Transaction
SRM Version: 4.0 and Extended Classic Scenario.
Thanks a lot in advance for your help.
Thanks,
Sudarsan
Edited by: KOYYA SUDARSANA NAIDU on Mar 12, 2009 11:17 PMHi,
Cost centre should be displayed by default if you check the Defualt check box for that user in the org.structure attribute setting for CC attribute. So check the default check box against the CC.
Or
If your user is only using Cost Centre then exclude WBS element and other account assignment for that user in the org.structure attribute then the user defualt to cost centre only. Please note that this applicable only if that user don't want to use WBS element anymore.
Cheers!!!
NMK -
Changes in Assignmentand costing details
Hi all,
Heartly appreciate for any reply on following...
I need to write a query for a Payroll Audit report which will capture the details of all the changes in assignment, costing, element entries for employee along with the person who changed it, and when changed it.
I can find the change date based upon last_updated_date/by but how to find how many columns has changed?
Please reply.. !!
Thanks
Edited by: OnlyMadhav on Jul 4, 2011 4:56 PM>
Chidanand Chauhan wrote:
> Hi Siddu,
> I have told you to create a ZTable and update that Ztable while saving the Vendor Master . and you can use that Ztable in your report to identify on which date the value was updated.
>
> Thanks,
> Chidanand
Why create a separate table and a mod to the SAP standard when the existing functionality of change pointers does exactly what is needed?
Rob -
Force user to change cost center master data with validity date
Dear All!
we do have customer fields in table for cost centers (CSKS) and would like to force the user to do changes for these customer fields in combination with the change of the validity from/to date. I did not find any possibility to add this functionality with the customizing transaction OKEG or any other transaction. We now would need some good ideas from you as SAP experts!
Regards,Hi,
You can use COOMKS02 enhancement.
Regards,
Eli -
Freight Costing - Problem of G/L account with Cost Center
Dear Gurus,
In VI02, I have the following u201CAccount Assignmentu201D message of error:
u201CG/L account 60900000 cannot be used (please correct)u201D
u201CComparison of the field selection strings from the G/L account 60900000 and the account assignment category K reveals that there is an incompatible combination of field selections for the field selection group 'Earmarked Funds'.u201D
Questions:
Bearing in mind that I am in the Shipment Cost cockpit, I need to mention that the system directly allocated me the following Account Assignment Category: u201CKu201D for u201CCost Centeru201D.
1- I could there either way create another Account Assignment Category for Shipping instead of Cost Center
2- The system tells me about an incompatible combination of field selection, how can I change that field selection to make it compatible? There are so many possibilities that I get bogged down in choosing the right combination.
I have been to OME9 and OB14 to try to maintain fields, however those fields have different values or names.
My aim here is to coordinate a G/L account group with a Cost Center for Freight Costing
Can anyone help?
Thanks
ChrisDear Zafar,
If you desire you maintain two different cost centers for the two company and you need to have both of them posted on the same G/L account and Cost element, I would advice you to:
- create a Z table where by controlling area you define where the specific cost center need to get posted
- include this validation check in the exit for validation for controlling
- include this validation check in the exit for validation for finance
- include this validation check also in the sales order user exit
Standard SAP seems do not have direct link between cost centers & cost elements. For this reason ideal solution is to generate a table where you may define you needed structure.
E.g.: some ideas on the table you may create
Controlling area
Cost element from
Cost element to
Cost center from
Cost center to
I hope this suggestion may answer to your need.
Regards,
Viviana A. -
Cost Assignment Change on Header Level
This User changed the cost assignment at the top level to an internal order;
however, it did not apply to one of the hotel charges.
The other charge on the same date for the same vendor did change.
What caused the one transaction to remain with a cost center instead of internal order?
It was our understanding if the User changed the cost assignment at the top level it would be applied to all transactions in the report. Is this not correct?Got the Solution from Development Colleagues:
If a traveler change the cost assignment from cost object A to cost object B at the top level of an expense report, then all expenses which are assigned to the cost object A at change moment(!) should get the new cost assignment to cost object B.
All expenses which are assigned to a different cost objects as A will be not changed!
Example 1:
Step 1. Traveler created an expense report with the cost assignment to cost center A
Step 2. Traveler added 3 expenses
=> Expected result: all 3 expenses should get the assignment to the cost center A
Step 3. Now traveler changed the cost assignment on top level of the meeting request to the project B
=> Expected result: all 3 expenses should get the assignment to the project B
Example 2:
Step 1. Traveler created an expense report with the cost assignment to cost center A
Step 2. Traveler added 3 expenses
=> Expected result: all 3 expenses should get the assignment to the cost center A
Step 3. Traveler changed manually the cost assignment of one expense to internal
order D
=> Expected result: 2 expenses are assigned to the cost center A and one expense is assigned to the internal order D (because of manually change!)
Step 4. Now the traveler changed the cost assignment on top level of meeting request from the cost center A to project B
=> Expected result: only 2 expenses which were assigned to the project A are now assigned to the project B, the one expense which was assigned to the internal order D should be still assigned to the internal order D (it is not assigned to the cost center A and therefore not affected by the change from cost center A to project B). -
Changing cost assignment after posting advance
Hi Friends,
I have a problem;
I create a travel request (TRIP) with some advance request
Cost is charged to Cost center 100%
Settle the request, post the adance(PRFI, PRRW)
Enter expenses,
Change cost assignment to WBS element in PR05
Post the trip
it posts to same cost center, not to WBS element
Please note that i post the trip in accounts depending upon activity type. For WBS, we have different account
If there was no advance posted, the WBS change takes place correctly.
any solution please!
Thanks and regards!Hi,
Till you create an expense report you will be able to change cost assignment, but once expenses is created no changes can be made to the cost assignment.
And also, while posting you can change the cost assignment either from cost center --> cost center or WBS --> WBS and not vice versa.
Hope this helps.
Regards,
S.Srikanth -
Cost Center assign Profit Center Issues
Hi Controlling Expert,
i have one issues regarding, Cost Center assign to Profit Center
wht happened , we have made MIS Report Thru Report Painter KE80, we have map based on Primary Cost Element, at the time of Business Transaction, we have capture the Finance Cost center i.e FI000, Marketing Cost center i.e MK000 , HR Cost Center i,e HR000 and assign the same cost center FI000 to Profit Center i.e FI000 also same name, respectively. in MIS report there is two Head i.e Sustaining Cost and Development Cost ,where we have to capture only Cost center for Sustaining Cost related to display i.e FI000, MK000 and HR000. KE80 report belongs to Profit Center wise you can see the Report. But same FI000, MK000 and HR000 also updated related with business transaction and capture above cost center like in depreciation GL Amount 1000 cost center FI000 and sustaining cost also updated the same amount 1000 because we have assign FI000, i.e wrong . last 3 months post the amount now wht should I do for not updated sustaining cost, as I understand , should be delete sustaining Cost as well Development, and later on we can take report from KSB1 for FI000, MK000 and HR000, for management purpose, so if I cannot assign profit center FI000 to Cost Center .kindly correct me whether ryt or wrong. Coz Fianance, HR cost and marketing is only cost center. not suppose to assigh profit center, in this case how Profit Center removed from Cost center. kindly let me knw, or give me other option.
wen we see the report same Profit Center showing two times along with amount i.e wrong coz of Sustaining Cost we have assign Profit Center
in this report particulars are Below
Revenue : Relevant GL ( At time of Business Transaction we have captured the Relevant Profit Center i.e Finished Product i.e R100: RA Tube
and RA Tube R100 assign with same Cost Center R100.
B.Material Cost : Relevant Primary Cost Element
Manpower : same like Above
2.Energy : same like Above
3.Consumption : same Like Above
Conversion Cost (1+2+3)
Sustaining Cost : Here we have given Profit Center i.e FI000, MK000 and HR000 these profit center assign
Development Cost : Here we have given profit Cente EN000
Profit (A-B-C-D-E-F)
G.Depreciation : Relevant Primary Primary Cost Element
Financing Cost : Relevant Primary Cost Element
I. Other Income/Loss : Relevant Primary Cost Element
PBT : (F-G-H-I)
Kind regards
Pranav Kr. Gupta
SAP FICO Consultant.Hi Pranav
You are logging same issue twice. I didnt see any difference in the two threads though.
If its the same issue, request you not to repeat this in future.
KE80 report two times value effected
Regards
Mustafa -
Po with account assignment cost centre
dear friends,
When creating PO with account assignment cost centre, system should default GL account (i.e G/L will be picked automatically instead of entering manually.
How this can be customized?
regards, thanksThe following configs are required.
1. SPRO -> MM -> Purchase -> Material Master -> Entry aids -> here you maintain all relevant material groups, corresponding valuation class and Purchasing valuation key
2. Then in OKB9, you will maintain company code, cost element, and cost center
3. THen in OBYC, Valuation group code, valuation class and GL account.
With the above settings, the system will automatically detemine the GL account.
Thanks and warm regards,
Jagadeesh -
Hi Friends
Can any one help me how to get Changes made to Cost Center????..
Infact, in one Cost Center, prices for activity type has been changed. Because of that we could find difference of actual costs recorded. Later on corrected to original one.
Is there any transaction or table display change logs. If so please do let me know.
Thanks in advance and shall reward suitably for proper solution.
Enjoy SAP.....
With Best Regards
SudhakarHi Azam
In continuation to my further query, can you please let me know that T code / table to know the changes made
"combination of Activity type and cost center. Infact, eager to know the changes made to Activity type prices in a cost center".
Would appreciate if you can help and thanks in advance.
Enjoy SAP....
With Best Regards
Sudhakar -
Assign Cost Center for Internal Consumption in Sales Order
Dear Experts,
I have a scenario is that Marketing Manager want to give a gift to his customer, the expense of this gift will be charged to Marketing Department. As the law, the invoice of this gift is required with the posting as below:
Dr Expense acc 5000 USD
Cr Revenue acc 5000 USD
(Assume that there is no tax)
I create a Sales Order with the Product is the Gift that will give to customer, and I also assign the Cost Center as Marketing Department. The problem is when I generate the billing document from this Sales Order, the system throw the error: Cost Center XYZ (Marketing Department) is not allowed posting revenue. This error happen because I don't want to post revenue to Cost Center, I want only Expense will be posted to Cost Center. But because I assigned Cost Center in header of Sales Order, system will post both revenue an expense to this CO object. Now what I want to do is post Expense to Cost Center, revenue to Profit Segment. Is it possible and what I need to do if it is possible?
Regards
Truc Nguyenplease try this.
please maintain revenue account in account determination
orgdist.cust a/cass. groumaterial acc.assi. groupaccount key. and revenue account.
Gajanan -
Automatically assign cost center
Using SAP 4.7
We need to automatically assign Cost Center at the time of asset retirement through scrapping. User doesnt have to enter the cost center.
I have tried additional assignment in asset - integration with GL Account but it fails to do.
Can Please somebody help me out in this regard.
Regards
Sajid HakeemHello,
>Cost center will be given in the asset master....you aware of it...ok...
>At the time of scrapping the asset the scrap will go to necessary scrap GL for that you have to give cost center in OKB9...you aware of it but you dont want to happen like this...and you need to have a different cost center(ie., as in the asset master) ....quite complicated....
> ok...to achieve this atleast should have different profit center for each assets..do you have? if so..... Then come to OKB9 in the acct assignment column give value 3 and in the subdialouge box click on Details per profit center wise ....there you can give cost center per prctr.
Hope this helps.
Regards,
Velumani -
Assign Cost center for Price differences
Hi,
How to assign Cost Centre as default Cost Center for Price differences on any account?
Thank in advance.
SwethaHi Shwetha,
Goto OKB9 and assign your cost element to Cost center.
e.g. My price difference cost element is 60000 and cost center is 1234.
goto OKB9.
Company code,cost element and Cost center.
1000 60000 1234
If you have any issue with this,let me know i can help you.
Thanks,
Rau
Maybe you are looking for
-
How do I play movies from me external hardrive?
My movies wont play with quicktime. What do I need to install to be able to watch movies??
-
Can I output to usb itunes sound only, not system sounds?
I use USB speakers for playing music from itunes, but I want all other sounds to come from the computer's built-in speakers. Is this possible?
-
hey guys, im a devoted user of mozilla but lately whenever i open my facebook (or other sites with lots of adds) it freezes for like a minute, every few minutes. I didn't have this problem when I used explorer nor when doing it on other computers. so
-
Why can I not see Faces on my iOS units Photo app
I use IDrisve works nicely on My iMac. before the last update i had "faces from My iMac" but not now. any ideas"
-
TS1398 MY BLUETOOTH UNABLE TO DETEC OTHERS IPAD OR PHONE WITHIN THE RANGE
mu bluetooth unable to detect ipad, others model phone, it keep running searching until ages it does appear anything within seconds.