Skip to Content
0

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

Dec 21, 2016 at 12:52 PM

93

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raymond Giuseppi
Dec 21, 2016 at 02:01 PM
0

Read 2066371 - Method FIELDSELECTION_HEADER (FIELDSELECTION_ITEM_REFKEYS)

Regards,
Raymond

Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Raymond,

Could you please provide me the sample code for this method (FIELDSELECTION_ITEM_REFKEYS)

Note they have mentioned only method name, in this method i dont find any sample code.

Regrads,

Abdul Gaffar M.


0

This task is not for developper alone, you require also some functional, as first step will be some Customizing (e.g. SM30 for V_162) to create/adapt the code you will change in the BAdI implementation. First step is navigate from SM30 to SPRO and read the documentation.

A sample code wont be of much interest (some 'call of get_data' and then some 'if' to change the returned parameters values)

Regards,
Raymond

0
Former Member
Raymond Giuseppi

In SM30 functional people maintained the fields.

Could you please help me out to pass the field values in the method:

CH_KEY0
CH_KEY1
CH_KEY2
CH_KEY3
CH_KEY4
CH_KEY5
CH_KEY6

Regards,

Abdul Gaffar

0

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

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

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.

Share
10 |10000 characters needed characters left characters exceeded