Default profit center in sales order line item level

Hi Experts,
In creation of a sales order, I want to default the profit center for every line item in the order depending on some logic. How do I go about it.
Warm Regards,
Abdullah Ismail

Hi,
You would need to implement a user exit:
try this user exit :
USEREXIT_MOVE_FIELD_TO_VBAP
Use this user exit to assign values to new fields at sales document item level. It is described in the section "Copy customer master fields into the sales document".
regards,
Advait

Similar Messages

  • Change the Profit Center in Sales Order line item's Account assignment tab

    Hi Gurus,
    I need to change the Profit Center at Sales order Line item in Account Assignment Tab. Currently  The Profit center is coming from Material Master for the Line Item's Material as default but I have to change / overwrite  that.
    Can any body provide me how can i achive that means
    Any User exits, substitution or any thing ?
    I tried MV45AFZZ but i am not able to find out the right place where I can change COBL-PRCTR.
    Sony

    Hi
    There is perform which moves the values to VBAP field.
    This PRCTR field is stored in VBAP (i.e., SO line item table)
    USEREXIT_MOVE_FIELD_TO_VBAP
    Hope it works.
    VVR

  • Default Functional Area in Sales Order Line Items

    Hi,
    Is there any user exit that can be used to default Functional Area in Sales Order Line Items.
    I tried mv45afzz but not working. Any idea and do let me know the field or structure effected.
    Thanks.

    Hi Sathish
    You can update table XVBAP from program SAPMV45A in program mv45afzz like code below:
    FIELD-SYMBOL: <mytab> LIKE STANDRD TABLE OF VBAP.
       ASSIGN (SAPMV45A)XVBAP TO <mytab>.
       LOOP AT <mytab>.
       ENDLOOP.
    I hop it helps .
    Kind regards
    Carlos Machado

  • Defaulting profit center from sales order while doing delive COGS line item

    HI All
    In my company COGS account is a cost element.when PGI(post goods issue) was posted, sap will automatically create an accounting dcument
    CR:stock account ( profit center from material master data or from sales order)
    DT:Cost of goods sold ( profit center from cost center master data)Can we default profit center from material master data(or from sales order) in the COGS line item
    Thanks in advance

    What is your current Version? Is it ECC6 and New GL implemented? Document split configuration will help you.
    If you are not using ECC6 and New GL, then try T.Code 3KEH and determine profit center based on Valuation area.    OR
    You may look into GL Line item level, Write a Validation Rule to select profit center.
    Hope this will help you.
    Thanks
    VR

  • Credit check at sales order line item level

    We are trying to carry out credit checking at the line item level. Standard SD only has credit checking at the document level.
    Does anyone know of any enhancements or notes we can apply to achieve this.
    Thanks Steve

    Hi Steve,
    The field VBAP-CMGST is only at the header level that is the credit      
    status is only available at the header. So when you release a            
    sales order the entire order is released. It cannot be maintained        
    at the  item level.                                                                               
    Note 60672 explains that placing a delivery block on the schedule line   
    level will have this affect on credit management.  Credit bases things   
    on what can be delivered. Please check in the tranx OVZ7                                                                               
    In block quantity confirmation in delivery blocks there is a blocking    
    reason setup (ZI) which blocks confirmation if an item is incomplete.    
    Please see configuration in transaction OVZ7.                                                                               
    Unfortunately, in standard SAP, credit block is applicable to the        
    whole S/O document.                                                                               
    In general, credit is applicable to the customer [soldto/billto/payer].  
    In SAP, this 'customer' is part of header/document level, and not        
    item level.                                                                               
    You can not change this behaviour in IMG or userexit.  
    I hope those information can be useful
    regards
    Ruy Castro

  • IDOC(ORDERS05) - Pass payment method on sales order line item level

    Hi
    We have requirement here to pass payment type(VBKD-ZLSCH) on each line item of the sales order from IDOC. But, IDOC structrure ORDERS05 doesn't have provision to handle this data. Is there any other way to pass this information, except extending the IDOC and handling in the user exit(002) for the same. Please advice.
    thank you very much in advance.
    Thanks
    Lakshman

    I was able to fill the event container creating a new FM based on the template FB SWE_CD_TEMPLATE_CONTAINER_FB_2.  At that point, you have access to all of the Change Document information (i.e. CDHDR and CDPOS).  I was able to take the line item affected and set the Event parameter for line item and then pass it through my workflow. 
    As I was testing I realized that if I made multiple line item changes, they are tagged with the same Change document number during the same update in the sales order.  As a result, I had to make the Event parameter a multiline parameter.  Now I was trying to set the Event parameter, but I think I was using the Methods SWC_SET_ELEMENT for the multiline parameter.  It wasn't setting it properly.  I think I need to use SWC_SET_TABLE and pass it the whole table. 
    I will let you know if this works.

  • Profit center derivation from sales order line item  - R/3 4.7

    Hi,my scenario is below
    FI document generated from billing is as
    DR:GL1 - its not customer AR,because i post amount to one GL instead customer  (profit center is dummy)
    CR:GL2  (profit center is correct)
    i can see profit center in sales order line item and billing line item,why that profit center not copy to GL1?can someone advise,thanks
    Best regards
    renhua

    Hi phaneendra Reddy ,
    The substitution rule is to determine profit center in sales order line item,not for FI document.right?
    because i can see correct profit center in sales order.
    i know if i post debit site to customer AR,will execute a periodic run to transfer AR to profit center,but now i post debit site to a GL,dont know how to get profit center

  • VA01 Sales order (line items) and different Cost center assignment

    Hello gurus,
    im searching for solutions how to assign different cost center to sales order line items, but only thing that i found is the substitution (Using Substitution (GGB1) to change Cost Center assigned in (OKB9))
    Trying to do this i was unable to create something that could work, since there was no Logistic.
    Could somebody explain me the Line item in SO assignment to Different cost centers?
    I know alot about OKB9, VKOA and other transactions, but still cant find anything suitable to solve this issue
    Best regards
    Laurynas

    What i mean is that, on the end of every month we are gathering information for Statistical Key Figures (from Controlling) entering as CO document and then distributing the costs using KSV5 TC on Internal Orders according those entered statistical key figures.
    i.e. we got INCOME 1000000 from 10 internal order, which we distribute on even percentage parts like 10 cost center, each getting 10% of the income.
    I tried to create the SO, but the Profit center field, after i entered a number, was changed automatically into another.
    And the posting didnt reach Controlling and the assigned Cost center. I think it is a lack of configuration.
    Regards
    Laurynas

  • Profit Center Substitution for Migrated line item

    Dear Expert,
    we migrated the data on feb 2014. past records having the default profit center value in each line item, after the migration we are not using the default profit center , we blocked that through some validation, but some situation, for clearing vendor or customer or gl, the migrated line item having default profit
    center with disabled mode to change. so its throwing the validation error, we cant able to unblock the validation also. we need to write a substitution for this to replace automatically . Eg :
    Default Profit center is : 38000
    it should be replace with to 2038100001
    like wise we have multiple company codes.
    i try to write the prerequisite, herewith i have attached the screen shot, i am getting the error for this, anyone can explain this situation ?
    Regards
    Prince

    Hi
    Please, check these notes
    SAP Note 173798 - User exit for PCA substitution
    SAP Note 1532865 - FAQ: Profit center in the billing document
    SAP Note 150959 - Profit center is incorrect in production order
    SAP Note 530578 - Special stocks in PCA
    SAP Note 594507 - PC with valuated special stock incorrect
    and related notes
    I hope this helps you
    Regards
    Eduardo

  • Profit center in sales order .... WRT to Distribution channel

    Dear Folks,
      Here is a strange requirement to my client...based on distribution channel profit center needs to be derived in sales order  needs solution in  Standard SAP if available...typical example Mat X serves from 3 Distribution channels.....3 different profit centers needs to be derived in sales order based on DC ....I suggested the Substitution rule in FICO...but client is denying that....he  needs solution in SD only..if there is any wayout please let me know .
    Best Regards,
    SGR

    hi
    Defaulting PC from the material master is just one of the ways that SAP can do it, but since I can't currently remember anything about PCA I can't tell you what the others are!
    However, I did find the following documentation which looks to be the "standard" way of doing what you want. This is the IMG documentation of transaction 0KEM (menu path SPRO-Controlling-- Profit Center Accounting-- Assignments to Profit Centers-- Sales Orders-- Sales Order Substitutions).
    Define Substitution Rules
    In this activity you define substitution rules for finding the default profit center for sales order items. It makes sense to use substitution rules if the profit center proposed from the material master does not meet your requirements.
    Example
    You want to use a sales office or a distribution channel as a profit center.
    Standard Settings
    No predefined substitution rules exist.
    Activities
    Proceed as described under Maintain Substitutions in Customizing for FI-SL Special Purpose Ledgers. The following are predefined in
    Customizing for Profit Center Accounting:
    o The application area (Profit Center Accounting)
    o The callup point (Create Sales Order)
    o The field to be substituted (Profit Center)
    You can substitute the profit center with a constant value or by assigning a table field. It is also possible to use a user exit.
    Additional Information
    For more information on substitution rules, see the documentation for Financial Accounting on the component "FI-SL Special Purpose Ledgers" (in the chapter "Basic Functions"). Also, read the notes in the online documentation under Financial Accounting -> Special Ledgers ->Validation and Substitution -> Substitution.

  • Third Party GRN Posting Date to be Copied to Sales Order Line item Billing Date

    Hello Experts
    I have a client requirement where in they want to bill line items in the sales order ( third party process ) to the end customer in sync with the GRN posting dates happened in the PO
    For EG if GRN happened on 1st July 2014 then Billing Date should come in as 31st July 2014 so when they execute VF04 giving from and to dates as 1st july to 31st corresponding sales order can be invoiced
    Actual problem is for suppose if i create a sales order in the month of june say 26th basing on the factory calendar setting and invoicing list maintained in the customer master system defaults the billing date to 30th June 2014 , and the same when user runs VF04 from 1st June to 30th June this sales order shows as due and mistakenly end user invoices the customer ( whereas logical GR would have only received in July 1st )
    My requirement is similar to below threads but i am unable to find answer how to copy GR Posting date to Billing Date of the sales order line item
    use GR Doc date as billing date
    3rd party sales process (w/o ship notif) - Billing

    Hi Lakshmipathi ji,
    As my requirement is to update the billing date at the sales order line item level , As a process user goes in executes VF04
    For Ex
    Sales Order Created Date is 1st June 2014 then System Defaults Billing Date at line item to 30th June 2014
    Now when i do GRN suppose on 1st July 2014 for that line item , system should trigger a code where in check the posting date of the GRN and override the same in the Biiling Date field of the sales order line item
    So when VF04 is run for a month All the GRN which are recieved in the month of July are invoiced in July
    Please share me your thoughts do we need to check any userexits from MM side which reads the posting date of GRN and then copies in to my third party sales order
    Regards
    Hiba

  • Sales Order Line item category not getting Re detemining Correctly

    Dear all,
                I need  help regarding the Sales order item category redetermination.
                we are having two item categories YNAE and YNAG and it contains schedule  line categories CP and CB ( i.e for item         category  YNAE schedule line category is CP and for item category YNAG schedule line category is CB),
    for YNAG Purchase Requisition is automatically created becz of functional setting on save and it is working fine.
    For every line item in sales order line item level item category YNAE will be determined by default as per functional settings.
             Now my requirement is that, if sales order line item doesn't contain 100% confirmed quantity, than i needs to change the default line item category YNAE to YNAG which i am trying to do it in USEREXIT_PRICING_PREPARE_TKOMP becz in this exit i am getting the values in XVBAP and XVBEP and  it is working fine .
             But schedule line category is not getting redetermined automatically what i mean is, if i change the item category to YNAG from YNAE in user exit corresponding schedule line category CB of YNAG is getting determined automatically at the schedule line level and if ichange the schedule line categories in XVBEP in exit USEREXIT_PRICING_PREPARE_TKOMP, changes are reflecting at the schedule line level but Purchase requisation is not getting created for schedule line on SAVE and its delivary dates are also not getting determined properly. If i press the option ATP check at the schedule line level than very things will getting corrected.
       I feel that i am not doing this in proper way, do u have any idea about how to redetermine item category. please let me know if u have any idea .
    Regards,
    Vaddepally Manoj

    USEREXIT_PRICING_PREPARE_TKOMP is the wrong location - that exit is for pricing communication preparation only.  Your primary location for item category determination is USEREXIT_SOURCE_DETERMINATION (MV45AFZB).  In your simple scenario, you could consider making an availability check at this point with some assumptions and then assign the item category accordingly.  Otherwise, you can re-assign item category and schedule line category in USEREXIT_MOVE_FIELD_TO_VBEP.  The exit is called once before ATP (for ATP-relevant schedule line categories) and once afterwards.  The call is recursive if you re-assign another ATP-relevant category.

  • Sales order line item user exit?

    Hi Folks,
    Can any one of you suggest me an user exit in sales order line item level?
    I want something which stops before/ or just after entering the quantity in the item level.
    We wanted to set up a issue which deals with rounding profile comming from CMIR record to take from Ship-to rather than standard Sold-to party functionality.
    Thanks a TON in advance.
    Praveen.

    Praveen,
    Check this post
    https://forums.sdn.sap.com/click.jspa?searchID=7098802&messageID=1674246
    Regards,
    Satish

  • Sales order line item check based on material status

    Hi
    I have the following requirement
    There are Distribution chain specific material status maintained in the material master ( Sales Org1 View). Now for some of these statuses we need to reject these items in the sales order @ line item level. A reason for rejection needs to be assigned for these line items.
    Is there any standard setting or a user exit is required. I believe user exit save_document_prepare could be used to carry out these checks & assign a reason for rejection. Pls suggest asap
    Thanks
    Ramesh

    Dear Ankit,
    The difference between reason for rejection and delivery block is,
    Reason for rejection you can find this field at header level and line item level, the use of this is once you mention any reason for rejection the TOR or Schedule line not been confirmed for that material,so that the material can be confirmed to another customer.
    If you set delivery block the material for sale order in case if the material not available it will rise TOR or if available it will confirm the schedule line and block the material for that customer or sale order.
    This is the major difference between two.
    Regards
    Ram

  • Sales order line item conditin type

    hi experts
      in pricing procedure determination we  at lost we are giving condition type. it was displayed in sales order line item level
    what is the purpose of this condition type.
                                   thanks to every buddy who are trying to give answer this question.
                                        narasimha
                                        [email protected]

    Hi,
    This is to avoid going into the line item and entering the value in the amount field.
    When u assign it there in your pricing procedure determination you can enter the amount in the amount field for each line item and avoid drilling down to conditions tab for each item
    Hope you find this helpful.
    If you, please reward points for contribution.
    Regards
    Ravi

Maybe you are looking for