Possibility of creating Settlement Rule in Background?
Hi Gurus,
When I am doing TECO of the Maintenance Order everytime I have to create Settlement Rule.
My settlement receiver Category (Cost Center) and Cost Center are fixed for Order Type.
Is it possible to create Settlement rule in the background while doing TECO of the Order.
Please suggest if any User Exit is there.
With best regards,
Narendra
Narendra,
We are looking at exactly the same issue.
As you are aware, you can only default one cost centre via the equip/floc...
The only way we can see to have a pre-defined cost centre by order type/plant is to use user-exit [IWO10027|http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf] (default settlement rules).
PeteA
Similar Messages
-
Is it possible to create a rule across 2 models?
Is it possible to create a rule across 2 models? I added Jack as a creator of an articles in articles model and then I added a row to make creator a subclass of person. So now I'm trying to query across 2 models. I was trying the following query. Give me the grandfather of the author of the article with the title ERNIEX
SELECT m grandfater, c creator, t title
FROM TABLE(SDO_RDF_MATCH(
'(?t :title "ERNIEX") (?m fam:grandParentOf ?c)',
SDO_RDF_Models('articles2', 'family'),
SDO_RDF_Rulebases('RDFS', 'family_rb'),
SDO_RDF_Aliases(SDO_RDF_Alias('','http://purl.org/dc/elements/1.1/'), SDO_RDF_Alias('fam','http://www.example.org/family/')),
null));
When I run the query about I get the error
ORA-20000: We do not have a valid rules index for this Model-Rulebase combination
So I thought to create a index but I'm not sure how. I tired the following code but I think I'm doing something wrong. Can anyone point me in the right direction. Or for that matter does anyone know of a more extensive tutorial to using the database? Thanks
BEGIN
SDO_RDF_INFERENCE.CREATE_RULES_INDEX(
'rdfs_rix_articles2_faily',
SDO_RDF_Models('family', 'articles2'),
SDO_RDF_Rulebases('RDFS','family_rb')
END;
Ernest LimYou are right, a rules index would have to be created for the rulebases and both the models you use in the query. The example in the rules index creation you have shown at the end of your post does exactly that - creates a rules index for the set of rulebases and models: RDFS, family_rb, family, articles2. Once that rules index is created you should be able to run the query without getting the error.
Did you get an error while trying to create a rules index using the code shown in your post?
FYI, a forum for posting semantics questions is at RDF Semantic Graph -
Hello Experts,
I need to create settlement rule for work order.
Got one FM K_ORDER_SRULE_ADD but don't know how to use it.
Is this FM correct one to create settlement rule?
Can anyone please send sample code for FM?
Thanks in Advance,
Ripal.Hi everybody,
I found in a Rusian foruma way to create a settlement rule using the functions of the FM KOBS. I changed a bit the code because my requirement was just to update the field URZUO of the settlement rule. The original post (in Russian) can be found here.
My implementation is more simple because the requirement was different:
types: begin of ty_objnr,
objnr like prps-objnr,
end of ty_objnr.
*.COBRA-Buffer (see FM KOBS)
types: begin of ty_cobra_buf.
include structure cobra.
types: uflag like dkobr-upd_flag,
end of ty_cobra_buf.
types: ty_t_cobra_buf type ty_cobra_buf occurs 10.
*.COBRB-Puffer mit Änderungsflag (see FM KOBS)
types: begin of ty_cobrb_buf.
include structure cobrb.
types: uflag like dkobr-upd_flag,
end of ty_cobrb_buf.
types: ty_t_cobrb_buf type ty_cobrb_buf occurs 10.
* Internal tables *
data: it_abrechnug type standard table of ty_abrechnung,
it_objnr type standard table of ty_objnr,
it_cobra like table of cobra with header line,
it_cobrb like table of cobrb with header line.
* Data *
data: wa_cobra_buf type ty_t_cobra_buf,
wa_cobrb_buf type ty_t_cobrb_buf,
wa_objnr like line of it_objnr,
wa_urzuo like cobrb-urzuo,
l_mem_cobrb like wa_cobrb_buf[],
l_mem_cobra like wa_cobra_buf[],
l_mem_cobrb_zeile like line of l_mem_cobrb,
l_mem_cobra_zeile like line of l_mem_cobra.
form urzuo_aendern using p_objnr p_pspnr p_urzuo.
data: c_objnr like prps-objnr,
c_pspnr like prps-pspnr,
c_urzuo like cobrb-urzuo.
c_objnr = p_objnr.
c_pspnr = p_pspnr.
c_urzuo = p_urzuo.
refresh: it_objnr,
it_cobra,
it_cobrb,
l_mem_cobra,
l_mem_cobrb.
wa_objnr = c_objnr.
append wa_objnr to it_objnr.
* Reas settlement rule from the DM
call function 'K_SRULE_PRE_READ'
exporting
i_pflege = ' '
tables
t_sender_objnr = it_objnr
* T_COBRA =
exceptions
wrong_parameters = 1
others = 2.
if sy-subrc <> 0.
perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
* Fill internal buffer with settlement rules
call function 'K_SETTLEMENT_RULE_GET'
exporting
objnr = c_objnr
x_all = ' '
tables
e_cobra = it_cobra
e_cobrb = it_cobrb
exceptions
not_found = 1
others = 2.
if sy-subrc <> 0.
perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
* Save settlement rule in ABAP-Memory
call function 'K_SRULE_EXPORT_IMPORT'
exporting
i_mode = 'EX'
exceptions
wrong_mode = 1
others = 2.
if sy-subrc <> 0.
perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
* Read ABAP-Memory
import l_mem_cobra l_mem_cobrb from memory id 'K_SRULE'.
* Change field URZUO and set Update-Flag
loop at l_mem_cobrb into l_mem_cobrb_zeile where urzuo is initial.
l_mem_cobrb_zeile-urzuo = p_urzuo.
l_mem_cobrb_zeile-uflag = 'U'. "Update Kennzeichen
modify l_mem_cobrb from l_mem_cobrb_zeile transporting urzuo uflag.
endloop.
* Clear internal buffer
call function 'K_SETTLEMENT_RULE_REFRESH'
exporting
objnr = c_objnr.
* Fill ABAP-Memory with new rules
export l_mem_cobra l_mem_cobrb to memory id 'K_SRULE'.
* Fill internal buffer with new rules
call function 'K_SRULE_EXPORT_IMPORT'
exporting
i_mode = 'IM'
exceptions
wrong_mode = 1
others = 2.
if sy-subrc <> 0.
perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
* SAve new rules
call function 'K_SETTLEMENT_RULE_SAVE'
exporting
dialog = 'X'
objnr = c_objnr
i_status_update = ' '
exceptions
no_rule_for_objnr = 1
others = 2.
if sy-subrc <> 0.
perform error using c_pspnr sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
commit work.
perform erfolg using c_pspnr.
endform. " URZUO_AENDERN
Hope it helps,
Jaime -
CJB1/CJB2 will Create Settlement Rule only on Last level of WBS
In Investment projects the client want to settle last level WBS to top level WBS and from top level WBS to AUC and capitalise it. Since we have so many WBS in structure hence we want to use CJB1/CJB2 for settlement rule creation. But CJB1 and CJB2 is createing WBS on all level of WBS. Can any body tell me, what configuration/settings i need to do so that CJB1/CJB2 will create Settlement Rule only on Last level of WBS.
Edited by: Vipul Mehta on Aug 28, 2011 3:19 PMHi Sreekant,
I checked in SPRO; PS > Costs > Automatic & Periodic Allocations > Settlement > Sett Rule for WBS > BADI for CJB1 / CJB2, there is so many BADI is available. Please let me know BADI name, which is help me to create settlement rule create at WBS last level through CJB1 / CJB2.
Regards
Vipul Mehta -
BAPI/ Function Modules for creating Settlement rules for Project in CJ01 .
Hi Experts ,
I need to create Settlement rules for WBS elements in Projects . Please let me know if there are any BAPI or Function Modules for the same . The Function Modules "k_settlement_rules_update" , "IBAPI_ALM_ORDERSRULE_CREATE" & 'K_SRULE_CREATE'
are in "Not Released" status . so our practices does not allow us to use them .. please suggest any other BAPI or FM for creating Settlement rules .
Thanks in advance ...
AnilHi ,
Thanx for ur prompt reply , This function module is used for creating WBS elements . I didnot find any parameters or process to create settlement rule .. Please let me know how to use this or if there are any other BAPI available .
Thanks
Anil -
Error while creating settlement rule
We are trying to create a Settlement Rule for a Production Order for material 900010001 with following details:
Cat:MAT
Settlement Receiver:900010001
% :100
Settlement Type:FUL
System is giving an error msg. no.KD063 'Distribution rule for an Article can only be created automatically'.
Can anyone help us in analysing the same.
We want that while creating a Production Order Settlement Rule shall be created by default for Cat:MAT & Settlement Receiver:900010001 (Material of Production Order).Can anyone guide us how the same can be achieved.
With Rgds.,
Rakesh KumarHi..
please try this....Goto KSR2_VBP.
THere are two strategies.. 01 and 02.
01 for manual creation of settlement rules
02 for auto creation..
first check whether 01 and 02 are in your plant.
Sales and distrib....basic functions......auto gen. of settlement rules.......
here you ll find two activities.
(1)maintaining the settlement strategies and
(2)activating one among them.
If you activate 02, your problem will be solved..
Also check this..
http://help.sap.com/erp2005_ehp_03/helpdata/EN/a9/ab777d414111d182b10000e829fbfe/frameset.htm
The settlement profile is to be defined for thee particular Order Type to generate automatically.
Define Production Order Type in OPJH
Under Cost controlling check the settlement profile .
If not create the same in OPJH.
Settlement Profile: Create settlement profile - SPRO > Controlling > Product Cost Controlling > Product cost by Order > Period End Closing > Settlement > Create Settlement Profile
Enter Settlement profile from OPJH or Choose one for production order
and configure Settlement profile. Indicators
with wishes
karthick. -
Is it possible to create APEX user in background?
Hi experts,
I have a page to create new user with the following items in an application:
P1_USER_ID
P1_EMAIL
P1_PASSWORD
It is using Automatic Row Processing (DML) to insert these to PEOPLE table.
When submit it above in the same time, I would like to create APEX's user using the values which are specified on it above.
I think that I can use APEX_UTIL.CREATE_USER, but the user who log into the current application with APEX authentication does not have admin privilege. I guess that the operation might fail. Correct?
Or, is it possible to create APEX user without admin privs if it is background?
Thanks in advance,
RuiHello,
>> but the user who log into the current application with APEX authentication does not have admin privilege. I guess that the operation might fail. Correct?
Yes, correct. To execute APEX_UTIL.CREATE_USER, the current user must have administrative privileges - http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/api.htm#BABCFBGG .
>> Or, is it possible to create APEX user without admin privs if it is background?
I don’t see the relevance of a background process, in this context. The admin privileges demand is there to prevent un-authorized users to open new users, without any control. It seems to me like a recipe for chaos to allow every user to define new users in the application.
Regards,
Arie. -
Create settlement rule for Maintenance plan
We have a requirement to create a maintenance plan and assign a settlement rule to the same. I was able to create the maintenance plan using MPLAN_CREATE. I created the settlement rule using the function module K_SRULE_SAVE_UTASK. My problem is when I go to IP03 to check if the settlement rule has been created for the maintenance item, it is not found. When I go to IP02 and click on create and go into the settlement rule maintenance screen, I'm able to see the settlement rule created using the function module.but in the MPOS table, I don't see the indicator IND_ABRVO ( settlement rule indicator ) being maintained.
Can you please help in finding out what I'm missing.
Edited by: Sujay Venkateswaran Krishnakumar on Dec 31, 2009 11:34 AMSri Vas,
Is this specific to a particular WBS element or does it happen for ANY WBS element? The WBS element may not have been setup properly.Check the same WBS element directly by going to the WBS element change transaction.Also check the account assignment and status of the WBS element that Ramesh had suggested. If the WBS element has been defined properly,Try changing the settlement rule to a cost center and see if you still get this error.
Regards
Narasimhan -
Warning while creating settlement rule
Hi,
I have a scenario where user is creating distribution rule using CJIC ( Final settlement rule). Here user is getting a warning message Enter %, equivalence No, or amount.
Please note that here even after the % = 100 to FXA, the user is getting this warning everytime.
Can someone please help me wht could be the reason for same ?
BR
AnjaliHi
Try to enter "Either" % "OR" Equiv no. "OR" amount only & check.
regards -
CJIC - Creating settlement rule
Hello,
When creating a settlement rule (CJIC), I used function module K_SRULE_SAVE_UTASK in ECC 5.0 . for this I created an internal table of the similar structure as of COBRB table and fill all the desired fields in that and pass this table with BAPI.
In this case, Data is inserted to the table COBRB through BAPI . but Record is not populated with T Code (CJIC).
Can anyone please help me.
Thanks,
RehanHi
Try to enter "Either" % "OR" Equiv no. "OR" amount only & check.
regards -
Is there any BAPI to create/change Settlement Rule?(Transaction code: KO01/KO02)
Regards,
SavithaHi
try with this BAPI
BAPI_INTERNALORDER_CREATE Create Internal Order From Transferred Data
BAPI_INTERNALORDER_GETDETAIL Display master data, status, and allowed business trans.for internal
BAPI_INTERNALORDER_GETLIST Display list of internal orders according to various criteria
Thanka manju -
Exit/BADI for creating settlement rules in IW32 upon release of order
I need settlement rules to be populated in IW32 when an order is released.
The data for the settlement rules population will be obtained from a Z table based on Order type and Maintenance Activity Type.
I am not able to find out a suitable BADI/EXIT to fulfill this requirement. Has anybody worked on this kind of requirement earlier? Please suggest an EXIT/BADI/BTE for this.
Thanks in Advance!!Hi Harveen,
How did you populate the fields in K_ORDER_SRULE_ADD. Which ones did you populate. I keep getting an error message.
Receiver categ. is not allowed by settlement prof. PM0001 for this sender
Message no. KD031 Diagnosis The settlement profile specifies which receiver
categories you can settle a sender to. Receiver category is not allowed by
settlement profile PM0001 for this sender.
Procedure
You can do the following:
Assign a settlement profile to the sender, that implements the
required receiver category .
Choose "Goto -> Settlement Parameters".
Specify another receiver for distribution rule 009. If you already
used this rule for a previous settlement, enter a valid-to period. Then
enter a new rule for the next settlement with a receiver category. This
category must be one that is allowed by settlement profile PM0001.
Procedure for System Administration
If necessary, maintain a suitable settlement profile.
Would very much appreciate your help.
Cheers
Eunice -
Create Settlement rule for L2 WBS via CJB1/2
Hi Everyone
In the past we have settled WBS elements to either PSG/CCtr/AUC. We now want to have WBS hierarchies where the lower level WBS element will settle up to the superior (Level 1) WBS element.
I have configured the following items in EEC 6.0:
Created new Allocation Structure (Z4), this is a copy of WBS settlement to PSG, changed the reciever catergory to WBS element
Created new settlement profile (Z00005) with allocation Structure Z4
In the settlement strategy have added the new settlement profile with the following settings:
Account assignment element - Active
Settlement Profile - Z00005
AAt Assugn Cat.- 5 (Superior WBS element)
N:1 SD-PS - Active
I also have the existing setting to the PSG with RA key populated.
When I execute CJB2, it states that three two records processed, no errors. However when I look at the master data, only rule is created on Level 1 WBS and not lower level.
Can anyone help?
GurpritHi Abdul
Created a new one - only the L1 was updated with a SETC. Log from CJB1 shows the following:
Project Object Strategy Bill Acct Org.c SProf. AcctAsgnCt N:1 RA Key Recipient AA fld
E0108003040000 E0108003040001 Z6 X Z00003 Profitability s X Z00006 PrfSeg assigned Old
E0108003040000 E0108003040002 Z6 X Z00005 X 0
E0108003040000 E0108003040003 Z6 X Z00005 X 0
Any thoughts? -
Another quick one - possible to create Style without Foreground/Background?
Hi,
I'm using Styles to change backgrounds and foregrounds in a JTextPane, and I want it to be possible to add a style to a section of text without affecting other attributes of that text, e.g., if a text colour is red and that style is called "Red", I want to be able to change the background to yellow without having to specify a foreground colour in the style called "YellowBackground", so that it can be used on black text or red text and it won't affect the text colour but will make the bakground yellow. Similarly for changing text colour, etc. I'm not sure if I've made myself clear enough, but does anyone know how to only affect the attributes you explicitly change in a Style?
Thanks
AaronHow does the example in the tutorial work?
You can select some text and then click or the "Bold" or "Italic" or "Foreground" or "Background" button. The attribute is added to what already exists, it doesn't replace all the attributes. So check out the source code to see how those Actions work. I believe they just add a new attribute to that piece of text. -
Is it possible to create exception rule in Comparator sort order?
I have been working on trying to learn how to use Comparators to sort Collections... In one of my recent experiments, I tried to order a PriorityQueue of String elements alphabetically, in ascending order, with one exception: any word beginning with the letter "z" should be given a higher priority than any other word. I haven't been able to find a way to do this, nor to discern whether or not it's possible.
Any help is appreciated.Try something like this:public class MyComparator implements Comparator<String> {
@Override
public int compare(String s1, String s2) {
boolean s1StartsWithZ = s1.startsWith("z");
boolean s2StartsWithZ = s2.startsWith("z");
if (s1StartsWithZ && !s2StartsWithZ) return 1;
if (s2StartsWithZ && !s1StartsWithZ) return -1;
return s1.compareTo(s2);
}
Maybe you are looking for
-
FTP transfer with lid closed on MB
Hi there If I start sending files by FTP using USB mobile broadband, and then close the lid on my MB, will it disconnect and stop the transfer or keep the connection open and keep working. I quite often have to send a lot of files while out on locati
-
Hi, I have a client that needs to import a variety of EDI document types (846, 852, 867), etc... I was looking at the B2B user guide and it stated that you can use the X12 transaction sets (850, 855 and 997) when you create a business action. Does th
-
Hello I am trying to mimic the FOR XML EXPLICIT behavior of SQL Server code in Oracle 11g. The XML EXPILICT mode transforms the rowset that results from the query execution into an XML document and it preserves the parent child relationship in the XM
-
Cannot connect to itunes store ipod touch via router
I am new to Ipod ownership and so far its been a good experience. I have been searching on the web but not been able to find a solution to my problem. The issue I have is that recently I cannot download apps from the app store via my home router. I c
-
For the last few days, I think it was after an update in Firefox or an update in Adobe reader, I cannot save a PDF file from the web and then open it with either Adobe Reader or PDFlite. The file opens and I can read it just fine within Firefox using