cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Editable custom field in line item @ ME51N

0 Kudos
1,718

Hi,

We need to display our custom Z fields(created in EBAN table using Z append structure) at line item level in ME51N/ME52N(PR creation and change).While the custom fields are getting displayed at line item level, but this could not be edited or shown at line item level as editable columns in ME51/ME52N(please find attached "PR Line Item" screen shot attached).

Did R&D in SDN community and some debug, found that below were some of our observations:

1. While debugging and from understanding from SDN, in program SAPLMEGUI(include LMEGUICJM), method BUILD_DYNPRO_FIELDS (LCL_REQ_ITEM_GRID) in MY_DYNPRO_FIELDS. If we change the metafield and make fieldcatalog(gt_fieldcatalog) EDIT for our custom fields as X, then these columns are displayed editable(please find "Debug1","Debug2","Debug3" screen shot for this).

2. Searched in SPRO settings to achieve this(as understood from SDN), SPRO--> Material Management-->Purchasing-->Purchase Requisition-->Define Screen Layout at Document Level. But here also we could not see our custom fields.

3. We could see BADI such as MEGUI_GRID_ENHANCEMENT for enabling our custom field metafield and fieldcatalogue(But here it is mentioned as "SAP Internal")

Doubt:

1. Adding editable custom fields - Is this possible via SPRO?

2.If not possible via SPRO, Is there any BADI which supports this case

3.If not possible, is it advisable to create any implicit enhancement in MEGUI_GRID_ENHANCEMENT implementation or so

With Regards,
Jagan

Accepted Solutions (1)

Accepted Solutions (1)

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Kudos

Hello @jagan_krishnan8571 

The note 408017 - MERQ001: Implementation sample code explains how to add custom fields to purchase requisitions. They are added to a dedicated tab. I'd strongly suggest you follow this standard way, instead of forcing the fields to standard ME51N grid. 

Best regards

Dominik Tylczynski

0 Kudos
Hello DominikTylczyn,
Hello DominikTylczyn, Plz ignore my previous comment. Thanks for your response.It seems like this is the only way ahead.

Answers (0)