How to use EXPORT / IMPORT to Memory ABAP – SAP?

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

1K+ Views

As per your requirement, you are utilizing ABAP memory to transfer data to background session from session of the user. It will not work as per the standard documentation.  RFC or updates module will run in different user sessions with different ABAP memory and hence it will not be possible.

How to pause an ABAP program?

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

778 Views

Either you can use SAP “WAIT UP TO” statement. For e.g. the below statement waits up for 30 seconds WAIT UP TO 30 SECONDS But this statement has an implicit database commit. It might sound weird but there are scenarios where this behavior is expected so you should be aware of whether this fits your use case or not. In addition to this, it performs a rollout and releases the worker processes. But the use cases where you don’t want to have an implicit database commit and worker process are considered important then you can go for an ... Read More

How can I transfer data from SAP HANA to virtual table?

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

578 Views

You are making a basic mistake over here. A VORA virtual table does not support the traditional INSERT or UPDATE or DELETE statements. If you are planning to make any modification to data from VORA itself, then you need to use the APPEND command to add data or files to the table. But since you are trying from SAP HANA even this will not work for you. For your requirement, you need to have a HDFS file then use it for appending to the virtual table.

How to convert BLOB to Byte Array in java?

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

8K+ Views

You can contents of a blob into a byte array using the getBytes() method.Exampleimport java.awt.Image; import java.awt.image.BufferedImage; import java.sql.Blob; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.util.Arrays; public class BlobToByteArray { public static void main(String[] args) throws Exception { Image image = new BufferedImage(300, 400, BufferedImage.TYPE_INT_RGB); String JDBC_DRIVER = "com.mysql.jdbc.Driver"; String DB_URL = "jdbc:mysql://localhost/mydb"; String USER = "root"; String PASS = "password"; ... Read More

What should I prefer to connect to SAP HANA database- extended services or other ODBC technique?

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

236 Views

As you had already mentioned that extended services are natively integrated with HANA, so it’s going to be easier to use against HANA but as it is native to HANA only it can’t be used elsewhere.  It will be faster when you compare it against ODBC because the extra step will be avoided here as it is native to HANA. Also, as it is integrated other factors like latency and other would be out of question which can be considerable factors with ODBC.Extended Services follow the MVC architecture so you need not worry about the implementation style as it will ... Read More

Using memory analyzer in SAP

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

461 Views

There are lots of free and proprietary tools to do the same. You can use Memory Analyzer project done by SAP. It lets you find memory leaks against in-memory objects via simple SQL statements. Also, you can use JHAT (Java Heap Analysis tool) command line tool to examine the memory. It lets you examine heap memory via histogram and can be of good help. Also, you can go for HeapWalker from Netbeans or Visual VM. Also, Eclipse has Eclipse memory analyzer which is a freeware and can handle good size with dump and provides a fair deal of memory analysis.Read More

Does Process before output and process after input initiate commits in ABAP?

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

348 Views

Yes, the PBO-PAI triggers commit so your requirement will fail. You need to make changes to your current implementation to avoid the auto-commit.

What is the open/standardized file format for exporting invoices in SAP ERP System?

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

226 Views

SAP uses IDoc known as an intermediate document to exchange data between logical systems. If your system involves non-SAP systems as well, then IDoc can be used as a standard interface for data exchange between SAP and non-SAP systems.IDoc is a container for information exchange. IDoc is made by message type and method of Objects when information is to be exchanged. The message type is the configuration in which the information for a particular business process is transmitted electronically. An IDoc consists of several data segments, headers and status records. Also, it can be extended by extending IDoc types to add ... Read More

What are the available options for Data integration in SAP?

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

209 Views

Yes, there exists an equivalent. You can go for using SAP HANA Smart Data Integration also known as SDI. It is a standard offering of SAP for data integration.  You don’t require any additional infrastructure for this, like a separate server or other. There are lots of blogs and online help which can help you to start on SDI.You can also check out for Data services but that is too complex and may be excessive for the mentioned usage.

How to convert a byte array to a hex string in Java?

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

769 Views

The printHexBinary() method of the DatatypeConverter class accepts a byte array and returns a hex string.Exampleimport javax.xml.bind.DatatypeConverter; public class ByteToHexString { public static void main(String args[]) { String sam = "Hello how are you how do you do"; byte[] byteArray = sam.getBytes(); String hex = DatatypeConverter.printHexBinary(byteArray); System.out.println(hex); } }Output48656C6C6F20686F772061726520796F7520686F7720646F20796F7520646F

Advertisements