How to Grey out cost center column in me22n screen(Account assignment tab)

Hi All,
I have tried many ways to do grey  out cost center column in account assignment tab of ME22N.
i have created implementation for this class and method. 
Class:CL_TABLE_VIEW_MM_2
Method:PBO_TC_LINE
Below is the my code snippet.Kindly let me know any suggestions.
data:  l_tc type char100.
data:  l_tabix type i.
     l_tc = '(SAPLMEACCTVI)DYN_1000TC-COLS'.
FIELD-SYMBOLS:<fs_tcdata> type any TABLE,
                <fs_wa> type any ,
                <fs_lwa> type any,
                <fs_screen> type any,
                <fs_input> type any,
                <fs_active> type any,
                <fs_output> type any.
*data:fs_wa type SCXTAB_COLUMN_IT.
   ASSIGN (l_tc) TO <fs_tcdata>.
   LOOP AT <fs_tcdata> ASSIGNING <fs_wa>.
      l_tabix = sy-tabix.
    ASSIGN COMPONENT 'INVISIBLE' OF STRUCTURE <fs_wa> TO <fs_lwa>.
       ASSIGN COMPONENT 'SCREEN-NAME' OF STRUCTURE <fs_wa> TO <fs_screen>.
       ASSIGN COMPONENT 'SCREEN-INPUT' OF STRUCTURE <fs_wa> TO <fs_input>.
       ASSIGN COMPONENT 'SCREEN-ACTIVE' OF STRUCTURE <fs_wa> TO <fs_active>.
       ASSIGN COMPONENT 'SCREEN-OUTPUT' OF STRUCTURE <fs_wa> TO <fs_output>.
       IF <fs_lwa> = space.
         CASE <fs_screen>.
            WHEN 'MEACCT1000-KOSTL'.
             <fs_input>     = 0.
             ENDCASE.
             endif.
             ENDLOOP.
Regards,
Hiriyappa

As I can't see any complicated scenario in your requirement. So I suggest you can achieve this by simple standard configuration.
Go to OME9, double click on the Account assignment category and make the field as Display.
Then check in your PO.
But I doubt, your requirement can not be simple like that.
So either you didn't know the settings or your requirement is different or you are just trying to learn that can it be possible via coding.
Let us know the appropriate reason for set it as display.

