Cancel costs which block settlement within SD-order
Hello,
I have an issue which is derived from an interface error.
Users cannot manually produce it.
Example:
G/L account 4711 1.000 USD posted in June on cost centre.
G/L account 4711 -1.000 USD posted in July on cost centre.
Result: It is balanced out (zero).
When looking at the field status group of the account only the cost centre is open.
The SD-order is not open and not visible during manual posting.
The account is thus not assigned to any line-ID in CO-PA which is o.K.
However, the Interface made a mistake and posted also - in the Background - to an SD-order item.
This can be seen in table BSEG for the FI documents in question.
Effect: The account 4711 blocks KKA3 (the results Analysis) because it is not assigned to any line ID.
...and we do not want to assign it.
Does anyone know about a trick on how to do KKA3 (and the settlement thereafter) nevertheless?
Thanks a lot for any Input.
Thomas
Hi,
I doubt that your cost centre figures are correct, the value type is wrong. The posting to cost centre is statistical in case a sales order position is another CO account assignment (this is the real one). So any cost center report reporting "actual" figures either does not report the statistical posting in june/july or mixes different value types (real/statistical) => no comment.
The only "trick" that comes in my mind is a temporary line ID assigment in the debug mode but I definitely do not suggest to make it that way.
A temporary customizing change for this particular case is the more accurate way, not to forget the correction of the interface.
BR Christian
Similar Messages
-
Periodic cost settlement for production order
Hello All,
Please explain me can we do Periodic cost settlement for production order in discrete manufacturing. If yes, how?
Thanks & Regards,
Alok TiwariWIP entry gets passed to accounts if the order is not in DLV or TECO status.
or else variance gets calculated.
Two GLs which gets hit are
Change in stock a/c Dr.
To Inventory Price Difference a/c Cr. or vice versa......
Regards,
Divraj -
Difference between Cost Ctr under Location tab in order and where we settle
Hi friends ,
In our PM orders under Location tab under the Acct. Assignmnet Category the Cost Ctr comes from object reference .
Also we use to settle orders to cost ctr.
As far as I know the cost Ctr under Location tab specifies the Cost Ctr to which order reference object belongs .
and the cost ctr under settlement specifies the cost ctr at which cost is to be settled .
effects :
If the order cost is 200Rs then if we see the reports FL wise then this Rs200 will be displayed
and if we see the cost ctr wise then it will consider the cost ctr from the settlement rule not from location .This will come after the final setllement by CO team.
Please correct me If I am wrong and also add something to it.
Regards
AMhi
In general the cost center specified in the technical object will get copied under the location tab and settlement receiver ( if receiver category is CTR)
if you want to change settlement cost center you can manually change
regards
thyagarajan -
Blocking creation of production order if standard cost estimate is not done
Hi PP gurus,
Can anyone help me in blocking the creation of production order if the standard cost estimate is not done for the particular posting period.Hi,
I do not think there exist a standart check. You can use exit EXIT_SAPLCOZF_003 to block creation of production order by sending error messages based on any condition.
Regards. -
How to get the list of all process order which are settled?
Hello Friends,
Is there any standard report available to get the list of all settled Process Order or Production order?
Thanking all of you in advance.
Regards,
JitendraHi,
You can the below standardreports for knowing the list of Settled Process Orders :
1. Use Tcode : COOIS and in the selection fields provide the Process Order Type, Plant and System Status As " SETT" and execute the same . System will list all the Process Orders which were settled so far.
2. Use Tcode : CO26 with selection fields as above.
Hope this will suffice your reqt.
Regards
radhak mk -
Automatic Settlement for Prod.orders & Product Cost Collectors.
Dear all,
Please help me how to carryout the Automatic settlement of Production orders &
Product Cost collectors on every month last working day mid night.
Please tell me how to schedule this as an automatic scheduled job.
This program is not been allowed to schedule as a job.
Waiting for your inputs.
Please help me.
Regards
Mangalraj.SHi
Create a Variant with the order types need to be setteled at the period and schedule the same in background processing.
Regards
Venkat -
BAPI/Function module TO block material which is mentioned in sales order
Hi All
Is there any BAPI to block material which is mationed in sales order....
I am using BAPI_MATERIAL_AVAILABILITY to check material availibility
how to block quantity if it is available whicl creating sales order via
"BAPI_SALESORDER_CREATEFROMDATA2"
..ThanksThe normal SAP ATP done in the sales orders use the figure ''committed qty'' meaning that if the ATP has been done and confirmed, that quantity will not appear in the next sales order as available.
So if You're using the normal BAPI to create the sales order, the normal ATP function will be called in the processing.
Nevertheless another solution to this issue is to have the MTO (Make-to-order) solution where the requirements are ''attached'' to one sales order/line only.....like this the problem of the stock being taken to another customer disappears.
To do this you'll have to configure the following :
- Go to SPRO and go to Sales and distribution -> Basic functions -> Availability check and transfer of requirements -> Determination of requirements using transaction - Here insert the entry with your sales order type - MRP type (from material master - you might want to consider create one only for this solution) and you should use one of the following:
- KEL Make-to-order, mat. variants
- KELV Make-to-ord.variant + consump
- KP Make-to-order with project
and choose the origin of your requirement - 1 - Item category + MRP Type
- Than configure the association of the requirement type above to the requirement class (normally is the same code) transaction *OVZH*
- Than configure the requirement class (this is what will tell the system the MTO) transaction *OVZG* - On the screen in the field Special stock - E - Sales order stock and please ask for help from an FI consultant because the area of *Account assignment is very important to be well configured*
About the BAPI you're using - Its correct - That's the normal BAPI to be used, taking only into consideration the product allocation issue - MARA-KOSCH
Explaining a little the BAPI you're using :
The program should check if the selected material is allocated or non-allocated.
This information is stored in a field MARA-KOSCH.
We should check this field and if the field is not empty then material is allocated, otherwise is not:
select kosch into l_kosch
from mara
where matnr = <VBAP-MATNR>. " Selected material
if subrc = 0.
if l_kosch is initial.
+" Perform calculation for non-allocated materials+
else.
+" Perform calculation for allocated materials+
endif.
else.
" Material not found, skip it ...
endif.
For allocated materials it will be checked allocation for the netting market of that Order.
The calculation rules for allocated and non-allocated materials are different.
For Non-allocated materials
BAPI 'BAPI_MATERIAL_AVAILABILITY' should be used for getting the ATP quantity.
Bapi should be called as follows --
data: lfl_bapiwmdvs type bapiwmdvs,
lit_bapiwmdvs type standard table of bapiwmdvs,
lfl_bapiwmdve type bapiwmdve,
lit_bapiwmdve type standard table of bapiwmdve,
l_dialogflag type bapicm61v-diafl.
call function 'BAPI_MATERIAL_AVAILABILITY'
exporting
plant = <VBAP-WERKS>
material = <VBAP-MATNR>
unit = <VBAP- VRKME>
check_rule = 'A'
+* STGE_LOC =+
+* BATCH =+
+* CUSTOMER =+
importing
+* ENDLEADTME =+
+* av_qty_plt =+
DIALOGFLAG = l_dialog
+* RETURN =+
tables
wmdvsx = lit_bapiwmdvs
wmdvex = lit_bapiwmdve.
Please note that table lit_bapiwmdvs is the input table and to this following input should be passed -
lfl_bapiwmdvs-req_date = sy-datum. "Current date
lfl_bapiwmdvs- REQ_QTY = <Unconfirmed Quantity> in Sales Order Unit
append lfl_bapiwmdvs to lit_bapiwmdvs.
The return value l_dailog will be --
' ' --- Quantity can be Delivered -- Item to be displayed in the Report!
'X' --- Complete quantity cannot be delivered -- ATP failed, Item not to be displayed.
'N' --- Material not relevant for ATP --- Item not to be displayed in the Report.
For Allocated materials
For the allocated Materials, we have to first do the ATP check in same fashion as for Non-allocated Materials and then in addition to this ATP check, we have to also check for Allocation from SIS table S941.
If ATP check fails, straight away the Item should be ignored from Output display.
If ATP check passes, we further check allocation as follows --
Valid entry should select from S941 as -
data: l_period like s941-spbup,
l_BUPER LIKE T009B-POPER,
l_GJAHR LIKE T009B-BDATJ,
lfl_s941 type t_s941.
data: l_bukrs type tvko-bukrs,
l_periv type t001-periv.
* Select company code
select single bukrs into l_bukrs
from tvko
where vkorg = <VBAK-VKORG>.
* Select fiscal year variant
select single periv into l_periv
from t001
where bukrs = l_bukrs.
* Get Period
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
I_DATE = sy-datum
I_PERIV = l_periv
IMPORTING
E_BUPER = l_buper
E_GJAHR = l_gjahr
EXCEPTIONS
INPUT_FALSE = 1
T009_NOTFOUND = 2
T009B_NOTFOUND = 3
OTHERS = 4
IF SY-SUBRC <> 0.
* Ignore entry and skip further processing
ENDIF.
concatenate l_gjahr l_buper+1(2) into l_period.
select single kcqty aemenge from s941
into corresponding fields of lfl_s941
where SPBUP = l_period
and KONOB = 'OBJ_ALL_MATERIALS'
AND MATNR = <VBAP-MATNR>
and zzcnetmark = <VBAK-ZZCNETMARK>
and VRSIO EQ '000'.
IF SY-SUBRC <> 0.
*Ignore entry and skip further processing
ENDIF.
Remaining Allocation = difference between product allocation quantity and incoming order quantity
i.e. (S941-KCQTY - S941-AEMENGE). Now we have to compare this qty with the Unconfirmed qty.
Ensure same Material UOM for quantity comparison as follows --
IF <VBAP-VRKME> NE <S941-BASME>.
CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
EXPORTING
i_matnr = <VBAP-MATNR>
i_in_me = <VBAP-VRKME>
i_out_me = <S941-BASME>
i_menge = <Unconfirmed qty in Sales UOM>
IMPORTING
e_menge = l_menge
EXCEPTIONS
error_in_application = 1
error = 2
OTHERS = 3.
IF sy-subrc <> 0.
* Ignore entry and skip further processing
ENDIF.
ELSE.
*If both Units are same no need for conversion
l_menge = <Unconfirmed qty in Sales UOM>
ENDIF.
Then, compare if Remaining Allocation > = l_menge i.e. Unconfirmed quantity converted to S941-BASME unit, then there is enough allocation for this Material for the Unconfirmed quantity and should be displayed in the report.
Else, the Item should be ignored. -
User status for investment order to block settlement to final asset
Hi,
I try to set up a user status to avoid user to settle internal/ investment order to final asset. I cannot find a user status that will let me make the distinction between the automatic settlement to AuC and the partial or full settlement to final asset.
The process we are using is that we do automatic settlement from investment order to AuC on a weekly basis and as soon as the final asset has been entered via KOB5 (distribution of line item) we would like to setlle it.
Do you know a way to set up a user status on an internal order to allow settlement to Asset under construction but not to final asset?
Thanks
SabineHi,
I do not want to send the costs directly to final asset. Costs booked against the investment order should always first go to AuC and then to final asset. What we try to avoid is to have the 2 settlements immediately one after the other. We would like to have the settlement to AuC on a weekly basis and the other one only when capitalization is required. But if the final asset is already entered in the settlement rule of the order via KOB5, then there is a risk to settle to final asset. We would like to only run the second type of settlement only when the asset is ready to be capitalized. To be able to do that we thought about using the user status. For example, if status is "release", we could settle to Auc but not to final asset and if status is "approved", we could settle to final asset.
Do you see what I mean? I need a status that allows me to perform some transactions and another one that allows me some other business transactions. The problem is that the 2 settlements I am talking about are not recognized as business transaction but as processing type.
Any ideas?
Thanks
Sabine
Edited by: Sabine Janssen on Oct 14, 2009 10:46 AM -
Order by the names in hashMaps which are contained within a collection
Hi All,
Is there a way to order by the names in hashMaps which are contained within a collection?
Collection-->hmp1(nrPerson1, nameB);
hmp2(nrPerson2, nameC);
hmp3(nrPerson3, nameA);
Now what i need to display is (nrPerson3,nameA), (nrPerson1,nameB), (nrPerson2, nameC)...
Any suggestion will be greatly appreciated!
ShuaibingI just set the TreeSet with the values as you suggested, but the results seems to the same as usual, Can you check the following codes? I think I need have to give a initial parameter for the TreeSet constructor, but I do not know how to write the Comparator.
public String getIntermediaryCO(){
Contact contact=new Contact();
Collection colnNrContactsInterCo=contact.getAllIntermediaryCompany();
//test
TreeSet treeSet=new TreeSet();
HashMap hmpForOrder=new HashMap();
if(colnNrContactsInterCo!=null && !colnNrContactsInterCo.isEmpty()){
Iterator iter=colnNrContactsInterCo.iterator();
while(iter.hasNext()){
HashMap hmp=(HashMap)iter.next();
hmpForOrder.put(hmp.get("name"),hmp.get("nrContact"));
treeSet.add(hmpForOrder.keySet());
//print the ordered, unique set
Iterator iterator = treeSet.iterator();
while( iterator.hasNext() ) {
System.out.println( "the list of sorted intermediary companies' names="+iterator.next() );
//test
public Collection getAllIntermediaryCompany(){
Collection colnContacts=new ArrayList();
ContactCov contactCov=new ContactCov();
try{
String sql="SELECT DISTINCT NR_CONTACT from CONTACT_TYPE where CD_CONTACT_TYPE=5";
jdbc = new JDBCConnection("1");
rs=jdbc.executeQuery(sql);
if(rs!=null){
while(rs.next()){
String nrContact=rs.getString("NR_CONTACT");
VOContact voContact=contactCov.getContactByNrContact(nrContact);
if(voContact!=null){
HashMap hmp=new HashMap();
hmp.put("name",voContact.getName());
hmp.put("nrContact",nrContact);
colnContacts.add(hmp);
}catch(Exception e){
logger.error(e.toString());
}finally{
try{
if(rs!=null)rs.close();
if(jdbc!=null)jdbc.close();
}catch(Exception e){}
return colnContacts;
} -
How to keep DLV status orders cost not to settle
How to keep the dollars associated with production orders at DLV status in WIP and not let them settle to the P&L like orders at TECO status do
settlement can happen with DLV status and TECO is not a must for settlement.
Hence only wayout is not by diverting the settlement to somoe other GL a/c if TECO is not done and diverting the setelemt to P and L if TECO is done. It is deficult to reconcile
Other simple way is change the business proccess, Run the settlement if the order is TECO. How to check that TECO is done or not?
Chekc the orders in COOIS first and then go for settlement.
Or give a Z transaction where user will enter the order number and Z prog will check the status first, then take him to settlement screen, if not it will retun with message- make the status TECO. If you want i can help you if you are planning to go for developement. -
Validate cost center in settlement rule while creating WO in IW31
Hi All,
I have a requirement to check whether the cost centers in settlement tab is blocked or not. If it is blocked need to give an error.
Is it possible to implement this using an user exit?..
Thanks,
SpandanaHi Chetan,
I agree with you that when PR is created thro repair order the A/C assignment category will be 'F',I am not concerned about that and its a SAP std.I am concerned about the automatic cost center population on the PR created from that order.I'll explain you in detail - It goes like this, We are creating a Service Order in IW31for a material X and this material goes sequentialy in operation which it requires, it depends on the control key SM01 whether the operation is to be processed internally or externally,So when it goes for external processing for which the key SM02 is configured and while saving this order a PR is created from this order and as you said this this PR will have A/c assignment category 'F' and its relevant G/L a/c and the order in it.So if you check the cost center field which is in between this G/L a/c and the order it will not appear as it has to be entered manually.So i need this to be automatically determined.
Hope this clarifies.
Thx
Benny -
Error While doing settlement for Sale Order in MTO scenario
Hi,
In MTO Scenario - when i try to settle Sales Order i am getting the below error. Even i have maintained the settlement cost element for PSG in allocation structure A1.
Kindly help me
Define a settlement cost element for receiver type PSG
Message no. KD506
Diagnosis
In allocation structure A1 (controlling area BP01), you did not define which cost element should be used when settling costs/revenues of the sender. Nor did you define receiver type PSG.
Procedure
Assign a different allocation structure to the settlement sender (-> Master data -> Settlement rule -> Goto -> Settlement parameters), or maintain allocation structure A1.
Thanks
KishoreHi
Please check your allocation structure , it looks that settlement cost element that you have assigned in the allocation strcuture is not having correct cost element category.
Go to Allocation structure configuration (OKO6) and check your allocation structure A1.
check settlement cost elements is it by cost element or you have assigned separate cost element for settlement.
if you wants to settle with same cost element select By cost element.
if you wants to settle with different cost element create a cost element and assign settlement cost element.
http://help.sap.com/saphelp_di46c2/helpdata/EN/9d/1f4b6e5733d1118b3f0060b03ca329/frameset.htm
hope this helps you.
Regards -
Production order settlement - Make to order scenario
hi experts.
i'm getting Error message . while doing settlement in ko88 (processing type - Automatic)
Define a settlement cost element for receiver type SDI
Message no. KD506
Diagnosis
In allocation structure A1 (controlling area P001), you did not define which cost element should be used when settling costs/revenues of the sender. Nor did you define receiver type SDI.
Procedure
Assign a different allocation structure to the settlement sender (-> Master data -> Settlement rule -> Go to -> Settlement parameters), or maintain allocation structure A1.
if i need to create cost element means, under wat category, i have to create
where i should assign this???
give me some solution ???/
thanks in advanceHi Prakash,
You create a Settlement Profile and assign allocation structure to it. settlement profile contain the default cost object and other allowed cost objects to which the cost can be settled.
Now how system does the settlement to the respective object is based on the parameters defined in allocation structure.
The allocation structure contains:
1. Source of costs (as u mentioned in various headings like personal, admin cost etc)
2. You need to define there the details of the source of the cost (means the cost elements from which the cost is captured)
3. there itself you need to define how those costs need to be settled. whether by secondary cost element or by original cost elements
4. Once you define, then you are good to go with the settlement
I hope the settlement profile already defined in the order types
Please let me know if you need furhter details in this regard
Best Regards
Surya -
Settling investment internal orders to an asset (AA310 msg)
hi.
I am wondering if somebody can shed some light for me on the following:
let's say we have 2 investment internal orders (representing 2 different projects) which are to be settled to one asset.
for the 1st order the job was done and the status changed to TECO in 2010. Upon full settlement (KO8G, full ) the cost has been settled to an asset (from AuC) and the asset has been capitalized. the capitalization (aquisition) date was set to the end of the period (e.g. Dec 31, 2010).
the status of the 2nd order has been changed to TECO in 2011. Currently when I'm trying to do a full settlement of the 2nd IO (with KO8G, partial capilazation) I'm getting AA310 (asset value date in diff year) as far as the system is trying to default the asset value date to date when the IO status was chagned to TECO (2011). I do not want to default the asset value date on the KOG8 screen.
The question - what is wrong in my approach and what should I do in the case I have a second investment orders to settle to a final asset.
Sorry if I was not clear, i'm primarly an abaper but trying to understand some business processes related to internal orders and settlement. any information to understand this relationship would be appreciated.
thank you,
viktorCreation of Internal Order- KO01
Maintain Settlement receiver as the AUC asset
Settle the Internal Order- KO88
Now the values have come to AUC asset
Distribution of AUC- AIAB
Enter the Settlement receiver as the Main Asset
Settlement of AUC- AIBU -
Settlement from internal order to asset under construction
HI All,
I have allocated some labors hours cost from production cost centers to real order which is created for allocating the internal cost to asset under construction.
when i allocate the labor hours by using the "KB21N" it has used the secondary cost element that is "Internal activity allocation" cost element "1200002".
i have given the source cost element "1200002" which is created as "internal activity allocation" and in settlement cost elements folder i have given receiving category is "FXA" and selected by cost element check box. i selected required entry field in settlement profile and assigned in order type.
when i do the settlement to asset under construction from internal order it is showing bellow errow.
"Settlement by cost element not possible due to secondary cost element
Message no. KD553
Diagnosis
You want to settle the secondary cost element 1200002 by cost element to an asset or G/L account, which is not allowed.
Procedure
Extend your allocation structure R3, so that secondary cost elements are not settled by cost element, but with a settlement cost element."
please let me know the problem and where i did mistake. give me the solution
thanks in advance
Mr.RaoHI,
in your allocation structure R3 you entered in the view "Settlement cost element" that settlement receiver categoy FXA receives values "by cost element". This is only possible for primary cost elements. For internal activities do not tick "by cost element" but use a settlement cost element with cost element category "22".
best regards, Christian
Maybe you are looking for
-
How can I display appraisals in "employee search(MSS)"?
I created a new iView that is copied from employee search of MSS . <pcd:portal_content/com.sap.pct/line_manager/com.sap.pct.erp.mss.bp_folder/com.sap.pct.erp.mss.iviews/com.sap.pct.erp.mss.hcm/com.sap.pct.erp.mss.generalinfo_employeesearch> I changed
-
PID control of Counters (PWM)
Hello everybody!! I work on a closed loop PID controlled problem (Labview 8.5) and I have a couple of questions in order to make some progress! Firstly, I have to declare that my loop is composed of 2 AI channels (2 accelerometers), 1 AO channel (exc
-
Is it possible to swap the JServ engine (supports Java Servlet 1.1) that comes with 9iAS with Apache's Tomcat v3.1.2 (which supports Java Servlet 2.2 and JSP 1.1)? Has this been tested or certified by Oracle?
-
How can I determine which generation ipad I have?
how can I determine which generation ipad I have. It was a gift last year.
-
I have deployed my ear file and started the application using the Deploy Tool. When i try to access the index.jsp page using the link: http://localhost:50000/max/index.jsp i get the error as below: <b>The request can't be processed. Details: Cannot l