Problem with changing settlement rule

In a serviceorder when a user changes the wbs element in the additional data tab he or she also needs to change the settlement rule accordingly
further on their needs to be a check if the new wbs element is not TAFS and if the element is a wbs element (since also projects can be filled in here)
I have managed to programm the check in user exit EXIT_SAPLCOIH_009
there I can find out the new value entered by the user and check if it's correct
I only can't get the new filled in values before save from the settlement rule
when I use
    ASSIGN ('(SAPLKOBS)dkobr') TO <dkobr>.
    CHECK <dkobr> IS ASSIGNED.
the new values for the wbs element are not filled in dkobr when the user exit is running
is there any other way to find the new values for the settlement rule in memory in the user exit mentioned above ?
or is there a bapi or function to adapt the settlement rule automaticaly ?
I have looked at K_ORDER_SETTLEMENT_RULE but I don't see where you can enter the WBS element in this function ?
kind regards
arthur
Message was edited by:
        A. de Smidt

You can achieve this by using the BADI - CO_SRULE_CHECK. ( Use Transaction SE18).
You implement this BADI - in the method DISTRIBUTION_RULE_CHECK you will be getting the Settlement lines. ( returned by COBRB - this table stores the settlement rules by object numbers - Object number of the Order is stored in AUFK).
From the above mentioned method - DISTRIBUTION_RULE_CHECK , you call a FM - READ_NOTIFICATION_BUFFER. This will return all the buffered data for Notification/Order. You can check the ncessary conditions and raise exception message.
You can use these follwing FMs from your customer exit - EXIT_SAPLCOIH_010 for changing the Settlement rules ( if you want to go that way) -
K_SETTLEMENT_RULES_UPDATE
K_SETTLEMENT_RULE_COPY
or search with K_SETTLEMENT_RULE* to get the list of usefull FMs.
Hope it helps.

