SAP HANA Articles

Page 12 of 58

Passing data from one report to another in ABAP using SUBMIT

Vikyath Ram
Vikyath Ram
Updated on 13-Mar-2026 387 Views

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 More

Updating default value of new column in SAP system

Rishi Raj
Rishi Raj
Updated on 13-Mar-2026 498 Views

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 More

Error while using LOOP.....WHERE in SAP ABAP

Rishi Raj
Rishi Raj
Updated on 13-Mar-2026 425 Views

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 More

Fetch fields from table or structure in ABAP SAP

Monica Mona
Monica Mona
Updated on 13-Mar-2026 3K+ Views

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 More

Identify the database used for backend in ABAP

Samual Sam
Samual Sam
Updated on 13-Mar-2026 320 Views

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 More

RV_INVOICE_DOCUMENT_READ not returning any data in form in SAP FM

Sreemaha
Sreemaha
Updated on 13-Mar-2026 474 Views

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

Sort data in SQL using Dynamic SQL in SAP HANA

Giri Raju
Giri Raju
Updated on 13-Mar-2026 1K+ Views

In order to execute dynamic SQL in your stored procedure, you need to use the EXECUTE IMMEDIATE statement. This statement allows you to build and execute SQL queries dynamically at runtime, which is particularly useful when you need to sort data based on variables or user input. Basic Dynamic SQL Syntax You can use SQL as shown below to execute dynamic sorting − EXECUTE IMMEDIATE 'SELECT FROM ORDER BY ' || : || ' DESC'; Complete Example Here's a complete example showing how to implement dynamic sorting in a SAP HANA ...

Read More

Using SAP Web Service from SAP by PHP with parameters

Anvi Jain
Anvi Jain
Updated on 13-Mar-2026 508 Views

When working with SAP Web Services from PHP, you may encounter parameter-related issues that prevent successful data transmission. One of the most common problems is case sensitivity in parameter names. Understanding SAP Case Sensitivity SAP systems are case sensitive when it comes to web service parameters. This means that parameter names must exactly match the case specified in the WSDL (Web Services Description Language) definition. A common mistake is using incorrect casing for parameter names, which results in failed requests. Common Case Sensitivity Issue Consider the following incorrect parameter usage − // Incorrect - ...

Read More

Ending a connection with SAP Instance and stop scripting

Hayat Azam
Hayat Azam
Updated on 13-Mar-2026 2K+ Views

When working with SAP instances through scripting, it's crucial to properly end connections and clean up resources to prevent memory leaks and ensure system stability. This can be resolved by ensuring that you destroy all reference to public objects at the end of your script. Ending SAP Connections in Different Languages Excel VBA Method In Excel VBA, you can use the following to destroy object references − Set session = Nothing Set application = Nothing Set connection = Nothing C# Method ...

Read More

Connecting system with SAP system using a Web Service

Shahyan Ali
Shahyan Ali
Updated on 13-Mar-2026 769 Views

The best solution for connecting your system with an SAP system using a web service is to regenerate the web service code in the client system. This approach ensures that your client application has the most up-to-date interface definitions and can properly communicate with the SAP system's web services. Regenerating Web Service Code in Visual Studio To regenerate the WSDL code in Visual Studio, follow these steps − Navigate to Add Service Reference in Visual Studio and regenerate the WSDL code. This process ...

Read More
Showing 111–120 of 573 articles
« Prev 1 10 11 12 13 14 58 Next »
Advertisements