Profit Centre Derivation - User Exit

We have set up a substitution that is based on the sold-to party - i.e. we use data on the sold-to party to derive the profit centre (the profit centre is based on the country of the customer).  However, ideally we would like to base it on the country of the ship-to party - but this data is not available to us in the user exit and, because the order is not yet saved, there is no table to read to get it.
Any suggestions?
Thanks Robert

RESOLVED

Similar Messages

  • Profit centre derivation rule to derive profit centre based in Business plc

    Hi,
    We required "profit centre derivation rule to derive profit centre based in Business place + 9000 in such case were vendor & customers are involved and current profit center derivation logic doesnu2019t work."
    For this we have mapped a substitution pertaining to all co. codes based on all the relevant posting keys for Vendor and Customer where in system will replace the profit center based on business place given in line item as Business Place + 9000. For happening this we have written a User Exit and attached the same with this substitution through t.code OBBH. Entire hting we mapped in our testing client.
    But now the problem is whatever posting keys we have defined in our substitution are being used in normal payment and clearing also.
    Eg : In payment document vendor is debited vide posting key No 25. where the profit centre is derived based on the invoice that gets selected.
    In Normal Payment and clearing transactions, the profit centre is derived based on the profit center in offsetting line items (as per New GL Logic) currently.
    Now our business requires that where ever the system is unable to derive a profit centre for vendor and customer (And giving the error " Balancing field profit center in line item 001 not filled") transactions, then at that time profit center for that line item should replace with logic Business Place + 9000 (here business place is the business place contained by that line item in which error is coming for profit center.).
    How to map the same in the system through substitution / exit or any other method? Awaiting for your inputs pls. Thanks in advance.
    Tapan

    Still not answered.
    Requesting to give some clue for the same.
    Thanks & Regards,
    Tapan

  • To override the profit centre derived from account assignments

    Hi SAP GURUS
    I had assigned a profit centre in 3KEH in ECC6.0 (New G/L is not activated, hence using 3KEH) for a particular G/L account.
    But when i do a MIRO, the profit centre is derived from the PM order.
    I want the settings in 3KEH to override the Profit centre derived from PM order.
    Kindly guide me to overcome the issue.
    Regards
    R.Karthigayan

    Hi,
    As you need to only change the profit centre , when you have a PM order in MIRO. Then i would suggest you use a Validation & Subsitution Rules.
    Validation should check whether a MIRO has PM order or not, If yes then it should do the PC Change.
    Regards,
    Siddique

  • Urgent plz!! partner profit centre derivation

    my company has 2 plants under one company code . one plant supplies one material type A to second plant .Both the plant have different profit centres.
    How to make the partner profit centre hit when i am doing an invoice posting in MIRO.
    I tried doing a derivation rule in 8kes , but the partner profit centre has to hit after matching the particular material no and the plant no .
    in the enhancement source text there is no field for plant where i could modify the source text .
    Moreover at the user exit in 8kes , after creating a breakpoint , it is not getting hit during MIRO .
    Plz help

    Hi Sunil ,
                    This is very much possible .
    Procedure :-
    generate the report ex fbl1n with any criterea.Before that check weather field profit center is there in Dynamic selections .
    Even after giving if it is not coming .then go to settings in fbl1n report and there click on special fields .
    New entries
    Table Name BSIS/BSID/BSIK
    Field Name  PRCTR
    Similarly  
    Table name  BSEG
    Field Name  PRCTR
    you save the changes
    if you find any error like field prctr already exist then no need to craete firld PRCTR for BSIS  but you need to create it for BSEG (form which these figures populate )
    then save .
    CAUTION: ypou may not find the changes until indexing takes place .
    so Wait fro some time for ex In some comanies indexing takes at night time . after that only you can see the changes .
    this way you can add some special fields .
    Hope this will cater.
    Thqanks and Regards,
    Sunil

  • Profit Centre to user

    Hi to everyone
    Can we assign a profit centre to a user
    Thank
    Kentish

    No. You cannot assign profit center to users.
    But you could set FS for every interesting document setting the profit center according to the actual user.

  • VL01N - User Exit to substitute Profit Centre value field

    Hi Guru,
    In the VL01N transaction (Outbound Delivery) I'm looking for a user exit to substitute the Profit Centre derived from a standard procedure by SAP, with another value.
    Can you suggest me the user exit normally used to do it?
    Thanks

    Hi,
    User exits for  VL01N transaction code
    V02V0001  Sales area determination for stock transport order
    V02V0002  User exit for storage location determination
    V02V0003  User exit for gate + matl staging area determination (h
    V02V0004  User Exit for Staging Area Determination (Item)
    V50PSTAT  Delivery: Item Status Calculation
    V50Q0001  Delivery Monitor: User Exits for Filling Display Fields
    V50R0001  Collective processing for delivery creation
    V50R0002  Collective processing for delivery creation
    V50R0004  Calculation of Stock for POs for Shipping Due Date List
    V50S0001  User Exits for Delivery Processing
    V53C0001  Rough workload calculation in time per item
    V53C0002  W&S: RWE enhancement - shipping material type/time slot
    V53W0001  User exits for creating picking waves
    VMDE0001  Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002  Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003  Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004  Shipping Interface: Message SDPACK (Packing, Inbound)
    Regards,
    Madhu

  • How to make profit centre restriction in GR55 reports.

    Hello,
    I am facing one problem, in the systems when users are using reports from gr55 transactions they are able to see the figures or data from other profit centre.
    these users have roles which have profit center restrictions. but still they are able to see the data of different profit centre.
    Any budy tell me which outhorization object need to be modified.to put  profit center restrictions on the transaction.(GR55).
    Regards,
    Bhavesh

    > But before that, you need to change the check indicator for these objects from Check to Check-Maintain in SU24.
    That wont change much from an access perspective. It only changes the PFCG proposals and generates urban legends...
    You need to make the generated tcode known to the system (see [SAP Note|https://service.sap.com/sap/support/notes/1254159] and check it.
    Which object you check is freely definably in coding (with all consequences of not doing so..).
    Im my opinion, reporting belongs in a BI system anyway... There you can use granular and flexible concepts.
    Transaction systems are for FB01...:-)
    Cheers,
    Julius

  • Query with user-exit hierarchy variable and input ready hierarchy node var.

    Hello everyone.
    we are using several hierarchies (2005, 2006 and 2007) of the same info object 0FUNDS_CTR (one for each fiscal year). We would like to be able to use same reports regardless of chosen fiscal year (selected hierarchy) and ever more, to select node inside proper hierarchy. At the moment reports use 3 parameters:
    1) fiscal period from - fiscal period to
    2) hierarchy name
    3) hierarchy node
    Our goal is to get report with only 2 parameters:
    1) fiscal period from - fiscal period to
    2) hierarchy node
    since hierarchy name could be derived (user exit) from fiscal period.
    When user selects hierarchy node he is being asked to select hierarchy name (despite of user exit for hierarchy name) and key date (populated with current date).
    We would like to avoid step of user selecting hierarchy. Is it possible?
    Any other approaches to problem would be appreciated.
    Kind regards,
    Josko.

    Hi Jörg,
    As mentioned, I_STEP = 3 is  processed once per query, not once per varaiable.
    If this statement is placed within case-endcase for I_VNAM it never will be processed.
    Please take a look on this, it might be helpful..
    Regards
    Joe

  • User Exit for Delivery to add Profit Centre

    Hello All,
    I need the User Exit to Add the Profit Centre at Delivery level..!
    I tried in this MV50AFZ1 Form FORM userexit_move_field_to_lips.
    but its not working...
    So please let me know the userexit and the code..!
    Thanks in Advance
    Regards
    Babu

    Hi Prabhu..
    We need to maintain the profit center derivation rule in the delivery or billing document, i.e. if batch no starts as A- Profit center-1000, B -Profit center-2000. We have used some user exit in order and working fine. where as our client is interested to have same in delivery or billing document. The profit center should be determined as per batch no starts and not as maintained in the material master.
    now I did it in Delivery its working fine only in Delivery but its not carrying to Billing
    so please help me out which carries for entire cycle
    my code is like this
    Include MV50AFZ1
    FORM userexit_save_document_prepare.
    LOOP AT xlips.
    IF xlips-charg+0(1) EQ 'D'.
    xlips-prctr = '0000001000'.
    ELSEIF xlips-charg+0(1) EQ 'E'.
    xlips-prctr = '0000001200'.
    ELSEIF xlips-charg+0(1) EQ 'R'.
    xlips-prctr = '0000001300'.
    ELSEIF xlips-charg+0(1) EQ 'M'
    OR xlips-charg+0(1) EQ 'P'
    OR xlips-charg+0(1) EQ 'N'
    OR xlips-charg+0(1) EQ 'U'
    OR xlips-charg+0(1) EQ 'H'
    OR xlips-charg+0(1) EQ 'L'
    OR xlips-charg+0(1) EQ 'S'
    OR xlips-charg+0(1) EQ 'O'
    OR xlips-charg+0(1) EQ 'Y'
    OR xlips-charg+0(1) EQ 'B'
    OR xlips-charg+0(1) EQ 'A'
    OR xlips-charg+0(1) EQ 'I'.
    xlips-prctr = '0000009001'.
    ENDIF.
    XLIPS-UPDKZ = 'U' .
    MODIFY xlips.
    CLEAR xlips.
    ENDLOOP.
    ENDFORM. "USEREXIT_SAVE_DOCUMENT_PREPARE
    Thanks
    Regards
    Babu Aeda

  • MIRO User - Exit to Change the Profit Centre..?

    I need to change the Profit Centre in the Accounting document(for Vendor Line Item) and Profit Centre Accounting Document(For Payable Line Item) Created by MIRO Transaction.Can any one let me know if there is anyuser-exit or badi to achieve the same
    Thanks a lot for your help .
    Regards,
    Gopi.K

    hi
    These are all the user exits avalilable for MIRO transaction.
    LMR1M001            User exits in Logistics Invoice Verification
    LMR1M002            Account grouping for GR/IR account maintenance
    LMR1M003            Number assignment in Logistics Invoice Verification
    LMR1M004            Logistics Invoice Verification: item text for follow-on docs
    LMR1M005            Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006            Logistics Invoice Verification: Process XML Invoice
    MRMH0001            Logistics Invoice Verification: ERS procedure
    MRMH0002            Logistics Invoice Verification: EDI inbound
    MRMH0003            Logistics Invoice Verification: Revaluation/RAP
    MRMN0001            Message output and creation: Logistics Invoice Verification
    I think you can use this exit.
    LMR1M002 
    Regards.
    Lavanya.

  • KE52 - Change profit centre - user exit

    Hello,
    I've searched high and low in transaction KE52 (change profit centre) for a user exit/badi/bte etc. and have found nothing. I need to validate that the 'Person Responsible' field is a valid SAP user. Please let me know if any of you have found a way of doing this - I'm not interested in z programs that find user exits etc.
    Thanks
    Richard

    Hi Richard,
    you could, instead of using a user-exit or BADI, use the field-exit of the domain VERAK (link to the data element) VERAPC.
    I have not found any user-exit or BADI too.
    Rgd
    Frédéric

  • User Exit for KE51 - for maintaing profit centre group

    Hi,
    We have maintained a Z-table wherein we have mainatined a ranage of profit centers which will fall in a particular profir center group. Say, all profit centers created in range of 100001 to 100099 shound fall under profit center group 'AAA'.
    So, if someone is creating a new profit center 100010 and by mistake gives profit center group as 'BBB', we expect the system to give message saying "the intended profit centre does not fall in the range assigned to profit centre group 'BBB'.
    Kindly advise how to triger the message as above? Is there any user-exit for t-code KE51 that can be activated to check whether the profit center group (as defined in Z-table) assigned in profit centre master is correct or not?
    Thanks,
    Bijay

    Hi,
    thanks for your reply.
    I couldn't understand what you are trying to say by  saying "The only option I see is to modify trx. KE51 report according to your needs". Please explain.
    Thanks,
    Bijay

  • User Exit to derive characterstics values of COPA

    Hi
    I Am posting an FI document using the standard program rfbibl00 or through FB01.
    I have to post data to the PA segements too .
    But the problem is that i need to derive the value of Brand based upon the value to Profit centre.
    Can you help if ther is any user exit hat will be triggered where i can put in this code to derive the brand.
    Thanks
    Nikhil

    Hi,
      The follwoing user exits are available:
    Exit Name           Description
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    regards
    Aveek

  • User exit:Customer order-profit center

    Dear friends,
    While creating customer order, after ı fill customer and material SAP brings profit center automatically.
    I think this situation is related to user exit.. Can anyone please tell me which user exit it is?
    Regards,

    Hello,
    The Profit center is derived from material master plant view . the determination as described by you is from standard functionality.
    if you are using a WBS element, it would be derived from the WBS elements org parameters
    hope this helps
    Thanks
    Akasha

  • How user exit is used to populate the Profit center field in  Sales order?

    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.

    Hi,
    To derive the correct profit center in the Sales Order, you customize in 0KEM.
    Trust this helps much and do encourage our efforts!
    Cheers!

Maybe you are looking for