BDC for KO02 Settlement Rule

Hi all,
I've created a BDC for transaction KO02 that will add settlement rules to an existing order. Then I'm using the generated code to create a new program. I have two questions.
1. I need to validate against existing settlement rules. Is there a way to get this information, i.e. can I read the existing table somehow?
2. When I enter multiple entries, I noticed the following calls:
perform bdc_dynpro using 'SAPLKOBS' '0130'.
perform bdc_field using 'BDC_CURSOR' 'COBRB-BETRR(01)'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'COBRB-KONTY(01)' XXX'.
perform bdc_field using 'DKOBR-EMPGE(01)' 'XXX'.
perform bdc_field using 'COBRB-BETRR(01)' 'XXX'.
perform bdc_dynpro using 'SAPLKOBS' '0130'.
perform bdc_field using 'BDC_CURSOR' 'COBRB-BETRR(02)'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'COBRB-KONTY(02)' 'XXX'.
perform bdc_field using 'DKOBR-EMPGE(02)' 'XXX'.
perform bdc_field using 'COBRB-BETRR(02)' 'XXX'.
perform bdc_dynpro using 'SAPLKOBS' '0130'.
Do I need to increment those numbers myself? For example, COBRB-KONTY(01) -> COBRB-KONTY(02)?
Thanks!

1) COAS - AUFNR
                 OBJNR -> COBRA-OBJNR, COBRB-OBJNR
as for your 1st question check for the COBRA to see if you can get the existing settlement rules for the order . You have to add more logic to the program for the check.
2) When you go to the Settlement screen on the top on status bar you see a icon for CREATE. Record that in SHDB - Click on it while recording and you can change your program to the program.
Do check BAPI_INTERNALORDER_CREATE
BAPI_INTERNALORDER_SAVEREPLICA helps your requirement.