Similar Messages

  • HR Abap - How to grey out infotype 416 'Start' date on screen 2

    Hi,
    For infotype 416 I want to force the user to enter the Start date on the initial PA30 screen. Therefore I have to grey out the 'Start' Date field that appears in the second screen '2000' when creating a record.
    Any ideas on how to do this?
    Regards,
    Warren.

    Hi,
    In order to add additional functionality and checks to the PBo & PAI of HR infotypes you need to
    implement enhancement 'PBAS0001' using CMOD . Once you
    have done this you need to go to  the function modules EXIT_SAPFP50M_001 & EXIT_SAPFP50M_002
    and create the includes within them i.e.  ZXPADU01 and ZXPADU02. You can now enhance the
    functionality of HR infotype PBO and PAI by simply adding code to these includes. See
    example below:
    HR Infotype User exits
    Include ZXPADU01 for the PBO module
    Incldue ZXPADU02 for the PAI module
    *Example code.
    CASE innnn-infty. "Infotype?
      WHEN '0001'.  "infotype 0001
    Processing code
      WHEN '0008'.  "infotype 0008
    Processing code.
             etc.
      WHEN OTHERS.
    ENDCASE.
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • How to grey out one single column in a table control of TPMOE

    Hi Experts,
    Any body please tell me how to greyout a single column in a table control of TPMOE.
    Help needed ASAP.
    Thanks,
    sreenivas.

    lr_result      TYPE REF TO if_bol_bo_property_access
    lr_iterator TYPE REF TO if_bol_bo_col_iterator
          CALL METHOD lr_iterator->get_by_index
            EXPORTING
              iv_index  = index
            RECEIVING
              rv_result = lr_result.
          CALL METHOD lr_result->get_property_as_value
            EXPORTING
              iv_attr_name = 'TRANSFER_STATUS'
            IMPORTING
              ev_result    = lv_status.
    if  lv_status = x and component = cost_category.
    rv_disabled = true.
    else.
    call super.
    endif.
    INDEX will have the row number.
    Frame ur logic based on this.

  • Cost centre field in sales order account assignment screen

    Hello all,
    I am unable to find the settings for cost center field in sales order account assignment tab screen along with profit center and internal order. kindly let me know the path to select cost center.
    Thanks in advance
    Raju

    The Cost Center Determination settings is in OVF3 -  but there are some cases where the Cost Center must be exceptionally changed. 
    If the document category for order type in IMG VOV8 is defined to be "I" which belong to order type FD - Deliv.Free of Charge, then the field cost center is active for input during transaction VA01. 
    Alternatively, you can specify an order reason and assign a cost center to an order reason. 
    However the standard SAP works only at the header level though, so it would not work if cost center is needed on the line item. 
    The cost center are assign for such business transactions as :
    - Free deliveries
    - Returns
    - Deliveries of advertising materials
    You can also make cost center allocation dependent on the order reason, for example:
    Order reason: Damage in transit
    Order reason: Free sample
    Both the IMG settings are done in transaction OVF3, either with/without the order reason.

  • How to Grey out the field "tracking number" during change mode in the order

    HI Expert,
    How to grey out the Tracking number (AFVGD-BEDNR) at Order -> Operation tab -> external tab ->tracking number.
    during creation IW31 = not grey out and allow entry.
    for change mode IW32 = grey out
    if i set grey out at config OIOPD, it will grey out even during creation mode.
    Please advise
    Thanks
    Regards

    Hi
    I think Using field selection it is not possible to make as display ,kindly check with screen or transaction variant -SHD0
    regards
    thyagarajan

  • Grey Out Profit Center once WBS is Released

    Hi All,
    We have a requirement to grey out Profit Center if WBS element is in Released Status.
    We do not want to allow users to change the profit center once the WBS element is released,
    Please let me know how this can be achieved.
    Thanks
    Satish

    Hi Satish,
    With the validations you cannot get your requeriment only you can get this field cannot be editable ( but not greyed), due to valiations works after you are in the screen.
    I am not sure how to get this, check WBS BAdi there is a method 'before save' I don't know if you can develop here to grey the field.
    Regards,
    Sara

  • How to find the cost center group from cycle/ segment in CO module?

    Hi All,
    I need to fetch the list of cost centers in the cost center group against the cycle.
    Is there any table which will store the list of cost centers against the cycle?
    or else, what I was thinking is use of BAPI BAPI_COSTCENTERGROUP_GETDETAIL, which will give me the list of cost centers,
    but we need to pass the controlling area + cost center grp to fetch the cost centers from BAPI, I have controlling area with me but not the cost center grp name, only I have Cycle info lke cycle name, segment name, seq number. so how to find the cost center grp name from the cycle name?
    Regards,
    Mrunal

    FM: RK_AL_CYCLE_READ
    CHECK TABLE: T811K

  • How to find out the selected column in Table Control

    Hi all,
          How to find out the selected column in Table Control?
    Thanks & Regards,
    YJR

    Hi,
    Let your table control name in Screen painter be TC1.
    READ TABLE TC1-COLS INTO WA_COLS (some wok area)
                 WITH KEY SELECTED = 'X'.
            IF SY-SUBRC = 0.
              CLEAR: W_DUMMY, W_COL_NAME.
              SPLIT WA_COLS-SCREEN-NAME AT '-' INTO W_DUMMY
                                                   W_COL_NAME.
            endif.
    W_COL_NAME gives you the column name.
    Hope it helps.
    cheers
    sharmistha

  • How to delete the Cost center line item data

    How to delete the cost center line item data of particular cost center and only one cost center is exisiting for that company code.
    Is there any way to delete the line items in that cost center.
    Can data archiving & deleting can help us..........
    does it have any effect over other cost center data....
    any input needed.........
    regards
    rajesh

    Hi,
    i found 2 reports for you:
    1) CO_TOTAL_WRI - Archiving CO Totals Records   
    2) RKCOITW1     - Archiving CO Line Items: Write Program        
    from 2) is a linlk to customize archiv-parameters
    -> start it with transaction se38 / sa38
    A.

  • How to grey out Intel Graphic Media for local users?

    does anyone know how to grey out the options to stop local users changing graphics options from Intel media graphics for Mobile?
    As well if anyone know what is different in BIOS updates, any option to cancel booting devices (not only change order)

    Hi
    Sorry but something like this is not known to me. You can disable a lot of different functions but display properties and settings are always available.
    BTW: I do not see some problem there is someone change resolution or whatever if the resolution is high and symbols to small.
    As far as I know it is not possible to cancel booting devices.

  • How to determine the cost center

    Dear experts:
    Could you give me some suggestions about how to determine the cost center depending on the different
    storage location when we use the t-cdoe MI07
    Thanks in advance.
    Rong

    Hello experts!!!
    how have you resolved this issue???
    I have the same situation, and i dont know how to manage this.
    Thank you very much in advance.
    Best regards,
    M. Cecilia Vacatello.

  • To find cost center column in S_ALR_87012291.

    I´m trying to get the cost center in the transaction S_ALR_87012291 (line item Journal report) why I need see the document financial but this report doesnu2019t have the cost center column, I have tried  to find it in button u201Cchange layoutu201D but doesnu2019t exist. Do you know alternative transaction?

    Hi,
    Further to your mail, the report is standard one and the required Cost Center can not be called as a column, since this is not ALV Report.
    The ALV report would allow you in some cases to call the columns like your requirement.
    If it is compulsory to your requirement, then copy the report into Z Report and get modified by your Technical Team (ABAPer).
    Regards
    VG

  • HOW TO CREATE A COST CENTER

    HI ! ALL
    I WANT TO KNOW ABOUT HOW TO CREATE A COST CENTER IN SAP .
    EXAMPLE - ADMINISTRATION DEPT , MARKETING DEPT , PACKING DEPT.
    REPLAY ME - 09558175176

    hi
    http://wiki.sdn.sap.com/wiki/display/ERPFI/HowtocreateaCost+Centre
    see this link you can clearly understand...given with screenshots

  • How to Make the Cost Center filed Mandatory ?

    While entring the Doc in FI  for Expense A/c, How to Make the Cost Center filed Mandatory?

    Hi,
    Got to field status groups and select cost center field as required field.
    Refer to this documentation
    http://www.sap-basis-abap.com/sapfi012.htm
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    Sridhar M

  • How to block the cost center

    Dear Guru's
    Can any tell me how to block the cost center, can we detele which is having values. can we delete which is not having values
    Regards
    Chandra Sekhar Reddy.P

    Hi,
    Once you post actual values or any planning exists on this cost center you cant delete.
    To ristrict posting to cost you have two options.
    1.You can change validity period.
      change  end from 12/31/9999 to what ever date you want to stop posting(e.g. as of today 10/23/08)
    2. lock all postings to cost center on Control data tab in KS02.
    Thanks,
    Rau

Maybe you are looking for

  • Print Different Size Photo, one per page

    I am using PS5 in 64 bit mode.  I print on a Epson 3880 printer.  I shoot all photos in RAW.  I process all my RAW files in ACR accomplishing 80% of changes and the balance 20% in PS.  The output of my retouch is a Master Image (MI) File that I would

  • Help in getting into SAP HCM

    Hi All,         I am very new to this community. I was earlier working as a SAP ABAP HR consultant. 6 months Back I did my certification in SAP HCM ECC 6.0 and started working as a techno functional consultant. To explore my self in this new dimensio

  • [WLAN] Use 802.1x with PEAP without Certificates?

    Hello there, is it possible to use 802.1x with PEAP authentication via MS-CHAPv2 without cheking for the servers certificate? I can't find an option to disable it

  • Windows/iTunes won't recognise iPod after update.

    So I updated to the latest iTunes the other day and now just yesterday I plugged my iPod in for the first time in a few weeks. It said something about upgrading to ISO4.0 so I downloaded the update. Everything seemed fine - was working no problem, do

  • How to install adobe creative suite 2 from disk

    I cant get my disk to load the program. it never gets pass iitating any ideas?