Reading the contents of SAP structures from outside using RFC

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

457 Views

It seems you are confused with the definition of structure. The structure does not contain any data. They just type definition.If you want to return or receive a structure as a parameter, that can be done using RFC.

Length of XSTRING variable from an SAP function module.

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

989 Views

You can fetch the length of XSTRING variable using xstrlen( l_abc_xstring ) where l_abc_xstring is the XSTRING variable.

Reading latest measurement point in SAP RFC

Anil SAP Gupta
Updated on 30-Jul-2019 22:30:20

752 Views

There is a Function Module: MEASUREM_DOCUM_RFC_SINGLE_002 that you can use to read documents if keys are known. When there is no RFC module to get a list of $foo according to a set of selection criteria, it is possible to use RFC_READ_TABLE to get the keys from db directly.Function Module MEASUREM_DOCUM_RFC_SINGLE_002: RFC Measurement document: Individual processing, Change/Display or ReadUseWith use of this RFC, following remote calls can be used:Remote dialog (WITH_DIALOG_SCREEN = 'X')Remote dialog in display mode (EDIT_MODE = ' ')Remote dialog in change mode (EDIT_MODE = 'X')Remote reading of measurement document data (WITH_DIALOG_SCREEN = ' ')NotesApart from when an ... Read More

Looping through a dynamic table in SAP

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

586 Views

You have to use Runtime Type Identification RTTI and assign the component name of structure To .Please refer to below link for more details:https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/index.htm

How to convert Java Array/Collection to JSON array?

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

8K+ Views

Google provides a library named org.json.JSONArray and, following is the maven dependency to add library to your project. com.googlecode.json-simple json-simple 1.1 The JSONArray class of the org.json package provides put() method. Using this method, you can populate the JSONArray object with the contents of the elements.Exampleimport org.json.JSONArray; public class ArrayToJson { public static void main(String args[]) { String [] myArray = {"JavaFX", "HBase", "JOGL", "WebGL"}; JSONArray jsArray = new JSONArray(); ... Read More

Fetching data from transparent tables in SAP system

Anil SAP Gupta
Updated on 30-Jul-2019 22:30:20

611 Views

Try checking length of variable if it is meeting minimum variable length required, if not append zeroes in end.

Do local variables in Java have default values?

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

1K+ Views

No, local variables do not have default values. Once we create a local variable we must initialize it before using it. Since the local variables in Java are stored in stack in JVM there is a chance of getting the previous value as default value. Therefore, In Java default values for local variables are not allowed. Example public class Sample { public static void main(String args[] ){ int data; System.out.println(data); } } Error C:\Sample>javac Sample.java Sample.java:4: error: variable data might not have been initialized System.out.println(data); ^ 1 error

Values are not readable while calling RFC method in .net via SAP.NET Connector 2.0

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

274 Views

Please check if you have same Unicode encoding in SAP and .NET Connector.

Advertisements