Similar Messages

  • Where can I define Account assignment category for order settlement rules

    Dear Gurus,
        When I used Tcode: CO07 to create a rework order for parent order. But I cann't find the Account assignment category = Ord (Order) in the maintain Settlement rule overview.
      Where can I define Account assignment category for order settlement rules?
      Please help me. Thanks!
    Regards
    Paul.

    I've resolved this question.
        Firstly, run OPJH - Define Order Types, we should assign settlement profile for the order type.
        Secondly, Run OKO7-Maintain Settlement Profile, find and mailtain the settlement profile. In 'Valid Receivers' we should set the field 'Order' = 1-(Settlement Optional).
        Thirdly, run CO07 - Create Order without material. We can find account assignment catetory 'ORD' in maintaining Settlement rule.
    Edited by: Paul Chan on Feb 16, 2009 5:15 AM

  • Where to configure Account Assignment Category for WBS Settlement Rule?

    Hi,
    I would like to know where is the Account Assignment Category for WBS settlement rule (FXA, CTR, G/L, WBS)  being configured. (SPRO Path)
    Currently when I go to our settlement rule creation screen I can only see WBS and FXA, I need to add MAT (Material)
    Thanks!
    Regards,
    Vivian

    Hi Shrikant,
    Do you mean in my CJ02 WBS Settlement Rule creation screen, I cannnot put MAT as account assignment category?
    Does it mean that WBS element CANNOT be settled to material? and we can only settle PM order to material?
    Thanks!
    Regards,
    Vivian

  • 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 ...
    Anil

    Hi ,
    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

  • 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

  • How to create distribution rules group for wbs settlement rules

    Hi,
    How can I create distribution rules group for WBS element settlement rules ?
    For some WBS elements I can see(in view mode(cj03)) distribution groups in settlement rules screen but when I try to edit settlement rules I only see default group.
    How can i create/edit those groups ?
    Regards,
    Rafał

    Self answered:
    CJIC t-code

  • Validation for the settlement rule of a wbs element

    Hi Experts,
    I have a requirement that in which i have to validate the settlement rule of the wbs done through t-code cj01/cj02/cj07,cj20n.
    If the settlement receiver object is an G/L account (settlement category g/l )  then i have to check that if it is an o&m project type
    wbs element  settling on some already mentioned G/L e.g 0001081340,0001081341, then  it should through some error  like settlement rule not valid etc.
    I have tried cjb1/cjb2 through badi WBS_SETTLEMENT_RULE by creating some strategy but it did not have any option for G/L
    settlement reciever. Also client will not agree to this as they want to create settlement rule manually.
    I have also tried the exit 'EXIT_SAPLCOI1_027 ' but its not getting triggerred during settlement rules assign mentand also i think it will not solve my purpose.
    Please help me as i am struck in this for long time now.
    Warm Regards,
    Hariom

    Hi Prabhu ,
    thanks for the quick update.
    I have tried many badi's and exits but they are not triggering at the saving time of the wbs.
    badi :
    PROJECTDEF_UPDATE
    WBS_FIELDS_FOR_ASSET
    WBS_USER_FIELDS_F4
    WORKBREAKDOWN_UPDATE
    WBS_SETTLEMENT_RULE
    exits :
    EXIT_SAPLCJWB_004
    EXIT_SAPLCJWB_005
    EXIT_SAPLCJWB_001
    These above exits i have tried either they are not implemented or they are not triggered during saving of a wbs element.
    please suggest any exit or badi's which you may have used.
    Thanks and regards,
    Hariom

  • User Exit for the Settle rule of a Production Order

    Hello all
    i got a requirement to change the settlement rule of a production order to multiple receivers.
    suppose i have the following rule
    Categeory | Settlement Reciever | Receiver Short text |   %   | Settlement Type | No | Source Assignment
        MAT             ZMDT89                   ZMDT88              100        FUL                 1            left as blank
    now my requirement is that i have to default the source assignment as 200 (Materials) so as to allow the other reciever entered with the same settlement type as FUL and also the No should be 2
    i.e. my req is like this
    Categeory | Settlement Reciever | Receiver Short text |   %   | Settlement Type | No | Source Assignment
        MAT             ZMDT89                   ZMDT88              100        FUL                 1            200
        G/L             G/L A/C no                G/L shor text       100        FUL                 2            100
    the bold one is i have to ADD
    the T-Code is CO02.
    your help is highly appreciated...
    thanks in advance

    hi,
    check these exits in co02.
    Transaction Code - CO02                     Change Production Order
    Enhancement/ Business Add-in            Description
    Enhancement
    PPCO0010                                Enhancement in make-to-order production - Unit of measure
    PPCO0012                                Production Order: Display/Change Order Header Data
    PPCO0013                                Change priorities of selection crit. for batch determination
    PPCO0015                                Additional check for document links from BOMs
    PPCO0016                                Additional check for document links from master data
    PPCO0017                                Additional check for online processing of document links
    PPCO0018                                Check for changes to production order header
    PPCO0019                                Checks for changes to order operations
    PPCO0021                                Release Control for Automatic Batch Determination
    PPCO0022                                Determination of Production Memo
    PPCO0023                                Checks Changes to Order Components
    STATTEXT                                Modification exit for formatting status text lines
    PPCO0009                                Enhancement in goods movements for prod. process order
    CCOWB001                                Customer exit for modifying menu entries
    COIB0001                                Customer Exit for As-Built Assignment Tool
    COZF0001                                Change purchase req. for externally processed operation
    COZF0002                                Change purchase req. for externally procured component
    PPCO0001                                Application development: PP orders
    PPCO0002                                Check exit for setting delete mark / deletion indicator
    PPCO0003                                Check exit for order changes from sales order
    PPCO0004                                Sort and processing exit: Mass processing orders
    PPCO0005                                Storage location/backflushing when order is created
    PPCO0006                                Enhancement to specify defaults for fields in order header
    PPCO0007                                Exit when saving production order
    PPCO0008                                Enhancement in the adding and changing of components
    reward points if hlpful.

  • Bdc for reverse settlement using VA88 okcode 'stor ' not working

    Hi ,
      I have done recording of the VA88 transaction to write a program for reverse settlement of some sales orders for particular controlling area and Co business transaction.i am using call transaction method,the issue i am facing is when i execute , reversing is not happening , when i checked with mode A in call transaction i can see the values are populated in the VA88 screen and the bdc_okcode '=STOR' which is meant for reverse  is coming , but when i click it nothing is happening.
    any idea what is wrong here. is it because the okcode is not working as desired?..what will be a solution.
    thanks & regards.
    Ras.

    I think the problem in recording..can you please do the recording again and cross check your BDCDATA internal table with the recorded one
    Nabheet

  • Create new settlement rule for an order with a function module

    Hi,
    I would like to create a settlement rule for an order. I searched for existing function modules and found K_ORDER_SETTLEMENT_RULE, which seems to be the correct one.
    The problem: The settlement rules, which I create with this function module are not saved.
    Do I have to call another function module to save my new rules?
    Thanks in advance,
    Fabian

    Hi,
    Settlement rules are first of all defined in customizing how the should be behave and secondly lies the question how to update a CO cost object with this settlement rule.
    My first advice would be to use the "automatic settlement derivation feature" that can be setup in customizing alike. <b>SPRO -> Controlling -> Internal Orders -> Actual Postings -> Settlement -> Automatic generation of Settlement Rule</b>. Read the docu for this node (right click and choose Display documentation) to understand what possibilities and limitations this functionality has. Below this node you have the possibility to define a "settlement strategy" and allocate this to a order type. You can also define a Enhamcement (COOM0003
    ) where you can somewhat influence the automatic generation of settlement rules.
    Execute transaction KO8G (collective processing) or KO88 (indicidual processing) to create a settlement rule for internal orders.
    The other option you have is to create a custom program based on BDC to create settlement rule for internal orders.
    I think the BDC program would be a better idea for you.
    Let me know if you have any question.
    Regards,
    RS

  • Settlement rules for CO Orders

    Hi Guru, need your help to set up new settlement rules for CO Orders, to different plan versions. Can this be done in a massive way?

    Hi...
    Firstable, you have to create all plan version in the Controlling area, and activate the CO integration planning.
    You can create many settlement rules for each plan version but individually on the transaction KO02 -> Settlement Rule -> New rule...
    If you want to creat it automatically, maybe you can try to create a LSMW for this transaction. There are masive modification for other field to internal orders (Transactions KOK2 and KOK4)
    Regards,
    Karim

  • 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 "

  • Can User Exit works for Settlement Rule in Maintenance Order creation?

    Dear Experts,
    I have this situation where I tried to create an Internal Maintenance Order via IW31 for multiple equipments from different functional location (different cost centers) using the Object List.  However, the settlement rule has a problem to pull out as there's no Equipment in the reference object. That's the reason, I'm looking at the User Exit which I understand the IWO10027, can do the work.  Since I'm new to User Exit, can I enhance the settlement rule by the following condition.
    The costs spent on each equipment will be used as a basis of calculating the weightage (via equivalence no) for the settlement rule.
    Can it be done that way?
    regards,
    Abraham

    Sanjay,
    This data can be checked in the following user-exits:
    COZF0001: Change purchase req. for externally processed operation
    COZF0002: Change purchase req. for externally procured component
    PeteA

  • Auto Run Program not updating Settlement Rules for few WBS elements

    Hi,
    Addition of settlement rules for OPEX WBS.
    In producion system, two jobs are running daily for generating settlement rules of WBS elements but, all WBS elements are not updating with Settlement rules.
    It is becoming a problem in the Period end while doing the settlement. Currently we are updating the settlement rule manually.
    We have investigated and found the following WBS element with Profile name  are not updating Settlement rule.
    H-U0DU0204DE-EX-J0  - HHDC01
    H-N0U00ULD01-P1-D1-W2 - 000090
    H-U0DU0204DE-EX-U0-T1-OB - HHDC01
    H-U0DU0204DE-EX-U1-W1-ON - HHDC01
    H-U0DU0204DE-EX-U2-W1-ON - HHDC01
    H-U0DU0204DE-EX-I0-E1 - HHDC01
    H-U0DU0204DE-EX-I0-B1 -HHDC01
    H-U1DU0204DE-EX-U0-W1-ON - HHDC01
    Job Names :
    ZFPD_UK_SETTLEMENT_RULE_GEN
    ZFPD_NO_SETTLEMENT_RULE_GEN
    Please suggest on this issue
    Regards

    Hi,
    I suppose these are background jobs. Usually there is an issue with background jobs that are run for a custom developed program. Not sure why that happens. Even i faced this issue with a couple of jobs in my system. I have still not found out the reason as to why this happens. There might be a possibility that these projects were being processed in the foreground by some user and hence they were omitted from the run.
    I would suggest you to consult your technical guys on this.
    Regards,
    Gokul

  • Settlement rule for order

    hi co guru sir....kindly guide me to maintain  settlement rule for production order. steps by steps..plz..
    problem is this when i create planned order to production order ..first  screen open for maintain settlement rule...i have maintained..but may be wrong...
    plz guide me for maintain the settlement rule........
    thanx
    regards
    Aqueel

    Hi,
    Settlement rule determines which portion of the costs on a sender should be settled to which receiver(s).
    You need to create a settlement rule to settle the actual costs of a sender object. The settlement rule contains the distribution rules for the sender.
    Structure: The settlement rule contains:
    - One or more distribution rules
    - The settlement parameters for a sender object.
    Creating a Settlement Rule:
    You previously had to maintain the settlement rule for internal orders manually. Now the system can automatically generate settlement rules for internal orders.
    Procedure:
    1) Choose Settlement rule in the master data maintenance for the relevant sender object.
    The Maintain Settlement Rules: Overview screen appears.
    If you stored a default for account assignments in the settlement profile then the system displays the existing distribution rules. The settlement receiver is the object type you stored as an account assignment default in the settlement profile.
    You maintain settlement rules in Customizing under Controlling -> Internal Orders -> Actual Postings -> Settlement -> Maintain Settlement Profiles.
    2) Choose Edit -> New rule or enter the value directly.
    Specify how the sender object costs are to be settled to the various settlement receivers:
    - By percentage
    - By equivalence numbers
    For distribution rules of the same settlement type (periodic or total) you need to determine the portion using either percentage rates or equivalence numbers.
    Specify the settlement type for each distribution rule.
    The system defaults the settlement type depending on the receiver, for example PER for cost center, FUL for fixed asset. You can overwrite the default value, if required. When you save the sender object, you automatically save the settlement rule.
    I hope it will help.
    If helpful, please assign points.
    Regards,
    Manju

