VA02 - maintain settlement rules

Hi folks,
I am trying to maintain a settlement rule within the Sales Order without the user going to the Item Level.
I want to inherit the WBS element from the Header VBAK and on the save of the document automatically create the settlement rule.
I have tried K_SETTLEMENT_RULES* functions and cant seem to get them to work.
Anyone got any ideas or any advice on this ?
Regards
Gary

I managed to work this one out myself, but just in case someone else has to do it. here is how I acheived it.
Firstly set up all fields on COBRA and COBRB, then call FM
             CALL FUNCTION 'K_SETTLEMENT_RULE_FILL'
               TABLES
                 I_COBRA       = lt_cobra
                 I_COBRB       = lt_cobrb.
Next
           For some reason the internal system ALWAYS sets the table
           up as the update status, this causes problems on creation,
           so we have to change to Insert status.
             Assign (c_GT_cobrb) to <fs_cobrb>.
             if <fs_cobrb> is assigned.
               LT_COBRB_BT[] = <fs_cobrb>.
               loop at lt_cobrb_bt.
             Somehow the previous records are being kept in so have to
             delete them or else prog falls over.
               if lt_cobrb_bt-objnr <> lv_objnr.
                 delete lt_cobrb_bt.
               endif.
               check to see if record exists.
                 select count(*)
                 from cobrb
                 where objnr = lt_cobrb_bt-objnr
                 and   bureg = lt_cobrb_bt-bureg
                 and   lfdnr = lt_cobrb_bt-lfdnr.
                 if sy-subrc <> 0.
                 Set the flag to be insert instead of U
                   lt_cobrb_bt-uflag = 'I'.
                   modify lt_cobrb_bt.
                 else.
                 If settlement exists then exit.
                   lv_settl_exist = 1.
                   exit.
                 endif.
               endloop.
              If settlement exists then exit.
                if lv_settl_exist = 1.
                  exit.
                endif.
                <fs_cobrb> = LT_COBRB_BT[] .
             endif.
           For some rreason the internal system ALWAYS sets the table
           up as the update status, this causes problems on creation,
           so we have to change to Insert status.
             Assign (c_GT_cobra) to <fs_cobra>.
             if <fs_cobra> is assigned.
               LT_COBRa_BT[] = <fs_cobra>.
               loop at lt_cobra_bt.
             Somehow the previous records are being kept in so have to
             delete them or else prog falls over.
               if lt_cobra_bt-objnr <> lv_objnr.
                 delete lt_cobra_bt.
               endif.
               check to see if record exists.
                 select count(*)
                 from cobra
                 where objnr = lt_cobra_bt-objnr.
                 if sy-subrc <> 0.
                 Set the flag to be insert instead of U
                   lt_cobra_bt-uflag = 'I'.
                   modify lt_cobra_bt.
                 else.
                 If settlement exists then exit.
                   lv_settl_exist = 1.
                   exit.
                 endif.
               If settlement exists then exit.
                 if lv_settl_exist = 1.
                   exit.
                 endif.
               endloop.
                <fs_cobra> = LT_COBRa_BT[] .
             endif.
Then when the tables have had their update status amended then call FM
             CALL FUNCTION 'K_SETTLEMENT_RULE_SAVE'
               EXPORTING
               DIALOG                  = ' '
                 OBJNR                   = lv_objnr
                I_STATUS_UPDATE         = ' '
              EXCEPTIONS
                NO_RULE_FOR_OBJNR       = 1
                OTHERS                  = 2.

