cancel
Showing results for 
Search instead for 
Did you mean: 

Field short text grey in ME51N or ME52N Pur requisition

Former Member
0 Kudos

Dear All,

When user input a material in Material column, then short text should be  grey out, while user input text only then system should consider text only and it should be editable mode.

regards

Accepted Solutions (0)

Answers (3)

Answers (3)

Prasoon
Active Contributor
0 Kudos

Hi,

   If you are using same document type, there is no standard option to achieve the requirement as of my knowledge. You may either go for different document types (one for material PO where the short text is display only and second one for items with short text in which the material field is display only) or development using the BAdI: ME_PROCESS_REQ_CUST


Regards,

AKPT

Former Member
0 Kudos

Hi Prasoon,

Thanks for reply, Can you explain in detail.

Regards

Prasoon
Active Contributor
0 Kudos

Hi,

   Option 1: Create Two Different document types for PO: Say ZNB and ZCON.

  •        Create a new field selection key (say ZNB ) for PO doc type and maintain the material short text as display only. Assign the field ref key to the document type ZNB. Now, whenever the user select the document type ZNB, he can only enter the material code and he cant change the short text.
  •        Create another field selection key (say ZCO) for PO doc type and maintain the material number field as display only. Assign the field ref key to the document type ZCON. Now, whenever the user select the document type ZCON, he can only enter the material short text and he cant enter the material code.
  • The above option will work perfectly in ME51N. But the in change mode, you have to use only one  field selection key.

   Option 2: Go for development using the BAdI :ME_PROCESS_REQ_CUST  and write the logic in such a way that when the field MATNR is not blank, maintain the material short text field as display only.

Regards,

AKPT

Former Member
0 Kudos

Thanks a lot AKPT. I am going to choose option 2nd only.

Former Member
0 Kudos

Hi Sanjeet,

If I get your question correct, if an user enters a material number do you mean the the short text should be greyed out during ME51N, if that is so then please go to the purchase requisition screen layout for ME51N and do the following :

if you want to alter it in the ME52N (Change mode) then select

revert back if this is feasible.

Regards,

Sagnik

Former Member
0 Kudos

Thanks for reply, but not possible by your suggested.

former_member183424
Active Contributor
0 Kudos

I don't think it is possible with define field screen layout. Screen layout will fetch when you select Transaction code / document type / Item category. But here you want, your screen layout should be changed after enter your material or short text.

I don't think it is possible without your own development.

Former Member
0 Kudos

Thanks for prompt reply