Sai Subramanyam has Published 102 Articles

Replace Tab with space in SAP ABAP

Sai Subramanyam

Sai Subramanyam

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

461 Views

You just need to make a small change. You need to add an “If condition” for handling the tab as shown below − if CO gc_hex_char I think it should sort out your issue and neither it looks like hardcoding or a wrong implementation.

How do we pass parameters by value in a Java method?

Sai Subramanyam

Sai Subramanyam

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

175 Views

Passing Parameters by Value means calling a method with a parameter. Through this, the argument value is passed to the parameter. Example public class SwappingExample { public static void swapFunction(int a, int b) { int c = a+b; ... Read More

Where and how is import statement used in Java programs?

Sai Subramanyam

Sai Subramanyam

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

217 Views

Wan import statement in Java is used to − Import user defined classes/Interfaces Whenever you need to access a class which is not in the current package of the program you need to import that particular class using the import statement. Example In the following example we are using the ... Read More

What is a Locale class in Java?

Sai Subramanyam

Sai Subramanyam

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

115 Views

The java.util.Locale class object represents a specific geographical, political, or cultural region. An operation that requires a Locale to perform its task is called locale-sensitive and uses the Locale to form information for the user. The locale is a mechanism for identifying objects, not a container for the objects ... Read More

How to create a pdf file in Java?

Sai Subramanyam

Sai Subramanyam

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

2K+ Views

You can create a PDF file using the PDF Box library. You can set the environment for pdf box by following Pdf Box Environment Tutorial. Example import java.io.IOException; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmodel.PDPage; public class CreatingEmptyPdf { public static void main(String args[]) throws IOException { ... Read More

What is constructor chaining in Java?

Sai Subramanyam

Sai Subramanyam

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

259 Views

Constructors are similar to methods but, They do not have any return type. The name of the constructor is same as the name of the class. Every class has a constructor. If we do not explicitly write a constructor for a class, the Java compiler builds a default constructor ... Read More

Java Web application pointing to SAP HANA locally

Sai Subramanyam

Sai Subramanyam

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

191 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 = ... Read More

Condition Variables within Sub-Query in SAP

Sai Subramanyam

Sai Subramanyam

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

80 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 ... Read More

Finding code where admin user is created in SAP Hybris

Sai Subramanyam

Sai Subramanyam

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

87 Views

There is a method addUserRights at below path in which it is done.hybris/bin/platform/bootstrap/bin → ybootstrap.jar → DMLRecordFactory

What is an array data structure in Java?

Sai Subramanyam

Sai Subramanyam

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

146 Views

Array is a container which can hold a fix number of items and these items should be of the same type. Most of the data structures make use of arrays to implement their algorithms. Following are the important terms to understand the concept of Array. Element − Each item ... Read More

Advertisements