Similar Messages

  • Error: Maintain settlement rule of the sender for a higher level WBS

    Hi,
    I dont want to maintain the settlement rule for a higher level WBS. How can i configure this in such a way that i dont get the following error:" Maintain settlement rule of the sender" while doing CJ88. Maintaing a separate Settlement profile for a higher level WBS is an option but we are looking if something else could be done The problem is that there are no actuals booked against, say, level 2 WBS but when i execute CJ88, i get the aforesaid error. How can i ensure that only the lowest level WBS ask for the settlement rule and not the levels above it. I have already removed the Investment profile from the higher level WBS but still getting the same error.
    Regards,
    DPil

    Hi,
    It is a type Capex WBS and Biling element is not checked. In fact i get a warning while doing the settlement: WBS is neither a billing element nor an account assignment element.
    Diagnosis
    WBS element  is not indicated as either an account assignment element or as a billing element in the master record.
    System Response
    The WBS element cannot be assigned to an account.
    Procedure
    Correct your entries or add the missing indicator to the master record for the WBS element.
    But this is just a warning. On pressing enter i get the error :Maintain settlement rule of the sender "

  • Maintain Settlement Rule

    Hi All
    I would like to maintain more than ten line items in maintain settlement rule screen for distribution. Currently system allows me to enter only ten distribution line items. Pleease let know to increase the way. Thanks in advance.

    hi
    in OKO7 for your settlement profile make the entries in the Max.no of dis rls and check
    regards
    thyagarajan

  • Maintain settlement rule - parameter

    Dear all ,
    I Create new  maintenance order type in system and creat a manual order through iw31 . but when we want realease the order system open one window name ''Maintain settlement rule - parameter''and asking for settelement profile.
    please help me where i can maintain settlement rule in SPRO for system autometic settlement at the time of realease.
    Raghav

    Hi RS,
    Go to -" spro>>>>>PM & CS>>>>>>>>Maintenance and service processing>>>>>>>Maintenance and service orders>>>>>Functions and settings for order types>>>>>>Settlement rule: Define time and creation of distribution rule
    Execute
    then
    put "mandatory for release" and main order will be a settlement receiver" in settlement rule time and Distribution rule sub order field with corresponding to your order type.
    After completing this configuration your settlement rule will automatically create for order
    Thanks & Regards,
    Rahul Pawar

  • Maintain settlement Rule for CJ20N

    Hi Experts,
            How can i maintain settlement rule for sales order and item in cj20n. Is there any t.code or BAPI available..?, Please help me.
    Thanks.

    Hi ,
    u can use these FMs K_SETTLEMENT_RULES_UPDATE, if u want to know what to pass , put a break point in this FM ,and try to create a settlement rule ? then u will come to know .
    K_SETTLEMENT_RULE_GET
    K_SETTLEMENT_RULE_REFRESH
    K_SETTLEMENT_RULE_SAVE
    K_SRULE_CREATE
    K_SRULE_CREATE_WITH_SL
    K_SRULE_GET_SLIST
    Regards
    Prabhu

  • Cannot Maintain settlement rule for the activity

    Dear All,
    I tried to maintain settlement rule in activity under WBS. But it shows message :
    You cannot maintain the settlement rule for the activity
    Message no. CN006
    Diagnosis
    The network has header account assignment. You can only maintain settlement rules for the network header.
    System Response
    Processing stopped.
    Procedure
    Maintain the settlement rule for the network header.
    Please help.
    Cheers,
    Nies

    Hi,
    I already tried the config OPUV (network type Parameters) but it shows the activity account assignment already ticket.
    If i go to network header and go to settlement rule the warning message shows :
    Network has activity account assignment
    Message no. CN057
    Diagnosis
    Costs can only be written to activities for the network whose key you have entered.
    System Response
    Processing stopped.
    Procedure
    1. Check whether you have entered the correct key for the network. Change it if necessary.
    2. Maintain the key for the network to which you want the costs to be written.
    In addition, if i tick the activity under the network header : it shows
    You cannot maintain the settlement rule for the activity
    Message no. CN006
    Diagnosis
    The network has header account assignment. You can only maintain settlement rules for the network header.
    System Response
    Processing stopped.
    Procedure
    Maintain the settlement rule for the network header.
    Cheers,
    Nies
    Edited by: Nies on Nov 6, 2009 3:26 AM

  • Maintain settlement rule of the sender

    Dear All,
    Hi, I am Settling the all orders in co88 t.code, i run test run mode for all orders.At the time of running i am getting the below error:
    Maintain the settlement rule of the sender
    Message no. KD205
    Diagnosis
    Either the settlement rule for the sender does not exist, or it is incomplete.
    The settlement rule must contain settlement parameters and at least one valid distribution rule. A distribution rule is valid for a settlement run if
    The settlement period is in the validity interval for the rule, and - if a settlement type was specified during settlement -
    The settlement type corresponds to the rule for the specified settlement type.
    Settlement type FUL -> The system selects all rules with the FUL and PER settlement types.
    Settlement type PER -> The system selects all rules with the PER settlement type.
    The settlement share is set for the rule (percentage, equivalence number).
    Procedure
    The settlement rule belongs to the sender master data, where you can maintain it.
    Internal order
    Proceed
    CO Production order
    Proceed
    Project
    Proceed
    Cost object
    Proceed
    Network
    Proceed
    QM Order
    Proceed
    PM Order
    Proceed
    Production order
    Proceed
    Process order
    Proceed
    Sales order
    Any body please help, where i can check the settings, I checked my settlement profile and allocation structure also.it's working properly, but i am getting the error at the time of order settlement in co88.
    Thanks & Regards
    Reddy

    Hi
    Each Order Type is assigned to the Settlement profile and in settlement profile the Settlemet receiver is maintained.
    Genereal Critaria
    Sales Order Settled               to Production order.
    Production Order Settled       to Material
    Internal order settled              to Cost center or GL
    Please refer following T code.
    OKO7     Creat settlement profile
    Check for Periof End Activity in Costing.
    Product Cost by Sales Order
    Product Cost by Order
    Internal Orders
    Period-End Closing > Settlement > Create Settlement Profile

  • Maintain settlement rules for order category 30(Maintenance order).

    Hi Gurus,
    Can we maintain two settlement rules for an order without distribution rule?
    Eample:-  In an order there are three  different costs i.e. material cost,external labour cost and internal labour cost.We want to settle the material cost and external labour cost to Profitability segment and the internal cost to a particular GL account directly.
    Note: No distribution rule is required,because all the cost should settle directly to correspoanding heads i.e. PSG or GL.We don't want to assign  the GL# again and again for different orders in the corresponding order's  settlement rule.
    Require your valuable inputs to proceed.
    Best Regards,
    Ramakanta

    Hi Govardhan,
    If you are working in ECS, the Shopping cart will not create any follow on document in backend R/3.
    I think your Product category is 30, thats why the error says Manual reservation for order category 30 is not allowed.
    Where did you get the maintenance order? Generally maintenance order is created in the backend R/3 (Plant Maintenance) and a P.R will get generated against that order.
    Using PDP (Plan driven procurement) you can transfer that P.R to SRM and can carry out sourcing and can complete the procurement cycle.
    Can you please tell me what is your exact business requirement?
    Hope this will make you more clear.
    Clarifications are welcome.
    Award points for helpful answers.
    Rgds,
    Teja

  • Maintain settlement rules in a PM order

    Hi!
    I would like to find an easy way to automatically fill the settlement rule in an existing PM order. If it is possible I would like NOT to use BDC (Batch input). A function element or maybe a BAPI would be the best solution.
    If anyone knows a way to it, please share it with me..
    Thank you
    Tamá

    Answered...

  • Getting 'Maintain Settlement Rule' Error while GI

    Hello Friends,
    While posting GI through MB31, I am getting an error of settlement rule, I was wondering what the error of kind and how to resolve it.... what are the entries need to make ?
    Regards,
    Rahul

    Hi,
    Actually you are doing GR through MB31, go to order change CO02 and in the menu to to Header tab and click Settlement rule from the menu. In that screen whether settlement rule is assigned or not, if it not assigned assign a receiver (category) and percentage and save.
    (In this situation, you can choose catrgory CTR and give any cost center number in the order.)
    (For information, this settlement is defaulted from OKO7 transaction code, check with your CO consultant about the entries
    then try to do the MB31.
    Thanks,
    JK

  • Maintain settlement rule for AUC

    I am getting following error in T.code AIAB. 'You have chosen a depreciation area, which does not carry the depreciation data from table COEPBR.'
    Anyinputs to resolve would be appreciated.
    Thanks in anticipation.
    Regards,
    Prasad

    HI,
    Assign depreciation key 000 (no dep) for Asset Under Construction - Asset Class.
    Regards,
    satish

  • Settlement Rule for Internal Order

    Hi All
    I have Maintained Settlement rule for Internal order as under
    CAT - FXA
    Settlement Receiver - Asset
    % - 100
    Settlement type - Full
    Now after settlement of above Order in KO88 . I want again use above internal order. Hence i have trying to put Settlement rule 50% for some anther asset but system gave me following error. Please guide on this issue.
    Total = 50.00%, ( Set.Type PER / Version / Actual settlement ), period 010/2011
    Message no. KD042
    Diagnosis
    You have entered distribution rules which settle 50.00% in total. This applies for settlement view ( Set.Type PER / Version / Actual settlement ) in period 010/2011.
    When checking the percentage total, the system found one of the following errors:
    The total percentage for the distribution rules is more than 100%
    The total percentage for the distribution rules is less than 100% and this is a rule for full settlement.
    The total percentage for the distribution rules is less than 100% and the 100% check is switched on in the settlement profile.

    Hi:
            Please refer to the contents of OSS Note 45612 - IM: pre-settlement does not work, or KD042... which states
    "Symptom
        1. If a preliminary settlement rule (for example, to cost center) is entered for individual items of capital investment measures with line item management, this rule is not considered during periodic settlement. There is no settlement to cost centers.
        2. If you enter a final settlement rule for individual line items of investment measures with line item management for a partial capitalization (that is, the percentage rate is less than 100%), then you receive the unjustified error message KD042 "Total percent = xx%".
    Additional key words
    KOB5, CJ70, CJ88, CJ8G, KO88, KO8G, preliminary settlement, partial settlement, partial capitalization
    Cause and prerequisites
        1. You did not enter the settlement type ACT in the preliminary settlement rule.
        You can check this in the Line Item Apportionment transaction by choosing the menu option "Goto" -> "Overview dist. rules" to display the distribution rule groups entered so far.
        The system displays rules which have no entry in the "SetTyp" field (settlement type, field name PERBZ).
        2. The check of the percentages is incorrect.
    Solution
        1. Install the following correction. Afterwards reverse the incorrect settlement, re-enter the preliminary settlement rule and settle again.
        2. Install the following correction. Afterwards, you can maintain the settlement rule for the partial settlement.
        Note: If you want to use a default settlement rule (maintaining the settlement rule from the master data maintenance transaction), then you are required to distribute the line items at 100%. In order to carry out a partial capitalization (settlement of less than 100%), you have to use menu path "Actual postings -> Period-end closing -> Settlement -> Line item "
    Regards

  • Process order - settlement rule

    hi experts,
    our client has a R&D trial batches scenario .
    for that they will create a process order and the cost should go to cost center of r&d and not to matrial.
    at present i get MAT in settlement rule , so the cost is settled against material.
    i need CTR to come in default when i create the process order instaed of MAT .
    please advice.
    regards,
    satish

    If PS is implemented
    for project related production for R & D
    1) create a project profile with non valuated( for raw material procurement for project the price is taken from info record.
    2) assign the production material in activity
    3) maintain a settlement rule as cost center R &D
    4) Run a MRP for a material
    5) convert plan order into production order, system will set the WBS as settlement rule
    6) Do the GI  in MB1A or co11n  ,confirmation in Co11n & GR in MB31 or MIGO or in CO11n
    (If the material is valuated, system will take MAT as default ( as per the setting in OPL8 default settlement rule as PP1 or PP2)
    the reason is if material is valuated, variance  = (GI value + activity value) - GR value
    only the variance in settled in settlement, so the variance value( (GI value + activity value) - GR value ) is going to MAT
    if the material is non  valuated then variance =(GI value + activity value) )
    7) do the settlement for production order ( the variance (GI value + activity value) ) is settled to WBS element
    8) after that confirm the project in CN27.
    9) settled the project in CJ88, the cost will settled to relevant cost center
    if PS in not implemented
    or go head with
    you can create a order in CORO itself by maintaining settlement rule as CTR with R& d cost center( manually)
    we can't make particular cost center as default in settlement rule.

  • Mass maintenance for Settlement rule

    Hi,
    I want to maintain settlement rule of Network (cn22) and Internal order (Ko02). How can I carry out mass maintenence for these business process?
    PLease mention steps or any transaction.
    Thanks
    SIM

    HI,
    I don't know a standard transaction for settlement rules mass maintenance but you can use LSMW based on a batch-input recording  for the changes you want to make.
    Best regards, Christian

  • Settlement rule in Production order

    Hello Gurus,
    I am new for SAP PP, I was creating Prod.Ord. Before saving it, system prompt me to enter "Percentage___%" in screen "Maintain settlement rule: distribution rule", can anybody help me to ressolve the issue??
    Thanks in advance and regards!
    Akshay Naware

    Hi Akshay,
      You have to go to OPJH and assign the settlement rule or ask your controlling guy which rule you have select. whatever order type you using assign the settlement rule for that order type.
    Let us know if still you facing the issue
    Thanks
    anurudh

Maybe you are looking for

  • Photoshop CS5.1 Pixelated on Macbook Pro Retina Display

    Hello! I am a photography student who just bought a new macbook pro retina display. I use Photoshop a lot for my course so need help with this as quick as possible. Everything on Photoshop seems to be pixelated which is not ideal right now. I also ha

  • Can I save a filled out form in adobe reader

    How do I save a filled out form in adobe reader?

  • Use ABAP Routine in Selection Tab of Infopackage

    I am trying to use the ABAP routine in the InfoPackage SELECTION Tab to "EXCLUDE" a value. For example, I want to load all the Material types, except ZUN1. But, when I write in the ABAP, l_t_range-sign = 'E' instead of 'I' or l_t_range-option = 'NE'

  • Template font not displaying correctly

    I hope someone can help with this and it is just something I've overlooked (I'm pretty new to DW). I have a template that I'm using on all my pages. I have one cell in the template that I simply have text in and have formatted with with a CSS tag. Wh

  • Can't right-click on certain images in finder

    I've tried searching for this, but so far I've had no real luck. I have a folder of images (2033 images to be exact) from when I lived in Japan. The first 2/3 of them work fine, but the last roughly 1/3, when I right-click on them I get the same cont