Skip to Content
author's profile photo Former Member
Former Member

Hi

How to make an addon not to work after a particular period by code .

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 05, 2008 at 05:43 AM

    Hi Gowsika,

    In maximum cases the add on codes start execution only from the Events (App events, Item Events and Menu Events).. So to stop the add on from responding i guess u can write a small IF condition to decide this, Please check the folowing code sample.

    Public Sub SBO_Appln_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean)
                    If  SBO_Appln.Company.CurrentPeriod = "1001" Then
                                'UR Item events code folows here.
                  Else
                       Exit Sub
    
            End If
    End Sub

    The same logic can be used for all the other events also.

    Hope this is helpful to u. Award points if helpful.

    Regards,

    Vasu Natari.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.