Found 92 Articles for ABAP

Difference between Internal tables, structures or work areas in SAP ABAP

Sharon Christine
Updated on 17-Feb-2020 06:48:21

5K+ Views

Internal tables − Internal tables are a means of storing data in the fixed format in working memory of ABAP. The data is stored line by line. So it is necessary for the data to be in a fixed format. Generally, they are used to store data in database tables to be used in ABAP programs.Structures−  Structures are basically data objects consisting of various components or fields of any data types. It differs from the tables in a way that it simulates the format of the table and is used to hold one row of data whereas table has multiple rows ... Read More

How to connect to an SAP module?

karthikeya Boyini
Updated on 11-Dec-2019 10:37:11

244 Views

You can create RFC function module and then call this function module from outside. You can create RFC using T-Code SE37You can use the following link to know more about using RFC function module:https://archive.sap.com/discussions/thread/333645This tells about how you can create an FM in SE37 in Target system enabling Remote-Function Enabled and using attributes of FM.To create an RFC connection, you need to use T-Code: SM59 mentioning Username and Password.Another link that you can refer which tells about creating RFC and Remote-enabled FM and call from another SAP system using ABAP Program:https://wiki.scn.sap.com/wiki/display/Snippets/Creating+RFC+and+Remote-enabled+FM+and+call+from+another+SAP+system+using+ABAP+ProgramRead More

Difference between class alv and function alv in SAP ABAP?

Sharon Christine
Updated on 11-Dec-2019 10:38:59

2K+ Views

Class alv and Function alv are different in terms of features. Below is the difference:Class alv are secured as compared to function alv.While using class alv, it improves the performance.With use of function alv, you can create screens using function module however you need to call separate programs to generate screen.Class alv provides Object Oriented functionality and hence they are easily reusable.You can execute function modules asynchronously and can also be called by other systems remotely.Below is an example of class ALV:DATA: lcl_alv TYPE REF TO cl_gui_alv_grid,       t_gly TYPE STANDARD TABLE OF Travels . SELECT * FROM ... Read More

How to delete the actives while running a loop in the internal table?

Johar Ali
Updated on 25-Feb-2020 11:08:33

121 Views

DELETE command will have a result. You should make sure that once you delete the row, there should not be any reference or use of row subsequently in the loop. The best is to use CONTINUE as soon as you perform the deletion. I will suggest avoiding “DELETE lt_itab INDEX sy-tabix” because it will change the sy-tabix i.e. table index. In case if you just want to delete the current row in the loop then you can simple use“DELETE lt_itab”One more thing if you are using the statement “DELETE lt_itab FROM ls_wa” then whether knowingly or unknowingly, you are deleting the ... Read More

What is SAP ABAP?

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

480 Views

ABAP stands for Advanced Business Application Programming. It is one of the primary programming languages used for developing programs and applications for SAP R/3 systems and its related modules. It is a high-level language with respect to SAP as it is understood and known only to SAP environment. The latest version of ABAP which is ABAP Objects follows Object Oriented paradigm. Also, it is fully backward compatible with applications written in previous versions of ABAP whether it is ABAP/4 or other which were highly impressed by COBOL. Being an Object Oriented Programming language it fully supports features like inheritance, polymorphism, ... Read More

How to pause an ABAP program?

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

354 Views

Either you can use SAP “WAIT UP TO” statement. For e.g. the below statement waits up for 30 seconds WAIT UP TO 30 SECONDS But this statement has an implicit database commit. It might sound weird but there are scenarios where this behavior is expected so you should be aware of whether this fits your use case or not. In addition to this, it performs a rollout and releases the worker processes. But the use cases where you don’t want to have an implicit database commit and worker process are considered important then you can go for an ... Read More

Explain the module function to split ABAP date?

Lakshmi Srinivas
Updated on 11-Dec-2019 09:22:10

232 Views

You can use module function name “MONTH_NAMES_GET” to get the month’s name. The function will take up the language as a parameter; you can pass the desired language as a parameter and get the month’s name. Similarly, we have a function for fetching day name as well. You can use:“RH_GET_DATE_DAYNAME”

How to use EXPORT / IMPORT to Memory ABAP – SAP?

Monica Mona
Updated on 30-Jul-2019 22:30:20

586 Views

As per your requirement, you are utilizing ABAP memory to transfer data to background session from session of the user. It will not work as per the standard documentation.  RFC or updates module will run in different user sessions with different ABAP memory and hence it will not be possible.

Difference between the use of Type, Types and TYPE POOL in SAP ABAP programming.

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

641 Views

TYPE keyword is used for Data or FIELD Symbol declaration You use TYPES keyword for defining local types TYPE POOL is used for grouping local types so that you can use them without duplication TYPES: BEGIN OF z_t000, Name TYPE c Length 10. N_id TYPE i. TYPES END OF z_t000. One of the common examples of TYPE POOL is Type Group ABAP. Navigate to Transaction SE11 and select Type Group and type ABAP there then press F7. You will see the body of the type group which is defined by the keyword TYPE-POOL.

Can we get same features in SAP ABAP as they are in VS?

Lakshmi Srinivas
Updated on 30-Jul-2019 22:30:20

52 Views

If you want to show all the occurrences of a variable in an ABAP program, you can use a shortcut- ctrl+shift+F3 or you can also make use of Yellow icon at the top.

Advertisements