Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Ali
Page 2 of 4
Including third party libraries in SAPUI5 Project
Including third party libraries in your SAPUI5 project allows you to leverage external functionality and extend your application capabilities. SAPUI5 provides several methods to incorporate these libraries safely and efficiently. Using jQuery.sap.require Method For libraries that are already included with SAPUI5, you can use the jQuery.sap.require method to load them. Here's how you would include jQuery UI components − jQuery.sap.require("sap.ui.thirdparty.jqueryui.jquery-ui-core"); This method ensures that the library is loaded properly within the SAPUI5 framework and maintains compatibility with the application lifecycle. Security Considerations When working with third party libraries, security is a crucial ...
Read MoreGenerating range of numbers 1...n in SAP HANA
In SAP HANA, you can generate a range of numbers from 1 to n using different approaches. This is particularly useful when you need to populate tables with sequential data or create test datasets. Method 1: Using FOR Loop You can use a FOR loop to iterate through a range of numbers and insert them into a table − FOR START_CID IN 1..1000 DO INSERT INTO "TEST_TABLE" VALUES(START_CID, ''); END FOR; This loop will iterate from 1 to 1000 and insert each number as a CID value along with an ...
Read MoreInserting Array list into HANA database
To insert array lists into a HANA database, you can use JDBC statements with HANA's ARRAY function. This approach allows you to store multiple values as array columns in your database table. Example The following code demonstrates how to insert array data into a HANA database table − Integer[][] myarray = { {1}, {1, 2}, {1, 2, 3, 4, 5} }; String test = "Insert Arrays"; stopWatch.start(test); myDBconn.setAutoCommit(false); Statement stmt = myDBconn.createStatement(); stmt.execute("TRUNCATE TABLE Schema.Table1"); // Running a loop over our array of arrays for (int i = 0 ; i < (myarray.length); i++) { ...
Read MoreWhat is the difference between character literals and string literals in Java?
Character literals represents alphabets (both cases), numbers (0 to 9), special characters (@, ?, & etc.) and escape sequences like , \b etc. Whereas, the String literal represents objects of String class. Example public class LiteralsExample { public static void main(String args[]){ char ch = 'H'; String str = "Hello"; System.out.println("Value of character: "+ch); System.out.println("Value of string: "+str); } } Output Value of character: H Value of string: Hello
Read MoreRetrieving Idoc XML data from SAP system over HTTPS
You can read HTTP using file_get_contents("php://input")Try using this link-https://www.php.net/manual/en/reserved.variables.php
Read MoreHow to filter an array in Java
You can use List.removeAll() method to filter an array. exampleimport java.util.ArrayList; import java.util.List; public class Tester { public static void main(String[] args) { List list = new ArrayList(); list.add("A"); list.add("B"); list.add("C"); list.add("D"); list.add("E"); list.add("F"); list.add("G"); list.add("H"); List ...
Read MoreEverything is stored in database in SAP system
Note that it is easy to store data in form of SAP database tables as compared to files. You can also access files in SAP system but they are available on file system of SAP Application server and not easy to use with.With use of ABAP, you can easily raise queries against database tables and it is safe to run queries to get data. SAP has various tools that allow you to work with table entries and also to manage entire landscape easily.What databases are supported by SAP?PartnerVendorMicrosoft SQL Serverwww.microsoft.comMySQL MaxDBwww.mysql.comIBM DB2 (various versions)www.ibm.comOraclewww.oracle.comAlso SAP has its own in-memory computing ...
Read MoreCreate database view in SAP ABAP
In ABAP, you can make use of Function modules - DDIF_VIEW_PUT and DDIF_VIEW_ACTIVATE for view activation. All table parameters should be defined correctly otherwise it can result in an error in the creation process.DDIF_VIEW_PUT − Interface for writing a view in the ABAP Dictionary.You can refer to below link for more details −http://www.se80.co.uk/sapfms/d/ddif/ddif_view_put.htmCALL FUNCTION 'DDIF_VIEW_PUT' "DD: Interface for writing a view in the ABAP DictionaryEXPORTINGname = " ddname Name of the view to be written * dd25v_wa = ' ' " dd25v View header * dd09l_wa = ' ' " dd09v Technical settings of the view * TABLES * dd26v_tab ...
Read MoreHow do I reverse an int array in Java
Following program reverses an int array.Examplepublic class Tester { public static void main(String[] args) { int[] numbers = {1,2,3,4,5}; //swap the numbers till the midpoint comes for (int start = 0, end = numbers.length - 1; start
Read MoreWhere should jQuery code go in header or footer?
It’s always a good practice to add jQuery code in footer i.e. just before the closing tag. If you have not done that, then use the defer attribute.Use defer attribute so the web browser knows to download your scripts after the HTML downloaded −The defer attribute is used to specify that the script execution occurs when the page loads. It is useful only for external scripts and is a boolean attribute.ExampleThe following code shows how to use the defer attribute − The external file added will load later, since we're using defer
Read More