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
-
Economics & Finance
Articles by seetha
Page 3 of 6
Connecting to SAP R/3 system via JCo client and JCo Server
In JCo3.0, Java client JCO.Client is replaced by JCoDestinations. You can connect to SAP system via Inbound RFC Communication (Java calls ABAP) or via Outbound RFC Communication (ABAP calls Java). JCo Connection Types For inbound RFC communication, you need to use JCoDestination for executing a remote function module at ABAP side. To use inbound RFCs, you have to use JCoDestination which executes a Function module remotely at ABAP side and while using outbound RFCs, you have to configure a JCoServer at the SAP gateway that is responsible to receive incoming requests from ABAP side and process remote function ...
Read MoreSearching data from the different system in SAP.
You need to create a search help with custom data selection by defining a search help exit. This is particularly useful when you need to fetch data from external systems or apply complex filtering logic that cannot be achieved through standard selection methods. Creating Custom Search Help with Exit Function To implement custom data selection, follow these steps − Step 1: Navigate to the Definition tab of your search help in transaction SE11. Step 2: Remove all content from the Selection method input field to disable standard data selection. Step 3: Enter your custom function ...
Read MoreUse 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 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 MoreWhat is the keyword used in instantiating a class in Java?
An object is created from a class. In Java, the new keyword is used to create new objects. There are three steps when creating an object from a class − Declaration − A variable declaration with a variable name with an object type. Instantiation − The 'new' keyword is used to create the object. Initialization − The 'new' keyword is followed by a call to a constructor. This call initializes the new object. Following is an example of creating an object − Example public class Puppy { public Puppy(String name) { ...
Read MoreWhat are valid identifiers in Java?
A valid identifier in java – Must begin with a letter (A to Z or a to z), currency character ($) or an underscore (_). Can have any combination of characters after the first character. Cannot be a keyword. Example Following example shows various possible identifiers used to declare a variable in Java. public class VariableTest { public static void main(String args[]) { // Declaring a variable named num int num = 1; int _num = ...
Read More