How to update "profit center for billing"(VBAP-PCTRF) for sales order.

Now, we need to bring "profit center for billing" in sales order to correspondence with meterial master, while BAPI "BAPI_SALESORDER_CHANGE" contain not this field, is there any way to achieve except modify database table directly.
Thanks!

Hello,
Pay attention with BAPIs in SAP, they often use different names as input parameters as the actual fieldnames.
In your example you can use the BAPI BAPI_SALESORDER_CHANGE.
You have to check the parameter ORDER_ITEM_IN (table) with field PROFIT_CTR.
This will correspond with the field VBAP-PCTRF that you want to update.
You will also have to use the table ORDER_ITEM_INX of the BAPI and flag your field (PROFIT_CTR) with an 'X' in order to update it in the database.
Always use the RETURN (table) parameter from the BAPI to see what the result is of your update.
Success.
Wim

Similar Messages

  • How to update profit center in posted document without profit center ?

    HI,
    I want to know,
    How to update profit center in posted document without profit center ?
    So that i can get my profit center accouting report proper.
    Thanks
    Nilesh

    There is a long story about profit center accounting. I assume you are using Classic PCA, this means you can see the PCA documents.  And the solutions is below:
         For P/L account, even you don't maintain cost element for it, if you maintain the profit center in the application (Frontend transaction), then PCA line items will be generated for this account.
        For B/S account,  if you maintain the default Profit Center with transaction 3KEH/3KEI, the PCA line items will generated for this account also.
      Hints, don't maintain default profit center for AR/AP accounts, these accounts to be treated in periodic processing.
      First, calculate the distribution/adjust by F.5D, then transfer it by 1KEK. for others account rather than AR/AP, use F.5E
    For you case, if this account is P/L account, but you don't maintain profit center in the transaction, you can maintain default profit center as B/S account in 3KEH and 3KEI, then transfer it subsequently by transaction 1KE8.
    Good Lucky!
    Flex Yang

  • How to update pick up date (VBAK-ABHOD) field in sales order

    I am creating sales orders using BAPI_SALESORDER_CREATEFROMDAT2 but it is not updating VBAK-ABHOD field i .e pick up date. Is there any FM which updates the pick up date VBAK-ABHOD also.
    I need to update pick up date for a special type of sales orders (Delivery orders) which are created in reference to schedule agreement.
    Is there any other way we can update pick up date. My last option is BDC but donot want to use it.
    Thanks in Advance.
    Rajesh.

    Hi Rajesh,
    You can not find any field in BAPI Change Or Create for sales order even header change BADI is for SAP Modification only. The best way to code in form USEREXIT_MOVE_FIELD_TO_VBAP  in MV45AFZZ, orelse you can use CALL TRANSACTION Method.
    Please let me know if you have any issues.
    Thanks and regards,

  • How to update profit center group?! Please help

    Hello All:
          We upgraded to ECC6.0 from 4.6C and I am getting an error below when I call some transaction that uses this profit center group:
    "Profit Center group XXXXXXXX not updated. The function is not supported for the selected object"
    Could anyone please tell me how to resolve this issue? All answers will be rewarded.
    Thanks.
    Mithun

    Thanks for the reply Rob. No, that is the only information I have! I just get a popup with that message!
    Thanks.
    Mithun

  • Mb1b movement 453 - profit center not from material but from sales order

    Dear All,
    we have the problem that by return process from sales order stock to free stock (453 movement) we would like to have the original Profit center from sales order, but as SAP standard it moves PC from material master.
    we have implemented already oss 978159 sowie 1038490, but did not help.
    Since days we try to find an uxer exit in MM or CO!? where we could write in the correct profit center. But unfortunately PC from material master pops up at the end of the process, and the system overwrites it again and again.
    Had sy of you similair problem? can you please help with an user exit?
    Thanks,
    BB

    Hi
    I think this behaviour is correct.. Since you are moving from Sales order stock to Unrestricted stock, the PC from mat master would prevail...
    As far as I know, this behaviour is correct
    Regards
    Ajay M

  • Partner profit center/Profit center billing (VBAP-PCTRF) missing in sales order during intercompany sales process.

    Hello All,
    I am facing a issue where in the partner profit center/profit center billing (VBAP-PCTRF) filed at item level in sales order is not getting filled during inter-company sales process.
    I have maintained profit center in material master for both selling and supplying company code.
    In addition to this when I generate a invoice "F2" system posts to the delivering company code's profit center.
    Note: profit center 9999 assigned to both company codes.
    Selling company code's material master screen shot:
    Supplying company code's material master screen shot:
    As per my analysis:
    1. The profit center field (VBAP-PRCTR) is filled in with the data maintained in material master for delivering/supplying company code and when inter-company invoice IV is created, system is posting to this profit center, which is correct as per my understanding.
    2. If I maintain some substitution rule using 0KEM, and if the requirements are fulfilled system fills in the partner profit center (VBAP-PCTRF).
    3. If i create a order (non-inter company) in delivering company code then correct profit center (VBAP-PRCTR) is flowing from material master.
    Please help me in understanding why the data in partner profit center (VBAP-PCTRF) is not flowing in during inter-company sales.
    Thanks & Regards
    Naveen K.

    Have a look at these notes:-
    1532865 - FAQ: Profit center in the billing document
    1579002 - Incorrect filling of "Profit Center for Billing"
    G. Lakshmipathi

  • BAPI_MATERIAL_SAVEDATA for updating Profit center giving an error message.

    Hi All,
           I have a requirement to update Profit Center in storage view of Material Master. So for updating Profit Center I used ‘BAPI_MATERIAL_SAVEDATA’. In this BAPI we will pass Material number, Plant and New Profit center. When I used this it is successfully updating the MM view and in the return message it’s showing no authorization for this transaction. For my ID I have authorization for General Plant Data / Storage, Costing and Plant/Storage Location Stock views in Material Master Change (MM02).
    I want to know why it is giving error message. Do I need to have authorization for all views in MM02 if I want to update the profit center through this BAPI?
    Pointers to any other BAPI which can be used for updating Profit center in storage view in such a way that I need to have authorization for any specific view in MM02 will be helpful.

    Hi Shyam,
         Check out the Auth object for which it is saying no authorization or
    Do the changing of Profit center using the transaction and check whether it is asking for Authorization object or not.
    Reward Points if it is helpful.
    Regards,
    Kiran I

  • Update Profit center field in FBL1N report

    Hi
    I have a query. We are making payment to vendors from bank account relevant to profit center A .Bill was raised by vendor for profit center A
    In FBL1N report it shows profit center relevant to bank line itemsi,e, A instead of B.
    We have activated New GL and specified Default profit center for bank GL accounts.
    Regards
    Ajay

    Hi,
    In new GL vendor line item is not having the field called profit center.
    for vendor line item profit center field will update from exiting bank line item only based on your document splitting functionality
    if you activate the Inherite check box ticked at 'activation fo document splitting' node else it will take the defualt profit center.
    Reg
    Madhu M

  • Profit Center Group Organization Change - Effective for Prior Periods

    Hi Experts,
    A client wants to perform a horizontal organization change (profit centers) and see the effects retroactively to the prior periods.  To achieve this, they plan to re-execute the consolidation tasks going back two to three years once the org change is made, so that they have comparative financial statements that take into account the change.  The requirement is to re-post the group level postings to the updated profit center group after the change.  For example, Italy related postings would occur under the group Central Europe instead of Western Europe as before.  All the group level postings previously booked to Western Europe would now need to recorded under Central Europe going back prior periods.
    Does anyone have any ideas as to how to meet the requirement without re-consolidating?
    One option was the restatement feature but based on the SAP help description of the monitor required, it does not take into account consolidated postings, only uploaded PL00-10 data and translation.
    Another option is to copy the version but then the results is in another version rather than the original 'actual' "100" version.
    Any ideas would be appreciated.
    Thanks
    Eyal Feiler

    Eyal,
    I know of no other way to accomplish this than to re-execute the consolidation for the prior periods after the hierarchy has been changed.
    I have used the restatement feature and like you have found it very limited.
    The copy to another version would only work if you copied the existing data to the new version before re-executing the consolidation. The the version 100 can be re-consolidated for the previous periods and the existing reports do not have to be changed for a new version.
    However, with the copy, it is important to set the cons group and cons unit hierarchies to be version dependent so the changes are only good for the version that is to be re-consolidated for previous periods. This allows you to report on the data before the change where the logic will read the old, unchanged version of the hierarchy.
    Dan

  • Auto Determination of Profit Center in Billing

    Dear all,
    we are using WBS element for posting accounting document from there system is determining the Profit center required for billing , Now I want to remove this WBS element and would like to determine profit center from Material Master Sales General Plant data in billing.
    If I am deactivating the setting of  WBS  element in sales order , system is giving me an error at billing stage , that accounting doc is not generated because sales gl required a  link of cost center,
    But iin our business profit center keeps changing as per the sales grp.
    So please advice how can I solve this issue.
    SO i can determine the prf center/cost center from material master in      billing.
    Sukh

    You need to have both
    - VKOA (GL assignment)
    - OKB9 (auto acct assignment)
    configured for sales billing.
    In OKB9, you have to map one cost center to one GL, say, GL acc 111111 = A100.
    Now for your material # 123456, you need to assign to GL acc 111111.
    Therefore, for that you can go for a substitution rule TCode GGB1 to replace the cost center based on material.
    Finally, maintain call up points for substitution in Tcode OKC9.
    Regards
    JP

  • Profit center Document is not created for Balance sheet items

    < MODERATOR:  Message locked.  Please post this message in the [Controlling forum|SAP ERP Financials - Controlling;. >
    Dear all,
    Profit center document is not created for balance sheet accounts , where i specified in 3KEH (default profit center for balance sheet a/c's) , i did n't do any changes , if i do any changes in dev , then i will transport to quality  there is no pending requests
               Same entry In quality environment profit center is updating and creating profit center document  for balance sheet accounts . I compared with actual posting settings like  Maintain Document Types and Define Number Ranges for Local Documents but it is same as development
    regards
    Govind
    Edited by: Govind Yadav on Sep 24, 2008 8:33 PM

    Is any body find the solution of this problem
    I am also facing the same problem Profit center document is not getting created from any MM document
    3KEH configuration is there but still the system not generating the Profit center document for those materials where there is no profit center assigned in the material master data and in 3KEH i have configured that it should post to dummy if there is no profit center in the material master data
    Please tell me if some one have the solution to this problem
    Bilal

  • How to lock Profit Center in SAP B1 8.8 PL10

    Hi All,
                I am Using Profit cneter feature as Location for one of my client. Totally there are 12 locations( Profit centers). Now I got a situation where I need to lock few Locations (Profit Centers). Bcoz they are non Operative as of now.
                Somebody please let me know how to lock profit center in SAP B1 8.8 PL 10.
    Thank you,
    Dasari.

    Try this for A/R Invoice:
    if @object_type = N'13' and @transaction_type in (N'A', N'U')
    BEGIN
    If exists (Select T0.DocEntry From INV1 T0
    Where T0.DocEntry=@list_of_cols_val_tab_del and T0.Project
    in ('P1', 'P2'))
    Begin
          Set @error = 13
          Set @error_message = 'Project Code inactive!'
    End
    END

  • How to add 'profit center'  under documents of dynamic selections in FBL5N

    Dear Friends,
    In fbl1n (vendor line item display) if i choose dynamic selection ..left side of the window consists of fields....under document ...'profit center' is there....
    In fbl5n(customer line item display) for the same ,profit center is not there.....!!!
    How to add 'profit center' into the available list in FBL5N
    Regards,
    Madhu..!!!

    Hi,
    Do Ctrl + f8 (Change layout).  In it u have profit center for FBL5n
    Pls. assign points, if useful
    Regards,
    Sridevi

  • How to add profit center in fbl5n selection screen

    how to add profit center in fbl5n selection screen
    and
    it is save to copy  ddf from sap to cus
    wll it affect anything else

    When you are on selection screen of FBL5N, press (Shift + F4) DYNAMIC SELECTIONS, there you will see a Dynamic selection screen along with your normal FBL5N selection screen, you will find Profit Centre ther, if you don't find Profit Centre in Dynamic Selection Screen you can add the same from the list on the left, search for profit centre, place your cursor on Profit centre and press the Arrow Button(Copy Selected) on top of the list. Now you will find Prfit Centre in Dynamic selection screen, fill the field with values and press save, that's it.....
    Reward points if useful, get back in case of query...
    Cheers!!!

  • Update Profit Center in MARC Table

    Req is to update Profit Center in MARC table.So let me know any BAPI or function module for Mass Upload to change profit center.
    Thanks
    Suresh

    Hi Suresh,
    For MARC table data change you should use BAPI_MATERIAL_SAVEDATA as it is data related to Material number.
    Regards,
    Atish

Maybe you are looking for