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
SAP Articles
Page 21 of 91
Make a custom function call without using SAP NetWeaver
There are several ways you can make custom function calls without using SAP NetWeaver when working with RFC (Remote Function Call) in SAPUI5. Here are the most effective approaches − Web Service or REST Service Approach You can create a web service or REST service that utilizes the RFC you have created. Host this service in the SAP environment and then consume it in SAP UI5 using the service URL. This approach provides a clean separation between your UI5 application and the backend RFC functionality. // Example of consuming REST service in UI5 var oModel = ...
Read MoreDifferent ways to interact with SAP system from a web application
There are several methods to interact with SAP systems from web applications. Using any of these methods depends on what you are connecting to and the version of your SAP system. You can use Standard BAPI's (Business Application Programming Interface) to read or update service orders. BAPI is a Remote Function Call (RFC) with a standard API that provides a standardized interface for external systems. Web Services in SAP ERP In latest releases of SAP ERP, many Function Modules are exposed as Web Services, making it easier to integrate ...
Read MoreUsing SAP connector 3.0 on an MVC application
When working with SAP connector 3.0 in an MVC application, you may encounter issues when trying to set values in table parameters. A common solution is to try adding a new row before calling SetValue. Adding Rows to SAP Table Parameters To properly add data to a table parameter in SAP connector 3.0, you need to append a new row first and then set the values. Here's the correct approach − employeeHoli.Append(); employeeHoli.SetValue("ColumnName", "0000345"); Understanding Table Parameters When you ...
Read MoreNegation logic in SAP ABAP
You can use BOOLC to sort out your negation logic requirement. It should be like this − Varbool = BOOLC( NOT Logical_operation ) But be clear in your implementation, as ABAP does not have a true bool type. It does not store true or false in bool type rather it stores 'X' or '' (empty string) for true and false respectively. Example with BOOLC Here's a practical example showing negation logic using BOOLC − DATA: lv_number TYPE i VALUE 10, lv_result TYPE c LENGTH 1. ...
Read MorePassing data from one report to another in ABAP using SUBMIT
In ABAP, passing data from one report to another using the SUBMIT statement is a common requirement for modular programming. The SUBMIT statement allows you to execute another report and optionally pass selection screen parameters and internal table data to it. Basic SUBMIT Syntax The basic syntax for submitting a report with parameters is − SUBMIT report_name WITH parameter_name = value WITH SELECTION-TABLE selection_table AND RETURN. Passing Selection Screen Parameters You can pass values to selection screen parameters of the target report using the WITH clause − ...
Read MoreUpdating default value of new column in SAP system
It is not good practice to update default values to a column in SAP as this will not be visible directly in the system and will not be picked up by CTS (Change and Transport System). Also, there is no built-in option in the SAP/ABAP environment for adding default values to existing table columns. Why Default Values Are Problematic If you choose to make a new column have NON-NULL values, you will have to manually update default values across all existing records. This approach has several drawbacks − ...
Read MoreError while using LOOP.....WHERE in SAP ABAP
The LOOP...WHERE condition was included recently in SAP ABAP. Could you please verify your version? This will work only on a version of 7.0 EhP2 or higher. Understanding the Version Requirement The LOOP...WHERE statement is a powerful feature that allows you to filter internal table entries directly within the loop statement, eliminating the need for additional IF conditions inside the loop body. However, this functionality is only available in SAP NetWeaver 7.0 Enhancement Package 2 (EhP2) and later versions. Checking Your SAP System Version To check your SAP system version, you can use transaction SYSTEM → ...
Read MoreFetch fields from table or structure in ABAP SAP
If you need to identify the fields and number of fields in a structure, then you should use runtime type services. Using runtime type services makes more sense in this case as if we have some data in our environment, then it's not ideal to call database for fetching the same. Using Runtime Type Services Runtime type services provide a way to analyze the structure of data objects at runtime. Here's how to get field information from a structure − DATA(structure) = VALUE ( ...
Read MoreIdentify the database used for backend in ABAP
In SAP ABAP development, identifying the backend database system is essential for writing database-specific code and understanding system architecture. ABAP provides built-in system classes to retrieve this information programmatically. Using CL_DB_SYS Class The CL_DB_SYS class provides the DBSYS_TYPE attribute to fetch the current database type. This system class is available in all SAP systems and returns a standardized database identifier. Example Here's how to identify the database system using ABAP code − DATA: lv_db_type TYPE string. " Get the database system type lv_db_type ...
Read MoreRV_INVOICE_DOCUMENT_READ not returning any data in form in SAP FM
When using the RV_INVOICE_DOCUMENT_READ function module in SAP, you may encounter issues where no data is returned in forms. The most common cause is the missing alpha conversion for input parameters. Understanding Alpha Conversion Alpha conversion is SAP's internal process that formats numeric data with leading zeros. When you call a function module directly in SE37 (Function Builder), it automatically performs alpha conversions as part of parameter processing. However, when calling the same function module from ABAP code, you must handle this conversion manually. Common Issue The RV_INVOICE_DOCUMENT_READ function module expects document numbers in internal format ...
Read More