How to make fields mandatory in cost center

Hi Sap Experts,
How to make fields mandatory in cost center.
Please give me advise.
Regards,
Raj

If you want to make "Profit Center" field as mandatory, then OBA5 transaction code
Application Area - KS
Number 096
make this as error for online and batch input. Then profit center will become mandatory.

Similar Messages

  • How to make the Profit Center Field Mandatory in Cost center Master Data

    Dear All,
    Please let me know how to make the Profit Center Field mandatory in Cost Center Master Data as well as my Internal Order Master Data?
    Thanks in advance!
    Regards,
    Rajeswari Shankar.

    Hi Rajeswari,
    You can modify message number KS096 to "Error" via OBA5. Thus, the users would no be able to save a cost center without entering a profit center. (Depending on your release you can make KS096 modifiable by implementing note 486781.) 
    Concerning the internal orders (transaction KO01), you can run KOT2 and set Profit center field as required entry in "change field selection" section.
    Regards,
    Greta

  • HELP!! - HOW TO MAKE SEGMENT MANDATORY IN PROFIT CENTER

    HELLO,
    WE ARE IMPLEMENTING CONTROLLING, FINANCIAL AND NEW GENERAL LEDGER, I NEED TO KNOW HOW TO MAKE THAT THE FIELD SEGMENT IS MANDATORY IN THE PROFIT CENTER CREATION PROCESS,
    COULD YOU HELP ME WITH THIS??
    THANKS IN ADVANCE.

    Hello again and thanks a lot for your quick answers,
    but what i can not understand very well is why I do not have this problem in another client, since i am not be able to create a cost centre without filling in the corresponding profit centre and I can not create a profit centre without filling in the corrresponding segment.
    However in the client where i need to customize this, by default this fields are not mandatory, so there must be a customizing table or whatever to change this fields. I know the transaction OKEG, i do not know if this problem can be related to this issue.
    So, i need to know the customizing tables to change the fields status in cost centre and profit centre. I am sure that this issue there must be related with the activation of New General Ledger, because the method that we are using is the inheritance by segment...
    Any comments will be appreciated.
    Thank you.

  • LEAD MANAGEMENT- how to make fields mandatory

    Is there a provision in lead management to make the fields mandatory so that lead number is not generated without filling the mandatory fields/ as it is in business partnerm using field groupings in customizing (eg. without submitting address proof BP number is not generated)

    Hi
    I dont know Kai's solution but it could be good.
    If you want to deal with badi you can use its method CHECK_BEFORE_SAVE, and in it
    if some fields are not filled you can write: RAISE do_not_save.
    Document won't be saved then.
    I checked in my system, and guid is generated (perhaps it is just generated by special FM, but you can not find it
    in any of tables like crmd_orderadm_h or crmd_order_index).
    So in my opinion just guid is generated but not saved in database, until this BADI allows to save.
    Regards
    Radek

  • How to make Fields mandatory in service entry sheet

    Dear Experts,
    I need to make  "Quality of Service" and "Service Timeliness" fields mandatory for user entry  in VENDOR EVALN tab during Service Entry Sheet.
    Kindly help..

    Check the note attached to the configuration node.
    + for required (mandatory) field
    . for optional field
    - for hide
    for display
    Double click on the line showing ...+++...
    It will open up a list of fields grouped logically and you now have a radiobutton style way of changing status.

  • How to make field mandatory in Sales Order Item level?

    Hi SDN's,
    I need to make Shipping type field(Item level) mandatory in Sales order.
    Can any one tell me what is the user-exit to achieve this?
    Thanks in advance..
    Regards,
    Rahul

    Rahul,
    U can check the BADI     'BADI_SD_SALES_ITEM'
    othewise u can check
    Exit Program MV45AFZZ.
    Check the program SAPMV45A
    V45W0001
    V46H0001

  • How to make fields mandatory in Message Address for Custom Notification.

    Hi Experts,
    We have created a new custom Notification Type and we were in the process of configuring it. I want to know, if I want to make a few fields obligatory in Message Address, can that be achieved through configurations. I am basically an ABAPer so please pardon my ignorance if the question looks basic.
    In our implementation, I have seen different Work Orders with different mandatory fields in Message Addresses. I hope the same is achievable for notification as well.
    Thanks for your help.
    Regards,
    Subhrangsu

    There are 2 ways to make any Notification filed mandatory.
    1. Configuration route:
    Here Under Plant Maintenance->Maintenance and Service Processing>Maintenance & Service Notifications>Notification Creation>Notification types> Set Field selection for Notifications:
    You select influencing button and your notification type then select the Radio button under Required column (against the 
    field you want to make mandatory)
    2. User Exit Route: Through SMOD -->User Exit QQMA0014 -->Cutsomer Exit EXIT_SAPMIWO0_020 -->Include ZXQQMU20.
    Then put your code in this include.
    Code Sample:
    IF I_VIQMEL-QMART= 'AC'.
    IF T_VIQMSM-MNGRP IS INITIAL.
    MESSAGE ID 'IW' TYPE 'I' NUMBER 464 WITH 'Tasks'.
    RAISE EXIT_FROM_SAVE.
    ENDIF.
    ENDIF.
    (The above Code makes the 'Tasks' filling mandatory in the Notification type 'AC')
    Hope this answers your query.
    Regards
    Jogeswara Rao
    Edited by: K Jogeswara Rao on Oct 8, 2010 9:21 AM

  • How to make field mandatory

    Hi all,
    i want to make price ,tax code and ware house code in purchase order rows mandatory.
    i have designed following Stored procedure..
    IF @transaction_type IN (N'A', N'U') AND
    (@Object_type = N'22')
    BEGIN
    if exists (SELECT T0.docnum FROM [dbo].[OPOR] T0 INNER
    JOIN [dbo].[POR1] T1 ON T1.DOCENTRY =
    T0.docENTRY
    WHERE   T1.[Price] = 0
    and T1.DOCENTRY = @list_of_cols_val_tab_del)
    select @Error = 1, @error_message =
    'Enter Price'
    else
    if exists (SELECT T0.docnum FROM [dbo].[OPOR] T0 INNER
    JOIN [dbo].[POR1] T1 ON T1.DOCENTRY =
    T0.docENTRY
    WHERE    T1.[TaxCode] is  null
    and T1.DOCENTRY = @list_of_cols_val_tab_del)
    begin
    select @Error = 2, @error_message =
    'Enter Tax Code'
    end
    else if exists (SELECT T0.docnum FROM [dbo].[OPOR] T0 INNER
    JOIN [dbo].[POR1] T1 ON T1.DOCENTRY =
    T0.docENTRY
    WHERE    T1.[WhsCode] is  null
    and T1.DOCENTRY = @list_of_cols_val_tab_del)
    begin
    select @Error = 3, @error_message =
    'Enter Warehouse Code'
    end
    END
    but system checks only for price and not for other two validation .
    kindly suggest me way where system will check for all the validation defind in the Stored Procedure.

    Hi Chetan
    Try this, This should definitely work
    if @object_type = '22' and @transaction_type in ('A','U')
    begin
    select @Total = (select T1.Price from OPOR T0 join POR1 T1 on T0.docentry = T1.docentry
    where T0.docentry=cast(@list_of_cols_val_tab_del as int))
    Select @comm = (select T1.TaxCode from OPOR T0 join POR1 T1 on T0.docentry = T1.docentry
    where T0.docentry=cast(@list_of_cols_val_tab_del as int))
    Select @venref = (select T1.TaxCode from OPOR T0 join POR1 T1 on T0.docentry = T1.docentry
    where T0.docentry=cast(@list_of_cols_val_tab_del as int))
    if @Total = 0
    begin
    set @Error =11
    set @Error_Message = 'Cannot have Zero Price'
    end
    else
    if @comm is null
    begin
    set @Error =12
    set @Error_Message = 'Select Tax'
    end
    else
    if @venref is null
    begin
    set @Error =13
    set @Error_Message = 'Select Warehouse'
    end
    end
    Regards
    Reno

  • How to make the Deprtmnt field in the cost center master data as required ?

    Dear Experts,
    I want to make the Department field in the cost center master data as required field.....how do i do it?
    regards
    Suresh

    Hi Eli,
    Thanks for the quick reply
    while creating the Cost center itself the field should come as required field........can that be met with this enhancement?. Because the transaction code being used int the enhancement is for change mode but i want this feature in  create mode itself.
    thanks
    regards
    Suresh

  • Department Field in the Cost Center as a mandatory from optional.

    Hi,
    I need to make Department field in the Cost Center as a mandatory from Optional.
    Kindly suggest on making mandatory to Department field in the Cost Center.
    Regards,
    Anand Sheelavant,

    Anand,
    Go to IMG General settings and configure new transaction fields. Select the transaction codes to be adjusted, I think you should use KS01 (Creat Cost Center) and KS02 (Modify CostCenter) and create new transaction variants where deparment field is mandatory. Then use these newly created transactions variants to substitute the standard ones by assigning/activating them to transaction codes, KS01 and KS02.
    Hope this solve your issue.
    Regards,
    GG

  • Profit Center mandatory for Cost Center

    Hi,
    How do we make the profit center field in the cost center master data as optional instead of required.
    Thanks,
    Venkat

    If you have activated profit center accounting and if you leave profit center blank in the cost center master, system issues a warning message at the time of saving. You can convert this message to error to make profit center mandatory.
    Regards
    Rakesh Pawaskar

  • How to make fields editable in an custom enhancement

    Hi Experts,
    My requirement is to perform some custom validations against a field FKONT(BSEG) at the line item level of FB60 and display appropriate message and make the incorrect field editable.
    I have implemented an implicit enhancement point in include MF05AFGENJ.
    The error messages are coming but I am unable to make the GL account, cost center and profit center fields editable.
    Please let me know how to make the above fields editable after displaying the error message.
    For reference, I have done the coding like this:
    IF sy-tcode = 'FB60' .
    CHECK GL_ITEMS IS NOT INITIAL.
    DATA: L_COUNT TYPE I,
          L_STRING TYPE STRING,
          L_FKONT TYPE FIPLS,
          L_TABIX TYPE SY-TABIX,
          G_FLAG TYPE C.
    DATA: WA_ZZFSTP LIKE ZZFSTP.          "Work area for ZZFSTP table
    CONSTANTS:C_MK TYPE TXJCD VALUE 'MK0000000'.
    *-- Validating the Financial budget item field
    IF GL_ITEMS-FKONT IS NOT INITIAL.
    SELECT SINGLE FKONT
                        INTO L_FKONT
                        FROM ZFSTP
                        WHERE FKONT = GL_ITEMS-FKONT.  "cost center
    IF SY-SUBRC NE 0.
       CLEAR: G_FLAG.
       G_FLAG = 'X'.
       MESSAGE W003(ZZFI) WITH 'Please enter 'Financial' 'Budget Item Field' DISPLAY LIKE 'E'.
       EXIT.
    ENDIF.
    *-- Copying the first line item financial budget item field to all the line items in the internal table
    DESCRIBE TABLE GL_ITEMS LINES L_COUNT.
    IF L_COUNT > 1.
      READ TABLE GL_ITEMS INDEX 1.
      IF SY-SUBRC = 0.
            CLEAR: L_FKONT.
            L_FKONT = GL_ITEMS-FKONT.
    *-- Assign the tax jurisdiction codes in all the line items
             LOOP AT GL_ITEMS.
               CLEAR: L_TABIX.
               L_TABIX = SY-TABIX.
               GL_ITEMS-FKONT = L_FKONT.
               GL_ITEMS-TXJCD = C_MK.
    *-- Copy the first financial budget item number and tax jurisdiction code MK0000000 in all line items
               MODIFY GL_ITEMS INDEX L_TABIX TRANSPORTING FKONT TXJCD.
    *-- Populate tax jurisdiction and FKONT financial budget item number in XBSEG table
               L_TABIX = L_TABIX + 1.  "top record in XBSEG is for header
               READ TABLE XBSEG INDEX L_TABIX.
               IF SY-SUBRC = 0.
                 XBSEG-FKONT = L_FKONT.
                 XBSEG-TXJCD = C_MK.
                 MODIFY XBSEG INDEX L_TABIX.
               ENDIF.
             ENDLOOP.
      ENDIF.
    ENDIF. "describe statement
    CLEAR: WA_ZZSTP.
    *-- Validate the amount and GL account against the FKONT(financial budget item) number
    SELECT SINGLE FKONT
                  ZZWRBTR
                  ZZHKONT
                  ZZKOSTL
                  ZZPRCTR
           INTO CORRESPONDING FIELDS OF WA_ZZFSTP
           FROM ZFSTP
           WHERE FKONT EQ GL_ITEMS-FKONT.
    IF sy-subrc EQ 0.
    IF BSEG-WRBTR > WA_ZZFSTP-ZWRBTR.
           CLEAR: G_FLAG.
           G_FLAG = 'X'.
           MESSAGE W003(ZZFI) WITH 'Amount entered' 'cannot be' 'greater than ' WA_ZFSTP-ZZWRBTR DISPLAY LIKE 'E'.
           EXIT.
    ELSE.
             CLEAR: G_FLAG.
            G_FLAG = 'X'.
            SET CURSOR FIELD 'GL_ITEMS-HKONT'.
            MESSAGE W003(ZZFI) WITH 'Incorrect GL account' 'number entered for' 'given financial' 'budget item number'.
            EXIT.
           ELSE.
    *-- Check for cost center and profit center at line item level
             LOOP AT GL_ITEMS.
    *-- Both cost center and profit center is initial.
                IF GL_ITEMS-KOSTL IS INITIAL AND GL_ITEMS-PRCTR IS INITIAL.
                    CLEAR: G_FLAG.
                    G_FLAG = 'X'.
                    SET CURSOR FIELD 'GL_ITEMS-PRCTR' LINE SY-STEPL.
                    SET CURSOR FIELD 'GL_ITEMS-KOSTL' LINE SY-STEPL.
                    MESSAGE W003(ZZFI) WITH 'Please enter' 'cost center' 'or' 'profit center'.
                    EXIT.
    *-- Either cost center or profit center is initial
                ELSEIF GL_ITEMS-KOSTL IS INITIAL AND GL_ITEMS-PRCTR IS NOT INITIAL.
                    CHECK GL_ITEMS-PRCTR NE WA_ZZFSTP-ZPRCTR.
                      CLEAR: G_FLAG.
                      G_FLAG = 'X'.
                      SET CURSOR FIELD 'GL_ITEMS-PRCTR' LINE SY-STEPL.
                      MESSAGE W003(ZZFI) WITH 'Incorrect profit' 'center entered' 'for given' 'financial budget item' DISPLAY LIKE 'E'.
                      EXIT.
                ELSEIF GL_ITEMS-KOSTL IS NOT INITIAL AND GL_ITEMS-PRCTR IS INITIAL.
                   CHECK GL_ITEMS-KOSTL NE WA_ZFSTP-ZKOSTL.
                      CLEAR: G_FLAG.
                      G_FLAG = 'X'.
                      SET CURSOR FIELD 'GL_ITEMS-KOSTL' LINE SY-STEPL.
                      MESSAGE W003(ZZFI) WITH 'Incorrect cost' 'center entered' 'for given' 'financial budget item' DISPLAY LIKE 'E'.
                      EXIT.
                ENDIF.
             ENDLOOP.
           ENDIF. "GL Account
    ENDIF. "Amount check
    ENDIF. "SY-SUBRC check
    ENDIF.
    EXPORT G_FLAG FROM G_FLAG TO MEMORY ID 'ZER'.
    Please let me know how to make GLaccount,cost center and profit center fields editable.
    Regards,
    Sangeeta.

    Hi.. chaek the below links. may be useful to u.
    Making Table control records Editable / Non-editable
    Table control with both Editable and non Editable fields
    Regards,
    KP.

  • How to change company code in cost center master

    Hi,
    Can anyone throw me the light about how to change company code in cost center master? User make some mistake. They maintained wrong company code in cost center master and there are some transactions already posted to this cost center. I would appreciate all attention and point will be reqard. Thanks much
    Best Regards,
    Bird

    Hi,
    The cost center master data fields have time dependancy.  Following are the details of time dependancy.
    You can maintain master data for cost centers, cost elements, activity types, and business processes as time-based. Changes to any other time interval are possible at any given time. Data storage is also time-based. In this way, you can store multiple database records for a master data record, each holding different information.
    The time-based dependencies are determined by SAP and cannot be changed. The following dependencies are possible:
    Not time-based
    Day-based
    Period-based
    Fiscal Year-based
    Cost Center's company code field's time based dependancy is Fisal Year Based and hence, the company code can be changed on cost center only on new fiscal year.  And hence, system will not allow changing company code on cost center master data until new fiscal year if transactions are posted to the cost center.
    You may have to think of work around :
    1) Create new cost center with correct co code
    2) Repost the cost posted to old cost center (with wrong co code) to the new cost center.
    Explore the possibility of this work around on your system with the key user and then see whether this option works out.
    Hope this helps.  Pls. assign points if this is helpful.
    Regards,
    Chirag

  • How to change purchase order's cost center in batch

    Dear all :
    how to change purchase order's cost center in batch?

    Dear Manish :
    thanks so much for you reply.
    the filed which i wanted to change it's content is cost center (KOSTL) in table EKKN.
    i couldn't find it in this t-code when i select fields.

  • Profit Center Mandatory in Cost Center Master

    Hi Expert!
    I would like to know the configuration path to make the option Profit Center Mandatory in cost center master data.
    Thanks
    J

    If you have activated profit center accounting and if you leave profit center blank in the cost center master, system issues a warning message at the time of saving. You can convert this message to error to make profit center mandatory.
    The message number is KS096. It can be configured in transaction code OBA5. Choose application area KS. Insert message 096 and select the desired message type (E for error or W for warning).
    Regards
    Rakesh Pawaskar

Maybe you are looking for