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 seetha
54 articles
Use IFrame and read cookie in ABAP
Using IFrames with cookies in ABAP is achievable through a well-structured approach that combines server-side Business Server Pages (BSP) applications with client-side JavaScript to bridge the communication between third-party components and ABAP code. Implementation Approach The solution involves creating a frameset-based architecture that separates concerns while maintaining seamless data flow between components. Step 1: Create BSP Application First, create a Business Server Pages application on the server. Make sure the application contains a frameset and two IFrames as part of the frameset. ...
Read MoreChecking table existence using Class and it’s method in SE11 without using FM in ABAP
To perform table existence checks without using Function modules, you can use the class cl_rebf_ddic_tabl. Note that Class methods are almost similar to function modules. They are defined as code blocks to perform specific functionality and provide a more object-oriented approach to DDIC operations. Example The following code demonstrates how to check if a table exists using the EXISTS method − CALL METHOD cl_rebf_ddic_tabl=>exists EXPORTING id_name = 'MARA' ...
Read MoreGet all occurrences of the string between any two specific characters in SAP ABAP
I usually use REGEX in all such cases as it is faster and easily readable and would recommend the same to you. You can use something similar as the snippet to get your job done. Example Here's a complete example that extracts all text between ampersand characters − DATA: lv_para TYPE string, lv_result TYPE string. lv_para = ' You &are like& kite &flying& in a &hurricane&'. " Remove all text between & characters including the & symbols lv_result = lv_para. REPLACE ALL OCCURRENCES OF REGEX '&[^&]+&' IN ...
Read MoreAssign image source dynamically in XML View in Fiori app in SAP UI5
Yes, it can be done but you need to compute the dynamic field using a formatter function. This approach allows you to dynamically assign image sources based on data from your model in SAP UI5 XML views. Steps to Assign Dynamic Image Source To implement dynamic image source assignment, follow these three steps − Step 1: Enable Complex Binding Syntax First, you need to mention that the binding is complex so change the flag in your HTML file − data-sap-ui-bindingSyntax="complex" Step 2: Create a Formatter Function Then have a helper function ...
Read MoreDo I need to set up SAP user for every user of module?
Yes, you need to set up an SAP user for every user who will access SAP modules. This is not just a best practice recommendation, but a mandatory requirement according to SAP's licensing and service agreements. Why Individual SAP Users Are Required SAP enforces a strict user-based licensing model where each person accessing the system must have their own unique user account. This requirement exists for several important reasons − Licensing Compliance: SAP's licensing terms explicitly require individual user accounts. Sharing user credentials ...
Read MoreHow do I determine the size of my array in C#
Firstly, set an array −int[] arr = {6, 3, 8, 4};Now, use the Length property to get the size of the array −arr.LengthLet us see the complete code −Exampleusing System; namespace Demo { public class Demo { public static void Main(string[] args) { int[] arr = {6, 3, 8, 4}; Console.WriteLine("Array..."); foreach (int i in arr) { Console.Write(i + " "); } Console.WriteLine("Size of Array: "+arr.Length); } } }OutputArray... 6 3 8 4 Size of Array: 4
Read MorePrint first letter of each word in a string using C# regex
Let’s say our string is −string str = "The Shape of Water got an Oscar Award!";Use the following Regular Expression to display first letter of each word −@"\b[a-zA-Z]"Here is the complete code −Exampleusing System; using System.Text.RegularExpressions; namespace RegExApplication { public class Program { private static void showMatch(string text, string expr) { Console.WriteLine("The Expression: " + expr); MatchCollection mc = Regex.Matches(text, expr); foreach (Match m in mc) { Console.WriteLine(m); } } ...
Read MoreString Formatting in C# to add padding
With C#, you can easily format content and add padding to it.To add padding −const string format = "{0,-5} {1,5}";Now, add the padding to the strings −string str1 = string.Format(format, "Rank","Student"); string str2 = string.Format(format, "2","Tom");Let us see the complete code −Exampleusing System; using System.Collections.Generic; public class Program { public static void Main() { // set padding const string format = "{0,-5} {1,5}"; string str1 = string.Format(format, "Rank","Student"); string str2 = string.Format(format, "2","Tom"); Console.WriteLine(str1); Console.WriteLine(str2); } }OutputRank Student 2 Tom
Read MoreWhat is the class "class" in Java?
The Java.lang.Class class instance represent classes and interfaces in a running Java application. It has no public constructor. Example Following is the example demonstrates the usage of the class Class. The java.lang.Class.getCanonicalName() method returns the canonical name of the underlying class as defined by the Java Language Specification. It returns null if the class does not have a canonical name. import java.lang.*; public class ClassDemo { public static void main(String[] args) { ClassDemo c = new ClassDemo(); Class cls = c.getClass(); ...
Read MoreSet the width of the left border using CSS
To set the width of the left border, use the border-left-width property in CSS. You can try to run the following code to implement the border-left-width property −Example p { border-style: dashed; border-left-width: 10px; } This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo ...
Read More