Sai Subramanyam has Published 102 Articles

In SAP Class Builder, I am trying to test ABAP classes. When I press F8, it doesn’t show “Create Instance” menu item.

Sai Subramanyam

Sai Subramanyam

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

330 Views

You can access Class Builder by using T-code: SE24 or via Repository Browser SE80 and navigate to class you want to edit. You have to ensure that you set the below parameter to the public. It is also possible that your class implements an interface. It is also possible ... Read More

Dynamically creating parameters from table entries in SAP system

Sai Subramanyam

Sai Subramanyam

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

301 Views

Note that parameter statement compiles into selection screen at compile team so it is not possible to declare dynamic parameters as proposed by you. Other approach would be that you could load dynpro and change the screen dynamically. You have to activate and then run the report that calls the ... Read More

Can a constructor be overridden in java?

Sai Subramanyam

Sai Subramanyam

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

12K+ Views

If super class and sub class have same methods including name, return type and parameters, and if you try to call it using the object of the sub class Then the method in the sub class is invoked. Constructor looks like method but it is not. It does not have ... Read More

How to print new line in Java?

Sai Subramanyam

Sai Subramanyam

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

2K+ Views

The java.io.PrintStream.println() method prints an array of characters and then terminate the line. This method behaves as though it invokes print(char[]) and then println(). Using this method you can print the data on the console. import java.io.*; public class PrintStreamDemo { public static void main(String[] args) ... Read More

What is the difference between compile time errors and run time errors in Java?

Sai Subramanyam

Sai Subramanyam

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

271 Views

Compile time errors are syntactical errors in the code which hinders it from being compiled. Example public class Test{ public static void main(String args[]){ System.out.println("Hello") } } Output C:\Sample>Javac Test.java Test.java:3: error: ';' expected ... Read More

Edit report generated from SAP Crystal Reports

Sai Subramanyam

Sai Subramanyam

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

240 Views

It does not seem to be feasible to edit the report once generated. You cannot add a constraint or logic to allow your report to be editable.But there does exist a work around, what you can do is: First export the report and then you can change the mode of ... Read More

When to use vararg methods in Java?

Sai Subramanyam

Sai Subramanyam

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

113 Views

Whenever, you want to pass different number of arguments each time you call a method you should use vararg methods. This example creates sumvarargs() method which takes variable no of int numbers as an argument and returns the sum of these arguments as an output. Example Live Demo ... Read More

What are number format exceptions in Java?

Sai Subramanyam

Sai Subramanyam

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

135 Views

This Exception happens once you associated convert a string variable in an incorrect format to a whole number (numeric format) that's not compatible with one another. Example public class Test { public static void main(String[] args) { int data = ... Read More

Comparing SAP ABAP Field symbols and data reference with Pointers in C

Sai Subramanyam

Sai Subramanyam

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

548 Views

Field symbol resembles pointer in C but there is one main difference: you can use Field Symbol only to access the values present in it but not the memory address. Similar to a pointer in actual, it stores the memory address of the variable that was assigned to it. You ... Read More

Does finally always execute in Java?

Sai Subramanyam

Sai Subramanyam

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

290 Views

The finally block follows a try block or a catch block. A finally block of code always executes, irrespective of occurrence of an Exception.

Advertisements