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
1
vote
1 answer

How should ABAP code be formatted when pretty printer is not enough?

"Pretty Printer" does its job Pretty bad in some cases. I wonder how should ABAP code be formatted. Especially long select statements like; SELECT SINGLE * INTO CORRESPONDING FIELDS OF ls_doc FROM ztable INNER JOIN bkpf ON ztable~bukrs =…
Mtok
  • 1,600
  • 11
  • 36
  • 62
1
vote
4 answers

Dynamic custom toolbar

I try to dynamically build a toolbar depending on given criterias thanks to "toolbar" event in class cl_gui_alv_grid. The problem is that the toolbar is getting my custom button but as soon as my criteria does not match anymore and that I'd like to…
flowx1710
  • 177
  • 3
  • 16
1
vote
1 answer

Update BO in multiple table using CDS view and BOPF

I am trying to update data in multiple table using BOPF-CDS View. following are the cds annotation to update in one table. Can you guys tell me what should i change in this code to update data in multi table. @ObjectModel:{ modelCategory:…
Singh
  • 33
  • 6
1
vote
1 answer

How to count number of records of a field in internal table in select statment?

I took a internal table of type ty_marc. in this internal table i took 2 fields matnr and werks_d. I want to count number of materials manufactured in the plant (marc-werks) based on the entry given by user. I wrote the code as... if so_matnr is not…
user649305
  • 11
  • 1
  • 1
  • 2
1
vote
2 answers

OpenSQL with comparison between columns

Can I compare columns of a table in OpenSQL? Currently the code looks like this: SELECT SINGLE menge wemng ebeln ebelp INTO (eket-menge, eket-wemng, eket-ebeln, eket-ebelp) FROM eket WHERE ebeln =…
András
  • 1,326
  • 4
  • 16
  • 26
1
vote
1 answer

Invisible methods: a public method is unknown, private or protected

I have made a class with 2 static methods (really basic stuff) to use in a program. The program that used it was not finished, and has not touched for a while (2 months maybe). I edited a method during that time and one day when I came back to…
Zero
  • 1,562
  • 1
  • 13
  • 29
1
vote
3 answers

Create a structure from a dynamically assigned

In a method I have a reference to a table that was declared like this: DATA: tabname TYPE tabname, dref TYPE REF TO data, FIELD-SYMBOLS: TYPE ANY TABLE. CREATE DATA dref TYPE TABLE OF (tabname). ASSIGN dref->* TO . SELECT *…
kdobrev
  • 270
  • 1
  • 3
  • 11
1
vote
1 answer

BAPI for getting material and order BOM?

Is there a BAPI for getting material and order BOM? Function modules won't help as those can't be called remotely.
1
vote
1 answer

How to create OData based off RFC with multiple tables in the output?

I am working on a large project at work that requires me to create OData's for a large variety of Remote Function Calls. I was able to work out how to model and create OData's for simple RFCs; however, I am struggling with more complex RFCs that use…
1
vote
1 answer

Why is the layer-aware debugging feature not stopping when entering function group include in filtered object set?

i have specified the following object set in Debugger Layer config: The function module is called: And yet the program stops at my next breakpoint I set in this function module to document the layer debugging isn't stopping: Stop in Line 213,…
Christian
  • 534
  • 4
  • 18
1
vote
1 answer

Get calling transaction name in ABAP program

I have two transactions calling the same program/report. I would like to branch behavior of the program based on t-code used to run in it. How do I get the name of the original transaction in ABAP code? Or, do I need to use different approach?
jcjr
  • 1,503
  • 24
  • 40
1
vote
2 answers

Limit rows by first two dates within column. How?

Is it possible to query thats only first and second date of the customer? I tried doing the UP TO 2 ROWS but it only limits the table only to 2 rows. SELECT knvv~kunnr vbak~vbeln vbak~erdat FROM vbak INNER JOIN knvv ON vbak~kunnr = knvv~kunnr. The…
gwapo
  • 178
  • 2
  • 4
  • 28
1
vote
1 answer

How to create BOPF Change Documents?

I have created a custom Business Object using Transaction BOBX. I would like to implement Change documents for this BO to keep record of all the transactional data changes made to this BO. These Change Documents should contain all the relevant…
1
vote
2 answers

Allowed values for ALV_EXTRACT_MODE parameter with CL_SALV_EXPORT_DB_STORAGE class?

Where can I see the allowed value for ALV_EXTRACT_MODE of class CL_SALV_EXPORT_DB_STORAGE? Maybe I am blind, but I could not find it with se80 and looking at the class. Please be patient, I am new to ABAP.
guettli
  • 25,042
  • 81
  • 346
  • 663
1
vote
3 answers

SAP SALV always show long text in column header

I'm using a SALV to display an internal table. Therefore I optimize the columns and set the column text. When the SALV displays the column header is always showing the short text because the value in the column is only a boole_d ('X'). I tried…
Dyrdek
  • 411
  • 4
  • 12
  • 33