Srinivas Gorla

Srinivas Gorla

45 Articles Published

Articles by Srinivas Gorla

Page 4 of 5

Why do we use const qualifier in C++?

Srinivas Gorla
Srinivas Gorla
Updated on 10-Feb-2020 2K+ Views

We use the const qualifier to declare a variable as constant. That means that we cannot change the value once the variable has been initialized. Using const has a very big benefit. For example, if you have a constant value of the value of PI, you wouldn't like any part of the program to modify that value. So you should declare that as a const.Objects declared with const-qualified types may be placed in read-only memory by the compiler, and if the address of a const object is never taken in a program, it may not be stored at all.  For ...

Read More

How can I export values based on some conditions from MySQL table into a file?

Srinivas Gorla
Srinivas Gorla
Updated on 06-Feb-2020 508 Views

We can use the conditions in WHERE clause while exporting the data from MySQL table to a file. It can be understood with the help of an example −ExampleSuppose we are having following data from table ‘Student_info’ −mysql> Select * from Student_info; +------+---------+------------+------------+ | id   | Name    | Address    | Subject    | +------+---------+------------+------------+ | 101  | YashPal | Amritsar   | History    | | 105  | Gaurav  | Chandigarh | Literature | | 125  | Raman   | Shimla     | Computers  | | 130  | Ram     | Jhansi     | ...

Read More

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 237 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; +------------+ | val1       | +------------+ |     150862 | | 1508622563 | |  622556879 | | 2147483647 | +------------+ 4 rows in set (0.00 sec)Now with the help of the FROM_UNIXTIME() function, we can retrieve the column integer values in the form of MySQL TIMESTAMP data.mysql> Select ...

Read More

Turnoff redirect to mobile pages in SAP Hybris

Srinivas Gorla
Srinivas Gorla
Updated on 16-Dec-2019 147 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 support is required.

Read More

Alternative of SAP .NET Connector

Srinivas Gorla
Srinivas Gorla
Updated on 16-Dec-2019 540 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 mostly used is ERPConnect. It is easy to use and provides an easy mechanism to call BAPI, functions and table calls.But the best way to go for use is web services but for that, you have to be on ERP5.0 or higher. In such case, no .NET connector is required ...

Read More

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

SAP
Srinivas Gorla
Srinivas Gorla
Updated on 30-Jul-2019 1K+ 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 DataBAPI_BUPA_ADDRESS_ADDSAP BP, BAPI: Add AddressBAPI_BUPA_ADDRESS_CHANGE  SAP BP, BAPI: Change AddressFunction Module: BAPI_BUPA_ADDRESS_ADD   Function Group: BUBA_3 SAP BP: External BAPI Function Modules Program Name: SAPLBUBA_3Following are the parameters:

Read More

Is C++0x Compatible with C?

Srinivas Gorla
Srinivas Gorla
Updated on 30-Jul-2019 170 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.

Read More

What is a "translation unit" in C++

Srinivas Gorla
Srinivas Gorla
Updated on 30-Jul-2019 3K+ 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 statements like ifdef, ifndef, etc.A single translation unit can be compiled into an object file, library, or executable program.

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 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.

Read More

How to compare two ArrayList for equality in Java?

Srinivas Gorla
Srinivas Gorla
Updated on 30-Jul-2019 14K+ 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 {    public static void main(String[] args) {       ArrayList list1 = new ArrayList();       list1.add("JavaFx");       list1.add("Java");       list1.add("WebGL");       list1.add("OpenCV");       ArrayList list2 = new ArrayList();       list2.add("JavaFx");       list2.add("Java");       list2.add("WebGL"); ...

Read More
Showing 31–40 of 45 articles
Advertisements