Sharon Christine

Sharon Christine

337 Articles Published

Articles by Sharon Christine

Page 15 of 34

Searching an element in Javascript Array

Sharon Christine
Sharon Christine
Updated on 15-Jun-2020 600 Views

Javascript provides a collection of functions that you can use to find elements in an array. Let's start with the most basic one. The indexOf function goes through the entire array and returns the index of the element you searched for, if it is found else it returns -1. For example, Examplelet people = ["Harry", "Martha", "John", "Sam"]; console.log(people.indexOf("John")) console.log(people.indexOf("Jim"))OutputThis will give the output −2 -1There are other, more complex functions that you can use to make search more powerful. Let's look at find() method. The find() method returns the first object matching the condition you provide it as the ...

Read More

SAP Associate Level Exam preparation

Sharon Christine
Sharon Christine
Updated on 13-Jun-2020 146 Views

First, let me make your core basics clear.When you are referring to SAP ECC, you are referring to SAP ERP Central Component which is more or less equivalent to the prior SAP R3 System.  ABAP does not play any much part over here.But ABAP resides in the kernel of SAP which is referred to SAP BASIS.Speaking about your pointers for referenceHorst Keller - ABAP objects (For ABAP)Help.SAP.com  - (overall SAP)SAP ECC 6.0 Black book Then there are blogs, Q&A, and other online help always available. You can start from anywhere and when you move along, you will discover online assets as ...

Read More

What does the method fill(obj[], object val) do?

Sharon Christine
Sharon Christine
Updated on 13-Mar-2020 247 Views

The fill(Object[] a, Object val) method of the java.util.Arrays class assigns the specified Object reference to each element of the specified array of Objects.Exampleimport java.util.Arrays; public class ArrayDemo {    public static void main(String[] args) {       Object arr[] = new Object[] {10.5, 5.6, 4.7, 2.9, 9.7};       System.out.println("Actual values: ");       for (Object value : arr) {          System.out.println("Value = " + value);       }       Arrays.fill(arr, 12.2);       System.out.println("New values after using fill() method: ");       for (Object value : arr) {          System.out.println("Value = " + value);       }    } }OutputActual values: Value = 10.5 Value = 5.6 Value = 4.7 Value = 2.9 Value = 9.7 New values after using fill() method: Value = 12.2 Value = 12.2 Value = 12.2 Value = 12.2 Value = 12.2

Read More

Maintaining print program, routines, and forms in SAP in QM02

Sharon Christine
Sharon Christine
Updated on 12-Mar-2020 576 Views

You configure print program and output controls in IMG. Run T-Code: SPRO →Search for Output control or Print controlCheck Shop Papers for Notification types and mention Shop Papers has the ABAP Form and print Program as shown below -

Read More

\\nStore data in format of XML string in SAP HANA system

Sharon Christine
Sharon Christine
Updated on 12-Mar-2020 680 Views

In older SAP HANA versions, no XML functions were provided. With HANA 2.0, these two functions are provided- XMLEXTRACT and XMLEXTRACTVALUE for extracting XML string in SAP HANA.Use of XMLEXTRACTXMLEXTRACT(, [, ])Syntax to use −Specifies an XML document of type CLOB, NCLOB, VARCHAR, or NVARCHAR.Specifies an XPath expression of type VARCHAR or NVARCHAR.Specifies a namespace declaration of type VARCHAR or NVARCHAR.DescriptionReturns the matching XML element. The return value is of type VARCHAR/NVARCHAR or CLOB/NCLOB depending on the type given for .If an XML element is empty (for example, ), then an empty result is returned. If an XML element ...

Read More

How can we create a MySQL view by using data from multiple tables?

Sharon Christine
Sharon Christine
Updated on 04-Mar-2020 2K+ Views

MySQL UNION operator can combine two or more result sets hence we can use UNION operator to create a view having data from multiple tables. To understand this concept we are using the base tables ‘Student_info’ and ‘Student_detail’ having the following data −mysql> Select * from Student_info; +------+---------+------------+------------+ | id   | Name    | Address    | Subject    | +------+---------+------------+------------+ | 101  | YashPal | Amritsar   | History    | | 105  | Gaurav  | Chandigarh | Literature | | 125  | Raman   | Shimla     | Computers  | | 130  | Ram     ...

Read More

How to declare, create, initialize and access an array in Java?

Sharon Christine
Sharon Christine
Updated on 25-Feb-2020 383 Views

You can declare an array just like a variable −int myArray[];You can create an array just like an object using the new keyword −myArray = new int[5];You can initialize the array by assigning values to all the elements one by one using the index −myArray [0] = 101; myArray [1] = 102;You can access the array element using the index values −System.out.println("The first element of the array is: " + myArray [0]); System.out.println("The first element of the array is: " + myArray [1]); Alternatively, you can create and initialize an array using the flower braces ({ }): Int [] myArray = {10, 20, 30, 40, 50}

Read More

Adding an image to SAP Adobe form from MIME repository

SAP
Sharon Christine
Sharon Christine
Updated on 14-Feb-2020 2K+ Views

Note that Image must be uploaded from system to MIME beforehand.Run Transaction SE78 → Upload (F5).You have to declare 2 variables in the interface - global data with types string and xstring, You need to change the data declaration as below −data: gv_bmp_watermark type xstring. constants: gc_url_watermark type string value '/BC/PUBLIC/MyImages/watermark100.bmp'.You need to add the following under code initialization.//* Read Images data: lr_api type ref to if_mr_api. lr_api = cl_mime_repository_api=>get_api( ). lr_api->get( exporting i_url = gc_url_watermark              importing e_content = gv_bmp_watermark).You also need to change context node a bit as mentioned below −Name: WATERMARK   ...

Read More

In MySQL, how can we get the number code of a particular character?

Sharon Christine
Sharon Christine
Updated on 07-Feb-2020 420 Views

With the help of MySQL string function ASCII(), we can get the number code of a particular character. Its syntax is ASCII(str) where, str, the argument of ASCII() function, is the string whose ASCII value of the first character to be retrieved.It will return the number code the left the most character i.e. first character of the string given as argument.Examplemysql> Select ASCII('T'); +------------+ | ASCII('T') | +------------+ |         84 | +------------+ 1 row in set (0.01 sec) mysql> Select ASCII('t'); +------------+ | ASCII('t') | +------------+ |        116 | +------------+ 1 row ...

Read More

Most Frequently Used Linux IPTables Rules with Examples

Sharon Christine
Sharon Christine
Updated on 31-Jan-2020 11K+ Views

This article will help you to create IPtables rules that you can directly use for your daily or routine needs, These examples will act as basic templates for you to work on iptables with these rules which suit your specific requirement.Deleting the IPtables or Existing RulesBefore you start building new IPtables set of rules, you should clean up all the default rules, and existing rules. Use the IPtables flush command, below are some examples –#iptables --flush (or) # iptables --FDefault Policies ChainThe default policy is ACCEPT, change the policy to DROP for all the INPUT, FORWARD, OUTPUT.# iptables -P INPUT ...

Read More
Showing 141–150 of 337 articles
« Prev 1 13 14 15 16 17 34 Next »
Advertisements