Srinivas Gorla has Published 75 Articles

What is the proper way to retrieve the value stored in INT column as MySQL TIMESTAMP?

Srinivas Gorla

Srinivas Gorla

Updated on 30-Jan-2020 05:53:44

142 Views

We can use FROM_UNIXTIME() function to retrieve the value, as MySQL TIMESTAMP, stored as INT in the column of a table.For example, we have a table called ‘test123’ which has a column named ‘val1’. In this column, we stored the integer values as follows −mysql> Select * from test123; +------------+ ... Read More

Turnoff redirect to mobile pages in SAP Hybris

Srinivas Gorla

Srinivas Gorla

Updated on 16-Dec-2019 08:44:44

54 Views

To start with, first, you need to turn off the cookies on a mobile device. Next is to run the following command to the “project.properties” file of your storefront extension. Example# disabling the mobiles redirects:# uiexperience.level.supported.b2ctelco=DESKTOP uiexperience.level.supported=DESKTOPWhen this function is used, it communicates to SAP Hybris system that only DESKTOP based ... Read More

Alternative of SAP .NET Connector

Srinivas Gorla

Srinivas Gorla

Updated on 16-Dec-2019 07:13:07

312 Views

There are various (not many as for JAVA and others) possible ways to achieve the task. One way is to go for existing remote function calls library for establishing a connection. There are free to use wrappers written around RFC to serve the task.Another library available for the same and ... Read More

Using Function Module BAPI_ISUPARTNER_CREATEFROMDATA to create BP in SAP IS-U system

Srinivas Gorla

Srinivas Gorla

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

675 Views

Note that home page URL is part of Business Partner’s communication data and comes under address data or address independent communication.You can use Function Module - BAPI_BUPA_ADDRESS_ADD/BAPI_BUPA_ADDRESS_CHANGE for updating it with communication data or FM’s BAPI_BUPA_CREATE_FROM_DATA/BAPI_BUPA_CENTRAL_CHANGE for address independent communication.BAPI_BUPA_CREATE_FROM_DATA  SAP BP, BAPI: Create Business PartnerBAPI_BUPA_CENTRAL_CHANGESAP BP, BAPI: Change Central ... Read More

Is C++0x Compatible with C?

Srinivas Gorla

Srinivas Gorla

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

88 Views

Neither C++ (98) nor the new standard(C++0x or C++11) is fully compatible with C. C++ never was fully compatible with C.

What is the difference between "std::endl" and "" in C++?

Srinivas Gorla

Srinivas Gorla

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

275 Views

"" Outputs a newline (in the appropriate platform-specific representation, so it generates a "\r" on Windows), but std::endl does the same AND flushes the stream. Usually, you don't need to flush the stream immediately and it'll just cost you performance, so, for the most part, there's no reason to use ... Read More

What is a "translation unit" in C++

Srinivas Gorla

Srinivas Gorla

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

2K+ Views

A translation unit is any preprocessed source file.A translation unit is the basic unit of compilation in C++. This unit is made up of the contents of a single source file after it passes through preprocessing. It contains included any header files without blocks that are ignored using conditional preprocessing ... Read More

What is the difference between the size of ArrayList and length of Array in Java?

Srinivas Gorla

Srinivas Gorla

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

2K+ Views

ArrayList doesn't have length() method, the size() method of ArrayList provides the number of objects available in the collection.Array has length property which provides the length or capacity of the Array. It is the total space allocated during the initialization of the array.

How to reverse an ArrayList in Java?

Srinivas Gorla

Srinivas Gorla

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

287 Views

The Collections class provides a method named reverse() this method accepts a list and reverses the order of elements in it.Example:import java.util.ArrayList; import java.util.Collections; import java.util.LinkedHashSet; import java.util.Set; public class Sample {    public static void main(String[] args){       ArrayList list = new ArrayList();       list.add("JavaFx");   ... Read More

How to compare two ArrayList for equality in Java?

Srinivas Gorla

Srinivas Gorla

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

12K+ Views

You can compare two array lists using the equals() method of the ArrayList class, this method accepts a list object as a parameter, compares it with the current object, in case of the match it returns true and if not it returns false.Example Live Demoimport java.util.ArrayList; public class ComparingList {   ... Read More

Advertisements