Using method "DUMPSETSET_GET_ENTITYSET" in SAP FM

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

256 Views

Note that you need to map GetEntitySet to a data source from SEGW - SAP Gateway Service Builder and you will be able to generate runtime objects.For more details you can refer to this link:https://blogs.sap.com/2012/10/26/step-by-step-guide-to-build-an-odata-service-based-on-rfcs-part-1/

Can a Java array be declared as a static field, local variable or a method parameter?

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

730 Views

We can declare an array as a local variable or method parameter but, an array cannot be static. Example public class Test{ public void sample(){ static int[] myArray = {20, 30}; System.out.println(); } public static void main(String args[]){ Test t = new Test(); t.sample(); } } Error C:\Sample>javac Test.java Test.java:3: error: illegal start of expression static int[] myArray = {20, 30}; ^ 1 error

Using custom calculation views in SAP Cloud IoT

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

286 Views

To add a logic to show maximum value it hardly matters if you are using trial version or licensed version. Try using database views to add this logic simply.You can refer this link to know more technical capabilities of SAP Cloud IoT: https://help.sap.com/docs/SAP_IoTSAP offers a comprehensive portfolio of solutions for the Internet of Things (IoT). This in-memory IoT platform can help you quickly develop, deploy, and manage your own real-time IoT and machine-to-machine (M2M) applications. Use the platform to automate processes at the core and connect to almost anything at the edge of your network.Read More

Can constructors be marked final, abstract or static in Java?

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

2K+ Views

Except public, protected and, private constructor does not allow any other modifier. When you use a final keyword with a method or constructor it cannot be overridden. But, a constructor in Java cannot be overridden therefore, there is no need of using the final keyword with the constructor. Since you cannot override a constructor you cannot provide body to it if it is made abstract. Therefore, you cannot use abstract keyword with the constructor. If you want to invoke a member of a class before instantiating the class you need to use static before it. But, contractors are called ... Read More

What does abstract modifier in Java do?

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

491 Views

An abstract keyword is used to declare methods abstract methods and abstract classes. Once a method is declared abstract we should not specify body for those. Example public abstract class Sample{ public abstract demo(){ } } Error Sample.java:2: error: invalid method declaration; return type required public abstract demo(){ ^ 1 error And once a class is declared abstract it cannot be instantiated. Example public abstract class Sample{ public abstract void demo(); public static void main(String args[]){ new Sample(); } } Error C:\Sample>javac Sample.java Sample.java:4: error: Sample is abstract; cannot be instantiated new Sample(); ^ 1 error

Getting an error invalid Object Name in SAP Business One

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

574 Views

It would be easy to guess if you have shared the full query. It seems you have not defined #temp_table. You might need to define temp table as global but it could sum up to other issues.

Can a constructor be overridden in java?

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

16K+ 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 a return type and its name is same as the class name. But, a constructor cannot be overridden. If you try to write a super class’s constructor in the sub class compiler treats it as a method and expects a return type and generates a compile time error. Example ... Read More

In SAP Business One SDK, filling a gridview and button saves in database

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

539 Views

This can be achieved in multiple ways. You can either use a SAP DI documents, an open SQL or use data transfer workbench for this purpose.You can use a direct SQL write as this is one of straight way to do this. It is also possible to use SAP-DI Documents object to iterate over the Purchase Orders.One more option is using Data Transfer Workbench (DTW), where you export it to a file and then using DTW. It also provides error handling incase any exception occurs.

Can access modifiers be used for local variables in Java?

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

888 Views

Yes, a local variable can be public, private, protected or default.

SAP Crystal Report file is not opening in VS2015

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

404 Views

To start with I would suggest you to check SP level on Crystal Report Visual Studio. Try reinstalling Crystal Report and make sure your asp.net application is configured properly. There are various forums that you can search specific for Crystal Reports for VS like this:SAP Tags

Advertisements