Application Development and Automation 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: 
Read only

Field exit

Former Member
0 Likes
876

Hi Friendz,

Could anyone help me in finding what is field exit & how to implement it?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
799

Hi Prasad,

To find field exit

Goto tcode CMOD

in the uppper left text box (where we type cmod)

again type PRFB.

all list of field exits, (which have been created so far),

will come.

5 REPLIES 5
Read only

Former Member
0 Likes
800

Hi Prasad,

To find field exit

Goto tcode CMOD

in the uppper left text box (where we type cmod)

again type PRFB.

all list of field exits, (which have been created so far),

will come.

Read only

Former Member
0 Likes
799

Hello Prasad,

To find the field exits please follow the steps mentioned above

To create a field Exit pls follow the steps

1)For field exits in R/3 4.6C, execute transaction CMOD. Then type PRFB in the command field.

2)on the top menu...click on Field exit-> create ->enter the name of data element

3)enter the data element required for screen field to be mandatory and Execute

4)another screen comes with a function module name FIELD_EXIT_name of data element

5)Click create and save it to corresponding function group

6)you will get a function module with

import parameter as : INPUT

export parameter as : OUTPUT

7) in the source code write the code :

if input is initial.

message 'SALES FIELD MADATORY' type 'E'.

endif.

8)again to activate execute transaction CMOD. Then type PRFB in the command field. on the top menu...click on Field exit->Activate

now wherever data element is used the mandatory check will come but you need it only for your program ,so in the same screen click on Assign prog./screen tab and write the name of the program and screen number where you want the particular check

I believe field exit are not possible if structure field is on the screen...please do the above and check..you can also run the report RSMODPRF to create a field exit

Hope the suggestions proved useful.

<b>Pls reward all helpful answers and revert if you still have some doubts on the same</b>

Regards

Byju

Read only

Former Member
0 Likes
799

Thanks for your answer.

I will reply u very soon

Read only

Former Member
0 Likes
799

Field exits are an obsolete way of performing validation / change to a single field. In systems from 4.6 onwards, you should look for an alternative method to achieve the result you want using user exits, BADI's, validations, BTE's, etc.

While SAP still lets you create / change field exits as others have commented, you should find that your Basis team have disabled field exits globally through a system parameter. If they have not - look at removing any existing field exits and talk to them about doing so - there is a performance hit in having them turned on.

I suggest you post more details of your actual requirement to see if contributers to this forum can suggest a better and more supportable method of implementing your change.

Andrew

Read only

Former Member
0 Likes
799

This message was moderated.