ABAP Articles

Page 2 of 9

Use IFrame and read cookie in ABAP

seetha
seetha
Updated on 13-Mar-2026 287 Views

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 More

Using ABAP, changing a value in itab by getting data from database table

Sai Subramanyam
Sai Subramanyam
Updated on 13-Mar-2026 2K+ Views

You should do this using a MODIFY statement as shown below − LOOP AT itab. SELECT SINGLE matnr INTO itab-matnr FROM zlldet WHERE palet = itab-palet. MODIFY itab. ENDLOOP. Also note that when you have an internal table itab with a header line, it means that you have a table itab and structure itab and usage of this depends on the situation. Few of the commands like MODIFY and LOOP AT use both at the same time. Modern Approach Without Header Line ...

Read More

Creating User roles and profiles in SAP system

Manikanth Mani
Manikanth Mani
Updated on 13-Mar-2026 422 Views

This can be done using Legacy Systems Migration Workbench (LSMW) transaction. This workbench works like a sort of macro recorder and allows you to record the steps in a transaction and you can replay that record multiple times as per the requirement. This also allows you to replace the values you used in your recorded transaction with new values. A more complex option would be to write ABAP code and this is more flexible to add different privileges to different roles. Methods for Creating User Roles and Profiles Method 1: Using LSMW (Legacy Systems Migration Workbench) ...

Read More

Aggregating rows in SAP ABAP with the same name

Alankritha Ammu
Alankritha Ammu
Updated on 13-Mar-2026 727 Views

You can use the COLLECT keyword or some aggregate functions to achieve the result of aggregating rows with the same name in SAP ABAP. You should define appropriate data types to match your specific scenario. The COLLECT statement is particularly useful for accumulating numeric values while grouping rows by key fields. It automatically sums up non-key fields for records that have identical key field values. Example Here's a complete example showing how to aggregate rows using the COLLECT statement − TYPES: BEGIN OF t_my_type, key_a TYPE ...

Read More

Using "SPELL AMOUNT" function to convert amounts in ABAP

George John
George John
Updated on 13-Mar-2026 923 Views

You can use the standard function module SPELL_AMOUNT in ABAP to convert numeric amounts into their corresponding word representations. This is particularly useful for financial documents, checks, and reports where amounts need to be displayed in written form. To access and explore this function module, use Transaction code SE37 (Function Builder) − Click on the Search icon and select Function module SPELL_AMOUNT − Key Parameters The SPELL_AMOUNT function module accepts several important parameters − ...

Read More

Explanation about SAP ABAP Stack and JAVA Stack and role of Java Stack during ECC upgrade

Ayyan
Ayyan
Updated on 13-Mar-2026 2K+ Views

Note that all SAP ERP modules run on SAP ABAP stack. SAP NetWeaver Application Server (ABAP Stack) is part of the SAP NetWeaver portfolio and represents the ABAP-based technical basis for many SAP products. It delivers technical frameworks, tools, repositories, and much more. When to Install Java Stack If you are planning to use SAP PI module then you should install Java Stack. Whenever you need something like Adobe Interactive Forms or NetWeaver Portal functionality that requires the Java Stack, it becomes necessary. You can go for an upgrade ...

Read More

Creating a Function module in ABAP to take any table and write it to the screen

Manikanth Mani
Manikanth Mani
Updated on 13-Mar-2026 2K+ Views

SAP List Viewer (ALV) is used to add an ALV component and provides a flexible environment to display lists and tabular structure. A standard output consists of header, toolbar, and an output table. The user can adjust the settings to add column display, aggregations, and sorting options using additional dialog boxes. Creating a Function Module Using ALV You can use the following code to display any table using the CL_SALV_TABLE class − DATA: go_alv TYPE REF TO cl_salv_table. CALL METHOD cl_salv_table=>factory IMPORTING r_salv_table = ...

Read More

Adding a condition using SQL or an ABAP program and difference in performance

Rama Giri
Rama Giri
Updated on 13-Mar-2026 324 Views

When adding conditions to filter data, you can choose between implementing the logic in SQL or in an ABAP program. For small datasets like 500 records, there would not be much difference in performance between both options. You can use either of them based on your specific requirements. SQL Approach Using SQL WHERE clause directly in the database query is generally more efficient as it filters data at the database level − SELECT * FROM table_name INTO TABLE lt_table WHERE exp > 5. ABAP Program Approach Alternatively, you can ...

Read More

Incrementing an integer inside loop in an ABAP program

Fendadis John
Fendadis John
Updated on 13-Mar-2026 873 Views

To increment an integer inside a loop in an ABAP program, you have several methods available. The most common approaches involve using the ADD statement or direct assignment operations. Methods for Incrementing Integers Using ADD Statement The most straightforward way to increment an integer is using the ADD statement − DATA: ls_id TYPE i VALUE 0. DO 5 TIMES. ADD 1 TO ls_id. WRITE: / 'Current value:', ls_id. ENDDO. Using Assignment Operation You can also increment using direct assignment. Note that proper spacing is required between the ...

Read More

Checking active process in SAP system and which code is running

George John
George John
Updated on 13-Mar-2026 4K+ Views

There are a couple of transactions − SM66 and SM50 that can be used to check active processes in the SAP system and monitor which code is currently running. Transaction SM66 - Global Process Overview The transaction SM66 is used to see all the active processes across the entire SAP system landscape. This provides a comprehensive view of all work processes running on all application servers in your SAP environment. To monitor a specific process using SM66 − Select the particular process you want to monitor by clicking on the process entry ...

Read More
Showing 11–20 of 84 articles
« Prev 1 2 3 4 5 9 Next »
Advertisements