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
2 answers

How to execute an OpenSQL query stored in variable?

DATA: QUERY TYPE STRING, Q2 TYPE STRING, MAINQUERY TYPE STRING. QUERY = 'SELECT MARA~MATNR MARA~MBRSH MARA~MTART MARA~ERSDA MARA~PACKCODE FROM MARA INTO TABLE ITAB'. Q2 = 'WHERE MARA~MBRSH = IDNAME.'. CONCATENATE QUERY Q2 INTO…
Venu Gopal
  • 45
  • 2
  • 5
1
vote
2 answers

Looping over an internal table filled with table names and searching each of those table in a select statement

I am trying to search 8 tables and check if a certain value is present. I searched around a lot an I assume I have to work with field-symbols and dynamic statements. This is done in a report (executable program). So far I have my internal table,…
Erik
  • 361
  • 5
  • 16
1
vote
2 answers

Can some records be skipped during parallel processing?

I am using parallel processing. CALL FUNCTION 'ZABC' STARTING NEW TASK taskname DESTINATION IN GROUP srv_grp PERFORMING come_back ON END OF TASK EXPORTING ... EXCEPTIONS ... . I am calling this FM inside a loop. sometimes, my records are…
user3757558
  • 55
  • 4
  • 12
1
vote
3 answers

Getting empty result with SELECT ... FOR ALL ENTRIES

I have the following problem. I need to write a script that reads a specific file, from the presentation layer, containing one numerical string per line, the contents of this file need to be entered into an internal table, and then the internal…
onlyf
  • 767
  • 3
  • 19
  • 39
1
vote
2 answers

How to avoid "CALL SCREEN(not modal) in modal dialog box not allowed"?

I am creating a SAP Program in which there's more that 200 parameters PARAMETERS: P_DATE type D default Sy-DATUM. PARAMETERS: P_DATE2 type D default Sy-DATUM . . . PARAMETERS: P_DATE2 type D default Sy-DATUM When I compile it, I got the following…
Joie Tamayo
  • 501
  • 3
  • 8
  • 21
1
vote
1 answer

Retain access to account during transition from employee to consultant

With one of my clients, we are having the following problem: HR services are provided by a third party, who use SAP HR. SAP HR is the master system, which feeds information into a lot of other systems, such as Active Directory. A nightly job…
razumny
  • 117
  • 1
  • 8
1
vote
3 answers

How to filter unpaired lines from table?

I created the following table in SAP: How can I print only these lines, where the employee has signed in (KOMMEN), but not signed out (GEHEN)? In this example I want print only the last line.
doomsweb
  • 51
  • 8
1
vote
1 answer

How to debug an asynchronous RFC - Starting new task...Performing...on end of task?

I am a beginner in SAP ABAP. I am debugging an asynchronous RFC (parallel processing). I have put a break-point in the calling portion of the RFC, an external break-point inside the RFC and an external break point in the form which is called at the…
user3757558
  • 55
  • 4
  • 12
1
vote
2 answers

How to put the values of a column of an internal table into a variant?

Can somebody help me figure out if there is a way for the query below: I have an internal table with one column with 69 records. I want all these 69 records to be populated into a variant and get saved so that with this variant and the values saved…
1
vote
3 answers

Standard library in ABAP

Is there something similar to a standard library for modern ABAP (maybe even OO-Abap)? For example a curated list of objects that address some of the most common programming tasks like high-level data structures (not just plain internal…
jules
  • 1,897
  • 2
  • 16
  • 19
1
vote
1 answer

SAP Gateway get create ID as response

I'm using OData services to send data to an SAP system. When I'm doing a oModel.create({data}) Is there any way to let the server give me as response the ID or field I just created in the database? Any suggestion is welcome.
Kevine
  • 110
  • 1
  • 1
  • 15
1
vote
3 answers

HTTPS request via IF_HTTP_CLIENT

I'm facing some problems getting authenticated with a web application via HTTPS, Is it possible to send an HTTPS (POST/GET) via the interface if_http_client? If yes, what should I add to make it compatible with HTTPS? Which method is the best in…
1
vote
2 answers

Is it a good practice to sort an internal table which is already sorted?

Is it a good practice to sort an internal table (which is already sorted based on three fields) based on one field for the purpose of read table using binary search? for example: SORT itab by field1 field2 field3. READ TABLE itab WITH KEY field1…
1
vote
1 answer

How to determine whether backend database is HANA DB?

There is requirement that if backend database is HANA DB the system trigger a update operation. otherwise the db is non-HANA db the system raises an error. How to determine whether backend database is HANA DB in ABAP codes? Thanks & Regards
L.Alexander
  • 23
  • 1
  • 4
1
vote
1 answer

How to configure OCI catalog for ME51N?

We have a requirement to connect to an external catalog from ME51N tcode (Purchase Requisition). This integration must be done entirely from ECC side and shouldn't be linked with SRM. I have tried configuring the OCI on two different places. Let me…
Beto
  • 73
  • 1
  • 2
  • 8
1 2 3
99
100