Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Locking a BAPI

Former Member
0 Likes
364

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

2 REPLIES 2
Read only

George_Lioumis
Active Participant
0 Likes
339

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

Read only

0 Likes
339

Thank u George..