How to write single line comment in Java?

mkotla
Updated on 30-Jul-2019 22:30:20

450 Views

To comment a particular line just place ‘double back slash (//)’ before the line as shown below. // Hello this line is commented Example Following example demonstrates the usage of single line comments in Java. Live Demo public class CommentsExample { public static void main(String args[]) { //Declaring a variable named num int num = 1; //Printing the value of the variable num System.out.println("value if the variable num: "+num); } } Output value if the variable num: 1

What is an array data structure in Java?

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

151 Views

Array is a container which can hold a fix number of items and these items should be of the same type. Most of the data structures make use of arrays to implement their algorithms. Following are the important terms to understand the concept of Array. Element − Each item stored in an array is called an element. Index − Each location of an element in an array has a numerical index, which is used to identify the element. Example Live Demo public class ArrayExample { public static void main(String args[]){ int myArray[] = {44, 69, 89, 635}; for (int i = 0; i

Identify the database used for backend in ABAP

Samual Sam
Updated on 30-Jul-2019 22:30:20

163 Views

If you would have searched a little in the SAP documentation, then you would have found out the answer.You can use the CL_DB_SYS=>DBSYS_TYPE to fetch the database. For e.g. If you are using SAP HANA as the database, then the DBSYS_TYPE will have the value as HDB.

Getting data in SAPUI5 application from backend tables in NetWeaver

mkotla
Updated on 30-Jul-2019 22:30:20

254 Views

Note that Eclipse is just a standard editor to develop UI5 application. You should use SAP IDE which is one of the recommended editor now.When you backend system as NetWeaver system, Gateway and OData would be the recommended way to use.

Difference between SAP ERP and a DBMS system

Sravani S
Updated on 30-Jul-2019 22:30:20

1K+ Views

On a very basic level, a DBMS is a method for looking at something. For ex. SQL Server, MySQL, and others. It is basically a program that lets you communicate with databases.Database management system is a product which sorts out information in a database, gets information, controls and manipulates information. Generally, most of DBMS like SQL Server Management Studio or MySQL Workbench provides an easy to use interface. Also, it lets the user extract data, database entities and structures at will with simple mouse clicks.AN ERP is a product which oversees the complex business process and incorporates each one of ... Read More

Seeing list of all program screens in SAP ABAP

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

569 Views

If you want to check all Dynpros belongs to one program, you can use table D020S. D020S is known as SAP Table to store screen sources information. This is available within R/3 SAP systems depending on the version and release level. To display or maintain this table, use T-code SM30 You can use T-code SE11 to view the fields in table D020S: It is text table D020T with the key program = sy-repid

Error while using LOOP…..WHERE in SAP ABAP

Rishi Raj
Updated on 30-Jul-2019 22:30:20

226 Views

LOOP….WHERE condition was included recently in ABAP. Could you please verify your version?  This will work only on a version of 7.0 Ehp2 or higher.

What is the difference between /* */ and /** */ comments in Java?

vanithasree
Updated on 30-Jul-2019 22:30:20

549 Views

Multiline comments (/* */) are used to comment multiple lines in the source code. Example Live Demo public class CommentsExample { /* Following is the main method here, We create a variable named num. And, print its value * */ public static void main(String args[]) { //Declaring a variable named num int num = 1; ... Read More

Updating default value of new column in SAP system

Rishi Raj
Updated on 30-Jul-2019 22:30:20

273 Views

It is not good practice to update default values to a column as this will not be visible directly in the system and will not be picked by CTS. Also, there is no option in the SAP/ABAP environment of adding default values to the table column. If you choose to make the new column have NON-NULL values, you will have to manually update default values and it will take a lot of time to modify the table.  The best way is to choose your default value as spaces, zeroes and so on depending upon the type of column.

Passing data from one report to another in ABAP using SUBMIT \\\\

Vikyath Ram
Updated on 30-Jul-2019 22:30:20

209 Views

There doesn't seem to be any error in your syntax. Please verify if you declared the variables correctly. In case they are defined correctly, try the extended syntax check to see the error. The extended check can be done by going to PROGRAM => Check => Extended Syntax Check.

Advertisements