Sravani S has Published 79 Articles

What does the method remove(obj o) do in java?

Sravani S

Sravani S

Updated on 20-Feb-2020 12:14:54

140 Views

The remove(Object) method of the class java.util.ArrayList removes the first occurrence of the specified element from this list, if it is present. If the list does not contain the element, it is unchanged.Exampleimport java.util.ArrayList; public class ArrayListDemo {    public static void main(String[] args) {       ArrayList ... Read More

How to define an array size in java without hardcoding?

Sravani S

Sravani S

Updated on 19-Feb-2020 12:08:44

615 Views

To avoid hard coding you can read the size of the array from the user using command line arguments of the reader classes like Scanner. Then using this value create an array:Exampleimport java.util.Arrays; import java.util.Scanner; public class PopulatingAnArray {    public static void main(String args[]) {       ... Read More

How to convert a PDF to byte array in Java?

Sravani S

Sravani S

Updated on 19-Feb-2020 10:58:42

9K+ Views

You can read data from a PDF file using the read() method of the FileInputStream class this method requires a byte array as a parameter.Exampleimport java.io.File; import java.io.FileInputStream; import java.io.ByteArrayOutputStream; public class PdfToByteArray {    public static void main(String args[]) throws Exception {       File file = ... Read More

How to handle Java Array Index Out of Bounds Exception?

Sravani S

Sravani S

Updated on 19-Feb-2020 10:49:26

15K+ Views

Generally, an array is of fixed size and each element is accessed using the indices. For example, we have created an array with size 9. Then the valid expressions to access the elements of this array will be a[0] to a[8] (length-1).Whenever you used an –ve value or, the value ... Read More

Loading 3rd party libraries in SAPUI5

Sravani S

Sravani S

Updated on 18-Feb-2020 07:28:51

1K+ Views

JavaScript includes various third-party libraries that ease the development while working on SAP UI5 app. You can use following jQuery as below −jQuery.sap.require("sap.ui.thirdparty.jqueryui.jquery-ui-core");Other common JavaScript libraries that are in use −MomentJSLoadshTo load a third party library in SAP UI app project, create a folder “libs”. This folder is used to ... Read More

Difference between Work area, global structure and internal table in SAP ABAP

Sravani S

Sravani S

Updated on 18-Feb-2020 07:20:22

1K+ Views

Internal tables let you read data from a fixed structure and stores it in-memory (working memory) in ABAP. The data is stored in a sequential manner in memory. They are basically equivalent to arrays but dynamic in nature. Since they are dynamic in nature, memory management is already taken care ... Read More

Integrating SAP system with ISV company product to deploy at client end

Sravani S

Sravani S

Updated on 14-Feb-2020 11:07:30

134 Views

SAP NetWeaver is just a term used for SAP system. All SAP systems are mostly running on NetWeaver. SAP PI is one of common integration tool like Biztalk and it is not necessary that all clients has SAP PI system for integration.You should use Remote Function Call RFC in SAP ... Read More

In SAP ABAP, few records are skipped during parallel processing

Sravani S

Sravani S

Updated on 14-Feb-2020 10:11:03

327 Views

Check out on code to handle parallel processing-gv_semaphore = 0. DESCRIBE TABLE lt_itab LINES lv_lines. LOOP AT lt_itab INTO ls_itab. CALL FUNCTION 'ZABC' STARTING NEW TASK taskname DESTINATION IN GROUP srv_grp PERFORMING come_back ON END OF TASK EXPORTING ... EXCEPTIONS ... . "

Binding OData service to SAP UI5 table

Sravani S

Sravani S

Updated on 14-Feb-2020 10:10:22

1K+ Views

Your service end point is incorrect- var oModel = new sap.ui.model.odata.v2.ODataModel("http://admin- think:88/sap/...", {useBatch : true});.To fix this issue, you need to remove “CoreOpenAppSet()” portion of the variable which is getting passed to ODataModel constructor. You need to pass function import using ODataModel- “oModel.callFunction()”.Once function call is completed, you can bind ... Read More

How can we create a MySQL stored function that uses the dynamic data from a table?

Sravani S

Sravani S

Updated on 13-Feb-2020 07:12:47

480 Views

MySQL Stored functions can reference tables but they cannot make use of statements that return a result set. Hence we can say that there is no SELECT query that returns result set. But we can have SELECT INTO to get rid of that. For example, we are creating a function ... Read More

Advertisements