Ankitha Reddy

Ankitha Reddy

45 Articles Published

Articles by Ankitha Reddy

Page 4 of 5

What is object slicing in C++ or Java?

Ankitha Reddy
Ankitha Reddy
Updated on 30-Jul-2019 3K+ Views

Object slicing is used to describe the situation when you assign an object of a derived class to an instance of a base class. This causes a loss of methods and member variables for the derived class object. This is termed as information being sliced away. For example, class Foo { int a; }; class Bar : public Foo { int b; }; Since Bar extends Foo, it now has 2 member variables, a and b. So if you create a variable bar of type Bar and then create ...

Read More

What happens if the output of MySQL TIMEDIFF() function surpass the range value of TIME field?

Ankitha Reddy
Ankitha Reddy
Updated on 30-Jul-2019 290 Views

As we know that the range of TIME field in MySQL is ‘-838:59:59’ to ‘838:59:59’. Now, if TIMEDIFF() function’s output surpasses this range then MySQL will return either ‘-838:59:59’ or ‘838:59:59’ depends upon the values of the argument. Example mysql> Select TIMEDIFF('2017-09-01 03:05:45', '2017-10-22 03:05:45')AS 'Out of Range TIME Difference'; +------------------------------+ | Out of Range TIME Difference | +------------------------------+ | -838:59:59 | +------------------------------+ 1 row in set, 1 warning (0.00 sec) mysql> Select TIMEDIFF('2017-10-22 04:05:45', '2017-09-01 03:05:45')AS 'Out of Range ...

Read More

How can we count a number of unique values in a column in MySQL table?

Ankitha Reddy
Ankitha Reddy
Updated on 30-Jul-2019 338 Views

By using DISTINCT keyword along with column name as the argument of COUNT() function we can count the number of unique values in a column. The syntax is as follows − SELECT COUNT(DISTINCT Col_name) FROM table_name; Example Suppose we have the following table mysql> Select * from tender; +----------+--------------+--------------+-------+ | clientid | client_Fname | Client_Lname | value | +----------+--------------+--------------+-------+ | 100 | Mohan | Kumar | 60000 | | 101 | Sohan ...

Read More

Difference between HashMap and HashTable in Java.

Ankitha Reddy
Ankitha Reddy
Updated on 30-Jul-2019 21K+ Views

HashMap is non-syncronized and is not thread safe while HashTable is thread safe and is synchronized. HashMap allows one null key and values can be null whereas HashTable doesn't allow null key or value. HashMap is faster than HashTable. HashMap iterator is fail-safe where HashTable iterator is not fail-safe. HashMap extends AbstractMap class where HashTable extends Dictionary class.

Read More

What are the different build tools in Java?

Ankitha Reddy
Ankitha Reddy
Updated on 30-Jul-2019 266 Views

"On a mean, a developer spends a considerable quantity of your time doing mundane tasks compiling the code, packaging the binaries, deploying the binaries to the checkserver, testing the changes," copying the code from one location to another. To automate and simplify these tasks we can use build tools like Ant, Maven, Gradle etc.

Read More

Generating SAP ABAP code/ script from XML coming from an external application

Ankitha Reddy
Ankitha Reddy
Updated on 30-Jul-2019 934 Views

Yes, this is feasible. You can create simple transformation for XML in ABAP. You can also use cl_proxy_xml_transform to transform data between XML and ABAP. Let us say that you have created ABAP proxy using T-Code: SPROXY or it is generated via WebService generation utility, you can use utility class “cl_proxy_xml_transform” to convert data of the ABAP to XML format or also from XML → ABAP.

Read More

Getting an error message Object already exported, no package change is possible while changing a package for 250 SAP development objects

SAP
Ankitha Reddy
Ankitha Reddy
Updated on 30-Jul-2019 337 Views

This problem commonly occurs when you move development objects from Transportable enabled package to non-Transportable package. You can resolve this issue by following steps − You need to migrate legacy package using report RS_MIGRATE_PACKAGES. Check SAP Note:  https://launchpad.support.sap.com/#/notes/1711900Then legacy package' will be removed, but the package will be still non-transportable. You can recreate package after migration. Next is to delete non Transportable package and create a copy of non TMS package. Next step is to assign all development objects to package created in the previous step using report RSWBO052. You use this program “RSWBO052” (Change Object Directory Entries) to ...

Read More

Moving SAP client from one system to other

SAP
Ankitha Reddy
Ankitha Reddy
Updated on 30-Jul-2019 1K+ Views

You can also create a copy of the existing clients between local and remote system IDs. Follow the below steps to create a copy of existing clients − Step 1 − To create a copy of a client in local SID, the transaction code is SCCL. Step 2 − Enter the following details − Select your desired profile, enter source client, and enter description. Step 3 − By default, the client copy is executed in a single process and you can distribute the workload on multiple processes to reduce time for copying. Step 4 − Copying a ...

Read More

Defining a variable reference in SAP ABAP

Ankitha Reddy
Ankitha Reddy
Updated on 30-Jul-2019 419 Views

As per my understanding, it is not feasible. You can access local class dynamically but statically referring to it in another class seems impossible. You might think about calling methods as dynamic in this case.

Read More

Deleting BOM component in SAP

SAP
Ankitha Reddy
Ankitha Reddy
Updated on 30-Jul-2019 3K+ Views

In order to delete a component of BOM, you can use transaction 'CS02'. CS02 is referred as Change Material BOM. It is further classified within the Logistics - General module. Module: Logistics-General Application Component - Bills of Material Package: CS Package Description: R/3 Application development: PP Bills of Material. But if you require deleting more than one BOM component then you can use LSMW script. Method: 0002 Change Program Name : RCDBI020 Once you have deleted the components if you want to verify the deletion and view the deleted components. You can view them under ...

Read More
Showing 31–40 of 45 articles
Advertisements