Connecting SAP SOAP WebService with Android application

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

214 Views

You are passing parameter in URL like this: http://XXX.com/xyz/api/sap-client=100&sap-user=username&sap-password=xxxxx"Instead of this, you should pass parameter like this: request.addProperty("sap-client", "100"); request.addProperty("sap-user", "*"); request.addProperty("sap-password", "*");

OData or Java Services to be consumed by SAP UI5 application

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

342 Views

Before I make any proposal, I am assuming that you understand both oData and REST very well. REST is a well-known and accomplished architecture style whereas oData is a protocol for communication.OData resides on top of Atompub protocol which in turn is based on REST so overall oData seems to follow REST path only and it is implemented in a similar manner.The advantage that you get with oData is that it saves a lot of effort and time in handling client side either by writing Javascript code or something else. I agree that the support in JAVA for oData will ... Read More

Automating SAP Transactions/actions using SAP GUI

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

695 Views

You can use SAP GUI. It has built-in tool which can record and playback activity that can be utilized for automation and automated jobs. In case, the values or inputs are not changing then you can use the same script on each occasion.It lies within the main menu of the GUI window, within Customize layout -> Script recording and playback.

Moving to SAP BOXI 4.0 from BO XIR2

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

101 Views

This could be cause of usage of different versions of cryptocme2.dllThis is location of CA's file: C:\Program Files\CA\SC\ETPKI\lib\cryptocme2.dll [Additional Info: File Version: Not Available, Timestamp: 2/29/2012 9:43 PM, size 3, 188 KB] Location of SAP's file : D:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\cryptocme2.dll [ Additional Info: File Version 3.0.0.0 , TimeStamp: 2/25/2011 6:55 PM, size: 1704 KB]To fix this issue: you need to rename dll C:\Program Files\CA\SC\ETPKI\lib\cryptocme2.dll to cryptocme2_ca.dllNext is to copy D:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\cryptocme2.dll to C:\Program Files\CA\SC\ETPKI\lib\Next is to uninstall BO XI 4.0 SDK via Control Panel.You have to restart the Box and stop ... Read More

How to pull distinct values from an array in java?

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

857 Views

To pull distinct values in an array you need to compare each element of the array to all the remaining elements, in case of a match you got your duplicate element. One solution to do so you need to use two loops (nested) where the inner loop starts with i+1 (where i is the variable of outer loop) to avoid repetitions in comparison.Example Live Demoimport java.util.Arrays; import java.util.Scanner; public class DetectDuplcate {    public static void main(String args[]) {       Scanner sc = new Scanner(System.in);       System.out.println("Enter the size of the array that is to be ... Read More

How (where) are the elements of an array stored in memory?

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

1K+ Views

In Java, arrays are objects, therefore just like other objects arrays are stored in heap area. An array store primitive data types or reference (to derived data) types Just like objects the variable of the array holds the reference to the array.

How do I invoke a Java method when given the method name as a string?

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

3K+ Views

The java.lang.reflect.Method class provides information about, and access to, a single method on a class or interface. The reflected method may be a class method or an instance method (including an abstract method). A Method permits widening conversions to occur when matching the actual parameters to invoke with the underlying method's formal parameters, but it throws an IllegalArgumentException if a narrowing conversion would occur. You can invoke the method using the class named method of the package java.lang.reflect. The constructor of this class accepts the method name in the form of a string. And you can invoke this method using ... Read More

Checking implementation of interface IF_EX_IDOC_CREATION_CHECK in SAP ABAP

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

417 Views

IDOC_DATA_CHECK – This method is used to check IDoc Data to see If an IDoc is Generated.You can check documentation of this interface IF_EX_IDOC_CREATION_CHECK by using T-Code: SE24 or SE80You can refer this Method by using this syntax: CALL METHOD IF_EX_IDOC_CREATION_CHECK=>methodname EXPORTING/IMPORTING...Now come to you issue, an Exit statement takes program out of the loop. Incase you have loop as only processing block, it will also exit the method. You need to call BADI/method for each Idoc.

Creating context for JNDI in SAP NetWeaver Developer Studio

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

108 Views

You have to use following properties while running tests outside NWDS:java.naming.factory.initial=com.sap.engine.services.jndi.InitialContextFactoryImpl java.naming.provider.url={our nw host}:50004

How to remove duplicate elements of an array in java?

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

3K+ Views

To detect the duplicate values in an array you need to compare each element of the array to all the remaining elements in case of a match you got your duplicate element.One solution to do so you need to use two loops (nested) where the inner loop starts with i+1 (where i is the variable of the outer loop) to avoid repetitions.Apache Commons provides a library named org.apache.commons.lang3 and, following is the maven dependency to add a library to your project. org.apache.commons commons-lang3 ... Read More

Advertisements