2007 Jan 30 10:55 AM
Hi,
Can some one tell me how exactly a field exit is invoked.I have created an exit with RSMODPRF for a data element say ztest.Code is written inside the function module(exit) and then the data element is assigned to a program.All the required activation is done.Now in my report program I have used this data element.I need to know how exactly the exit gets triggered?.Suppose if I use the data element in the selection screen..can I do a validation check?
Thanks
Shyam
2007 Jan 30 11:30 AM
just check in rz10 tcode the profile is set as parameter abap/fieldexit = yes. then only your field exit will work.
regards
shiba dutta
Hi,
Can some one tell me how exactly a field exit is invoked.I have created an exit with RSMODPRF for a data element say ztest.Code is written inside the function module(exit) and then the data element is assigned to a program.All the required activation is done.Now in my report program I have used this data element.I need to know how exactly the exit gets triggered?.Suppose if I use the data element in the selection screen..can I do a validation check?
Thanks
Shyam
2007 Jan 30 10:59 AM
for the field exit you have to assign programme name and screen no. it will trigger at PAI of the screen so you can do validation here.
regards
shiba dutta
2007 Jan 30 11:12 AM
Hi,
The programe name as well as the selection screen no is specified for the data element. The report name is ztest.In the selection screen of ztest I enter some value and clicked execute.Ideally I guess it should go to the exit function module which is not happening.How exactly can I debug?.
Thanks
Shyam
2007 Jan 30 11:17 AM
sorry i dint try for selection screen ever because we can do it in at selection-screen event itself . just check whether you have defined screen no 1000 for that and all the things are in active mode or not.
regards
shiba dutta
2007 Jan 30 11:01 AM
Hi,
If you want the error message (any validation checks) and it should not allow further processing of that transaction, then its the time to go for FIELD EXIT.
Steps:
1. Create a Function Group.
2. Run the program RSMODPRF, which will create a field exit (Mention the data element for which field exit is needed).
3. In the Function module created by the above program write the validation code you require.
Look at the below threads ..
http://www.sap-img.com/abap/field-exits-smod-cmod-questions-and-answers.htm
2007 Jan 30 11:30 AM
just check in rz10 tcode the profile is set as parameter abap/fieldexit = yes. then only your field exit will work.
regards
shiba dutta
2007 Jan 31 2:34 AM
Hi Shiba,
Can u pls give few more info reg rz10.In the profile field should I give as ABAP/FIELDEXIT?..is there any other settings required..would appreciate if u can explain in detail.
Thanks
Shyam
2007 Jan 31 4:01 AM
go to RZ10 select instance profile from that . now go to second screen if abap/fieldexit (parameter name ) = yes (value) is there you need not to do anything other wise in application tool bar create new parameter option is there . if you click that it will show a screen with parameter name and value just selec parameter name as abap/fieldexit and value as yes. save the profile . that only needed.
regard
shiba dutta
2007 Jan 31 4:13 AM
Hi Shiba,
Can u pls give ur mail ID so that i can send you the screen shots.Still I am having few doubts.
Thanks
Shyam
2007 Jan 31 4:19 AM
sorry shyamal i cannot access my mail in sify at this work place. if you can tell me specifically what are the problem then i can try to solve it . I can it is very critical to explain some problem without screen shots but sorry for the inconvenience,
regards
shiba dutta
2007 Jan 31 4:36 AM
ok .I have gone to RZ10.after giving F4 at the profile field i can see one default profile,few instance profiles and few start profiles.I have selected one of the instance profile and then clicked on change and then navigated to the next screen.There I could find a copy button on top and
************
Profile CFG_DVEBMGS20_LN4D398DBS
Version 6
Short description Automatically generated import profile
Name /usr/sap/CFG/SYS/profile/CFG_DVEBMGS20_ln4d398dbs
Name ln4d398dbs_CFG_20 ( SunOS )
Modified by SWIFTRI
on 22.07.2002
at 11:44:11
Activated by SWIFTRI
on 22.07.2002
at 11:44:12
********************
Now where exactly I need to make the change.Is it in the administration data or refrence server for profile parameter check. All I need is to see where exactly the call to the exit is getting trigerred.In my report I gone to debugging mode and went inside the PAI but still cant figure out the call to the exit.
Thanks
Shyam
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |