Thursday 1 September 2016

Example for Global Field Exit

Requirements

  • Create a field Exit for Data Element 'MATNR' which will restrict users from entering a Material Number 'DUST201' in Entire SAP ECC.


Steps :

  • Go to Transaction Code MM01 ( Create Material ).
  • Click on Material Input box and Click on F1 ( Documentation Help ).
  • Pop-up will appear.
  • Click on Technical Information.
  • Pop-up will appear.
  • Copy the Data Element name.





  • Go to Transaction Code CMOD.
  • Enter the Transaction Code PRFB.
  • Initial Screen looks like.
  • To Create Global Field Exit.
  • Click on Field Exit -> Create.
  • Pop-up will appear.
  • Enter the Data Element name and click on Continue .
  • Automatically one function module will appear , Click on Create.
  • Click on Source Code.
  • Enter the logic.
  • Save -> Check -> Activated.
  • Twice Click on back button.
  • Click on Cancel.




  • To activate the Field Exit.
  • Select the Data Element and Click on Field Exit -> Activate.

  • Pop-up will appear.
  • Click on Continue.
  • Check the status.



Test - 1

  • Go to Transaction Code MM01.
  • Enter the Material Number : DUST201 and required entries and press Enter.

Output

  • Check the status bar.

Test -2

  • Go to transaction MMAM.
  • Enter the Material Number : DUST201 and required entries and press Enter.

Output

  • Check the status bar.

No comments:

Post a Comment