Profit Center Billing blank in sales order for intercompany sales scenario
Dear Experts,
It's weird that i got some sales orders which have blank 'Profit center billing' , but carried out proper 'Profit Center'.
Because Billing copy 'Profit center' from 'Profit center billing' in sales order ,so i got error while creating billling.
Can somebody explain this to me ,thanks a lot
Hi,
Please check the configuration. Check mainly the assignments.Before that check your material master and check when it was maintained ie., before the sale order creation or after???.
Regards,
Rajeswari
Similar Messages
-
Hello All,
I am facing a issue where in the partner profit center/profit center billing (VBAP-PCTRF) filed at item level in sales order is not getting filled during inter-company sales process.
I have maintained profit center in material master for both selling and supplying company code.
In addition to this when I generate a invoice "F2" system posts to the delivering company code's profit center.
Note: profit center 9999 assigned to both company codes.
Selling company code's material master screen shot:
Supplying company code's material master screen shot:
As per my analysis:
1. The profit center field (VBAP-PRCTR) is filled in with the data maintained in material master for delivering/supplying company code and when inter-company invoice IV is created, system is posting to this profit center, which is correct as per my understanding.
2. If I maintain some substitution rule using 0KEM, and if the requirements are fulfilled system fills in the partner profit center (VBAP-PCTRF).
3. If i create a order (non-inter company) in delivering company code then correct profit center (VBAP-PRCTR) is flowing from material master.
Please help me in understanding why the data in partner profit center (VBAP-PCTRF) is not flowing in during inter-company sales.
Thanks & Regards
Naveen K.Have a look at these notes:-
1532865 - FAQ: Profit center in the billing document
1579002 - Incorrect filling of "Profit Center for Billing"
G. Lakshmipathi -
How the profit center wiil detrmine in sales order
How the Profit center will determine in sales order
where we will assign profit center to sales org
is it right that it will determine from Material master
Thanks and regards
KishoreKishore,
Profit center is used for internal controlling purpose. It helps you to analyze clearly the costs and revenues.
You can create Profit Centers according to product lines and Functions. Before creation of profit center we should do the basic settings you divide your business or company into internal areas of resposibility. You divide your business into profit centers by assigning it to master data like Materials, Projects , Cost centers, sales orders .
It is necessary to assign to SD sales orders to Profit Centers in order to reflect receivables, sales revenues and sales deductions on profit centers
The profit center assignment is also passed on from the sales order through the supply chain: sales order --> delivery note --> goods issue --> billing document. This means that the when a goods issue is posted, the corresponding revenue value for the goods is also passed on to the profit center of the sales order.
Each order item is assigned to a profit center. The system proposes the profit center of the material in the supplying plant as default, you donot assign profit center manually. This default supports both a product‑oriented and geographical division of your organization into profit centers.
AFter Creation of profit center you will assign sales order to profit center.
IMG --> Controlling --> Profit Center Acounting > Assignments of A/c assignemnt objects to profit centers>sales orders --> assign sales orders
The system uses these substitution rules to determine the profit center from sales orders. You also need to activate these substitutions for each individual controlling area
b. for that we need to activate the indicator "Ent org active" then we proceed accordingly.
IMG --> Controlling --> Profit Center Acounting --> Enterprise organization
c. The system proposes the profit center of the material in the supplying plant as default, you donot assign profit center manually. When you create a sales order item, the default profit center is copied from Material master or Substituioon rule
IMG --> Controlling --> Profit Center Acounting > Assignments of A/c assignemnt objects to profit centers>sales orders --> Sales orders substituion rules
Profit center configuration
It is configured in Controlling:
IMG --> Controlling --> Profit Center Acounting --> Master Data --> Profit Center
When you are trying to create a profit center it will ask for Contolling area.
Please go through the IMG settings and also go throtuh the URL's provided by our friends as a reply.
Regards
Sathya -
Profit center mandatory field in sales order !
Hi All !
How to make profit center mandatory field in sale order can any body let me know...
Thanks & Rgds
NaveenHi
You can either Transaction variant SHD0/User exit
Refer below<a href="http://www.sap-img.com/sap-sd/supressing-fields-in-sale-order.htm">Fields in Sale Order</a>
help required: how to makes sales office field mandatory, in inquiry and qu
Re: supress some fiels in sales order? user exit?
Message was edited by:
SHESAGIRI.G -
To Populate the profit center field in the sales order by user Exit.
Hi All,
Please let me know :
How the user exit is used to populate the Profit center field in the Sales order?
Please gurus answer as quickly as possible as I require this urgently.If you want to overwrite the profit center in sale order (determined from the materail master) with a different profit center based some other criterion you can use profit center substitution rules. Check the wiki:
[Profit Center Substitution in Sales Orders|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erplo/profitCenterSubstitutioninSales+Orders]
Regards,
GSL. -
Changing Profit Center in Partially Delevered Sales Order
Dear Experts,
Can anybody tell me how we can Change Profit Center in Partially Delivered Sales Order?. in Standard, System allows to change PC in open sales Order without any subsequent documents.
There is business requirement to change PC in all Open Sales Orders.
br,
vgl.Try this.
Go to MASS, Key in Object Type BUS2032, select Table MASSVBAP and click on "Fields". There select the field "MASSVBAP-PRCTR" and execute.
Next paste those open sale orders and again execute. There maintain the required Profit Center on top cell and click Carry out mass change.
thanks
G. Lakshmipathi -
Profit Center Value in the Purchase Order Pricing
Dear Friends
I am stuck at a process design step and I need your help to proceed further.
We have created a new Condition type in MM Purchasing to display the charges incurred towards the inward freights.
These freight costs vary depending on the Profit center. ( The Profit Center is already included in the Communication Structure KOMP) So We have Profit center field included as one of the field in the Table and in access sequence.
The Profit center is visible in the item data of the Purchase order in the Account Assignment Tab Page Under Item Details section.
But this value is stored in EKKN & not in EKKO or EKPO
I have created condition records also.
Now when I create a PO the value is not picked from the condition records. When i looked at Pricing analysis the value for Profit center is Blank.
So Kindly advice me how can i get the value of the Profit center in the condition records.
Thanks & Regards
SrinivasHi,
We have a similar scenario with the order type and we created a new field as ZZBSART in the field catalogue.
included the ZZBSART in to the communciation structure KOMG so that it will be available in the KOMK structure.
After that, some coding have to be written in the user exit J_117_USEREXIT_FILL_KOMK_KOMP.
Sample coding for Vendor region
Select single regio into XKOMK - regio
Where LIFNR = XKOMK LIFNR
Try with this and let me know if you have any issues.
Regards,
RitiG -
Profit center 1000/1400000023 does not exist for 21.07.2009
Hi Gurus,
When i am posting billing document i am gettting error message "Profit center 1000/1400000023 does not exist for 21.07.2009"
Pls help me how to solve this problem.
Thanks & regards
Srinivas.NDear Srinivas,
The validity date of Profit center is finished.
Go to KE53 and check the Dates for the Pofit center whether its valid or not.
If its not valid, Go to KE52, Change the date, actiivate the Profit center. ( i guess it will be done by FI Consultant) .
PS: Please search the forum before posting the question, you will get lots of handful materials...and dont post same question in multiple forums.
Thanks,
Raja -
Substituion of profit center while posting to internal orders
Dear experts
Can anyone guide me to substitute a different profit center while posting to a real internal order.
I tried substitution rules, user exits, etc. Eventhough the control goes there, substituion is ineffective since profit center assigned to the internal order in its master data is getting replaced again.
Any other work around is possible to achieve this.
ThanksFind below your clarification for the points
Why we assign cost center while posting to any G/L, even though we have been assign cost center to the cost element it will post the co entry through cost element.: Once you have assigned cost center to cost element in T.code OKB9 or KA01, no need of manually entering the cost center for the respecting primary cost GL while passing enteris.
Please any one make me understand the internal logic and process of how cost element and cost center works.: Whenever you post a cost to primary cost element , you require an object in Controlling , such as cost center to identify the costs. This primary costs are only created when the respective GL exist in the operational chart. Cost center is the location where cost incurs. Thus when you assign the cost to cost center , the cost will be booked against that particular location . -
Profit center 1000/9999 does not exist for 21.10.2008-Message no. KM026
Hello
I am trying to create Inquiry through T-code VA12 but when I am assigning Project with it pop up error
Profit center 1000/9999 does not exist for 21.10.2008
Message no. KM026
Diagnosis
The desired profit center 9999 is not in the master data table for the specified date.
Procedure
Check your entry.
Note: The profit center is usually derived from the original account assignment object (cost center, order, and so on) or other information (such as the material number).
If necessary, create the desired profit center for the appropriate time frame.
Initially in this system dummy profit center activated but I now I donu2019t want dummy profit center so I changed master data date but now I am getting this error.
From were this (9999) dummy profit center is picking.
If some body has Idea let me knowDear,
Go to tcode KCH5N select ur profit center on the right side u will find the validity period button click it to check. . If the posting is taking place within the validity period no issue else extend the validity period..
To check the period closing t.code is MMRV
To close the period - MMPV
If the problem still exists, then please go to KE53, give the respective profit center in which the material is assigned and enter.
There you can see the validity period for that profit center and I presume the validity period is ended before the creation date. Check that.
Regards,
R.Brahmankar -
Profit Center not getting uploaded through BAPI for MM01. Pls help
Hello all,
I am getting an errror while uploading a file through BAPI for MM01 , The error says
Error:
Profit center 1000/sslcommon does not exist
for material: AC2
*& Report ZBAPI_DUMMY
REPORT ZBAPI_MM01.
*& Report ZBAPI2
TABLES
FLAGS *
DATA: F_STOP. " Flag used to stop processing
DATA DECLARATIONS *
DATA : V_EMPTY TYPE I, " No. of empty records
V_TOTAL TYPE I. " Total no. of records.
STRUCTURES & INTERNAL TABLES
*--- BAPI structures
DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control
BAPI_MAKT LIKE BAPI_MAKT, " Material Description
BAPI_MARA1 LIKE BAPI_MARA, " Client Data
BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
BAPI_MARC1 LIKE BAPI_MARC, " Plant View
BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
BAPI_RETURN LIKE BAPIRET2, " Return Parameter
BAPI_MARDL LIKE BAPI_MARD,
BAPI_MARDX LIKE BAPI_MARDX.
*--- Internal table to hold excel file data
DATA: IT_INTERN TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
*--- Internal table to hold Matetrial descriptions
DATA: BEGIN OF IT_MAKT OCCURS 100.
INCLUDE STRUCTURE BAPI_MAKT.
DATA: END OF IT_MAKT.
*--- Internal to hold the records in the text file
DATA : BEGIN OF IT_DATA OCCURS 100,
WERKS(4), " Plant
MTART(4), " Material type
MATNR(18), " Material number
MATKL(9) , " Material group
MBRSH(1), " Industry sector
MEINS(3), " Base unit of measure
SPART(2), " Division
EKGRP(3), " Purchasing group
PRCTR(10), " Profit Center
VPRSV(1), " Price control indicator
BKLAS(4), "Valuation Class
*stprs(12), " Standard price
PEINH(3), " Price unit
SPRAS(2), " Language key
MAKTX(40), " Material description
LGORT(4) , " storage location
DISMM(2) , "MRP TYPE
VERPR(23), " Moving Average Price
MTVFP(2) , " Availability Check
DISLS(2) , "Lot Size
DISPO(3) , "MRP Controller
BESKZ(1) , "Procurment Type
FHORI(3) , "SCHEDMARGIN KEY
PERKZ(1) , "Period Indicator
END OF IT_DATA.
SELECTION SCREEN. *
SELECTION-SCREEN BEGIN OF BLOCK SCR1 WITH FRAME TITLE TEXT-111.
PARAMETER : P_FILE TYPE RLGRAP-FILENAME OBLIGATORY " Input File
PARAMETER : P_MAX(4) OBLIGATORY DEFAULT '100'. " no.of recs in a session
PARAMETERS: P_HEADER TYPE I DEFAULT 0. " Header Lines
PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
P_BEGROW TYPE I DEFAULT 2 NO-DISPLAY,
P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK SCR1.
AT SELECTION-SCREEN *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
*--- Validating file
PERFORM VALIDATE_FILE USING P_FILE.
START-OF-SELECTION
START-OF-SELECTION.
*--- Perform to convert the Excel data into an internal table
PERFORM CONVERT_XLS_ITAB.
IF NOT IT_DATA[] IS INITIAL.
*--- Perform to delete Header lines
PERFORM DELETE_HEADER_EMPTY_RECS.
ENDIF.
END OF SELECTION. *
END-OF-SELECTION.
*--- Perform to upload Material Master data
PERFORM UPLOAD_MATMAS.
Form : validate_input_file
Description : To provide F4 help for file if read from PC
FORM VALIDATE_FILE USING F_FILE TYPE RLGRAP-FILENAME.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
CHANGING
FILE_NAME = F_FILE
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE S010(ZLKPL_MSGCLASS). " 'Error in getting filename'.
ENDIF.
ENDFORM. " validate_input_file
*& Form CONVER_XLS_ITAB
text
FORM CONVERT_XLS_ITAB.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = P_FILE
I_BEGIN_COL = P_BEGCOL
I_BEGIN_ROW = P_BEGROW
I_END_COL = P_ENDCOL
I_END_ROW = P_ENDROW
TABLES
INTERN = IT_INTERN.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*--- Perform to move the data into an internal data
PERFORM MOVE_DATA.
ENDFORM. " CONVERT_XLS_ITAB
*& Form MOVE_DATA
text
FORM MOVE_DATA.
DATA : LV_INDEX TYPE I.
FIELD-SYMBOLS <FS> .
*--- Sorting the internal table
SORT IT_INTERN BY ROW COL.
CLEAR IT_INTERN.
LOOP AT IT_INTERN.
MOVE IT_INTERN-COL TO LV_INDEX.
*--- Assigning the each record to an internal table row
ASSIGN COMPONENT LV_INDEX OF STRUCTURE IT_DATA TO <FS> .
*--- Asigning the field value to a field symbol
MOVE IT_INTERN-VALUE TO <FS> .
AT END OF ROW.
APPEND IT_DATA.
CLEAR IT_DATA.
ENDAT.
ENDLOOP.
ENDFORM. " MOVE_DATA
*& Form DELETE_HEADER_EMPTY_RECS
To delete the Header and empty records
FORM DELETE_HEADER_EMPTY_RECS.
DATA: LV_TABIX LIKE SY-TABIX.
IF NOT P_HEADER IS INITIAL.
LOOP AT IT_DATA.
IF P_HEADER > 0 AND NOT IT_DATA IS INITIAL.
DELETE IT_DATA FROM 1 TO P_HEADER.
P_HEADER = 0.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
CLEAR IT_DATA.
*--- To delete the empty lines from internal table
LOOP AT IT_DATA.
LV_TABIX = SY-TABIX.
IF IT_DATA IS INITIAL.
V_EMPTY = V_EMPTY + 1.
DELETE IT_DATA INDEX LV_TABIX..
ENDIF.
ENDLOOP.
CLEAR IT_DATA.
*--- Total no of recs in file
DESCRIBE TABLE IT_DATA LINES V_TOTAL.
IF V_TOTAL = 0.
MESSAGE I013(ZLKPL_MSGCLASS). " No records in the file
F_STOP = 'X'.
STOP.
ENDIF.
ENDFORM. " DELETE_HEADER_EMPTY_RECS
*& Form UPLOAD_MATMAS
to upload Material Master data
FORM UPLOAD_MATMAS .
LOOP AT IT_DATA.
Header
BAPI_HEAD-MATERIAL = IT_DATA-MATNR.
BAPI_HEAD-IND_SECTOR = IT_DATA-MBRSH.
BAPI_HEAD-MATL_TYPE = IT_DATA-MTART.
BAPI_HEAD-BASIC_VIEW = 'X'.
BAPI_HEAD-PURCHASE_VIEW = 'X'.
BAPI_HEAD-ACCOUNT_VIEW = 'X'.
BAPI_HEAD-storage_view ='X'.
bapi_head-mrp_view = 'X'.
bapi_head-COST_view ='X'.
Material Description
REFRESH IT_MAKT.
IT_MAKT-LANGU = IT_DATA-SPRAS.
IT_MAKT-MATL_DESC = IT_DATA-MAKTX.
APPEND IT_MAKT.
Client Data - Basic
BAPI_MARA1-MATL_GROUP = IT_DATA-MATKL.
BAPI_MARA1-BASE_UOM = IT_DATA-MEINS.
bapi_mara1-unit_of_wt = it_data-gewei.
BAPI_MARA1-DIVISION = IT_DATA-SPART.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
Plant - Purchasing
BAPI_MARC1-PLANT = IT_DATA-WERKS.
BAPI_MARC1-PUR_GROUP = IT_DATA-EKGRP.
BAPI_MARC1-PROFIT_CTR = IT_DATA-PRCTR.
BAPI_MARC1-MRP_TYPE = IT_DATA-DISMM.
BAPI_MARC1-AVAILCHECK = IT_DATA-MTVFP.
BAPI_MARC1-LOTSIZEKEY = IT_DATA-DISLS.
BAPI_MARC1-MRP_CTRLER = IT_DATA-DISPO.
BAPI_MARC1-PROC_TYPE = IT_DATA-BESKZ.
BAPI_MARC1-SM_KEY = IT_DATA-FHORI.
BAPI_MARC1-PERIOD_IND = IT_DATA-PERKZ.
BAPI_MARCX-PLANT = IT_DATA-WERKS.
BAPI_MARCX-PUR_GROUP = 'X'.
BAPI_MARCX-AVAILCHECK = 'X'.
BAPI_MARCX-PROFIT_CTR = 'X'.
BAPI_MARCX-MRP_TYPE = 'X'.
BAPI_MARCX-MRP_CTRLER = 'X'.
BAPI_MARCX-SM_KEY = 'X'.
BAPI_MARCX-LOTSIZEKEY = 'X'.
Storage Location.
BAPI_MARDL-PLANT = IT_DATA-WERKS.
BAPI_MARDL-STGE_LOC = IT_DATA-LGORT.
BAPI_MARDX-PLANT = IT_DATA-WERKS.
BAPI_MARDX-STGE_LOC = IT_DATA-LGORT.
Accounting
BAPI_MBEW1-VAL_AREA = IT_DATA-WERKS.
BAPI_MBEW1-PRICE_CTRL = IT_DATA-VPRSV.
BAPI_MBEW1-VAL_CLASS = IT_DATA-BKLAS.
BAPI_MBEW1-MOVING_PR = IT_DATA-VERPR.
bapi_mbew1-std_price = it_data-stprs.
BAPI_MBEW1-PRICE_UNIT = IT_DATA-PEINH.
BAPI_MBEWX-VAL_AREA = IT_DATA-WERKS.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWX-STD_PRICE = 'X'.
BAPI_MBEWX-PRICE_UNIT = 'X'.
BAPI_MBEWX-MOVING_PR = 'X'.
*--- BAPI to create material
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
STORAGELOCATIONDATA = BAPI_MARDL
STORAGELOCATIONDATAX = BAPI_MARDX
VALUATIONDATA = BAPI_MBEW1
VALUATIONDATAX = BAPI_MBEWX
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA = BAPI_MVKE1
SALESDATAX = BAPI_MVKEX
STORAGETYPEDATA =
STORAGETYPEDATAX =
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = IT_MAKT
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
IF BAPI_RETURN-TYPE = 'E'.
WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,
IT_DATA-MATNR.
ELSEIF BAPI_RETURN-TYPE = 'S'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN = BAPI_RETURN
WRITE: 'Successfully created material' ,IT_DATA-MATNR.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN = BAPI_RETURN
ENDLOOP.
ENDFORM. " UPLOAD_MATMASthe Profit center 1000/sslcommon not created. first create the profit center and then upload your data.check tcode KE52 for created profit centers...
-
Profit center US01/ TP3870 does not exist for 03/23/2011
Hello Team,
Our Profit Center is 6045TP3870 but when SD guy is releasing SD document for Account at VF02, he is getting below error,
"Profit center US01/ TP3870 does not exist for 03/23/2011"
I don't understand why the system has taken part of Profit Center only. Profit center 6045TP3870 is well exist for 03/23/2011.
I have checked the Material Master when the profit Center is correctly maintained.
Can any one help to resolve this issue.
SpandanaHey Spandana,
Make sure the profit center is active, and if it is, check for relevant validations and/or substitutions with user exits. -
Profit center 1000/DUMMY does not exist for 20.06.2011 KM026 - Asset postin
Hi Friends,
While posting asset opening balance (transaction type 100), we are getting the error 'Profit center 1000/DUMMY does not exist for 20.06.2011' for one company code. (not for all company codes. It is giving error to only one company code).
We don't maintain this dummy profit center as we have doc splitting activated for all the compay codes. So, master data for dummy profit center is not there in the system for all the company codes. But all the company codes are working properly except one company code. It is giving dummy profit center error.
Please could any one advice?
Thanks in advance.Hi krishna Kumar,
I guess you are in ECC 6.0 version or above 5.0 version.
Up to 4.7 the profit center accounting was a part of Controlling. But from ECC 6.0 ( Enterprise Centrel Component) the profit center accounting is part of FI.
Regarding the error mentioned by you, you have activated profit center accounting from CO module, and you have assigned the number ranges for Profit Center Accounting, this means for the documents with the profit center account assingment system will generate 1 FI Document and 1 profit center document.
So wherever system is not able to find the profit center it will try to post the document for dummy profit center.
As per my experience with ECC 6.0 we need not activate and assign the number ranges for profit center documents.
Except OKE5 settings no other settings are required for profit center.
The above all is if you dont want to use classic profit center accounting. So first please check your requirement and take the decision.
thanks & regards,
shashi kanth. -
Profit Center was not maintained during order n billing creation.
Dear, Gurus
I'm facing a problem of Profit Center. User created a service material, maintenance contract. They created a Billing Document as it is order related billing. Accounting document was not generated when saving invoice. When I got to the bottom of this I realized no costing tabs were ever maintained for material type services. (Henceforth no Profit Center in Sales Order n Invoice).
I have done the necessary config n assignments but question now is what should I do as in billing doc the field is greyed out it will not allow me to assign Pr Center now. I am thinking that this may work if I cancel the billing document and then go back to sales order and try and changing the field, then re-create the invoice. I'm trying to avoid canceling. Is there any program, bapi, user exit I may use to re assign or make system re check the MM while saving invoice to allow accounting document to be created? This is one scenario.
2nd scenario is similar but in the case of this contract everything was made. Accounting document was cleared even but with some dummy weird Profit Center. (No proft center in Order nor invoice.) Whole problem at first in this scenario is User saying everything is complete so status in doc flow should show maintenance contract as complete but wasn't. it showed being processed. I discovered no completion rule was maintained. I maintained E Full target value referenced but status still has not changed any idea guys? (New config not showing on old existing data only show on new document, concept?) Is there a program or anything to make system update status doc flow? aside from this Profit center incompletion log is coming in Contract. Not maintained in order or invoice.In one of my earlier projects, a similar requirement was putforth by users and we had developed a zee tcode to change the profit center in billing document via SM30 which can be done only by FI authorised users.
I am reproducing the said program as under:-
REPORT "ZPROFIT_CHG"
TABLES : VBRP.
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME.
SELECT-OPTIONS : SO_VBELN FOR VBRP-VBELN OBLIGATORY.
PARAMETERS: P_PRO LIKE VBRP-PRCTR OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
DATA : BEGIN OF IT_VBRP OCCURS 0,
VBELN LIKE VBRP-VBELN,
POSNR LIKE VBRP-POSNR,
PRCTR LIKE VBRP-PRCTR,
END OF IT_VBRP.
DATA COUNT(3).
DATA W_MESSAGE(30).
START-OF-SELECTION.
LOOP AT SO_VBELN.
IF SO_VBELN-LOW CA '~`!@#$%^&*()_+|\=-><,.;":' OR SO_VBELN-HIGH CA '~`!@#$%^&*()_+|\=-><,.;":'.
MESSAGE 'Special character not allowed' type 'S'.
LEAVE LIST-PROCESSING.
STOP.
ENDIF.
ENDLOOP.
IF P_PRO CA '~`!@#$%^&*()_+|\=-><,.;":'.
MESSAGE 'Special character not allowed' type 'S'.
LEAVE LIST-PROCESSING.
STOP.
ENDIF.
SELECT B~VBELN B~POSNR B~PRCTR FROM VBRK AS A INNER JOIN VBRP AS B ON A~VBELN EQ B~VBELN INTO CORRESPONDING FIELDS OF TABLE IT_VBRP
WHERE A~VBELN IN SO_VBELN
AND A~FKART EQ 'ZFF2'
AND A~FKSTO NE 'X'.
IF SY-DBCNT EQ 0.
MESSAGE 'NO DATA FOUND' TYPE 'S'.
LEAVE LIST-PROCESSING.
ENDIF.
SORT IT_VBRP BY VBELN.
DELETE ADJACENT DUPLICATES FROM IT_VBRP COMPARING VBELN.
CLEAR COUNT.
IF IT_VBRP[] IS NOT INITIAL AND P_PRO IS NOT INITIAL..
LOOP AT IT_VBRP.
UPDATE VBRP SET PRCTR = P_PRO WHERE VBELN = IT_VBRP-VBELN AND POSNR = IT_VBRP-POSNR.
IF SY-SUBRC = 0.
COUNT = COUNT + 1.
ENDIF.
COMMIT WORK.
CLEAR IT_VBRP.
ENDLOOP.
ENDIF.
IF COUNT IS NOT INITIAL.
CONCATENATE 'No Of Records Updated Is - ' COUNT INTO W_MESSAGE.
MESSAGE I000(ZSFL) WITH W_MESSAGE.
ELSE.
MESSAGE 'No Records Updated' TYPE 'S'.
ENDIF.
Since I am so weak in ABAP coding, not sure whether the above coding is correct. You need to check with your ABAPers and develop this logic. This should work.
thanks
G. Lakshmipathi -
Assignment Profit Center to Plant on material master for Production Order
Hi Experts
Can you help me !
Now I'm trying to lock a profit center to the plant.I've tried searching on the standard menu and customizing but do not get it ?
How to assignment profit center to plant or plant to profit center.
Regards
Dodo MHello Dodo,
1.
You can make an assigment between the profit center and the plant in Customizing (SPRO) in two steps (through the company code), under the following menu path:
Step 1:
Enterprise Structure
Assignment
Financial Accounting
Assign Profit Center to Company Code
Step 2:
Enterprise Structure
Assignment
Logistics - General
Assign plant to company code
So, first you assign the profit center to the company code, then you assign the plant to the company code.
2.
Or you can use the Enhancement MGA00001 for implementing your own check in function module EXIT_SAPLMGMU_001.
You can also check the following help to understand the relationships in details:
Controlling (CO) - SAP Library
http://help.sap.com/saphelp_erp60_sp/helpdata/en/02/30793485231774e10000009b38f83b/frameset.htm
Best Regards,
Dora
Maybe you are looking for
-
How to prevent duplicate of orginal mail (with original sender's name, address) being "attached" when forwarded?
-
Can any one suggest how to connect iPad with LCD tv for see photos or using big screen...then iPad?? Can you suggest how can be connected??
-
BSP vs Webdynpro for integrating with BI/BW
Hi Experts I have a requirement that we need to display BI/BW reports on our microsoft sharepoint by either BSP or Webdynpro could u please advice me which is the best route to go and where can i find examples on how to intergrate BI/BSP reports in B
-
In normal sap screen of customer
hi, sap gurus, in normal sap screen of customer master data CIN DETAILS is not appearing in ECC 6.0 For appearing what are the steps to be followed. regards, balaji
-
Can not getReadMethod a jdk 1.5 bug?
import junit.framework.TestCase; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; import org.apache.taglibs.standard.lang.jstl.BeanInfoManager; import org.apache.taglibs.standard.lang.jstl.