Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Purch. Group for Particular T code and particular Order Type

0 Kudos

Dear Experts,

I have Used ME_PROCESS_PO_CUST to disable Purch. Group for T.code ( ME21N and other) but it’s not working and I also tried some Exit to fill the requirement but did not get any to fill the requirement. Kindly help me to get Proper BADI or Exits or any other way.

Need not to do with SPRO.

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos

ME_PROCESS_PO_CUST is a correct BAdI for this kind of requirement, could you

  • Explain what you already did (which methods, did you raise an error message?) so we would be able to help
  • Elaborate on 'disable Purch. Group' are you trying to disable the input, filtering/forcing some value

    0 Kudos

    Hello Raymond,

    I used FIELDSELECTION_HEADER_REFKEYS mathod and write code here as you can see in attached image.

    through this mathod field is disable but when i fill all details through me21n but when i enter it will enable again.

    I used other method also but same issue.

    0 Kudos

    You should use a break-point in a FM such as MEPOBADI_FS_HEADER or MEPOBADI_FS_HEADER_REFKEYS to understand why SAP should overwrite your settings, (also you really didn't use the method the way SAP expected...)