SAP FIELD-EXIT

2021-10-23 16:31发布


          点击此处--->   EasySAP.com 群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)

SE38:RSMODPRF


1.Enter the tcode SE38

2.In the ABAP Editor enter the program name RSMODPRF

3.Execute

4.Then you will get a screen with Data Element and Number of Field Exit

Here enter the Data Element(as per your requirement for example MATNR for material no.) and

enter 0 to 9 or A to Z in the second field(I am taking 0 in my example)

5. Execute

6.Then you will be navigated to the Function Builder screen(se37) with FM name FIELD_EXIT_MATNR_0

The FM name contains the Data Element(MATNR) and No. of Field Exit (0) (in this case)

7.Then click on CREATE.

8.Give the Fun. Grp name and SAVE

9.It will take youn to the Source code wherein ypu have to write the code asb per your requirement

For Example:

FUNCTION FIELD_EXIT_MATNR.

IF INPUT BETWEEN 125 AND 150.

MESSAGE E000(ZMM) WITH "Material not allowed".

ENDIF.

ENDFUNCTION.

10.Then if you try to enter the values in MM01 for Material no.,this effect comes into picture

If you enter Material no between 125 and 150 you will get "Material not allowed".



or


One more way to do this is goto tcode CMOD.

Enter PRFB in the command prompt and press ENTER

In the screen select the menu Field exit --> Create and follow the same procedure as above.



****Reward points if found useful


Regards,

Naresh



赞赏支持