Ramu Prasad

Ramu Prasad

48 Articles Published

Articles by Ramu Prasad

Page 5 of 5

Converting a file into a byte array in SAP ABAP

Ramu Prasad
Ramu Prasad
Updated on 05-Dec-2019 1K+ Views

Here is a code snippet to do the same.data: f_line type xstring.               // to get line by line content data: f_file type table of xstring.      // to get the final content data: f_filename type string value 'samplefile.txt'.   // store the filename of file data: f_len type i. open dataset f_filename for input in binary mode.   // read the binary read dataset f_filename into f_line length f_len.  // get the number of lines in the file while f_len > 0.               // ...

Read More

What are the differences between struct and class in C++?

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 420 Views

The members and base classes of a struct are public by default, while in class, they default to private. Struct and class are otherwise functionally equivalent.They are however used in different places due to semantics. a struct is more like a data structure that is used to represent data. class, on the other hand, is more of a functionality inclined construct. It mimics the way things are and work.

Read More

Can a Vector contain heterogeneous objects in Java?

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 1K+ Views

Since a vector stores elements in the form of objects, you can store objects of various types (heterogeneous) in it.Example:import java.util.*; class Demo{} public class VectorSample {    public static void main(String args[]) {       Demo obj = new Demo();       Vector v = new Vector(3, 2);       System.out.println("Initial size: " + v.size());       System.out.println("Initial capacity: " + v.capacity());       v.addElement(new Integer(1));       v.addElement(new String("krishna"));       v.addElement(new Float(3.5f));       v.addElement(obj);       System.out.println("Capacity after four additions: " + v.capacity());    } }

Read More

Copying ALV layout from one client to another in SAP if they are not user specific

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 911 Views

You can transport your ALV layouts to other system if they are not user specific. This can be performed in Layout Administration by raising a customizing request.Navigate to this path for Layout Administration:Main Menu -> Settings -> Layout -> Administration

Read More

Downloading file using SAP .NET Connector

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 589 Views

It is not possible to retrieve files using BAPI from SAP system. There should be a way to copy the file to a shared location and you can read the file from there using .NET.

Read More

Interfacing database to external parties in SAP system

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 247 Views

Interacting directly with SAP databases is not considered a good programming practice. As SAP database is nothing but a normal database, it can interact in any way like any ODBC technique - ADO.NET or other.Remote Function Calls can be used to make calls to databases. ERP Connect supports RFC and can be used for reading data from tables.In case one needs a high customization and control, one can create a custom RFC component to fetch and return the intended data.

Read More

List of Best JavaScript libraries?

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 311 Views

The following are some of the best JavaScript Libraries:jQueryjQuery is a fast and concise JavaScript Library created by John Resig in 2006 with a nice motto – “Write less, do more”. jQuery simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.MooToolsMooTools is an object-oriented, lightweight JavaScript framework. The full form of MooTools is My Object-Oriented Tools. It is released under the free, open-source MIT License. It is one of most popular JavaScript libraries. MooTools is a powerful, lightweight JavaScript library. It creates an easy interaction of JavaScript in web development. It can also do many ...

Read More

How to convert BLOB to Byte Array in java?

Ramu Prasad
Ramu Prasad
Updated on 30-Jul-2019 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
Showing 41–48 of 48 articles
« Prev 1 2 3 4 5 Next »
Advertisements