Articles on Trending Technologies

Technical articles with clear explanations and examples

Tutorix - AI Tutor

How to implement a String in JShell in Java 9?

raja
raja
Updated on 13-Mar-2020 489 Views

JShell is Java’s first official REPL application introduced in Java 9. It is a tool that helps in executing and evaluating simple java programs, and small logics such as statements, simple programs, loops, expressions, etc. Java REPL can provide a simple programming environment in a command-line prompt. It reads the input, evaluates it, and prints the output.In the below example, we can implement a string with pre-defined methods of String class.Examplejshell> String str = "{abcd}"; str ==> "{abcd}" jshell> str.substring(2, str.length() - 1) $7 ==> "bcd" jshell> String s1 = new String("abcd"); s1 ==> "abcd" jshell> String ...

Read More

Adding rows in an internal table with header line in SAP ABAP

karthikeya Boyini
karthikeya Boyini
Updated on 13-Mar-2020 2K+ Views

Note that you shouldn’t use headers with internal tables. As you are using it, and header of in_table2 is empty. Use the loop to print it as below −LOOP AT in_table2.   "here in_table2 means table (an internal table)   WRITE / in_table2. "here in_table2 means the header of the table (a structure) ENDLOOP.When you have headers with internal tables, you shouldn’t use it in the same way. You should use field symbols for looping and append like this −FIELD-SYMBOLS: LIKE LINE OF in_table2[]. LOOP AT in_table2[] ASSIGNING .   WRITE / . ENDLOOP.

Read More

What does the method toString(int[] a) do?

karthikeya Boyini
karthikeya Boyini
Updated on 13-Mar-2020 166 Views

The toString(int[]) method of the class java.util.Arrays return a string representation of the contents of the specified int array. The string representation consists of a list of the array's elements, enclosed in square brackets ("[]"). Adjacent elements are separated by the characters ", " (a comma followed by a space).Exampleimport java.util.Arrays; public class ArrayDemo { public static void main(String[] args) { int[] i1 = new int[] { 33, 12, 98 }; System.out.println("The array is:"); for (int number : i1) ...

Read More

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

Sharon Christine
Sharon Christine
Updated on 13-Mar-2020 298 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

Checking transaction list waiting for lock-in SAP HANA

SAP ABAP Expert
SAP ABAP Expert
Updated on 13-Mar-2020 1K+ Views

M_BLOCKED_TRANSACTIONS System View is used to provide a transaction list waiting for locks.You can run the following SQL query in the editor −SELECT * FROM M_BLOCKED_TRANSACTIONS;Details available under M_BLOCKED_TRANSACTIONS System View in SAP HANA

Read More

Transforming XML file into fixed length flat file in SAP

karthikeya Boyini
karthikeya Boyini
Updated on 12-Mar-2020 817 Views

This is an EDIfact invoice. Try using the script, and it can help −                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ERROR: The maximum length of "TABNAM" is 10 characters.                                                                                                                                                                                                                                                                               ERROR: The maximum length of "MANDT" is 3 characters.                                                                                                                                                                                                                                                                                                                                                                                                              ERROR: The maximum length of "ACTION" is 3 characters.                                                                                                                                                                                                          ERROR: The maximum length of "KZABS" is 1 character.                                                                                                                                     There are various sites which provide a built-in script to convert your EDIfact to XSLT.  Check this site and it may also help −https://www.codeproject.com/Articles/11278/EDIFACT-to-XML-to-Anything-You-Want

Read More

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

Sharon Christine
Sharon Christine
Updated on 12-Mar-2020 640 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

Passing to method geticon in SAPUI5

karthikeya Boyini
karthikeya Boyini
Updated on 12-Mar-2020 305 Views

SAP UI supports custom formatter functions. formatter="function" is used to specify a function to format cell data prior to display.formatter="function"Try using formatter function as below −icon : {    parts : ["answer"],    formatter : function(answerValue){       return self.getIcon(answerValue);    } }Refer below link to know more about custom formatter functions −https://sapui5.hana.ondemand.com/#/topic/07e4b920f5734fd78fdaa236f26236d8

Read More

nStore data in format of XML string in SAP HANA system

Sharon Christine
Sharon Christine
Updated on 12-Mar-2020 731 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

Multidimensional Expression and its use in SAP BPC

Samual Sam
Samual Sam
Updated on 12-Mar-2020 604 Views

MDX is a query language developed by Microsoft to query OLAP cubes. In OLAP cubes, data is structured as multidimensional. You have a fact table in middle and dimension tables surrounding fact tables. MDX is used to query STAR schema cubes like this and generate results for different purposes.MDX query language is bit similar to SQL with few fundamental differences like:In MDX queries, it can have 0, 1, 2, 3, 4…up to 128 query axes in the SELECT statement. Each axis behaves in exactly the same way, unlike SQL where there are significant differences between how the rows and the ...

Read More
Showing 54521–54530 of 61,298 articles
Advertisements