Skip to Content
avatar image
Former Member

PO creation using, SRM catalog need to gray out the some fields in ME21N

Hi All,

PO is creating from SRM catalog,

once the Line items populated from the catalog

we need to gray out the some of the fields in the ME21n and ME22N t-codes.

Following fields need to be non-editable mode

Header-->Vendor – LIFNR

Item-->OUn (Order Unit) – MEINS,Net Price – NETPR,Currency – WAERS

Price Unit – PEINH,Order Price Unit - BPRME

i am trying with BADI -->ME_PROCESS_PO_CUST

in method-->IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM

READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = mmmfd_lifnr.
IF sy-subrc IS INITIAL.
<fs>-fieldstatus = '*'. " Display
ENDIF.
but in the "ch_fieldselection"

does not contain any standard fields how to populate the required fields into this internal table or do i need to implement the logic in any other location.

Please help me out to fix this issue

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 21, 2016 at 02:01 PM

    Read 2066371 - Method FIELDSELECTION_HEADER (FIELDSELECTION_ITEM_REFKEYS)

    Regards,
    Raymond

    Add comment
    10|10000 characters needed characters exceeded

    • First perform a sample for test with a single break-point, so you will be able to view received values in the CH_KEY. In your sample also add re_data = im_header/item->get_data( ) you will use to get current values. Then change values with new values from Customizing.

      Regards,
      Raymond

  • avatar image
    Former Member
    Jan 03, 2017 at 02:29 PM

    Hi Team,

    I enhanced using this FM, Header "Function module MEPOBADI_FS_HEADER" and item "Function module MEPOBADI_FS_ITEM"
    fields are grayed out but i am facing different issue "MEPO151 Data from ME_PROCESS_PO_CUST not transfered" and End loop.

    Regards,

    Abdul Gaffar M.

    Add comment
    10|10000 characters needed characters exceeded