6 Replies Latest reply: Jul 30, 2012 9:34 AM by Johan Hakkesteegt RSS

Catching Exception

sakthi vel
Currently Being Moderated

Dear Friend,

 

                

                  when i do the Goods Receipt , Goods Issue  posting through Add-On , System is hanging.

                  How can  handle and catch the Memeory Exception in SAP B1.                 

                  How can catch the Time out Exception in SAP B1 and System  Related Exceptions

 

Help Me.

 

 

 

Regards,

K Sakthivel

  • Re: Catching Exception
    Pedro Magueija
    Currently Being Moderated

    Dear Sakthi,

     

    Exception can be caught using the Try Catch block. There is a good explanation on the use of try catch here.

     

    If you are already using try catch, please post your code for us to take a look at it.

     

    Hope it helps.

     

    Best regards,

     

    Pedro Magueija

    • Re: Catching Exception
      Sakthivel k
      Currently Being Moderated

      Dear Friend,

       

                  Already I have used the Try .. Catch. But I could not catch the Time out Exception.

       

                 When we do goods receipt in large No.(for ex: 5000 item ) with serial number in DI API. Assigning serial no for item in for loop.

       

                   Even After increase the SQL Server connection time out, System is getting hanging without giving any error message or Exception.

       

                  In this case How to  handle Connection time out

       

      Help me...

       

      Regards,

      K Sakthivel

      • Re: Catching Exception
        Pedro Magueija
        Currently Being Moderated

        Hi Shaktivel,

         

        Your problem is probably the Company object time out. I don't think it is related to the SQL Server connection timeout, unless you are using an ODBC connection.

         

        Are you also using UI API on your addon? If you are you can try to keep the connection alive by clicking an item on your form every 100 rows. This is not the perfect solution but I don't know any other way of keeping the connection alive.

         

        You can see a similar thread here.

         

        Hope it helps.

         

        Best regards,

         

        Pedro Magueija

  • Catching Exception
    Bryan Gomez
    Currently Being Moderated

    I'm experiencing this too. I don't know what is the problem in 8.82 PL06.

    • Re: Catching Exception
      Sakthivel k
      Currently Being Moderated

      Dear Friend,

       

                  Already I have used the Try .. Catch. But I could not catch the Time out Exception.

       

                 When we do goods receipt in large No.(for ex: 5000 item ) with serial number in DI API. Assigning serial no for item in for loop.

       

                   Even After increase the SQL Server connection time out, System is getting hanging without giving any error message or Exception.

       

                  In this case How to  handle Connection time out

       

      Help me...

       

      Regards,

      K Sakthivel

Actions