‎2008 Jan 03 12:02 PM
Hi All,
I have a reqirment in which a RFC enabled BAPI and this BAPI has to be called or executed only during the period of first week of every month. Do we have any option to lock the BAPI so that it can be locked in the rest of the period or please tell me any other option to do this.
Points will be awarded for answers & suggestions...
Rgds,
Sarath.C
‎2008 Jan 03 12:20 PM
Hello.
You cannot lock the BAPI itself. What you can do though is write some code in the program that calls the BAPI in order to check if the period is valid.
For example,
data: wl_day type i.
wl_day = sy-datum+6(2). "get current day
if wl_day <= 7. "check the calendar week that is within the first 7 calendar days
"CALL THE BAPI HERE
else.
exit.
endif.
Hope this helps.
Regards,
George
‎2008 Jan 03 1:27 PM