Maybe you are looking for

  • General question about data recovery from raid on windows server !

    hi, I like to buy data recovery software for windows server  to recover data with  any raid( or whitout raid so the company tells me you should be sure the Raid can be recognized correctly as local disk drive first, otherwise, our product  wil not he

  • [b][u]JSP/mySQL CREATE DATABASE problem[/u][/b]

    I am trying to create a mySQL DB through JSP program (query). The Query : stmt.executeUpdate("CREATE DATABASE employee;"); is not working. PLEASE HELP ME................. The program is as follows. try Connection con =null; Class.forName("org.gjt.mm.

  • Epson Artisan 730 Printer and iMac

    I have installed a new Epson Artisan 730 printer onto my iMac running Mac OS X ver 10.7.5.  When I try to print documents from Mail or Adobe Reader X Version 10.1.4 the printer spits out a blank page. I can print from Word and Excel with no problems.

  • Call function starting new task:

    I am trying to create a program in which few database update are mentioned. after database updates , I am calling a function module using starting new task in which I want to commit database updates inside in function module. Problem is I want to com

  • Unable to Modify DB_block_Size for OWB installation

    We are try to install OWB server on oracle DB server in windows xp professional, at the time of installation oracle suggests to increase db_block_size from 8192 to at least 16k for better performance. We are unable to modify the same thru Console or