PAI events in screen exits
hi all !!!
i want to add a push button on my screen exit for ie03.
i have written codes for this in pai of screen wherer i am adding button but it is not getting activated and gives error during execution saying that "requested function not available here ".
Can any one help me out ????
where to write codes for PAI event in such cases ???
Thanks and regards !!!
I used this same exit once, it is not as simple the usual exits because IE03 is subject to screen sequence control, i.e. screen flow and functions are controlled by customising.
The problem is probably due to there being no entry for your fcode in the T185 table. You need to get it added there and do some other messing around in PIA to get the fcode call to work.
Try copying the T185 entry for SAPMIEQ0 / ENT1, changing ENT1 to your FCODE in the copy.
Sorry I can't help more, I am not at the site where I originally did this so I have no access to the complete solution.
I've done somthing similar... After my PAI was processed for my push-button I received the error message. I got round it by placing some code in my PAI to set the OK-CODE to equal ENT1 (or whatever the OK-CODE is for enter in the transaction) so that once my logic had been processed, the standard code thought I had pressed enter. It wasn't exactly tidy but worked fine.
HTH.