Settlement doc number & wbs element relationship table

Hello,
I am trying to find any tables which can help me get the settlement doc number and wbs element relationship.  Presently I am using table AUAA and here is my select for that:
SELECT belnr aufnr pspnr anln1 coobjnr FROM auaa INTO TABLE tab_auaa
                    WHERE emtyp = 'PR'
                    AND bukrs IN p_bukrs
                    AND kokrs IN p_kokrs.
since I do not have "belnr"(the primary key) it is taking too long to get this info.....any one has any idea of any other tables to get this information or a bapi?
appreciate the help
AS

Hi all,
thanks for all the help and support on this...I found a way to get all the CO settlement doc numbers for a project and their relationship as sender and receiver.....
first  i went to anla and anek to get the AUC and the wbs settling to this AUC relatiionship...once i got my main wbs element...i found all the wbses for this project.
I need to use the table AUAK, AUFK, and AUAA to get all that information.  I got all my wbses for a project first....than I went to table AUAK with all these wbses...and found the belnr(settlement doc numbers)....this table does not give out complete settlement doc numbers for wbses....we need to go back to AUAK with the internal orders to get the belnrs for them as well....so to get all the internal orders for a project i went to AUFK....than i took these orders and went back AUAK with these orders and got my missing belnrs....
now I had all my belnrs for a project....so i went to table AUAA and did the select with these belnr...and since now i have the primary key the access is lighting fast....by doing that select i got all my relationship, i mean which settlement is goind where...
mind you that I used AUAS to get the sender/receiver relationship with the amount....this is as well a cluster table but we have the primary key belnr(co settlement doc. numbers)...so no worries to get the data here as well....
here are my selects for AUAK, AUFK and AUAA....
TYPES: BEGIN OF prps_ty,
        psphi TYPE prps-psphi,
        END OF prps_ty.
        DATA all_proj TYPE STANDARD TABLE OF prps_ty.
        DATA wa_all_proj TYPE prps_ty.
TYPES: BEGIN OF objnr_ty,
           objnr TYPE auak-objnr,
           END OF objnr_ty.
DATA lo_p_psp TYPE STANDARD TABLE OF objnr_ty.
IF all_proj IS NOT INITIAL.
          SELECT objnr FROM prps INTO TABLE lo_p_psp FOR ALL ENTRIES IN all_proj
          WHERE
          psphi = all_proj-psphi.
        ENDIF.
IF lo_p_psp IS NOT INITIAL.
          SELECT belnr objnr FROM auak INTO TABLE tab_auak FOR ALL ENTRIES IN lo_p_psp
          WHERE
          kokrs IN p_kokrs
          AND gjahr IN p_gjahr
          AND objnr = lo_p_psp-objnr
*        AND objnr LIKE 'PR%'.
        SORT tab_auak BY belnr.
        DELETE ADJACENT DUPLICATES FROM tab_auak COMPARING belnr.
SELECT aufnr objnr pspel FROM aufk INTO TABLE tab_aufk FOR ALL ENTRIES IN lo_p_psp
          WHERE
          bukrs IN p_bukrs
          AND kokrs IN p_kokrs
          AND pspel = lo_p_psp-objnr.
        ENDIF.
*get the belnrs for orders---this part is very important or we miss out all the belnrs for I/O...
        IF tab_aufk IS NOT INITIAL.
          SELECT belnr objnr FROM auak INTO TABLE tab_auak2
          FOR ALL ENTRIES IN tab_aufk
          WHERE
          kokrs IN p_kokrs
          AND gjahr IN p_gjahr
          AND objnr = tab_aufk-objnr.
        ENDIF.
*append these new belnrs to tab_auak
        LOOP AT tab_auak2 INTO wa_tab_auak2.
*              CONCATENATE 'PR' wa_tab_aufk-pspel INTO wa_tab_auak2-objnr.
          APPEND wa_tab_auak2 TO tab_auak.
        ENDLOOP.
        SORT tab_auak. "by belnr.
        DELETE ADJACENT DUPLICATES FROM tab_auak.
*now get all the belnrs for this project...complete list....
        IF tab_auak IS NOT INITIAL.
          SELECT belnr aufnr pspnr anln1 coobjnr FROM auaa INTO TABLE tab_auaa
                   FOR ALL ENTRIES IN tab_auak
*            WHERE pspnr = wa_wbs-posnr
                                 WHERE
                                 belnr = tab_auak-belnr
                                 AND emtyp = 'PR'
                                 AND bukrs IN p_bukrs
                                 AND kokrs IN p_kokrs.
        ENDIF.
        SORT tab_auaa BY pspnr belnr.
I used our own indexes for all the transparent table accesses.... to speed up the process...you might want to create your own indexes depending on the where clauses for transparent tables.....
well thanks again..and hope all this will help someone else too....
AS...
Edited by: J Are on Oct 31, 2009 1:19 PM

Similar Messages

  • Creation of settlement rules for WBS element

    Hi,
    Iam having problem when creating the settlement rules for WBS elements. The business goes like this.
    We have XI interface which creates the Idocs and an inbound program(customized) to process the Idocs. When the Inbound program is run the WBS elements are created and settlement rules are created for the WBS elements. The inbound program is run automatically thru batch job.
    First time when the Idocs are processed about 95% of the WBS elements have settlement rules created and for other 5% settlement rules are not created. The Idoc is in status 64. I tried reprocessing the Idoc and then the settlement rules are getting created succussfully. The problem is Iam not able to find why the Inbound program is not processing succusfully when its run first time but works when reprocessed.
    I appreciate if anyone can send their views.
    Best Regards
    SK

    Hi!
    You might set the processing to check not only once the relevant IDocs, but more times...
    Check out these programs, and set them into a batch job periodically...
    RBDMANI2
    RBDAPP01
    Regards
    Tamá

  • BAPI for settlement rules in WBS Elements

    Hi,
    Is there any standard bapi, method, or whatever... to create / modify settlement rules for WBS Elements?.
    Rgds,
    Jose

    Look at BAPI/FM of FG CJ2054
    BAPI_BUS2054_CHANGE_MULTI     Change WBS Elements by BAPI
    BAPI_BUS2054_CREATE_MULTI     Create WBS Elements by BAPI
    BAPI_BUS2054_DELETE_MULTI     Delete WBS Elements by BAPI
    BAPI_BUS2054_GET_GUID_FROM_KEY     Read the GUIDs Using the WBS Keys
    BAPI_BUS2054_GET_KEY_FROM_GUID     Read the WBS Keys Using the GUIDs
    CJ2054_CHANGE     
    CJ2054_CREATE     
    CJ2054_DELETE     
    CJ2054_WBSELEMENT_CHANGE_STRU     
    MAP2I_BAPI_BUS2054_CHG_TO_PRPS     
    MAP2I_BAPI_BUS2054_NEW_TO_PRPS     
    MAP2I_BAPI_BUS2054_UPD_TO_PRPS     
    Regards

  • How to settle previous period WBS element which was closed.

    Hi all,
    Please let me know, how to settle previous period WBS element which was closed.
    Thanks and kind regards,
    Padmaja.

    actually the wbs element was  related to 2005 and it must be cleared in 2005 itself.but due to some problem it had been not cleared. we cant open the prior period and close the wbs element .if we reverse it shows as erroneous transactions .

  • Which table has auc to wbs element relationship stored

    Hello everyone,
    I have to write a report on costs for AUC.  I have following scenario:
    auc1-----wbs2--internal order4
    ............... |----
    internal order3
    ............... wbs1----internal order1
    ............... |------internal order2
    ............... |
    auc2-----wbs3 -
    internal order1
    I tried my best to depict the scenario in the picture.....so basically i want auc1 cost.....now client does not want to see wbs3 element...since it is settling to auc2.....if i put in the project def in the following bapi(BAPI_PROJECT_GETINFO)...i get all the wbs elements..since there is a settlement from wbs1 to wbs3..is there any table which can give me relationship...or which can tell me that which wbs is settling for which auc....
    Thanks...i hope i was able to explain my question....
    appreciate the help....
    AS.

    Hi all, thanks for all the help and support on this...I found a way to get all the CO settlement doc numbers for a project and their relationship as sender and receiver..... first i went to anla and anek to get the AUC and the wbs settling to this AUC relatiionship...once i got my main wbs element...i found all the wbses for this project. I need to use the table AUAK, AUFK, and AUAA to get all that information. I got all my wbses for a project first....than I went to table AUAK with all these wbses...and found the belnr(settlement doc numbers)....this table does not give out complete settlement doc numbers for wbses....we need to go back to AUAK with the internal orders to get the belnrs for them as well....so to get all the internal orders for a project i went to AUFK....than i took these orders and went back AUAK with these orders and got my missing belnrs.... now I had all my belnrs for a project....so i went to table AUAA and did the select with these belnr...and since now i have the primary key the access is lighting fast....by doing that select i got all my relationship, i mean which settlement is goind where... mind you that I used AUAS to get the sender/receiver relationship with the amount....this is as well a cluster table but we have the primary key belnr(co settlement doc. numbers)...so no worries to get the data here as well.... here are my selects for AUAK, AUFK and AUAA....
    TYPES: BEGIN OF prps_ty, psphi TYPE prps-psphi, END OF prps_ty. DATA all_proj TYPE STANDARD TABLE OF prps_ty. DATA wa_all_proj TYPE prps_ty. TYPES: BEGIN OF objnr_ty, objnr TYPE auak-objnr, END OF objnr_ty. DATA lo_p_psp TYPE STANDARD TABLE OF objnr_ty. IF all_proj IS NOT INITIAL. SELECT objnr FROM prps INTO TABLE lo_p_psp FOR ALL ENTRIES IN all_proj WHERE psphi = all_proj-psphi. ENDIF. IF lo_p_psp IS NOT INITIAL. SELECT belnr objnr FROM auak INTO TABLE tab_auak FOR ALL ENTRIES IN lo_p_psp WHERE kokrs IN p_kokrs AND gjahr IN p_gjahr AND objnr = lo_p_psp-objnr * AND objnr LIKE 'PR%'. SORT tab_auak BY belnr. DELETE ADJACENT DUPLICATES FROM tab_auak COMPARING belnr. SELECT aufnr objnr pspel FROM aufk INTO TABLE tab_aufk FOR ALL ENTRIES IN lo_p_psp WHERE bukrs IN p_bukrs AND kokrs IN p_kokrs AND pspel = lo_p_psp-objnr. ENDIF. *get the belnrs for orders---this part is very important or we miss out all the belnrs for I/O... IF tab_aufk IS NOT INITIAL. SELECT belnr objnr FROM auak INTO TABLE tab_auak2 FOR ALL ENTRIES IN tab_aufk WHERE kokrs IN p_kokrs AND gjahr IN p_gjahr AND objnr = tab_aufk-objnr. ENDIF. *append these new belnrs to tab_auak LOOP AT tab_auak2 INTO wa_tab_auak2. * CONCATENATE 'PR' wa_tab_aufk-pspel INTO wa_tab_auak2-objnr. APPEND wa_tab_auak2 TO tab_auak. ENDLOOP. SORT tab_auak. "by belnr. DELETE ADJACENT DUPLICATES FROM tab_auak. *now get all the belnrs for this project...complete list.... IF tab_auak IS NOT INITIAL. SELECT belnr aufnr pspnr anln1 coobjnr FROM auaa INTO TABLE tab_auaa FOR ALL ENTRIES IN tab_auak * WHERE pspnr = wa_wbs-posnr WHERE belnr = tab_auak-belnr AND emtyp = 'PR' AND bukrs IN p_bukrs AND kokrs IN p_kokrs. ENDIF. SORT tab_auaa BY pspnr belnr.
    I used our own indexes for all the transparent table accesses.... to speed up the process...you might want to create your own indexes depending on the where clauses for transparent tables..... well thanks again..and hope all this will help someone else too.... AS...

  • Settlement rule in WBS element

    Hi Team
    we are assigning General ledger accounts for settlement WBS element cost. system gives the below warning message. but we have three company codes we fallow the same steps for all company codes. but we are facing in one company code only why it happen. warning message like below
    Total = 200.00%, ( Set.Type FUL / Version / Actual settlement ), period 009/2009, source assignment COE
    Message no. KD041

    we are selecting settlement catogiry G/L
    Settlement receiver G/L Number
    % = 100
    settlement is = Ful
    no = 1 ....10
    we are transfering the total amount to 10 g/l like above that time we are facing the problem.

  • Settlement of order -WBS Element

    Dear Experts,
    Can any one tell me what is meant by WBS element and in what scenario,PM orders settlement rule created with category as WBS.If possible tell me with any practical example.
    regards
    KRISHNAN

    Dear,
    Dear,
    Budget: Amount of resources allocated under a particular head in a financial year.
    Budget Control: Having/ creating a control on the resources allocated in a financial year.
    Original Budget: The initial budget that you have allocated to a WBS element.
    Supplement of Budget: One time/ discrete increment in the original budget.
    Return of Budget: Taking out the unutilized portion of the budget.
    Transfer of Budget: Transferring the budget among two or more expense heads.
    Project Definition: A framework for a business undertaking with a fixed goal to achieve with given resources.
    The project definition contains dates and organizational information that are binding for the entire project.
    WBS Element: Individual structural element in a work breakdown structure (WBS) representing the hierarchical organization of an R/3 project. Describes either a concrete task or a partial one that can be further subdivided.
    Proposed Business Process
    Assume there are seven expense heads in maintenance department. There may be addition of expense head in near future.
    Based on the maintenance heads, maintenance department will create a project in project system. This project will be used for ‘statistical purpose’ only & will not have any financial implication.
    Upon creation of a project, WBS elements will be created as per the expense heads. So for each expense head, there will be one top level WBS element. Again these WBS elements will be divided in twelve WBS elements. These twelve WBS elements represent twelve calendar months.
    Budget will be allocated to each WBS element & the WBS element will be released from the project.
    Maintenance department will create maintenance orders as per their work requirements. These orders will be settled to cost centre, which is maintained in the settlement rule. Also WBS element will have to be mentioned in each order so that the budget control can take place. So as to capture cost from each maintenance order, the WBS element field will be made ‘mandatory field’ in maintenance order.
    So when a maintenance order is released, system will do a budget check against the WBS element mentioned. If the budget check status is OK, order is released or else it will stopped from release. If the order is stopped from release, maintenance department will have to supplement the budget. Upon supplementing, the order is released again & the maintenance cost such as, labour, material costs can be booked on the order. Again the order cost is settled to cost centre & at the same time, budget is consumed from the respective WBS element.
    Every year, maintenance department will copy the previous year’s project so as to save time & efforts to create project & WBS elements. And the maintenance department will assign the budget allocated to each WBS element in a financial year.
    It is also possible to return the unutilised budget or, transfer of budget from one WBS element to another.
    Create a project CJ20N
    Create WBS element CJ20N
    Assign Budget to WBS elementsKO22
    Display assigned Budget KO23
    Supplement Budget KO24
    Display Supplement budget KO25
    Return Budget KO26
    Display Return budget KO27
    Transfer of budget CJ34
    Hope u wull get ur answer
    Regards
    Rakesh

  • Report on Settlement - Project wise/ WBS element wise

    Hello Friends,
    I am looking for a report on settlement which will include the senders - Projects or WBS elements and Settlement receivers and the amount settled in the any period for a particular fiscal year.
    Your response will be rewarded.
    Vishal.

    Hi,
    Pls refer CJIC and CJID.
    Regards,
    Amit

  • Settlement profile for WBS element

    Hi All,
    While providing the settlement profile and rule to a wbs element and saving i getting one error
    Rule 3Z000001072 not found" and
    indetail Diagnosis
    A subrule has been specified which does not exist.
    System Response
    None
    Procedure
    Check the name of the subrule and create a new one if necessary.  The subrule may belong to a different class.
    Can any one tell what exactly this means and how do i rectify.
    regards SAM

    Hi
    Check the rule
    SPRO - PS- Costs -
    Automatic and periodic allocations-settlement-Settlement rule for WBS
    in that check the settings of the rule which you got error and check the network order settlement rule also.
    Thanks
    S.Murali

  • Serial Number&WBS Element

    Hi experts,
    1-) I can not deliver sales orders because it requires serial numbers.
    Can anybody tell me how to cancel asking serial numbers?
    2-)If it is not available how can I create serial numbers?
    I created serial numbers by trcode IQ01 but again I can not deliver sales order.
    3-)At "create material serial number " screen it requires a WBS element.
    What is WBS element?
    And what is the role of it?
    Thanks&Regards

    Hi refer below ,Reward if helps you
    WBS element
    1) What is WBS element?
    2) What is the Tcode to get to that screen?
    3) What is the need and purpose of WBS element?
    4) Do we happen to work on Functional module during our implementation project?
    5) In what scenario/situation we will be working on WBS?
    WBS is nothing but Work Breakdown Structure. It is mainly used in Project System (PS) module. Tcode : CJ20N
    For any project defined we must have at least one WBS. Within this WBS we can have networks. Networks are nothing but the series of activities. Material are used to perform the activities.
    To explain in detail just consider one example:
    Govt of India wants to have Roads to be build through out the India. So Project can be defined in sap as "Connectivity".
    WBS can be roads within different states like Roads for Gujarat, Karnataka etc.. i.e. WBS Gujarat, WBS Karnataka etc.
    We can define different networks for these WBS  like Road Between Ahmedabad to Surat or Between Bangalore to Belgham.
    For this network we can have many activities like Land selection, Land Preparation, Road Building, Final finishing etc etc.
    Hemal's example was a good example. Project Systems comes into play only when the industry's business is based on projects like... Construction companies, Engineer to Order scenarios. You may not see anyone using PS module for retail business. As Hemal explained in that example, you have a main project which is broken down into WBS elements. You can use the TC CJ20N to create the project and the WBS elements. Each WBS may have mutiple Networks associated and each Network may have multiple Network Activities as explained in the example by Hemal.
    On the Sales Order, if your client is implementing PS module, you may have to attach the Sales Order to the WBS element it belongs to. WBS element is nothing but a bucket where all the activities belonging to that particular part of the project are captured. In the example, WBS Gujurat will tell you how many Sales Orders were created for the Gujurat sector, how much was spent on raw materials, what's the currect stock (reject stock) available. How many Production Orders have been confirmed and how many of them are getting confirmed in the future. How many invoices have been generated or how much revenue has been generated for that particular sector. How many deliveries have been made, what deliverables are still not accomplished.
    So as you can see, PS is the center stage for all the modules that are being implemented like FI/CO, SD, MM, PP in this example. You can have cost centers and work centers defined. You can also have profit centers assigned at the plant level and get reports on various selection criteria.
    In a complete cycle of PS, like in reality, you initiate a project, you confirm/release the WBS/activities as per requirement, you execute the project and you close it.
    One cannot initiate an activity unless it has been released by the project manager. Everything is accountable here and every dime is counted and at the end you know how much did you spend or make on each sector (WBS). Dont get confused with the term sector here... I am using it just for the explanation purposes.
    In one typical example, the company I was working with until not too long ago, had Deliveries from the Project (TC: CNS0). We never used VL01N. We used CNS0 to create a delivery and then used VL02N for confirming the picking quantity for the already created delivery document.
    I hope this should help you at least a bit. I'm not a PS consultant so I may not know a whole lot but trying going to CJ20N and you will see a lot yourself.
    PS consultants are one of the highest paid consultants. Their supply is less and so is the demand. They are expected to understand real world business processes very well and they are generally the center stage of a project.
    Serial Number Management :
    Serial Number Profile
    Working With Serial Numbers
    Serial Number Master Record
    Creating Master Records for Serial Numbers
    Serialization Data in the Piece of Equipment
    Maintenance of Configuration Data
    Serial Number Profile:
    Definition
    A group of data, summarized by a four-digit identification code, that defines the conditions and business procedures involved when assigning serial numbers to items of material.
    You enter the serial number profile in the master record at plant level for the material whose individual pieces are to be managed using material numbers. This means that an individual serial number profile can be assigned to a piece of material per plant. In this way a certain material can require serial numbers at one plant, and not at others.
    Structure
    The serial number profile contains the following information:
     The business procedures for which serialization
    – Can be performed
    – Must be performed
    – Is performed automatically
    – Is not performed
     Information on whether for a particular business procedure
    – Serial numbers can be assigned, for which a master record does not yet exist in the system
    – Serial numbers that already exist in the system as a master record must be specified
     Information on whether for a particular business procedure, a stock check should take place, and how the system should react in the event of inconsistencies
    The business procedures for which an equipment master record should or should not additionally be created for each serial number
    The equipment category that the system uses when assigning serial numbers automatically in the case of equipment master records.
    Working With Serial Numbers:
    Purpose
    You use serial numbers to identify items of material, which enables you to distinguish between the individual pieces.
    Process Flow
     You create a serial number profile in Customizing for Plant Maintenance and Customer Service.
     You create a material master record and enter a serial number profile.
     You create a batch master record for the material if it is to be managed in batches.
     You can create serial number master records in advance if you want to have a pool of serial numbers. From a technical perspective, an "incomplete" equipment master record is created for this.
     You can create configuration data for serial number master records.
     You assign serial numbers to the material when business procedures take place (for example, a goods receipt):
     Either you assign manually serial number master records that you created in advance, or
     The system assigns automatically new serial numbers and creates new serial number master records for this
    Serial Numbers in Sales and Distribution :
    Use
    It is possible to assign serial numbers in sales orders, inquiries and quotations, as well as for deliveries and returns deliveries. This makes it possible to track individual objects when goods movements take place (for example, sale of goods to a customer).
    Integration
    In order to use the serialization functionality in sales orders, inquiries, and quotations, you must have implemented the Sales component, and to use the serialization functionality for deliveries, you need the Distribution component.
    Prerequisites
    A serial number profile with the following procedures must be entered in the material master record:
    Profile Maintenance for Deliveries
     Procedure SDCC checks the serial number on goods issue. The serial number usage for it should be 03 = must.
     Procedure SDLS defines that the serial number should be created on delivery. The serial number usage for it should be 02 = can.
     Procedure SDAU defines that the serial number should be created in the SD order for items that are delivered. The serial number usage for it should be 02 = can.
     In this way, it is ensured that the serial number is assigned at the latest when the goods issue is delivered.
    SDAU This procedure makes possible the use of serial numbers in sales orders, inquiries and quotations
    SDLS This procedure makes possible the assignment of serial numbers for deliveries.
    SDCC This procedure makes possible the assignment of serial numbers when performing completeness checks for deliveries.
    SDRE This operation makes possible the assignment of serial numbers for returns deliveries.
    SDCR This procedure makes possible the assignment of serial numbers when performing completeness checks for returns deliveries.
    Serial Number Master Record:
    Definition
    Data record that contains information for serial number management. The serial number is given to an item of material in addition to the material number, in order to differentiate that individual item from all other pieces of this material. The combination of material and serial number is unique.
    Structure
    The following information is contained in the serial number master record:
     Status information
    You can establish here, which system and user statuses are valid for the master record. If necessary, you can set or delete the user status, display the authorized business procedures and set particular system statuses.
     Stock information
    You can see here in which plant and warehouse the item of material is located, or to which batch it belongs. You can also see what type of stock and special stock is involved. The stock information is recorded automatically when goods movements are performed, and cannot be changed manually.
     Partner Data
    Here, for example, you can use freely definable partner functions and partners to specify in Customizing which companies are responsible for the maintenance of the serialized material.
    Configuration data
    Here, you can configure a item of material according to its characteristics or make reference to a configured object.
    Example of Serial Numbers
    Company X manufactures solar collectors (panels). They produce three different types:
     Type A
     Type B
     Type C
    A material master record exists in Company X’s system for each type. For quality control reasons the company wants to know for each solar collector delivery which customer has received which type of solar collector, and which serial number(s) of the collector type was/were delivered to the customer.
    For this purpose, each solar collector that is produced is assigned a serial number that, together with the material number, uniquely defines it.
    In addition, company X wants to maintain and repair particular solar collectors that it sells directly to individual customers. For this reason, an equipment history is to be maintained for the collectors. Company X is able to do this by creating equipment master records for these serialized solar collectors.
    History
    Use
     You can use the history of the serial number master record to ascertain which procedures have affected the serial number. You can find all documents that have been created for the serial number here:
     Production and refurbishment order
     Maintenance and service notification
     Maintenance and service order
     Sales order
     Delivery
     Inspection lot
     Goods document
     Maintenance plan
     Maintenance contract
    Status Management
    Use
    Serial number processing is linked to status management. There are two different types of status:
     System status
    System statuses are set when you execute a particular function for the serial number. For example, you post a goods receipt in the warehouse and set the status In warehouse by doing this.
    User status
    User statuses enable you to further delimit functions allowed for a serial number on the basis of a system status. You can assign and delete user statuses yourself if you have the authorization to do this.
    Copying the Partner into the Serial Number :-
    Use
    Within the framework of a delivery, partner data is automatically transferred from the delivery note into the master record of the serial number when goods issues are posted.
    Prerequisites
    You have set the indicator Copy Partner in Customizing for Plant Maintenance and Customer Service under Plant Maintenance and Customer Service ® Master Data in Plant Maintenance and Customer Service ® Basic Settings ® Partner Data ® Copy Partner Functions to Master and Transaction Data.
     Furthermore, you have assigned the partner determination procedure and the corresponding functions to the equipment category under Technical Objects ® Equipment ® Assign Equipment to Partner Determination Procedure.
    Features
     The system copies the partner data from the delivery note into the serial number master record.
     If partner data has already been specified in the serial number master record, this data is overwritten with the data from the delivery note. However, the system only overwrites partner data for which the indicator has been set in Customizing.
    Creating Master Records for Serial Numbers:
    Use
    You are able to create directly master records for serial numbers during the assignment of serial numbers for various business procedures, if the serial number profile allows this.
    In addition, you can create master records for serial numbers in advance. This would make sense if you want to have a particular quantity of numbers in the system, that you can assign during a business procedure. in particular, this is the case when you are using serial number profiles that require serial numbers to already exist for certain business procedures.
    Activities
    You have two options for creating serial number master records for a material in advance:
     You create an individual serial number for a piece of material.
    You use this option, for example, if in make-to-order production you manufacture one item per day.
     You create several serial numbers simultaneously for a piece of material.
    You use this option, for example, if in repetitive manufacturing you manufacture several items per day.
    You can also create serial number master records if no serial number profile is entered in the material master record. However, use in business procedures is only possible if the serial number profile has been entered in the material master record.
    Working with Serial Numbers in Deliveries:
    Maintaining Master Data for Serial Numbers in Shipping
    Assigning Serial Numbers in Deliveries
    Deleting Serial Numbers from Deliveries
    Creating Equipment in Deliveries
    Some points of interest with serial numbers:-
    -You can assign a unique serial number to each material. This allows you to monitor goods movement for individual materials, for example, when selling materials to a customer. Using serial numbers you can also manage the maintenance of individual materials more easily in the system. You must first create equipment master records, however, for these materials.
    -To use serial numbers, enter serial number profiles in the master record for the relevant materials.
    -Serial numbers are usually specified in the delivery item. However, you can also define them in the order.
    -You can also have the serial numbers assigned automatically by the system.
    -You must specify all serial numbers, at the latest, before posting goods issue.
    Message was edited by:
            SHESAGIRI GEDILA

  • Settlement rules for WBS element

    Hi,
    I have a requirement to create WBS with settlement rules. Is there an FM or BAPI to call to create the settlement rule?
    Thanks.
    Lalyn

    hi
    good
    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
    Thanks
    mrutyun^

  • How to find WBS-Elements of CO-DOC-Numbers

    Hi,
    I need to know, whether a wbs element exists for a CO doc number / CO item number, or not.
    I have to create an extractor to load the doc number - wbs element mapping into BI.
    Do someone have some R/3 table proposals?
    Exists a meta data repository like in BI or a used-in function for R/3?
    DataSource 0WBS_ELEMNT_ATTR extracts wbs elements as field POSID.
    DataSource 0CO_OM_CCA_9 extracts CO doc number as field BELNR.
    DataSource 0CO_OM_CCA_9 extracts CO item number as field BUZEI.
    Field 0AUXACCVAL is not useable in case of error in R/3: PM orders with wbs elements will not get an valid 0AUXACCVAL value.
    Thanks and regards,
    Wolfgang

    warnerja wrote:
    flounder wrote:
    DrLaszloJamf wrote:
    You mean x.length?<pbs>
    Depends upon your interpretation of "number of elements in the array"
    int[] numbers = new int[10];
    numbers[0] = 42;
    numbers[1] = 666;Number of elements in the array is 2 not 10.
    </pbs>If you used something other than a primitive type for the array element type you could have a case. A value of integer zero for the other elements is still a value, so there are indeed 10 elements there.Even if it were not primitive, every element would have a value. That value would either be null or a reference.

  • WBS Element - Order Number Relationship

    Hi,
    I need to know the specific Order Number (example: PM order) with cost posting on WBS element.  I am use COVP / COEP field OBJNR to see the WBS Element (those starts with PR*), but I do not know which field is the Order Nmber contained in the table.
    Please advise in which table can I see the linkage between WBS and Order number for cost postings.
    Thanks!
    Regards,
    Vivian

    hi,
    plz go thru following thread.Might be it will help u
    WBS Conversion Routines
    Conversion - Internal number to External number
    WBS element
    <b>plz reward if useful</b>

  • Table name for WBS Element & Purchase Order Conditions

    Dear All,
    I need a table which stores WBS Elemnt No. & Purchase Order Conditions ( Like Excise Duty, Sales Tax, Packing & Forwarding etc.)
    Thanks & Regards,
    Sandeep N.Theurkar

    Hi ,
    It is not possible to get all this information from one table. But you can get the data by writing ABAP , or by creating a query.
    As Amit posted WBS table is PRPS.
    You can get the account assignment of a purchase order (whether it is network or WBS element) from table :EKKN.
    Pass PO number into EKKN and get the following:
    WBS No - PS PSP PNR
    Network -NPLNR
    Activity - AUFPL
    Hope all the postings together will provide an integrated picture.
    Regards
    Muraleedharan.R

  • Settlement of wbs element

    Good morning all ps guies
    I need help from u
    I m doing customer project. My top WBS element is account assignment and billing element.
    This wbs is assigned to scales order .I m getting cost and revenues on this wbs element.
    Now i want to settle this wbs element. One way is to settle to co-pa, as this wbs is carring both cost and revenues.
    But co team decided not to implement co-pa.
    so where can i settle this wbs element? and how?
    can i settle to cost center?   scales order?
    Please give ur suggessions
    regards
    shashankl

    Hi Gurus,
    I am loading the REAl ESTATE data through LSMW-BAPI.
    I need to load the settlement reciever as WBS elements.
    While loading the data i am getting  the error
    WBS element does not exist even though it is existing in the client and master table as well.
    KIndly let me know what can be done regarding this??

Maybe you are looking for