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

BAPI_TRANSACTION_COMMIT with WAIT = 'X' within a BADi

What would be the effect of using the 'BAPI_TRANSACTION_COMMIT' with 'WAIT' parameter when equals to 'X' inside a BADi? Should I expect that SAP will commit the data when LUW commits? I'm aware that inside 'BAPI_TRANSACTION_COMMIT' it happens…
Nelson Miranda
  • 5,484
  • 5
  • 33
  • 54
6
votes
4 answers

Execute a program via SUBMIT, with GUI suppression

I want to expose the functionality of an SAP program (transaction) as a BAPI. I need to call a report and supply range filters such that the GUI is bypassed. Does anyone have a working example of the SUBMIT ... WITH ... ABAP construct, or other…
user26652
  • 116
  • 1
  • 2
  • 4
6
votes
1 answer

Sublime Text 3 ABAP Syntax Highlighting / Color scheme

I am looking for a Color Scheme in Sublime Text 3 for ABAP to highlight the syntax. I have found this so far, but it does not work with version 3. It is supposed to be used with version 2. EDIT: This is how the Theme looks:
Niklas
  • 23,674
  • 33
  • 131
  • 170
6
votes
1 answer

SAP - Code Coverage Analyzer Results

I'm trying to extract the results from my Code Coverage analysis from my own abap program from the database in SAP. At the following website Coverage Analyzer: Technology I find this information: Initially, RSCVR_COLLECT transfers data to the…
6
votes
3 answers

How to check status of a running program

I assume that I have an ABAP program that takes long time on running. So I want to check what the program is doing at the moment, which line of code is executing or what tables the program is writing to at that exact moment. I think there is a…
Mtok
  • 1,600
  • 11
  • 36
  • 62
6
votes
4 answers

How to learn ”the way of ABAP"?

I never worked with SAP solutions. I have a reasonable understanding of business, but no accounting background. How to learn ABAP on examples that will simultaneously enlighten me with the "way of SAP"? It doesn't have to be a deep knowledge, just…
ilya n.
  • 18,398
  • 15
  • 71
  • 89
6
votes
2 answers

How to select multiple ranges for a parameter WITHOUT first filling all other required parameters?

I'd want to be able to have multiple range selections for "Sales order no." Problem is: when i press the button marked with green, i get the error "Fill in all required entry fields". I put my main processing block at the START-OF-SELECTION…
vlad-ardelean
  • 7,480
  • 15
  • 80
  • 124
5
votes
3 answers

How to extract data from a SAP ABAP system?

I need to extract data from a SAP ABAP system in a format that can then be loaded into an Oracle database (xlsx,csv,dmp.. etc) Once the data is extracted I'll use Pentaho to upload it into the Oracle database. Is there a way to extract the data from…
Joshua1729
  • 775
  • 4
  • 10
  • 19
5
votes
3 answers

How to write text to a local file

I'm trying to write text to a local file (i.e. on my laptop) using the following code: data: fname(60), text type string value 'la la la'. fname = 'myfile.txt'. OPEN DATASET fname FOR OUTPUT IN TEXT MODE encoding default. TRANSFER text TO…
B. Bowles
  • 764
  • 4
  • 9
  • 21
5
votes
2 answers

Disable a parameter input at selection screen

I have screen filter at selection screen like this SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME. PARAMETERS s_werks like resb-werks DEFAULT 'X' . SELECT-OPTIONS: s_aufnr FOR in_param-aufnr, s_matnr FOR in_param-matnr, …
yukou
  • 305
  • 3
  • 6
  • 17
5
votes
2 answers

Generate random GUID

I want to generate a random UUID like in Java with UUID.randomUUID(). I came up with the function GUID_GENERATE and used it like this DO 5 TIMES. CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_16 = ev_guid_16 …
user212926
5
votes
4 answers

Group digits in currency and remove leading zeroes

I want to know how to do digit grouping when I have value for money for example 3000000 ( 3million) i want to print 3.000.000 on the screen (there is a dot every three character from the last character) Remove zeroes in front of value when I…
yukou
  • 305
  • 3
  • 6
  • 17
5
votes
3 answers

Pass object instances to RFC function modules

With ABAP construction STARTING NEW TASK I can start a separate task running independently of the current, e.g. for batch execution. I would like to hand over an Object instance RFC functions don't accept these kind of parameters. Is there somebody…
Hartmut Pfarr
  • 5,534
  • 5
  • 36
  • 42
5
votes
1 answer

LOOP AT... GROUP BY with dynamic group key

I am trying to loop by grouping data with dynamic group parameter. We can use dynamic queries on WHERE conditions on loops but I do not know whether it is possible to use a dynamic string in group condition. Here is the sample where user decides by…
ozkancinar
  • 53
  • 1
  • 5
5
votes
3 answers

Setting unique constraint for a table field in ABAP

How to add constraint for a field in a table that should only contain unique values in ABAP?
Sathya
  • 69
  • 1
  • 2