Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Nitya Raut
158 articles
Inserting new line to the output using WS_Download in ABAP
First of all, don't use WS_DOWNLOAD as this function module is obsolete and deprecated in modern ABAP development. Using cl_abap_char_utilities for Line Breaks You can use a character type field and set it to cl_abap_char_utilities=>cr_lf. This utility class provides constants for various character operations, including carriage return and line feed combinations. Now use this field at places where you want to insert the new line. Example Here's how to implement line breaks when downloading data using modern ABAP approaches − ...
Read MoreStandards for maintaining Customer Repository Objects in SAP
In SAP development, proper namespace management is crucial for maintaining Customer Repository Objects. Understanding the distinction between Y-namespace and Z-namespace helps organizations maintain clean, organized development standards. Y-Namespace vs Z-Namespace The Y-namespace is meant to be used for centrally developed solutions or also known as head office while the Z-namespace is used for local developed solutions or also known as branch office. But at the end of day, it all depends on the developer how he uses it. Standard Repository Object Naming Conventions ...
Read MoreOData or Java Services to be consumed by SAP UI5 application
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. Understanding the Architecture The relationship between these technologies can be visualized as follows − REST Architecture AtomPub Protocol ...
Read MoreDelete duplicate alphanumeric entries from column data in SQL
You can use regular expressions to remove duplicate consecutive alphanumeric characters from column data in SQL. The REPLACE_REGEXPR function with pattern matching allows you to identify and replace repeated characters with a single occurrence. Syntax The basic syntax for removing duplicate alphanumeric entries using regular expressions is − REPLACE_REGEXPR ('([A-Za-z0-9])\1+' in column_name WITH '\1' OCCURRENCE ALL) Where ([A-Za-z0-9])\1+ is the regex pattern that captures any alphanumeric character and matches one or more consecutive occurrences ...
Read MoreaddEventListener for keydown on HTML5 Canvas
By default, the HTML5 element cannot receive keyboard focus, which means keydown events will not fire on it. To make the canvas focusable and responsive to keyboard events, you need to add the tabindex attribute to the canvas element. Once the canvas has focus (after being clicked or tabbed to), it can listen for keyboard events. Why tabindex Is Needed Keyboard events like keydown, keyup, and keypress only fire on elements that have focus. Since is not a form element, it is not focusable by default. Adding tabindex="0" makes it part of the normal tab order, allowing it ...
Read MoreImplement your own itoa() in C
In this section we will see how to convert an integer number to a string.The logic is very simple. Here we will use the sprintf() function. This function is used to print some value or line into a string, but not in the console. This is the only difference between printf() and sprintf(). Here the first argument is the string buffer. where we want to save our data.Input: User will put some numeric value say 42Output: This program will return the string equivalent result of that number like “42”Algorithm:Step 1: Take a number as argument Step 2: Create an empty ...
Read MoreReplace substring with another substring C++
Here we will see how to replace substring with another substring. It replaces the portion of the string that begins at character pos and spans len characters.The structure of the replace function is like below:string& replace (size_t pos, size_t len, const string& str, size_t subpos, size_t sublen);The parameters are pos: It is an insertion point, str : It is a string object, len : It contains information about number of characters to erase.AlgorithmStep 1: Get the main string, and the string which will be replaced. And the match string Step 2: While the match string is present in the main string: Step 2.1: Replace it with the given ...
Read MoreCreate a StringBuffer object using a reference stored in a variable of type String in Java
To create a StringBuffer Object, we use the following syntax −StringBuffer s=new StringBuffer();When we create a reference to an object, we use the assignment operator. For example, String s1 = ”hi”; String s2 = s1; // s2 is a reference of s1A program to illustrate the creation of a StringBuffer object using a reference stored in a variable of type String is given below −Examplepublic class Example { public static void main(String args[]) { String input = "hey"; String s1 = input; // creating a reference of the String StringBuffer ...
Read MoreMedia object in Bootstrap
Use the .media-object class in Bootstrap to set the media object −Example Bootstrap Example Lolcode Tutorial Introduction LOLCODE is an esoteric programming language inspired by the funny things on the Internet. It is designed to test the boundaries of programming language design.
Read MoreBootstrap alert-danger class
The alert-danger class in Bootstrap is used to set danger action.You can try to run the following code to implement the alert-danger class in Bootstrap −Example Bootstrap Example This is danger action!
Read More