Found 2620 Articles for Java

Difference between Method Overloading and Method Overriding in Java

Kiran Kumar Panigrahi
Updated on 13-Sep-2023 15:28:25

32K+ Views

Method Overloading in Java When a class has two or more methods by the same name but different parameters, at the time of calling based on the parameters passed respective method is called (or respective method body will be bonded with the calling line dynamically). This mechanism is known as method overloading. Example of Method Overloading If you observe the following example, here we have created a class called Sample and this class has two methods with the same name (add) and return type, the only difference is the parameters they accept (one method accepts two integer variables and other ... Read More

Using custom calculation views in SAP Cloud IoT

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

154 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:SAP linkSAP 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.

Automating SAP Purchase Request via Eclipse with use of QTP10

SAP ABAP Expert
Updated on 17-Feb-2020 10:12:40

97 Views

Note that Eclipse UI is JAVA based so you can automate Eclipse using QTP Java add-ins.To perform QTP Java add-in, Go to Control Panel → Add or Remove Programs and select Quickest Professional from the list. Click on Change button.To perform add-in installation, click on small black down arrow next to the cross button for Java Add-in. Clicking on it would show a small menu with 3 options as shown in the below image.

Java Web application pointing to SAP HANA locally

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

189 Views

You would require changing the connection.properties file of your local Tomcat Server (Server > Java Web Tomcat 8 Server-config/config_master/connection_data), to point to the HANA database. Here are the usual parameters that need to be configured for HANA database javax.persistence.jdbc.driver = com.sap.db.jdbc.Driver javax.persistence.jdbc.url = jdbc:sap://:/?reconnect=true&autocommit=false javax.persistence.jdbc.user = db-user javax.persistence.jdbc.password = db-pass eclipselink.target-database = HANA

How to build a java web application using SAP platform and HANA database?

karthikeya Boyini
Updated on 11-Feb-2020 06:33:18

271 Views

You would require to change the connection.properties file of your local Tomcat Server (Server > Java Web Tomcat 8 Server-config/config_master/connection_data), to point to the HANA database.Here are the usual parameters that need to be configured for HANA databasejavax.persistence.jdbc.driver=com.sap.db.jdbc.Driver javax.persistence.jdbc.url=jdbc:sap://:/?reconnect=true&autocommit=false javax.persistence.jdbc.user=db-user javax.persistence.jdbc.password=db-pass eclipselink.target-database=HANA

Accessing an SAP endpoint in apex code

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

121 Views

I faced a similar issue earlier but it was because of a bug in JAVA security package (refer link for more details)http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7044060I just got updated myself to latest OpenJDK7 and it solved my issue. I think you can try the same and check if it helps.

Way to check if SAP system is ABAP based, Java or Dual stack

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

908 Views

Using SAP GUI, you can only access ABAP or ABAP+Java based system. You can check at multiple places if it is a dual system.T-code: SMICM, you can checklist of services in transaction SMICM (Goto --> Services) - dual stack systems will have the J2EE services listed too. There will also be an AS Java menu in SMICM on ABAP+Java systems.

User rights required to make a call to SAP RFC Function Module RFC_SYSTEM_INFO from JAVA application

Rahul Sharma
Updated on 25-Feb-2020 11:12:21

566 Views

When you use Java connector you need basic authorization to read metadata of Function Module. S_RFC is an authorization object for the RFC call.This object contains the following fieldsRFC_TYPE Type of the RFC object you want to protect. You can pass the value 'FUGR'- function group) or 'FUNC'- function module.RFC_NAME Name of RFC to be protected. This file contains a value of the function group or of function modules.CTVT ActivityThis field may take the value 16.In case you want a user to be able to call function modules in-group 'ABCD' remotely, following user authorization is required          ... Read More

SAP interfaces throws an error message "Completion Code 2, Reason 2161, MQJMS2002”

Monica Mona
Updated on 24-Feb-2020 09:22:46

106 Views

As per my understanding,  the only way to get the MQ jar files or the MQ C/C++ library files onto a system is by installing any of the below:Using WebSphere MQ product orUsing WebSphere MQ Client SupportPacsYou can find jar file under WebSphere MQ V7.0 Clients SupportPacks. The install files are commonly available under java/lib directory.You can try installing jar files from Fix Central. Go to Fix Central and enter "Java" in the Text search box.https://www-945.ibm.com/support/fixcentral/swg/identifyFixes?query.parent=ibm~WebSphere&query.product=ibm~WebSphere~WebSphere%20MQ&query.release=9.0&query.platform=AllThe name of the file to be downloaded is in this format:-[IBM|WS]-MQ-Install-Java-All.jar.For example, for MQ V9.0:9.0.0.0-IBM-MQ-Install-Java-All.jar.You have the following files that can be moved to ... Read More

Using SAP JCO to connect SAP server to JAVA application

Prabhas
Updated on 25-Jun-2020 21:09:32

1K+ Views

I would suggest you to use below instead of JCO_AHOST and JCO_SYSNR:Use JCO_R3NAME with system ID of the target hostUse JCO_MSHOST with message server host name or IP addressUse JCO_MSSERV with message server port numberUse JCO_GROUP with the name of the logon groupYou can refer to below link to check a working example:https://sourceforge.net/p/rcer/git/ci/master/tree/net.sf.rcer.conn

Advertisements