Validating Profit Center in CJ20N Transaction

Hi All,
My requirement is to lock the Profit Center field(Make it grayed out) in the project using CJ20n transaction once it is created.
Also when ever the user is trying to change the profit center by entering the project details, it should give an Error message saying that "the profit center value cannot be changed", when trying to save the project details with the new value.
I have tried using almost all the userexits(CNEX0001,CNEX0002,CNEX0003,CNEX0004,CNEX0005,CNEX0006,CNEX0007,CNEX0008,CNEX0038,CNEX0033,CNEX0028,CNEX0029) for the transaction CJ20n and even searched for the BADIs, but none of them was not suitable for my requirement.
Can any body suggest the suitable User exit or a BADI to implement for this requirement.
Thanks

Hello,
Try following....
Use BAdi BUS2054.
In that write an implementation
Two scenarios
1) Creating new project. (Values in PRPS table will get updated after save.)
2) Opening existing project  in change mode. ( Already values corresponding to that WBSE are available in PRPS table).
Pre-Requisite:
1) If possible make Profit center field madatory.
Scenario 1:
In Implementation write
At_save
IF PRPS-PRCTR = initial or zero. Then no error. Because he is creating Project, so no values will be available in PRPS. Once he saves PRPS will get updated and from next it will be delt as per scenario 2 below.
Scenario 2:
At_save
If PRPS-PRCTR <> the value entered by the user (i.e. user trying to enter something different which is already there in PRPS table against that WBSE (PRPS-POSID)) throw an error "Profit center can not be changed".
Please try along with ur abaper.
Post ur findings.
Thanks & Regards
Saikishore.Ganga

