Passing Multiple Parameters in SAP BO Webi Report

Johar Ali
Updated on 26-Feb-2020 06:11:12

1K+ Views

An open document URL is constructed as follow −http://:/OpenDocument/opendoc/?&&...&With use of SAP Business Objects API, you can query each prompt- single value or multiple value. When you build URL, you may have to include parameter types.You can join parameters with the ampersand (&) and you shouldn’t use space with & ampersand. Example − sType=wid&sDocName=Sales2003https://URL_path/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&sType=wid&sRefresh=Y&iDocID=AUcrjvCCPOVHtSvXJV9Qs0k&lsMYBO_BU=B;B&lsSYBO_CALYEAR=201710&lsSYBO_CRNCY=USDIn this URL, you can see single value variable YBO_CALYEAR and value is passed in YYYYMM format&lsSYBO_CRNCY=USD, you can see single value variable and I am passing value “USD”When you run the report, you can define a report level variable or use report-level function to capture multiple ... Read More

What Does the Method addElement(E obj) Do in Java?

Rishi Raj
Updated on 26-Feb-2020 06:10:20

421 Views

The addElement(E obj) method is used to add the specified component to the end of this vector and increasing its size by one. The capacity of this vector is increased if its size becomes greater than its capacity. This addElement() method is identical in functionality to the add(Object) method. The add() method returns true/false but the addElement() method does not return any value.Exampleimport java.util.Vector; public class VectorDemo {    public static void main(String[] args) {       Vector vec = new Vector(4);       vec.add(4);       vec.add(3);       vec.add(2);       vec.add(1);       System.out.println("Initial ... Read More

Append a Single Character to a String or Char Array in Java

Paul Richard
Updated on 26-Feb-2020 06:04:55

2K+ Views

The append() method in the StringBuffer class adds the specified String to the contents of the current String buffer. Using this method you can append a single character to a string or char array in java.Examplepublic class Test {    public static void main(String args[]) {       StringBuffer sb = new StringBuffer("Hi hello how are yo");       sb.append("u");       System.out.println(sb);    } }OutputHi hello how are you

Optimum Method to Concatenate Strings in Java

Manikanth Mani
Updated on 26-Feb-2020 06:02:08

204 Views

The Optimum Method to Concatenate Strings in Java is the concat() method.This method appends one String to the end of another. The method returns a String with the value of the String passed into the method, appended to the end of the String, used to invoke this method.ExampleLive Demopublic class Test {    public static void main(String args[]) {       String s = "Strings are immutable";       s = s.concat(" all the time");       System.out.println(s);    } } OutputStrings are immutable all the time

Why StringBuffer is Mutable in Java

Arjun Thakur
Updated on 26-Feb-2020 06:01:26

2K+ Views

We all know that the String class in Java is mutable i.e. once we create a String variable we cannot modify its data or do any manipulations.But, there may be scenarios where we need to modify the data of String variables. In such cases, we could use StringBuffer class.This class −is like a String, but can be modified. It contains some particular sequence of characters, but the length and content of the sequence can be changed through certain method calls.Is safe for use by multiple threads.

Sort Records with Special Characters Like 2321-78-54-6

AmitDiwan
Updated on 26-Feb-2020 06:01:18

174 Views

To sort, use ORDER BY SUBSTRING(). Let us first create a table −mysql> create table DemoTable    -> (    -> Value varchar(40)    -> ); Query OK, 0 rows affected (0.59 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('2321/78/54-6')    -> ; Query OK, 1 row affected (0.15 sec) mysql> insert into DemoTable values('2321/78/54-8'); Query OK, 1 row affected (0.16 sec) mysql> insert into DemoTable values('2321/78/54-5'); Query OK, 1 row affected (0.12 sec) mysql> insert into DemoTable values('2321/78/54-9'); Query OK, 1 row affected (0.21 sec)Display all records from the table using select statement ... Read More

Java Program to Concatenate String

Anjana
Updated on 26-Feb-2020 05:59:28

373 Views

The concat() method of the String class concatenates the specified string to the end of this string.ExampleLive Demoimport java.lang.*;    public class StringDemo {       public static void main(String[] args) {       // print str1       String str1 = "self";       System.out.println(str1);       // print str2 concatenated with str1       String str2 = str1.concat(" learning");       System.out.println(str2);       // prints str3 concatenated with str2(and str1)       String str3 = str2.concat(" center");       System.out.println(str3);    } }Outputself self learning self learning center

String Concatenation by Plus Operator

Ayyan
Updated on 26-Feb-2020 05:57:58

407 Views

You can concatenate strings using the ‘+’ operator of Java.ExampleLive Demopublic class Test {    public static void main(String args[]){       String st1 = "Hello";       String st2 = "How";       String st3 = "You";       String res = st1+st2+st3;       System.out.println(res);    } }OutputHelloHowYou

String Concatenation by concat() Method

Alankritha Ammu
Updated on 26-Feb-2020 05:57:18

222 Views

You can concatenate two strings using the concat() method of the String class. This class concatenates the specified string to the end of this string.ExampleLive Demopublic class Test {    public static void main(String args[]){       String str1 = "Krishna";       String str2 = "Kasyap";       System.out.println(str1.concat(str2));    } }OutputkrishnaKasyap

Java Program for String Concatenation

Akshaya Akki
Updated on 26-Feb-2020 05:56:38

180 Views

The concat() method of the String class concatenates the specified string to the end of this string.Exampleimport java.lang.*; public class StringDemo {    public static void main(String[] args) {       // print str1       String str1 = "self";       System.out.println(str1);             // print str2 concatenated with str1       String str2 = str1.concat(" learning");       System.out.println(str2);             // prints str3 concatenated with str2(and str1)       String str3 = str2.concat(" center");       System.out.println(str3);    } }Outputself self learning self learning center

Advertisements