03-28-2006 1:43 PM
Hi ,
We have to write a field exit in SAP R/3 Enterprise Version.
1) Executed program RSMODPRF and created field exit
2) Added Profile Parameter abap/fieldexit YES
and system restarted after addition of profile parameter.
Still the field exit is not getting activated
Rgds,
Priti
03-28-2006 1:55 PM
Execute program 'RSMODPRF', entering the data element of the field
Create function module when prompted, and add you code to the source section using the parameter 'INPUT' as the field value you are checking
Save and activate Function and execute transaction 'CMOD'.
Choose option: Goto-> Text Enhancements->Data elements->New DE cust docu.
Enter data element
Save and activate
Execute program 'RSMODPRF' again but this time leave data element field blank.
Select the checkbox for the data element you have just created and choose option: Field exit->Activate This will now be active for all instances of this data element, but you can assign specific program and screen combinations by pressing the 'Assign prog./screen' button. You can also change the code you entered in the field exit function module by pressing the 'Edit FM' button.
And also assign value to <b>input and output</b> fields
regards
vinod
03-28-2006 1:57 PM
Hi priti,
1. i suppose u have created field
exit using cmod transaction (and typing prfb in tcode text box)
2. there u will be asked to
mention the program name and screen name
3. i suppose u have done all this.
4.
Still the field exit is not getting activated
How have u tested this ?
BCOS,
debugging won't come in the field exit code.
We have to write
unconditinoal message
as the first line,
so that we come to know,
whether the field exit is happening or not !
regards,
amit m.
03-28-2006 2:00 PM
Is your field-exit active?
Try to call CMOD transaction; after this use 'PRFB' code (in transaction box) and check if your field-exit is active.
Gianluca
03-28-2006 2:01 PM
Hello Priti,
There is a step in field exit where u assign the exit to screen and program. Have u done that?
If u have done that then u need to set a hard coded message like message E001(zxx) and then test and the program will stop at the error. then set debug and check what is happening.