Similar Messages

  • Problem with periodic settlement rule

    Hello everybody.
    We are working with SAP ECC 6.0, in a poultry industry which produces egg for consumption. We have defined for address the production costs, a periodic Settlement Rule, considering the percentage of egg production by type (A, B, C, Jumbo, and so on), for each shed. The order is created with 18 weeks of life during the growing chickens phase, and 62 weeks during the production phase (eggs production). The process requires settling them on a daily basis to be able to update the cost of the product. Due to the own typical of the process, each bird produces a variable amount of eggs by type and day, therefore it is not possible to be established with exactitude the percentage of the daily production of each type of egg. Due to it, when we establish the percentage of the Settlement rule, these do not reflect the reality of the production of the day, because they are fixed by the system after the first settlement. We need to know if a possibility exists of being able to daily update the percentages of the Settlement rule before you settle each order daily maintaining the same order.
    Waiting you could help,
    Kind regards,
    Elvis E. Henriquez A.

    I am a hobby farmer and have 5 chickens as well. The closest thing to this which I have seen here in the security forum is an abstract discussion about the chicken-or-the-egg-first dilemma in general... and another about some users being "like a fox in a chicken house"...
    Perhaps you want to take a look around the SDN site for a more appropriate forum and let me know which one you would like to have this thread moved into.
    Also search the blog area for this, as I distinctly remember some blogs on the topic a few months ago.
    Cheers,
    Julius

  • GR/IR expenses not affected with the settlement rule run process in the GL

    <i><b>Please neglect by previous post with the same title</b></i>
    There is a problem I face while running the settlement rule process related to internal orders on the GR/IR expenses.
    According to the internal order settlement rule every expense associated to an Internal order no. whether its an account payable or manual journal accounts it should be settled (distributed) on the cost centers specified in each internal order after the monthly settlement run process is done through T.Code "KO8G", and this actually happens on the entries that are booked manually through T.Code "FB50", but the GR/IR entries is the biggest problem, it didn't reflect the settlement rule distributions in the GL it just gives me the original transaction once its was automatically created through T.Code "MIGO" they are only allocated to a one profit center with no cost center and without being distributed to a multiple cost centers according to the distribution strategy.
    After a long search I found that the cost center distribution occurred only on a secondary none GL account named A&P Settlement (720010), all GR/IR expenses was settled correctly only on this account not through the ordinary GL accounts (e.g. Gifts, printed materials) and of course the correct distribution didn't appear in the GL,
    So is there a transaction or any way to allocate the GR/IR expenses to there correct cost centers with the correct cost element in the GL?
    Is there anything to do with the GR/IR calculation that depends on quantity base not value base?
    <i><b>The Process as follows:</b></i>
    (<b>1) Creating Internal order with a settlement rule (E.g. Cost center 1 (50%) Cost center 2 (50%)</b>
    <b>2) Creating a purchase order associated to an internal order</b>
    <b>3) The Goods received and creating the GR transaction T.Code "MIGO"</b>
    Acc/DR Expenses accounts
    Acc/CR GI/IR Account 400301
    Profit enter ###### (eg. 111177)
    Cost Center <blank>
    Internal order no. ####### (e.g. 9810512)
    <b>
    4) Closing the GR/IR accounts when receiving the invoice T.Code "MIRO"</b>
    <b>When we receive vendor invoice:</b>
    Acc/Dr GI/IR Account 400301
    Acc/Cr Vendor Account
    Profit enter ###### (eg. 111177)
    Cost Center <blank>
    Internal order no. ####### (e.g. 9810512)
    <b>5) Performing the Internal order settlement rule run process</b>
    <b>(N.B.</b> By entering the report of the cost center (Actual/Plan/ Variance) T.Code S_ALR_87013611
    I found that GR/IR expenses was not charged on the concerned cost centers as shown in the GL <b>)</b>
    <b>Your Reply is highly appreciated</b>

    Thanks for your kind reply,
    But is there a way solve this problem?
    And what is the use of leaving a field in the account assignment tab for an internal order while creating a PO and it will not take advantage of the settlement rule????????
    And as you know the internal order settlement is a way to create a multiple account assignment
    Can we solve the problem by making an automatic fake transaction that reverse the value of the GR/IR and creating another transaction can apply on it the settlement rule??
    You know that settlement rule process is one of the best features in the SAP system it save time and effort to make distributions manually

  • RSAU461, problem with activating update rules for cube 0csrv_c01

    Hello,
    I have added new fields to data source 0CRM_SRV_PROCESS_H, then changed transfer rules, added characteristics to ODS 0crm_proh, and reactivated update rules 80crm_proh. But now I have problem with second update rules for this cube named 80crm_cnfh. It is not active and all fields in it have red status, error RSAU461, and I cannot activate it.
    What I should do? Should I change somehow that second source for data to my cube (change infosource, ods, rule?)
    Regards
    Radek

    hi
    As said by the Mti u have just changed the info objects in the ods and u need to map them with the specific info objects from the ods.
    double click on the Update rules of the cube and go to the characteristic tab there map the newly added info objects with the IO in the ods.
    Khaja

  • Having problem with change of name in the datagrid Coding

    I am having problem with changing the name of the datagrid header text name for one of the data either in the flash file or the php file.
    The thing is i want to change the Course_Name to Course Name that has no underscore so that it will look nicer in the datagrid but if I change it in the php file like SELECT Course_Name as 'Course Name' ....., it will not turn out in the datagrid when I CTRL ENTER the flash file but the others like Price,description and display is shown.
    There is no problem with my php code but I do not know how to change the Course_Name into Course Name so please help me resolve this error that I am having.
    This is my flash code
      function goCourse(e : MouseEvent):void
      gotoAndStop(5);
      refreshResponder = new Responder (refreshSuccess, onFault);
      connection = new NetConnection ();
      connection.connect (gateway);
      dataDG.addEventListener (Event.CHANGE, gridItemSelected);
      refreshData (true);
      function gridItemSelected (e: Event): void {
      ID = e.target.selectedItem.ID;
      courseTxt.text = e.target.selectedItem.Course_Name;
      priceTxt.text = e.target.selectedItem.Price;
      descTxt.text = e.target.selectedItem.Description;
      private function getParams () {
      var param: Object = new Object ();
      param.ID = ID;
      param.Course_Name = courseTxt.text;
      param.Price = priceTxt.text;
      param.Description = descTxt.text;
      return param;
      private function refreshData (refresh: Boolean): void {
      if (refresh)
      connection.call ("Course.viewCourse", refreshResponder);
      private function refreshSuccess (result: Object): void {
      dataDG.dataProvider = RecordSetDP.toDataProvider (result);
         dataDG.columns = ["Course_Name","Price","Description","Display"];
      private function onFault (fault: Object): void {
      trace (String (fault.description));
    This is my php file code.
      function viewCourse()
      $this->connect();
      $sql = "SELECT Course_Name,Price,Description,Display
      FROM coursetb";
      return mysql_query($sql,$this->_connection);

    i don't see where you're calling your php file in your code, but change 'Course Name' to 'Course_Name' (or vice-versa) there.

  • Problem with changing Label in Bridge CS3 and CS6

    Hi there,
    I am having some problem with changing Label in Bridge CS3 and CS6 in windows.
    1. In Bridge CS3 (Windows XP), most of the time with most of the files, there is no problem. But I found that in some files, the Label does not get changed. I usually change Label by right clicking on the picture, then Label and select any Label. When I do so in those files, nothing happens. But when I rename the file by changing or adding just a single character, then it works. And if I again rename to original name, it still works. But without renaming the Label does not change. Again this does not happen with all pictures, but occationally with some. We usually receive pictures from different clients for editing purpose.
    2. In Bridge CS6 (Windows 7), if you create lot of Path using Pen tool in Photoshop for the purpose of removing background, you save the file, close, and change Label in Bridge, again open the file in Photoshop, you see no Path in the Path Pallette. So that means, changing Label works, but it removes the Path from the file. But if there is small amount of path, then no prboblem. But if there is lot of path, like you need to create for a necklace to remove background, then the problem arises.
    I am using Bridge for a purpose where it is very helpful so I really need to use Bridge, and Labeling feature is the most important to me, but after feaguring out this problem, I am really tensed as to whether or not I will find a solution to this. So any help, guidance will really be appreciated.
    Thanks very much in advance for any solution.
    Best regards

    I have re-checked the issue and I found that the problem is with JPG file.
    I wasn't even aware you could save a path to a jpeg file (always use PSD because of wanting to keep the Alpha Channel, jpeg only can contain 1 layer and no alpha channels and/or transparency).
    However I tried it on a file with a simple path and one with a complex path. It seems indeed you have found a bug. The simple path is no problem but the more complex path is indeed disappearing.
    It is not only label but also rate or adding IPTC in the description field. The moment metadata is saved to this jpeg file and reopened the earlier present work path of a more complex path is gone.
    Despite the fact that to my opinion a jpeg is not the most suitable file format for saving a work path this should not happen. If a work path is saved to a jpeg then it should be kept saved after just altering metadata in Bridge.
    It still is the same behavior in Bridge CC because that is what I use. Don't know when it started but it still needs to be repaired
    Here is the link for filing a problem or bug:
    http://feedback.photoshop.com/photoshop_family/

  • SSRS 2012, SQL Server 2012. Problem with changing database

    Hi all!
    I have a problem with changing database for SSRS.
    I have a SSRS 2012 and SQL Server 2012. These programs is on WIndows Server 2012.
    I need to link SSRS to the new database instance. For this I run SSRS Configeration Manager, open tab Database, click Change Database. Then I choose option "Choose an existing report server database", click Next, write the server name, test
    connection (it's successed) and push Next again. Then I see this error message:
    Error
    The feature: "Using other editions of SQL Server for report data sources and/or the report server database" is not supported in this edition of Reporting Services.
    OK   
    I'm confused, cause I have compatible versions of programs and THIS error.
    Please, help me.
    Thanks.

    Hi Kirill,
    From the error message, we can know that the issue may be caused by incorrect editions of SQL Server for report data sources are used as the Report Server Database.
    When creating a report server database, please be aware that not all editions of SQL Server can be used to host the database. So we should make sure that we have used the correct database as the
    Report Server Database. For more details, please refer to the “Report Server Database Server Edition Requirements” section in the following document:
    http://technet.microsoft.com/en-us/library/cc645993.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • HT1918 problem with changing the payment information

    I've got a problem with changing the payment information !!
    when I change them and I followed the instruction , and when I click done
    it says " for assistance, contact iTunes support at " the link " . and nothing
    change , so what should I do ?

    Hi Bart,
       The description of the field VBKD-BSTKD will appear in sales order (VA01/02/03) Header  Order data tab.
    If you notice the text for below one it is PO Number where Number starts with upper-case N and it iis not the one which you changed.
    Also this is a hyperlink to sales header order data screen.
    You need to enhance the code via sales exit to fix this.

  • Problem to generete settlement rule automatcaly in the WBS

    Hi people,
    Could you help me about the subject below?
    For some reason, when we create a new wbs, it was not created the settlement rule automatcally. ( For the other one it runs OK, only for one WBS it was not ok).
    So we tried to execute the transaction CJB2 to generate the settlement rule.
    We have analysed the Forun and find: http://scn.sap.com/thread/1407279. We try to apply the piece of the change program about the flag ex.: INVMA.
    But when we execute the CJB2 and do the things there is in this forun, the system create the settlement rule with CTR (cost center) instead of FXA (Asset).
    Do you have some suggestion how we can do to create the settlement rule with FXA by transaction CJB2?
    Thanks,
    RN
    ==============================

    Hi RN,
    Check the setting:
    Project System - Costs - Automatic and Periodic Allocations - Settlement - Settlement Rule for Work Breakdown Structure Element - Determine Strategy for Settlement Rule
    Hope it helps.
    Best Regards,
    Owen

  • Problem with changes and visualization in the forms

    I have a problem with forms, the problem is the next, I do a modification in the database with a update or with form and in other station no visualized the change. The other station need close the form and open for visualize the modification.
    Why I have this problem

    I am not sure what you mean. Are you saying that after one form changes and commits data, it is not visible on the other user's screen?
    If that is the problem, unfortunately, that is the way Forms works. A form must re-query the data to see changes on the database. If your form must close and re-open, then you should create a trigger in your form to re-query the same data.
    I hope this helps.

  • Problem with change capture

    HI,
    we've a problem with the Change Capture in the DAC's Execution Plan.
    We've cretead a new data model but we want to reuse the image table and the Change Capture process, so we've perfomed the following step:
    1) create the mapping SDE e SIL for the new tables of datamodel in Informatica Power Center
    2) register these mapping in the DAC
    3) create a subject areas and associate these tasks to this
    4) create execution plan including "change capture" and "change capture sync"
    5) execute our "execution plan"
    the problem is the following:
    from the Execute -> Current Run Tab -> task
    we can see that execution time of change capture is 0
    from the Execute -> Current Run Tab -> task details
    there aren't any change capture details
    So, our image table are empty.
    Do you have any idea?
    Thanks in advance,
    Antonello.

    HI Antonello,
    I am also having the same issue like you. I have created a new execution plan in DAC 101341 and ran it. It seems like the task Change Capture For Siebel OLTP completed in 0 seconds and there are no details for that particular task. Can you please let me know if you have resolved this issue? Your help is much appreciated.
    Thanks
    Ravi

  • 10.5.3 problem with changing computer name

    Having an issue with computer naming after 10.5.3. Here is the issue:
    New Leopard install, fresh
    Installed all updates, including the 10.5.3 update
    Change the computer name in System Preferences\Sharing
    The new name is reflected in Computer Name field
    The new name is also reflected as the Local Hostname under Edit
    Rebooted the machine
    Look at System Preferences\Sharing\Service and none of the services reflect the new computer name\local hostname, the old computer name is listed for each service
    Click on the Edit button and deleted the Local Hostname, left it blank and clicked OK
    Now the new Local Hostname is listed for each service
    Open a Terminal window and the old computer name is listed at the prompt
    Reboot the machine
    Open a Terminal window and the old computer name is listed at the prompt
    Not being a Unix guru, I assume there may be a way to modify the computer name some other way than through the GUI. I sure hope so cause the new patch that was supposed to fix an issue with computer names appears to have created a new bug.

    I'm posted an image of Aperture corruption, fresh this morning:
    http://lemon.soju.co.uk/2008/06/05/would-you-trust-your-photos-to-an-application -that-does-this/
    - New iMac 3.06GHz Dual Core, 4GB Memory, NVidia 512MB (received Sunday 1st June 2008)
    - 10.5.2 upgraded to 10.5.3, then Aperture 2.1 trial installed
    - First import of 40GB of photos, left to run overnight
    - When trying to use this morning, Aperture screens were corrupt and it refused to shut down. I had to power off then boot back into Mac OS X. When I restarted Aperture it worked, but it still seemed to have problems taking over the machine - eg, I wasn't able to send mail from Gmail within VMWare Fusion until I closed down Aperture. I never have problems with VMWare Fusion.

  • Change Settlement Rule in COR1

    Hello, Gurus
    I need your help, please.
    I have to change the settlement rule in COR1. The default settlement rule that is create to Material, but I need to change to Cost Center (to a especificy). Is any User-Exit or BADI where I can do that?
    I have ECC 6.0.
    Thanks in advance.
    Best Regards.

    Hi Paulo,
    I run into the same issue. Have you found an answer to your question?
    Thanks,
    Joe

  • Problem with change bank information on ESS

    Dear All,
          I have a problem with the bank details, like when the user is changing the bank details, its throwing an error " Bank key value  begda endda has a grouping value of "01" instead of "" ".
    Thanks
    Yogesh

    Yogesh,
    RPUFIXDS should solve the mostly inconsistencies (PSHRD-GPRVL field)
    RPUFACEVIEKN align the field VIEKN to the feature IVWID for the ESS service
    RPUFACECPRFN adjust T582G from T582A-CPRFN
    If your refer to CCURE PC_UI indicator in T77S0, you should activate it only if you're using concurrent employment
    Look for N06_BB_ConfigGuide_EN_US.doc ([link|http://help.sap.com/bp_hcmv1600/BBLibrary/Documentation/N06_BB_ConfigGuide_EN_US.doc]), and read 2.3.7.5 Removing Inconsistencies in Employee Data for a full explanation about this issue.
    Consider this is a common issue, so you'll find more information in older posts in this forum, with a lot of answers from SAP experienced Consultants.
    Best regards!

  • I can't see a message from my union because of problems with changed adress for pop-upwindows and some other issue

    Hi,
    I'm from Sweden and I'm having problems with a website my union has. I have been able to see messages from them before but they've changed their adress and on the site they tell people they have to put the new adress on the approved list for pop-up windows. I have done so but it's still not working. Maybe I've done it wrong, I don't know but it's annoying as hell that I can't see the messages they send.
    I really need help with this.
    Best regards,
    Lena

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

Maybe you are looking for

  • New T530 with dead / unresponsi​ve pixel in upper middle of screen

    I have one dead or unresponsive pixel in the upper middle part of the screen. It is stuck in red color. It is very difficult to ignore  this red dot and it is very annoying to use my machine with this red dot on the screen. What can I do?  I ordered

  • Using Federated Security in BizTalk against custom Token Provider and Custom Token

    Hi, I as the topic states, I'm trying to get BizTalk to use a Custom Token Provider with custom tokens. So I thought this would be rather painless using ws2007FederationHttpBinding but got stuck. The problem is that the service expect soap action and

  • Crash apps in iOS 6.

    I installed iOS 6 yesterday. After the update, I have noticed an increasing number of times I browse for apps and it just crash. I noticed this in the App Store, Maps and Safari.

  • Ios 4.1

    In my opion to the ones who have not updated it is a waste of time. the claim to have fixed the sluggish performance on the 3G its not I havent found the least bit of performance increase. in the areas where it was needed the most 1. viewing a reciev

  • Question mark in object name...

    Please help me! After full database import there are a few triggers, packages are invalid. When I try to recompile them I got ORA-00911, because unfortunately there is ? character in their name... How can I compile them? Please, help me! Thank you in