Anjana has Published 53 Articles

Assigning debug roles to few users of SAP ABAP program

Anjana

Anjana

Updated on 06-Dec-2019 11:14:34

529 Views

Hope the role that you have added contains only one permission:Object S_DEVELOP    ACTVT = 03    DEVCLASS = *    OBJNAME = *    OBJTYPE = DEBUG    P_GROUP = *Try to perform a permission trace usingTransaction ST01If you still don’t find a check for the permission, there might ... Read More

Date value is not populating while using Native SQL in SAP to insert an Order

Anjana

Anjana

Updated on 05-Dec-2019 09:34:22

224 Views

I think you need to put a colon (before variable as below:EXEC SQL.    INSERT INTO order VALUES('2', :sy-datum) ENDEXEC.I would also suggest you to use OpenSQL instead of Native SQL here. Native SQL is used when you try to use any features that are database specific.The query you have ... Read More

Replace String with another in java.

Anjana

Anjana

Updated on 30-Jul-2019 22:30:21

320 Views

The replace() method of the returns a new string resulting from replacing all occurrences of oldChar in this string with newChar.Example Live Demoimport java.io.*; public class Test {    public static void main(String args[]) {       String Str = new String("Welcome to Tutorialspoint.com");       System.out.print("Return Value :" ); ... Read More

Checking for Null or Empty or White Space Only String in Java.

Anjana

Anjana

Updated on 30-Jul-2019 22:30:21

2K+ Views

We can verify whether the given string is empty using the isEmpty() method of the String class. This method returns true only if length() is 0.Example Live Demoimport java.lang.*; public class StringDemo {    public static void main(String[] args) {       String str = "tutorialspoint";       // prints ... Read More

Methods of StringBuilder class in Java.

Anjana

Anjana

Updated on 30-Jul-2019 22:30:21

175 Views

Following are the various constructors provided by the StringBuilder class.S.N.Constructor & Description1StringBuilder()This constructs a string builder with no characters in it and an initial capacity of 16 characters.2StringBuilder(CharSequence seq)This constructs a string builder that contains the same characters as the specified CharSequence.3StringBuilder(int capacity)This constructs a string builder with no characters ... Read More

How to convert String to Integer and Integer to String in Java?

Anjana

Anjana

Updated on 30-Jul-2019 22:30:21

1K+ Views

Java lang package provides Integer class which has methods to convert integer to String and vice versa. You can convert a String to an integer using the parseInt() method and Integer to String using the toString() method.Example Live Demopublic class Sample {    public static void main(String args[]) {       String ... Read More

Constructors of StringTokenizer class in Java.

Anjana

Anjana

Updated on 30-Jul-2019 22:30:21

142 Views

Following are the important constructors of the StringTokenizer class.Sr.No.Constructor & Description1StringTokenizer(String str)This constructor a string tokenizer for the specified string.2StringTokenizer(String str, String delim)This constructor constructs string tokenizer for the specified string.3StringTokenizer(String str, String delim, boolean returnDelims)This constructor constructs a string tokenizer for the specified string. Read More

Java Operators Precedence

Anjana

Anjana

Updated on 30-Jul-2019 22:30:21

2K+ Views

Operator precedence determines the grouping of terms in an expression. This affects how an expression is evaluated. Certain operators have higher precedence than others; for example, the multiplication operator has higher precedence than the addition operator −For example, x = 7 + 3 * 2; here x is assigned 13, ... Read More

What is JAVA_HOME variable in Java Environment?

Anjana

Anjana

Updated on 30-Jul-2019 22:30:21

316 Views

JAVA_HOME refers to jdk/bin directory. It is used by a java based application.

How to set Java Path in Mac OS?

Anjana

Anjana

Updated on 30-Jul-2019 22:30:21

863 Views

Environment variable PATH should be set to point to where the Java binaries have been installed. Refer to your shell documentation if you have trouble doing this.Example, if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export PATH=/path/to/java:$PATH' Read More

Advertisements