Freight revenue is allocated by profit center, based on the number of units

Hi SAP Gurus,
I am facing one issue in sales order processing.
The Sales order is getting created through an inbound IDOC.
The data (Condtion type and Condition value) for Freight will get populated at at the header level at will get allocated to the line Items wrt quantity.
The requirement is - "Freight revenue is allocated by profit center, based on the number of units shipped".
Please let me know how to achieve this requirement.
Regards,
Bhaskar

In VOFM- Reqirements- Pricing- You need to create a new requirement- Routine.
That Routine should calculate
To check Frieght condition(i.e. ZFRT) at the header in the sales order, if tcode - "VA01" 
If Freight conditon ZFRT found then transfer that reqirement to item level  by data transfer,
IF Freight conditon is found at the item level then allocate revenue by = profit center XXXX to XXXXX , (based on MARC- PRCTR ) in MM03  number of units shipped .
You might also need to configure Account determination for this freight conditon to post to correct G/L A/C.
This is an Enhancement.
Good luck

Similar Messages

  • Profit center based on cogs profit center

    Hi All,
    Based on a business requirement, I need to auto populate the profit center based on the cogs profit center selected at row level.
    I have made a query but it auto populates the profit center only on the second row when we add a item and not when we select the first item? Any suggestions..
    The fms used is
    SELECT $[DLN1.CogsOcrCod]
    which is set to display saved user defined values.
    Thanks,
    Joseph

    Hi!
    In whcih document you have this FMS.
    Is the FMS is  auto refresh ? On which field it is been set for refresh
    When you click the magnifier on First row, did the FMS is working ?
    Change your Auto refresh field and check.
    If you are using Copy From or Copy To option , there is a chance of not triggering the FMS

  • Profit Center Based on Warehouse.

    Dear Experts,
    Consider the following scenario.
    The client has one plant and three warehouses. He manufactures as well as imports the FG. All the deliveries are done from either of the three warehouses. But while doing the sales order he doesn't know from which warehouse he will be dispatching it. The requirement is as follows
    1. If the goods are delivered from the first warehouse the system has to trigger profit center 1 and
    2. if the goods are delivered from either second or third warehouse then the system has to trigger profit center 2.
    We cant create more than one plant as it will be a prob at the creation of sales order.
    I checked in the SDN forums regarding assigning more than one profit center to one plant or assigning the profit center based on storage location or warehouse but i couldnt get any positive answer.
    Pls suggest me as to how to achieve this?
    Thanks
    Suresh

    Hi Rahul,
    I created each Branch as a profit Centre and the filed name is OPRC.PrcCode . If the user at a particular branch logged in SAP by using his ID and when he is adding a SO the profit centres list should appear in Profit centre filed.
    And is there any provision to set the profit centre  (OPRC.Code) as default for the user at a branch by taking document no.series or location ID or User ID as consideration in the FMS query.
    Thanks
    Srinivas

  • Business Process - Sales Process through Distribution point but revenue booked to Manufacturing Profit Center

    Dear Expats
    Our company now planning to decentralized the sales by introducing Sales distribution Point.
    We have three manufacturing plant and every manufacturing plant are individual profit center.
    Material is same.
    Now company is planning to introducing sales distribution point.
    Goods transfer from three manufacturing plant to sales distribution point and sale from the distribution point.
    Now our requirement is - revenue will be booked to every manufacturing profit center.
    How can we process this business process.
    Note : We don't want to create separate material code - manufacturing plant wise.
    Regards
    Tarek H Chy

    Hi 
    I have the issue like..
    1.  For each line item of the sales order check, whether the profit center is filled or not, if it is not filled then determine the profit center and populate.
    2. If material of the line item is "sub component code" of a material that is "Offering component code", then compare the profit centers of line item with the profit center maintained for the material that is offering component code.  If the profit centers are different, replace the sales order line item profit center with the profit center of the offering component code material.
    3.  Above activities should happen when the sales order is saved.
    can somebody tell me which user exit ?? where coding can be dine.

  • Profit Center population in the Vendor and Customer Line items

    hello
    our client is asking for  getting profit center in the vendor and customer line items  where in the view FBL5n and fbl1n we are not getting the profit center populated - in the new gl i understand that there is a standard report based on the gl account.
    but our business is not satisfied with the report and expecting report at profit center level.
    Can any one suggest any way of doing this.
    regards,
    Vijay

    Dear Vijay,
    Let me provide you my view of solutioning for this. This is an enahcement that needs to be done
    1. You can get the profit center from the given vendor and customer line item at the time of posting, using an enahcement you will be able to capture it.
    2. Existing the profit center field is not populated in the BSIK,BSAK,BSID and BSAD tables
    3. Hence, in the same enhancement once you capture the profit center , you can write the code that profit center is updated in these tables also.
    4. This will help you to do the vendor line item wise selection in the FBL1N,  FBL5N profit center wise.
    Constraints of this solution:
    The only constraint remains where in the for a given document if there are multiple profit center, then the system will do the splitting profit center wise for a vendor line item, which will not populate the profit center in those tables as there is only one field available in the bsid etc.. tables.
    This basically would be the one the soltuion where in as seeen from the end user ther eis no change in the front end interface , the way they are doing always they can do.
    You need to also take care the % of document splitting means cross profit center postings /cross document splitting charactericstics postings and the volume involved in this. so that you can suggest this to your client.
    Regards,
    Bharathi.

  • To Populate the profit center field in the sales order by user Exit.

    Hi All,
    Please let me know :
    How the user exit is used to populate the Profit center field in the Sales order?
    Please gurus answer  as quickly as possible as I require this urgently.

    If you want to overwrite the profit center in sale order (determined from the materail master) with a different profit center based some other criterion you can use profit center substitution rules. Check the wiki:
    [Profit Center Substitution in Sales Orders|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erplo/profitCenterSubstitutioninSales+Orders]
    Regards,
    GSL.

  • Profit center updation at the time of delivery order

    Hi,
    We have three profit centers & three finished goods..All the three finished goods are manufactured  in all the three profit center.At the time of sales order , i am not sure from which profit center i am going to deliver to the customer.so i want to update the profit center field at the time of delivery order.
    How to tackle this problem? Please advice
    Regards
    Sarang
    09937732217

    Dear Sir;
    i have the same your problem but in the deferent way but also i need to change the profit center in the delivery wise
    thanks
    Mohamed Helmy
    +20 10 222 0 386

  • BAPI_PO_CHANGE me22n add profit center for purchase requisition number

    Hello all,
    I have to add an item line for a specific sales order( p_vbeln ).
    for that i use BAPI_SALESORDER_CHANGE and it works and the item is inserted.
    ( p_posnr = sales order item and ln_etnr = schedule_line = 1 )
    Now I have to maintain the specific po item line and to insert the Profit Center related to the Purchase Requisition Number that was assigned to the above sales order item like using transaction ME22N.
    when i use the transaction all i have to do is to ADD the Purchase requisition number to the PO Order Number and to add the PROFIT CENTER.
    for this i use BAPI_PO_CHANGE.
    i colect the folowing data:
    from table VBFA( vbelv = sales order number vbeln = l_ebeln)
    PO Number = p_ebeln.
    from table VBEP ( vbeln = sales order number, posnr = the previously inserted sales order item )
    Purchase Requisition Number = l_banfn
    Purchase Requisition Item = l_bnfpo
    from table VBAP (vbeln = sales order number, posnr = the previously inserted sales order item )
    Profit Center = l_prctr
    from table EKKN
    select max(  ebelp )
    from ekkn
    into l_ebelp
    where ebeln = l_ebeln.
    add 10 to l_ebelp
    Purchase Order Item = l_ebelp .
    and i move the data:
      i_t_poitem-po_item = l_ebelp.
      i_t_poitem-preq_no = l_banfn.
      i_t_poitem-preq_item = l_bnfpo.
      i_t_poitem-acctasscat = cc_x.
      APPEND i_t_poitem.
      i_t_poitemx-po_item = l_ebelp.
      i_t_poitemx-po_itemx = cc_x.
      i_t_poitemx-preq_no = cc_x.
      i_t_poitemx-preq_item = cc_x.
      i_t_poitemx-acctasscat = cc_x.
      APPEND i_t_poitemx.
      i_t_poaccount-po_item = l_ebelp.
      i_t_poaccount-itm_number = p_posnr.
      i_t_poaccount-SCHED_LINE = ln_etnr.
      i_t_poaccount-profit_ctr = l_prctr.
      APPEND i_t_poaccount.
      i_t_poaccountx-po_item = l_ebelp.
      i_t_poaccountx-profit_ctr = cc_x.
      APPEND i_t_poaccountx.
    then i use the function BAPI_PO_CHANGE:
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          purchaseorder                = p_ebeln
          testrun                          = l_test
       TABLES
         return                            = i_t_return_po
         poitem                          = i_t_poitem
         poitemx                        = i_t_poitemx
         poaccount                    = i_t_poaccount
         poaccountx                   = i_t_poaccountx.
    BUT i get the folowing result ( messages in return table)
    Insert item for PO-order                                                                               
    Message:  Changing of PO using Enjoy BAPI unsuccessful ;                                                
      Message:  Purchase order item 00120 still contains faulty account assignments ;   
      Message:  Enter Profit Center ;                         
    what should i do?
    best regards,
    emilia

    hello,
    i debugged the function.
    first the data from poaccount is copied in lt_account.
    then this happens:
      PERFORM get_current_data
          TABLES    poitem               poschedule               poaccount
                    pocondheader         pocond
                    extensionout
                    poexpimpitem         allversions              popartner
                    potextheader         potextitem               return
          USING
                    l_po                 lf_header_currency
          CHANGING
                    expheader            exppoexpimpheader.
      exppoexpimpheader = poexpimpheader. "foreign trade export workaround
    after this form is executed poaccount-profit_ctr is empty.
    lt_account-profit_ctr in not empty but then it is not anymore.
    in the form this happens:
    item data
      CALL METHOD im_po->get_items
        IMPORTING
          ex_items = lt_items.
      LOOP AT lt_items INTO an_item.
        l_item ?= an_item-model.
        CALL METHOD l_item->get_data
          IMPORTING
            ex_data = ls_mepoitem.
        ls_mepoitem-ebeln = ls_header-ebeln.
        APPEND ls_mepoitem TO lt_item.
    schedules
    accountings*
        CALL METHOD l_item->get_po_accountings
          IMPORTING
            ex_accountings = lt_accountings.
        LOOP AT lt_accountings INTO an_item.
          l_accounting ?= an_item-model.
          CALL METHOD l_accounting->get_data
            IMPORTING
              ex_data = ls_mepoaccounting.
          ls_mepoaccounting-ebeln = ls_header-ebeln.
          APPEND ls_mepoaccounting TO lt_account.
        ENDLOOP.
    item conditions
    foreign trade (item data; EIPO)
      ENDLOOP.
    so it acctualy copies every item from purchase number ebeln in lt_item.
    for each one of them it copies the account data into lt_account.
    so the last loop is for the item that i want to enhance.
    here it copies all the necessary data in lt_account except of course the profit center because that's the one that i need to insert.
    after this loop there is a form:
      PERFORM move_account_out TABLES lt_account
                                                                ext_poaccount
                               USING  header_currency.
    where the ext_poaccount is the poaccount parameter.
    this form:
    clears ext_poaccount.
    copies the data from lt_account into ext_poaccount.
    and returns the ext_poaccount with the empty Profit center field
    and so after performing get_current_data my parameter is deleted.
    then it's almost the end of the function and nothing else related to the poaccount parameter.
    so it's no use for me to insert the field Profit_Center?
    is there another FM that i should use to be able to insert the profit center?
    what should i do?
    Best regards,
    Emilia

  • Wrong profit center capture in the billing document of intercompany sales

    Hi Experts,
         I am facing a problem on the incorrect profit center capture in the billing document while billing to external customer. I did try to search SAP notes found that it can be use substitution user exit to correct it. So I try to find out the substitutions by T-code GBB1 in the folder  "profit center accounting" under create sale order.
    The problem is how to maintain the substitution? Besides that did any one knows how to write the user exit for this substitution.  I will appreciate if you can give me some sample program. Thanks in advance.
    Regards,
    Jennie Tan

    Hi,
    Refer to program RGGBS000 FORM u100. Your user exit has to be modelled along those lines.  Change the select statement to select the profit center from the material master using the material number field (PCASUB-MATNR) and plant (PCASUB-WERKS). Move this profit center to the profit center field (PCASUB-PRCTR).
    Copy RGGBS000 to ZGGBS000 and then write this code.
    Just writing this out of my mind. Get an abaper to help you with this.
    TABLES: MBEW.
    DATA: WA_MARC TYPE MARC.
      exits-name  = 'U345'.
      exits-param = c_exit_param_none.
      exits-title = 'profit center subs'.            
      APPEND exits.
    FORM u345.
    SELECT * FROM MARC INTO WA_MARC WHERE MATNR = PCASUB-MATNR AND WERKS = PCASUB-WERKS.
    IF SY-SUBRC = 0.
       MOVE WA_MARC-PRCTC TO PCASUB-PRCTR.
    ENDIF.
    ENDFORM.
    In SM30 table V_T80D assign the program ZGGBS000 to application area GBLS.
    Then write your substitution in 0KEM. Make sure in TCode 0KEL the the activation level is 1 or 3.
    Thanks and Regards
    Shivram.

  • How to add the Profit center Group in the PA report KE33.

    Hi Frnds,
    How to add the Profit center Group in the PA report KE33.Iam not able to find PC group in the list to add to the Charateristics already added.

    Hi
    PC group is not available as a Char in COPA..
    if you want to do that, either create a Char Hierarchy in KES3 for the Char Profit Center
    OR
    Create a WW char in KEa5 and write a derivation rule using the method "Enhancement" .. Write ABAP Code in COPA0001 exit
    bt, Ajay M

  • Change Segment in Profit center to which the data has already been posted

    Hi,
    Is it possible to change Segment in a Profit Center to which the transaction data has already been posted.
    Regards,
    SAPFICO

    Hi,
    The segment can't be changed in the profit center once the document has been posted. But you can create a new profit center with new validity periods with new segment.
    Regards,
    SMuvva

  • Credit charges based on the number of credit days offered to the customer

    AOA,
    I have a scenario.
    We have credit charges based on the number of credit days offered to the customer. This scenario will be executed on credit sales only.
    Example of pricing, a product mobile is offered to customer A on 20 Days credit
    Mobile   $1000
    10 Days $1000
    20 Days $2500
    Total      $4500 (Invoice Amount)
    Any idea how can I acheive this in SAP.

    Customer A wants to buy product " Mobile "
    Scenario is of Credit sales. Pricing is as follows:
    Price                       $1000
    10 Days                  $1000
    Total After 10 days $2000
    20 Days                    $2500
    Total After 20 days $4500
    Gross Amount         $4500
    The amount of invoice will be $4500.
    If customer pays the amount with in 10 days, then customer only pays $1000.
    If customer pays the amount with in 20 days, then customer only pays $2000.
    If customer pays the amount after 20 days, then customer pays $4500.

  • Updating the BPM workspace view based on the number of instances in view

    Hi All,
    We are using ALBPM 6.0.5 enterprise with Weblogic 10 server. We have a requirement to update dynamically the view name in the left side panel in BPM workspace. Based on the number of instances created, the view(view name ABC) should carry something like "ABC(2)". 2 being the number of instances in the view. It's more like a mailbox client InBox. Depending on the number of mails, the Inbox changes the number highlighting new mails.
    I've tried using the Workspace API to update the cusom decorator class getRow() method to update the view CSS property. But it doesn't seem to work. All I'm able to do with the decorator class is to update the propeties of instances, but not other panels?
    Is there any API to control the panel properties in BPM workspace?
    By the way, I'm using the standard workspace without any changes.
    Any pointer will be much appreciated.
    Cheers.

    Yes, I'm hoping to fill in DataGridA with all records from dc where dc["ENTITY_ID"] = dr["ENTITY_ID"] 
    I tried your statement and received the following errors:
    Error 1
    The left-hand side of an assignment must be a variable, property or indexer
    C:\ISMG_7210\MedicalSequenceDataAnalysisProject\OTCS_Algorithm\OTCS_Algorithm\Form1.cs
    87 71
    OTCS_Algorithm
    Error 2
    Cannot implicitly convert type 'object' to 'int'. An explicit conversion exists (are you missing a cast?)
    C:\ISMG_7210\MedicalSequenceDataAnalysisProject\OTCS_Algorithm\OTCS_Algorithm\Form1.cs
    87 99
    OTCS_Algorithm
    Thank you for your help.
    Joel Fredrickson
    Yes, please follow example provided by Kristin, the error is because of missing comparison operator ==, and that the dr["ENTITY_ID"] is of type object that needs to be converted to int. I've updated my code, if you have Entity_ID in your DB as
    double use Convert.ToDouble instead.
    Fouad Roumieh

  • Third party sales revenue getting posted to Profit Center valuation in COPA

    Hi,
    We have activate profit center valuation for our operating concern.
    During normal OTC cycle (third party sales), all the data is flowing correctly in legal view for the COPA document
    In profit center valuation, only revenue is flowing and no other values like discounts, standard costs are flowing to Profit center valuation view
    My question why only revenue is flowing and not any other values. Is this way system should behave
    Thanks.

    If you have created new GL Accounts to map the Third party scenario, the pre-requesite is that you might need to create cost elemenet with category 11 or 12.
    Further only assignments are condition types assigned to value fields.
    Check if the billing type is reset under TCode KE4W.

  • What is Indirect Allocation in Profit Center Report?

    Hi Experts
    Can Anybody tell me What it show in Indirect allocation Column. I checked it all  the transaction it shows in Direct allocation. 
    Thanks
    Regards
    Gorge

    Hi,
    For a profit center created, a default distribution rule is created which is mapped to direct expenses.
    If you want to show any expense under indirect expense, create a new distribution rule under
    Financials->Cost Accounting->Distribution Rules
    1.Give distribution code and name
    2.In the total field put 100
    3.Now map the cost centers with repective percentage where you need to book the expense as indirect expense
    4.Dont check the direct debit, if this is checked all the entries will be shown in direct expenses
    Map this distribution rule in the chart of account.
    Now book an expense for that account, this will be shown under indirect expense column in the profit center report.
    Hope this is helpful.

Maybe you are looking for

  • Web service response doesn't include DTO contents

    Hi, I've created an EJB-based web service that takes two input parameters and returns as a response, a data transfer object (DTO) that contains several boolean values.  When I test this web service in the Web Service Navigator however, the response o

  • Sending book pdf as spread to client - how?

    need approval and any changes from client so need to send book pdf as spread - at moment just showing as single page.  I can tell them to view two pages but the problem with that is it pushes the pages so they're seeing wrong images next to each othe

  • Laggy CONTACTS app after updating to PR 1.2

    Hi guys. I have recently updated to PR 1.2 and I'm very happy about this. However there are a couple of issues. 1. CONTACTS app have become very laggy and it is a kind of annoying. 2. SEARCH app seems that will never start. it seems that searching fr

  • Podcasts "episodes to keep" not working...

    I cannot get the "episodes to keep" in my Dave Ramsey podcast to stick. I have keep the last 3 episodes but it keeps them all. I have to manually delete the 4th upon completion of the most recent one downloaded. What am I doing wrong?

  • Forms Drop down list

    I am trying to figure out how to do levels within drop down list. Are there any suggestions?