Questions tagged [abap]

ABAP is the programming language of SAP softwares R/3, S/4HANA, CRM and many others.

ABAP is a SAP proprietary language that is used to write both the fundamental SAP R/3 system itself and the standardized business applications that run on top of this system and more recent systems like CRM and S/4HANA. It can be used for customer extensions of the system or entirely new software applications as well. The online language reference is available at no cost from the SAP Help Portal. Another great community - almost as rewarding as StackOverflow - is the SAP Community Network.

ABAP programs can be developed in ABAP Development Tools (ADT), a set of plugins for Eclipse, or using the tools in the ABAP Workbench on SAP GUI. ABAP programs use Open SQL statements to query the underlying Database Management System (DBMS). ABAP can be used to write executable programs, such as reports, and non-executable programs, such as function modules and classes. The ABAP Objects feature allows for object oriented programming in ABAP.

Useful links


Related tags

3276 questions
7
votes
8 answers

Performance difference between MOVE and = assignment in ABAP

Is there any kind of performance gain between 'MOVE TO' vs x = y? I have a really old program I am optimizing and would like to know if it's worth it to pull out all the MOVE TO. Any other general tips on ABAP optimization would be great as well.
CodeMonkey
  • 1,087
  • 2
  • 15
  • 24
6
votes
2 answers

Is there something like MOVE-CORRESPONDING IGNORING INITIALS?

I am looking for a language construct or a function module which would be MOVE-CORRESPONDING IGNORING INITIALS like. Simply put I want something that works exactly like MOVE-CORRESPONDING source TO dest but ignoring all the fields which are initial…
Jagger
  • 10,350
  • 9
  • 51
  • 93
6
votes
3 answers

DELETE ADJACENT DUPLICATES delete order?

If there are entries with the same key. sort itab by key. delete adjacent duplicates from itab comparing key. Does anyone know which one will be deleted if delete adjacent duplicates..comparing key? The first one or second one?
Dustin Sun
  • 5,292
  • 9
  • 49
  • 87
6
votes
5 answers

Traverse all the nodes of an XML document?

I want to traverse through the entire nodes of an if_ixml_document. which is the best way to do this? Please find the sample document. 432543254543
Alex
  • 81
  • 1
  • 6
6
votes
2 answers

Is there a way to find the customizing request number for a given record at a maintenance view?

In ABAP we can check the latest workbench request assigned to a given code from Utilities->Versions->Version Management menu. Is there any similar feature to check which is the customizing request for a given record at a maintenance view (SM30)…
Paulo
  • 1,041
  • 1
  • 7
  • 12
6
votes
4 answers

ALV Grid toolbar is missing in fullscreen

I've created a simple ALV grid and populated the grid with data, now the grid is displayed after the selection screen. I'm not using custom container and display the grid in full screen. Is there a property of ALV grid object that enables toolbar…
JordinB
  • 306
  • 1
  • 2
  • 13
6
votes
4 answers

Case-insensitive comparison in SELECT condition

In ABAP SQL can I ignore the case when comparing fields in the WHERE clause of a SELECT? SELECT * FROM some_table WHERE field1 = variable1. How can I compare field1 to variable1 ignoring different case?
Dustin Sun
  • 5,292
  • 9
  • 49
  • 87
6
votes
2 answers

Create a byte array from a file?

My ABAP devs are sending me file through a function. I'm trying to find out if I can convert a file into a byte array in ABAP>. If this is possible, does anyone have any example code?
Nate
  • 2,316
  • 4
  • 35
  • 53
6
votes
5 answers

Find last matching result using "read table with key"

I need to find the sy-tabix of a the last entry in an internal table that matches v_key = x. I'm trying to do it with: read table i_tab with key v_key = x But since there are multiple entries in the table that match v_key = x, how can I make sure I…
Suimon
  • 271
  • 1
  • 6
  • 15
6
votes
4 answers

Can I check for initial or not equal values with line_exists?

ABAP 7.40 added the line_exists( ... ) predicate function to analyse internal tables. But is there any way I can check for the presence of a line where a particular column is initial or different from a target value? For instance, how can I check…
Lilienthal
  • 4,327
  • 13
  • 52
  • 88
6
votes
1 answer

Whats the meaning of the % symbol in a data declaration?

I found this data declaration in ABAP code. Does anyone know what this % means? Data: %rlmob type str_mob
6
votes
2 answers

How to dynamically call Field Symbols

Lets say I have a standard structure assigned to a field symbol. Is there a way to pass a variable to the field symbol for dynamic calls? Eg: DATA: lt_mara TYPE STANDARD TABLE OF mara WITH HEADER LINE, parameter_name(10) TYPE…
Isuru
  • 3,044
  • 6
  • 30
  • 39
6
votes
1 answer

How to open javascript developer console from SAP HTML Viewer

We have a custom web application that gets used via normal desktop browser, including IE, Chrome, and Firefox. When troubleshooting javascript type issues with this application, we can use the F12 button to open the javascript developer console.…
Stephen
  • 1,977
  • 2
  • 15
  • 19
6
votes
2 answers

Literals in ABAP OpenSQL?

in SQL it is usually possible to use literals in a select statement, e.g. like this SELECT 'I', 'EQ', table.alev_uuid FROM table Is there any chance to do this in an ABAP SQL query? what I tried so far is this: DATA lt_aldf TYPE RANGE OF…
Felix
  • 78
  • 4
  • 15
6
votes
2 answers

SAP logical database includes macro implicitly. How?

We are writing a tool in Java that parses and transforms ABAP code. We therefore have no intention to write new ABAP code but our tool has to handle all of ABAP, even obsolete statements. Furthermore, I'm not an ABAP expert. One object we see uses a…
Ulrich Scholz
  • 2,039
  • 4
  • 30
  • 51