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
6
votes
1 answer

Manual transporting of class through the SAP CTS, which objects to include?

Faced with a dependency issue, I need to manually transport a single class in a transport request to go live before a list of other transports. I've written a R3TR CLAS entry to the Object List but now I'm worried that this would only include the…
Lilienthal
  • 4,327
  • 13
  • 52
  • 88
6
votes
2 answers

How to find the Customizing Path via IMG-Activity

I want to read the customizing path of an IMG-Activity in SAP via Code (abap). I have the IMG-Activity from e071K, which stores objects within a transport job. Now I found the table TNODEIMG where the tree structure of SPRO is stored. This is…
Sebi
  • 3,879
  • 2
  • 35
  • 62
6
votes
1 answer

Generate Program whith Pretty Printer Automatically

I've generated a program via INSERT REPORT .... I would like to know if there is way to apply the Pretty Printer tool on this program automatically.
Hamza Chioua
  • 135
  • 3
  • 11
6
votes
2 answers

Is a library (with C programming language interface) callable from within ABAP?

I have no experience with ABAP programming and I'd like to know whether it's possible to call a 3rd party library with C programming language interface from within an SAP application. To be more precise, the goal is to use the IBM CPLEX Optimizer…
llasarov
  • 2,064
  • 5
  • 27
  • 40
6
votes
1 answer

How to test an RFC module that exists only in remote system?

I'm debugging a solution where a program in one SAP system (A) calls a remote-enabled function module in a different SAP system (B) via RFC connection. Is there a way to 'test-run' the RFC from A, like we normally do with SE37 for local function…
maillard
  • 680
  • 1
  • 14
  • 27
6
votes
1 answer

How do I retrieve all child nodes of a hierarchical structure in ABAP?

Suppose I have a database table representing a hierachical structure, with the following columns: id predecessor_id name Starting from a given ID, I have to be able to retrieve all child nodes (not only the direct children). Since Common Table…
Tudor Ciotlos
  • 1,805
  • 4
  • 29
  • 47
6
votes
1 answer

Syntax of a functional method call as an FM parameter?

I have the following piece of code. REPORT ZZY. CLASS lcl_main DEFINITION FINAL CREATE PRIVATE. PUBLIC SECTION. CLASS-METHODS: convert_to_xstring IMPORTING i_param1 TYPE i i_param2 TYPE i RETURNING …
Jagger
  • 10,350
  • 9
  • 51
  • 93
6
votes
1 answer

Is there a bug in method SET_DATA_ROW of class CL_SALV_TREE?

I spotted some very strange behavior using hierarchical SALV (class CL_SALV_TREE). If I use the set_data_row method directly after creating the node instance then I receive the correct hierarchy. REPORT zzy. CLASS lcl_main DEFINITION FINAL CREATE…
Jagger
  • 10,350
  • 9
  • 51
  • 93
6
votes
2 answers

Object.defineProperty is not a function

I'm trying to execute JS code from ABAP and I'm getting the following error: Object.defineProperty is not a function. My code: Object.defineProperty(object, sProperty, vValue) I want to redefine the funcion to be supported, any advice?
ameni
  • 393
  • 2
  • 8
  • 17
6
votes
1 answer

Process of scanning, parsing and compiling ABAP sources?

This is a rather technical question about the compilation process of ABAP code. I know that there are ABAP parser and scanner classes that actually call C kernel functions to do the real work. Then there is code completion functionality with a…
Thorsten
  • 3,451
  • 3
  • 20
  • 25
6
votes
1 answer

DESCRIBE FIELD with an unassigned field symbol

Here is one for you. Why does the following piece of code not end with a short dump GETWA_NOT_ASSIGNED and instead return type C with length 2? FIELD-SYMBOLS: TYPE any. DESCRIBE FIELD TYPE DATA(l_type) LENGTH DATA(l_length) IN…
Jagger
  • 10,350
  • 9
  • 51
  • 93
6
votes
2 answers

Should I refresh internal tables when I'm done with them?

When I'm loading massive amounts of data into memory in the form of internal tables (hundreds of thousands or even millions), should I manually clean up entries by refreshing the internal tables as soon as I'm done with them? I assume that these…
Lilienthal
  • 4,327
  • 13
  • 52
  • 88
6
votes
3 answers

Extracting unique values from an internal table

What is the most efficient way to extract the unique values from a column or multiple columns of an internal table?
Lilienthal
  • 4,327
  • 13
  • 52
  • 88
6
votes
1 answer

Format time in ABAP, removing seconds

I'd like to format a time (SY-TIMLO) to the user defined format in SU01. For US users, this often involves AM/PM. The easiest way I've found is: lv_formatted_time = |{ lv_time TIME = USER }| Is there an easy way to remove the seconds without the…
Mikael G
  • 712
  • 5
  • 13
6
votes
3 answers

How to set (unix) permissions when creating a file in SAP ABAP?

you would think this would be obvious, but searching through documentation, SAP forums, Googling, etc., I've been spectacularly unsuccessful. I'm creating a file in ABAP on a solaris filesystem using the following code: OPEN DATASET p_file FOR…
wise
  • 103
  • 1
  • 1
  • 5