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
78
votes
8 answers

What are ABAP and SAP?

What are SAP and ABAP? I searched and got a bunch of different acronyms that don't quite make sense. Is SAP a database engine? Is ABAP a programming language? Or are they nothing of that nature? What are they primarily used for?
Omar
  • 39,496
  • 45
  • 145
  • 213
54
votes
9 answers

How should I start learning about SAP?

I'm working as a MS developer working to provide bridging products between MS technology and SAP. I'm used to the MS space which seems to have an absolutely different philosophy than SAP. And this is starting to be an issue - I can't "get" SAP. So,…
Eli
  • 1,315
  • 1
  • 16
  • 29
52
votes
2 answers

Helicopterview of ABAP

I don't know a thing about ABAP, apart from it has an OO side, and I would like to have some kind of helicopterview of it before I start to look at it in detail. I know I can find all of this when studying it , but like I said for starters I like to…
Marc
  • 547
  • 4
  • 4
39
votes
9 answers

How to get rows count of internal table in abap?

How do I get the row count of an internal table? I guess that I can loop on it. But there must be a saner way. I don't know if it makes a difference but the code should run on 4.6c version.
Igal Serban
  • 10,558
  • 3
  • 35
  • 40
38
votes
7 answers

Query SAP database from Python?

Can Python be used to query a SAP database?
ilya n.
  • 18,398
  • 15
  • 71
  • 89
20
votes
4 answers

Preferred Boolean type for ABAP Development

SAP doesn't have a core Data Type for boolean values. Additionally, higher level boolean types in SAP typically have three states: true ('X'), false (' ') and unknown ('-'). Now obviously booleans are a cornerstone of a lot of my development work…
Lilienthal
  • 4,327
  • 13
  • 52
  • 88
17
votes
2 answers

Delete the current row from an internal table in a loop

Can I safely delete the active row while looping over an internal table? As an example, consider this code: LOOP AT lt_itab INTO ls_wa. IF [...] . " A check that can't be done inside a 'DELETE lt_itab WHERE' DELETE lt_itab INDEX…
Lilienthal
  • 4,327
  • 13
  • 52
  • 88
15
votes
2 answers

Validate XML against XSD in pure ABAP

Is there there any standard way to perform validation of XML document using XSD in ABAP? As far as I know, there is an approach that utilizes XI/PI capabilities, but these are not available in our system. I think we might also use a workaround: make…
Nikolai Kim
  • 685
  • 8
  • 22
15
votes
5 answers

Is there another way to concatenate instead of using the CONCATENATE keyword?

Is there another way to concatenate in ABAP instead of using the CONCATENATE keyword? An example using CONCATENATE: DATA: foo TYPE string, bar TYPE string, foobar TYPE string. foo = 'foo'. bar = 'bar'. CONCATENATE foo 'and' bar…
Eduardo Copat
  • 4,941
  • 5
  • 23
  • 40
12
votes
3 answers

Ternary operator (alternatives)

Is there a ternary or conditional operator available in the ABAP syntax? I haven't found one so am assuming that the answer is no but is there then an alternative that I can use to clear up the common "dumb" IF statements that I routinely use? For…
Lilienthal
  • 4,327
  • 13
  • 52
  • 88
12
votes
6 answers

Can I use ABAP Unit tests in classic ABAP report?

I would like to implement ABAP Unit tests in my ABAP programs, but my first report is a classic ABAP report, no OO classes at all. Is this even possible? Or ABAP Unit intended solely on OO classes? Can I use it with subroutines? PERFORM…
Davidson
  • 1,064
  • 3
  • 20
  • 35
11
votes
3 answers

DATA_BUFFER_EXCEEDED error when calling RFC_READ_TABLE?

My java/groovy program receives table names and table fields from the user input, it queries the tables in SAP and returns its contents. The user input may concern the tables CDPOS and CDHDR. After reading the SAP documentations and googling, I…
Yi.
  • 515
  • 1
  • 7
  • 19
11
votes
1 answer

Select all fields from table A but single field from B?

Is there a way in ABAP's OpenSQL to simplify the select columns in a JOIN when I want to grab all the fields of one table but only selected fields from the other table(s)? For instance, in mysql we can simply do: SELECT tb1.*, tb2.b, tb2.d FROM …
Lilienthal
  • 4,327
  • 13
  • 52
  • 88
11
votes
3 answers

SAP R/3 removes trailing spaces from IDoc XML files

I have a Java application that uses SAP JCo 3 libraries. One of the use cases consists of receiving a IDoc file from the SAP instance (R/3, ERP 6.0 EhP 7) and convert it to XML. The problem is that, during the conversion (executed by the IDoc…
CountD
  • 669
  • 2
  • 11
  • 34
11
votes
3 answers

Different ways to call methods in ABAP

Sorry for this basic ABAP question. What are the different ways to call methods in ABAP? And what are their "official" names? I've heard of perform, method call, and internal/inline method call. Perform uses the PERFORM keyword and method call the…
Ulrich Scholz
  • 2,039
  • 4
  • 30
  • 51
1
2 3
99 100