Hi Abaper's,
I am using BAdi definition NOTIF_EVENT_SAVE for sending mail notification to user.
Under CHANGE_DATA_AT_SAVE method I have called an RFC enabled function module and written code here for mail notification.I used cl_bcs class for sending file.On executing this I am getting a mail box wherein we can enter user id and send mail.But I don't want to use cl_bcs for sending mail now.So I modified the code by including SO_NEW_DOCUMENT_SEND_API1 function.
My requirement is I want to enable select-options in this function module so that user can get a popup wherein he can select user name from master.On activating I am getting following error:
Local SELECT-OPTIONS are not allowed (FORM routine or GET event is active).
Can any one help me how to resolve this error?
I am using this customized function module for mail notification.If I hardcode mail id,notification is working properly.
Regards,
Sam