Similar Messages

  • Validation of profit center for MIGO transaction

    Hi!
    For MIGO transaction I want to restrict users of one profit center to post for another profit center.
    I have tried it with GGB0 , OB28 as well as OKC7 but i was unable to do it.
    please help me out with details.
    thanks
    Amit

    hi! Eli Klovski 
    Validation in GGB0 is set under financial accounting head and under line item.
    In the prerequisite of  GGB0 i have mentioned BSEG-KOSTL ='HO' where HO is the cost center.
    under check subheader I have mentioned SYST-UNAME = 'UDAY' where UDAY is the user name which is set for cost center HO and  the message is set as 'UDAY is set for HO'.
    message type is 'E'.
    thanks
    Amit

  • How to restrict the users specific cost center/profit center in FBCJ transaction.

    Hello Guru's
    We have created multiple profit centers across india. So I would like to restrict area wise profit center to use the users.
    ex ; I have created for MUMBAI M001 to M009 range and for Hyderbad I have created H001 to H009.
    So my requirement is Only Mumbai user should able to post the entries in FBCJ transaction and should not able to post other area's which are hynderbad and so on.
    In T code FBCJ, Users are able to post to any cost center/profit center even it is not in the range of B001 to B991. I have maintained these values in object K_PCA and org levels as well
    Kindly provide your valuable solutions’.
    Thanks
    Mohan

    Hi Rajiv,
    Thanks for information.
    I have already restricted the filed RESPAREA of K_PCA. Please find the below details.
    PCFFCLB001-PCFFCLB991, PHFFCLMUMBAI
    However still the user is able to post the entries in other area's (hydarbad n delhi..). Can you please let us know other solution.
    Let me know if you need any other details.
    Thanks
    Mohan

  • How to make field 'profit center' as non-mandatory in Transaction F-28?

    Transaction F-28 shows Profit Center field as mandatory. How to make it optional; i have already checked it in field status groups-its suppressed over there?
    Field status groups are suppressed. I have also checked posting keys and posting keys assigned to the relevant Bank G/L Account.
    Document splitting is inactive on my company code.
    Payments can be processed through transaction code: F-26 (Incoming Payment: fast entry) without Profit Center requirement.
    But at F-28 (Incoming payment), profit center is mandatory.
    Any Help in this regard will be appreciated.
    Thanks.
    Arslan Qureshi.

    Thank You Karan
    I have Un-checked profit center accounting at transaction OKKP, but no effect.
    why can i post incoming payment through F-26 but not F-28.
    Also Document type is DZ in both Transactions. its only in F-28 that it askes for Profit Center
    Thanks
    Arslan

  • Transfer Fixed Assets From Profit Center to Another

    Dears,
    I have transferred a fixed assets from location to another location. So that, I have to change the profit center for the transferred fixed assets.
    I tried to do the following :
    AS02 => Time dependent =>More Intervals => Add Intervals .
    But the cost center is not able to be changed.
    Please help...
    Thanks

    HI,
    To trasfer an asset from one profit center to other profit center, create an asset in receiving profit center and run transaction ABUMN. System will retire asset from sending profit center and the value will be trasferred to receiving profit center.
    You can also have second option for this, change cost center of asset by defining the validity for the same.
    Hope this would help you.
    Regards
    Pankaj

  • How to prevent the system to post without Profit Center

    Hi All,
    SAP has posted some transactions without profit center being filled, which is causing issue to our profit center reporting.
    How can we force the system not to post the document without profit center and how to correct the existing one?
    Regards,
    Servesh

    Hi,
    You can pass on the exiting documents to the profit center accounting using transaction code 1KE8
    For forcing the system to check profit center, please apply OSS note 1249888:-
    [https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1249888]
    Alternatively, you can define validations. But best is to use this OSS note.
    Regards,
    Garuav

  • Profit Center is not getting captured in Vendor line item from MIRO.

    Dear Friends,
    Profit Center is not getting captured in Vendor Line Items from MIRO Transaction for some New Business Users, where as for Old Users profit center is getting generated at Vendor Line Item.
    We have provided the same authorization of old Users to new business users. (i.e. New user is a copy of old user)
    Please help us how we can the get Profit Center in all transactions will be processed by New Business users.
    I think we need to maintain user based authorization to get the Profit center in vendor Line items processed from T.Code:MIRO in SAP.
    Looking forward for your kind cooperation in this matter
    Thanks & Regards,
    Naveen Kumar.

    Hello Naveen,
    I am not very sure about your query, as you might be knowing that the Profit Center is only updated in New GL tables (FAGLFLEXA, FAGLFLEXT) and hence the Vendor relavant tables would not.
    The profit center information in the split lines or the line of the 'General Ledger View' are only displayed within transaction FAGLL03 which read the 'new' table for the NewG/L.
    About profit center wise reporting, when New GL is active Please review attached consulting SAP note:
    - 826357     Profit Center Accounting and new general ledger in
    I hope this helps. If not, please provide an example of your requirement.
    Thanks and regards,
    Suresh Jayanthi.

  • How to make a field profit center mandatory in sales order?

    Dear GURUS,
    Please help in getting answer for following question.
    How to make a field profit center mandatory in sales order?
    With Regards
    Sandeep D.

    Hi,
    There are 2 ways to make profit center mandatory
    1.Transaction Variant
    2.Incompletion procedure
    1.Transaction Variant
    Step 1:Goto Tcode shd0 and input transaction as va01 and give name of transaction variant as ( example. zva01 ) and click on create or F5
    Step 2.Then it takes you to sales order screen.Just click on enter untill you see profit center field.
    Step 3.check the box required against profit center.
    Step 4.click on save ( under a package name or as local object ) and exit
    Step 5.Assign transaction variant to your sales order type through tcode v0v8.
    2.Incompletion Procedure
    You can add the field  table-vbap,field- prctr,status-04,check-warning to your existing incompletion procedure Tcode- ova2 assigned to your order type in tcode vov8  and check the box - incomplete messeges for your order type through tcode vov8.
    If incompletion procedure is not assigned to your order type than you have to create a new incompletion procedure and assign it to order type.

  • Balancing field "Profit Center" in line item 001 not filled during Payroll

    Hi,
    I am working on 6.0 with New Gl activated. We have a scenario in HR where in all the employees are created as vendors. Any loan to vendor will be given from FI directly but the recovery would be done through payroll.
    During payroll system passes two entries as;
    1. Basic Salary - Dr.
        Transport Allow - Dr.
        Other Allow - Dr
            To Accrued Salary
             To Clearing A/c
    (This clearing account will gets nulified with vendor A/C)
    2. Clearing A/C - Dr
            To Vendor A/C
    The above mentioned error is coming in second entry for line item 001.
    Please let me know your inputs to solve this.
    Thanks & Regards,
    Ajay Gupte

    Hi,
    System is basically failing to find a profit center in this transaction which is mandatory due to Document splitting configuration. You wil have to
    1. Assign profit center manually while posting the transaction
    2. If this is not possible, make settings in FAGL3KEH. You may need help from your FI consultant on this.
    When you post the second entry are you referencing to first transaction or both of them indepenant?
    Edited by: FICOTRAINEE on Mar 23, 2011 10:10 PM

  • Userexit/BAdi to update profit center in VF01

    Hi Experts,
    My Scenario is in IS Retails Project. We are using WPUTAB01 Idoc to post Means of Payment inbound. With WPUK tcode the idoc is generating but unfortunately it is not updating the Profit Center field in billing so an Acounting doc.
    My requirement is to update the profit center field in the billing document when this idoc WPUTAB01 is posted with WPUK tcode.
    My process code is using fn IDOC_INPUT_POS_END_OF_DAY. I tried to modity User exit EXIT_SAPLWPUE_152, but no use.
    Kindly help me how to go throught this.
    Thanks in advance.
    Regards,
    Pavan

    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

  • In J1IH - Balancing field "Profit Center" in line item 001 not filled

    Dear Sir/Madam,
    Am doing Additional Excise JV in J1IH, when put some amount in AED filed and save getting the error as below
    "Balancing field "Profit Center" in line item 001 not filled"
    If any one have come across this error while doing Additional Excise JV in J1IH please help me in resolving this issue.
    Note : Below points may be helpful for you to help me,
    1. Document Splitting is active,
    2. Profit center made mandatory,
    3. The relevant GL is assigned in item category of classify GL step in Document Splitting process.
    4. Substitution is only for FI documents.
    Regards - Manjunath AR

    Hi
    One way is to maintain a default profit center for the transaction in FAGL3KEH. Else depending on your plant structure, you may write a susbstitution rule as
    T Code = J1IH and Plant =X and G/L = 123221
    Profit Center =200001
    Regards
    Sanil Bhandari

  • BAPI_SALESORDER_CREATEFROMDAT2 Error with profit center

    Hello everyone,
    I am using BAPI_SALESORDER_CREATEFROMDAT2 to create a sales order, but it is not being created. The return tab shows this:
    S     V4     233     SALES_HEADER_IN has been processed successfully
    E     KM     026     Profit center 2000/2000 does not exist for 08.04.2010
    E     V4     248     Error in SALES_ITEM_IN 000000
    W     V1     555     The sales document is not yet complete: Edit data
    E     V4     219     Sales document  was not changed
    I am exporting teh profit center like this:
    it_items-profit_ctr = '2000'.
    The strange thing about this is that when I create the sales order manually, using VA01 and the same parameters I am using in the BAPI, the sales order is created.
    What am I doing wrong?
    Thanks in advance

    Hi,
    Welcome to SCN!!!
    This looks like Profit center is not valid as on date. Please check with your functional whether this is the valid Profit center for you sales area and for the given date.
    Thanks,
    Vinod.

  • Profit Center Accounting-Transfer of Accounts payable/Receivable

    Dear All,
    in our company SAP  was implemented in  2005 . Now we configurd PCA and  transfering the Ending balance of Accounts Payable/Recivable ( Transaction 1KEK). System only select the invoices which were posted in last month ( Feb,2009) and ignore all the open invoices which were posted  before Feb,2009.
    Please advise me, How I'm able to post the ending balance of Accounts payable/Recivable on respective profit center.

    Hi
    The transaction 1KEK is specific to a period. The first box that you would provide the period and then the year. Subsequently you will be providing the fiscal year. So only the entries for Feb 2009 will be going over to PCA. If there were any entries subsequent to the execution of 1KEK, you need to execute it again in order that the delta entries make it to PCA.
    You transfer payables and receivables to Profit Center Accounting in the course of normal period‑closing activities.You can transfer payables and receivables as often as you wish, since the system deletes previously transferred data before each new transfer.
    Hope this clarifies. Else please get back.
    Karthik

  • FI Line Item Substitution for Profit center

    Hello Gurus,
    The client wants
    1- that what ever profit center they put in the field ZUONR (Assignment) field in the line items, should be substituted in the field BSEG-PRCTR. I know how to create a field assignment substitution. and had created that, but user wants that the substitution should check that the profit center put in the assignment field, should be validated and checked if its a valid PC or not.
    or
    2 - The user can put in the assignment field as PC=130001, so the substitution should check if BSEG-ZUONR :1-3: = 'PC=' and if the BSEG-ZUONR :4-9: is a valid profit center substitute the BSEG-ZUONR :4-9: in the field BSEG-PRCTR.
    Any suggestions for both the above, how this can be done.
    Thanks in Advance.

    Hi,
         You will have to use an exit to do this.
    The code will be like:-
             Data:  ZPRCTR like BSEG-PRCTR      " Variable.
    *Requirement 2 first
            IF BSEG-ZUONR (3) = 'PC='
                   ZPRCTR =  BSEG-ZUONR+3
            else
                   ZPPCTR = BSEG-ZUONR.
    *Check validity
      Select single prctr from CEPC where
                      prctr = ZPRCTR.
    IF SY-SUBREC = 0    " Found a PC
         BSEG-PRCTR = ZPRCTR.
    *If ZUONR is not a PC nothing is done.
    Kind regards

  • Table name having relationship between Business area and Profit Center

    Hi guys,
    Can you tell me the table name showing the relationship between Business area and Profit Center in fb60  transaction.
    thnx
    hema

    HI.
    BSEE u2013GSBER  Business area.
    BSID-PRCTR Profit center
    Regards.
    jay

Maybe you are looking for

  • Loading to DSO for Lookup

    Hi Guys, I have created a DSO with just MATNR and one of its bespoke attributes(Catalogue number) and extracted from 0Mat_Sales_Attr.(MVKE). When I load the 0Mat_Sales_Attr in DEV & QA, the data loads OK. Now in Regression, the load only adds 1 recor

  • MacBook Pro Microphone dosen't work!

    Internal Microphone dosen't work suddenly. Please help me!

  • QTVR files not tumbling anymore w/ QT 7.1 standalone

    I am still seing this problem with the latest player (7.1.5). Anyone encoutering the same problem - or even able to play any QTVR with the standalone player? I have some QTVR files generated from a 3D app that won't tumble anymore w/ QT 7.1 standalon

  • How do you change the face of Mozilla

    Behind Firefox Start its got white back ground , how do you change the face of Mozilla

  • Converting a string to integer error

    I have this code temp = token.nextToken().toString(); numero = Integer.parseInt(temp); Is is giving me a numberFormatExeption error Knowing that temp is a string can anyone help