Java Web application pointing to SAP HANA locally

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

207 Views

You would require changing the connection.properties file of your local Tomcat Server (Server > Java Web Tomcat 8 Server-config/config_master/connection_data), to point to the HANA database. Here are the usual parameters that need to be configured for HANA database javax.persistence.jdbc.driver = com.sap.db.jdbc.Driver javax.persistence.jdbc.url = jdbc:sap://:/?reconnect=true&autocommit=false javax.persistence.jdbc.user = db-user javax.persistence.jdbc.password = db-pass eclipselink.target-database = HANA

How to sort a dictionary in Python by values?

Pythonic
Updated on 30-Jul-2019 22:30:20

2K+ Views

Standard distribution of Python contains collections module. It has definitions of high performance container data types. OrderedDict is a sub class of dictionary which remembers the order of entries added in dictionary object. When iterating over an ordered dictionary, the items are returned in the order their keys were first added. >>> from collections import OrderedDict >>> D = {5:'fff', 3:'ttt', 1:'ooo', 4:'bbb', 2:'ddd'} >>> OrderedDict(D.items())  OrderedDict([(5, 'fff'), (3, 'ttt'), (1, 'ooo'), (4, 'bbb'), (2, 'ddd')]) We also need to us sorted() function that sorts elements in an iterable in a specified order. The function takes a function ... Read More

What is the maximum value of float in Python?

Pythonic
Updated on 30-Jul-2019 22:30:20

637 Views

In sys module, a struct sequence (tuple of named elements) called float_info has been defined. In this structure, an element max returns maximum representable finite float number. >>> import sys >>> sys.float_info.max 1.7976931348623157e+308

Connecting SAP B1 via DI API takes too much time

varun
Updated on 30-Jul-2019 22:30:20

327 Views

Try deleting all the files under this location - %UserProfile%\AppData\Local\SAP\SAP Business One\Log\DIAPIWhen you delete all files, it will speed up the connection process.

Condition Variables within Sub-Query in SAP

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

88 Views

One line answer - Sub-Queries are not allowed. But if you need to handle your scenario, then you can do the following: Encapsulate your entire query into a stored procedure and then use the stored procedure. Create a view. The view is created to handle either your main query or sub-query. Create a table level variable and store the end results of view in it and then go ahead and fetch the value of table variable in the main query.

Is there a need to import Java.lang package while running Java programs?

Sreemaha
Updated on 30-Jul-2019 22:30:20

518 Views

The java.lang package is the default package in Java, by default, it will be imported. Therefore, there is no need to import this package explicitly. i.e. without importing you can access the classes of this package. Example If you observe the following example here we haven’t imported the lang package explicitly but, still, we are able to calculate the square root of a number using the sqrt() method of the java.lang.Math class. Live Demo public class LangTest { public static void main(String args[]) { int num = 100; ... Read More

What is the maximum length of string in Python?

Pythonic
Updated on 30-Jul-2019 22:30:20

4K+ Views

Maximum length of a string is platform dependent and depends upon address space and/or RAM. The maxsize constant defined in sys module returns 263-1 on 64 bit system. >>> import sys >>> sys.maxsize 9223372036854775807 The largest positive integer supported by the platform's Py_ssize_t type, is the maximum size lists, strings, dicts, and many other containers can have.

Where's the standard python exception list for programmers to raise?

Rajendra Dharmkar
Updated on 30-Jul-2019 22:30:20

90 Views

I want to know what all standard exceptions are there in python. Where can I find a list of standard python exceptions?The standard python exception list for programmers is available athttps://docs.python.org/3/library/exceptions.html

Installing free version of SAP ERP to learn ABAP

usharani
Updated on 30-Jul-2019 22:30:20

2K+ Views

You can install a free trial from SAP site, but for that, you require an SAP Partner ID. SAP also provides developer trial and you can install the following link:https://www.sap.com/developer/trials-downloads.htmlThe SAP NetWeaver Application Server ABAP comes with a temporary license that allows you to logon to the system. As a first step before using the system, you need to install a 90 days Minisap licenseYou can see all SAP NetWeaver AS ABAP version available for download, Installation Procedure and How to Guide as well.You can also refer to this link to know about license terms, PAM and other details related ... Read More

What is the maximum size of list in Python?

Pythonic
Updated on 30-Jul-2019 22:30:20

4K+ Views

Maximum length of a list is platform dependent and depends upon address space and/or RAM. The maxsize constant defined in sys module returns 263-1 on 64 bit system. >>> import sys >>> sys.maxsize 9223372036854775807 The largest positive integer supported by the platform's Py_ssize_t type, is the maximum size lists, strings, dicts, and many other containers can have.

Advertisements