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

Join row with "previous row" in ABAP OpenSQL

Boiled down to the basic problem, I have two tables dberchz1 (e1) --------------------- belnr belzeile 1 1 1 2 1 4 1 5 1 7 1 22 dberchz2 (e2/e3) --------------------- belnr belzeile geraet 1 1 …
user462982
  • 1,635
  • 1
  • 16
  • 26
1
vote
1 answer

How to add a table data to transport request programmatically?

I have a task to add selected rows from alv grid to the transport request. At this moment I already have: Name of transport request Selected rows (I put them in a table because I don't know what the type they should be if I want to put them into…
letronas
  • 145
  • 1
  • 13
1
vote
1 answer

How to disable the Editable ALV Grid in case of an incorrect entry?

Whenever an invalid value is entered in an ALV Grid, how do I disable the other fields (grey out) in the grid and force the user to fix the incorrect field. I have tried adding protocol in DATA_CHANGED event. But protocol list only shows the error…
subham soni
  • 274
  • 1
  • 5
  • 17
1
vote
1 answer

Convert database query result to json/yaml/xml with ABAP

Is there a way to convert a database query result to json/yaml/xml with ABAP?
guettli
  • 25,042
  • 81
  • 346
  • 663
1
vote
1 answer

More performant rich text control than CL_GUI_BTFEDITOR?

I found a rich text editor which is quite easy to use in normal abap. CL_BTF* will show all the stuff, I mean. However, it seems to be a little bit buggy. 1) It behaves buggy with cr/lf's and < br >'s. When I receive the string, the editor ( it…
icbytes
  • 1,831
  • 1
  • 17
  • 27
1
vote
1 answer

How to connect a Webapplication to a Java-/ABAP-Application

I have a problem. I would like to connect my web application (frontend) with my application. Once the web application is to be written in UI5 (frontend) and connected to an ABAP application (backend). The frontend is used for the control and the…
bibi
  • 11
  • 1
1
vote
3 answers

Error while installing sap netweaver_as_abap_750_sp02_ase_dev_edition. in linux mint 64 bit

When installing sap netweaver (netweaver_as_abap_750_sp02_ase_dev_edition) in my linux mint 64 bit I got the following error : (An error occurred while processing option System Rename > Standard System > SAP System Rename( Last error reported by…
raJU
  • 11
  • 2
1
vote
1 answer

What is the purpose of events in ABAP?

Learning ABAP from a book, I got to the object/class events. I know events from other languages (as C#/WinForms) as connection between user action in GUI (e.g. button click) and some piece of code executed after the interaction. There is also…
jcjr
  • 1,503
  • 24
  • 40
1
vote
2 answers

Make a hotspot cell F4-enabled while insert. Possible?

My requirement is as follows: I show records in an alv grid (CL_GUI_ALV_GRID), where the user can add new ones. I have a keyfield, MATNR, which is disabled on existing records. This one does not really need to have a working F4 SH icon. It must…
icbytes
  • 1,831
  • 1
  • 17
  • 27
1
vote
1 answer

TEST-INJECTION and TEST-SEAM in ABAP code

I’m trying to use TEST-INJECTION and TEST-SEAM in my code. I have following code: CLASS lcl_undertest DEFINITION. PUBLIC SECTION. CLASS-METHODS mymethod RETURNING VALUE(r) TYPE string. ENDCLASS. CLASS lcl_undertest IMPLEMENTATION. METHOD…
jcjr
  • 1,503
  • 24
  • 40
1
vote
0 answers

Calling MM42, dirty assign of variables in SAPLCTMS for atnam and atwrts - Any experience?

In a custom program I call the retail material transaction (change, so MM42). The user could change attribute values ( meaning ATWRT ) which are placed on the screen. The debugger tells me, that there are a lot of variables, some seem to be the…
icbytes
  • 1,831
  • 1
  • 17
  • 27
1
vote
1 answer

Compound Subroutine Calling in ABAP?

Is it possible to call multiple instances of a subroutine that has both USING and CHANGING parameters? Like so: PERFORM FM_CHECK_INPUT: USING INPUT_A FIELD_B CHANGING MESSAGE_A, USING INPUT_B FIELD_B CHANGING MESSAGE_B, ... USING INPUT_E …
Noir Antares
  • 242
  • 1
  • 10
1
vote
1 answer

abap count similar row values

IF ls_th_sum_lab_ndt IS not INITIAL. ls_th_sum_lab_ndt-ndt_flag = 'X'. ls_th_sum_lab_ndt-zwc_cat = 'NDT'. if there are more than 2 zwc_cat that equal to NDT change the other one to MH APPEND ls_th_sum_lab_ndt TO…
PureAbap
  • 99
  • 3
  • 13
1
vote
1 answer

SEGW entity type without key

I am trying to create a OData service that returns user parameters found in the databasde usr05. Those can be accessed by the ABAP statement: GET PARAMETER ID 'XXX' FIELD YYY. This means, that basically do not need a key value. In SEGW it is…
Erch
  • 589
  • 5
  • 25
1
vote
1 answer

Dynamic element specification in CALL TRANSFORMATION

I am using call transformation to convert XML to ABAP structure. call transformation demo_id_upper_lower "id parameters mode = 'UP' source xml asxml_str result paymentrequest = abap_out. This works as expected and the data is mapped to ABAP…
The-Droidster
  • 635
  • 7
  • 13