Ramu Prasad has Published 69 Articles

Importing data from Pgsql to SAP HANA database

Ramu Prasad

Ramu Prasad

Updated on 28-Jan-2020 05:24:36

389 Views

Import and Export using a flat file is the easiest option. You can use CSV file if it is a onetime activity. However, If you think it is a repetitive activity then I would suggest you use HANA ETL options like HANA SLT replication, Smart Data access, etc.SAP HANA Replication ... Read More

List of Common Reasons for Segmentation Faults in C/C++

Ramu Prasad

Ramu Prasad

Updated on 27-Jan-2020 12:38:34

5K+ Views

The main reason for segmentation fault is accessing memory that is either not initialized, out of bounds for your program or trying to modify string literals. These may cause a segmentation fault though it is not guaranteed that they will cause a segmentation fault. Here are some of the common ... Read More

How to create a zero-filled JavaScript array?

Ramu Prasad

Ramu Prasad

Updated on 13-Jan-2020 10:28:00

124 Views

To create a zero-filled JavaScript array, use the Unit8Array typed array.ExampleYou can try to run the following code:Live Demo                    var arr1 = ["marketing", "technical", "finance", "sales"];          var arr2 = new Uint8Array(4);          document.write(arr1);          document.write("Zero filled array: "+arr2);          

How to concatenate several strings in JavaScript?

Ramu Prasad

Ramu Prasad

Updated on 09-Jan-2020 07:13:47

267 Views

To concatenate several string, use “Array.join()” method. Here, we will concat the following strings:John Amit SachinExampleYou can try to run the following code to concat several stringsLive Demo                    var arr = ['Amit', 'John', 'Sachin'];          document.write(arr.join(', '));            

Using clients in SAP ERP

Ramu Prasad

Ramu Prasad

Updated on 16-Dec-2019 09:58:35

527 Views

Several independent companies or subsets of one company can be present in one SAP system. The client separates these companies and their relevant data. Client serves as a key to most of the SAP database tables and used customizing, transactional and master data. To summarise client serves as unique database key for ... Read More

Formatting date in SAP system

Ramu Prasad

Ramu Prasad

Updated on 16-Dec-2019 07:34:34

152 Views

You will need to apply new culture to the existing thread as shown below:ExampleDateTime now = DateTime.Now; Console.WriteLine(now); CultureInfo sapCulture = new CultureInfo("en-US", true); sapCulture.DateTimeFormat.ShortDatePattern = "ddMMyyyy"; //sapCulture.DateTimeFormat.FullDateTimePattern =    sapCulture.DateTimeFormat.ShortDatePattern + " HH-mm-ss"; sapCulture.DateTimeFormat.LongTimePattern = "HH-mm-ss"; //sapCulture.DateTimeFormat.ShortTimePattern = "HH-mm-ss"; System.Threading.Thread.CurrentThread.CurrentCulture = sapCulture; //System.Threading.Thread.CurrentThread.CurrentUICulture = sapCulture; Console.WriteLine(now);Read More

Creating SAP interface to pull data from web application

Ramu Prasad

Ramu Prasad

Updated on 11-Dec-2019 06:47:01

549 Views

Web Dynpro is a complex framework and it would be tough to integrate it to your Java application. You can use SAP Java Connector JCo. SAP Java Connector can be used to call Remote Function calls on SAP system.You can use already defined function modules to connect. You can take ... Read More

How to have a structure with a table in ABAP?

Ramu Prasad

Ramu Prasad

Updated on 10-Dec-2019 10:22:03

2K+ Views

The basic rule while specifying a table within a structure is that you have to give a non-unique constraint to that field.TYPES: myType TYPE TABLE OF string WITH NON-UNIQUE DEFAULT KEYThen use this in the structure definition:TYPES: BEGIN OF ty_itab, ….. myTable type myType, …….. TYPES: END OF ty_itab.Read More

Converting a file into a byte array in SAP ABAP

Ramu Prasad

Ramu Prasad

Updated on 05-Dec-2019 07:49:09

921 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 ... Read More

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

Ramu Prasad

Ramu Prasad

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

354 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, ... Read More

Advertisements