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

Count occurrences of role across users?

The table I use stores different system names, corresponding users and their role. My target is to use the SELECT and COUNT commands together to get some output like this: SysName | Role1 | Role2 | Role3 ---------------------------------- sys1 |…
user7715132
  • 46
  • 2
  • 8
1
vote
2 answers

Insert data to itab in Debugger

How can I insert rows in a table that is empty,through debug just to see the result of my code?
User2333
  • 51
  • 2
  • 12
1
vote
2 answers

SAP FM EPS2_GET_DIRECTORY_LISTING file mask

The FM EPS2_GET_DIRECTORY_LISTING has a parameter file_mask which I guess that it should act as a pattern. I need to read from the AS the files containing a word but the file_mask is working faultly. For example if I pass "*ZIP" it returns a file…
Codrin Strîmbei
  • 125
  • 7
  • 22
1
vote
1 answer

Dynamic language output for structure/internal table

I have a selection screen with select-options where I want to enter several information about materials, for example: material number etc. The user is also able to enter a language which the output should be in. If the user chooses english the…
1
vote
1 answer

Adding output types to multiple sales orders, purchase orders, delivery or invoice

Can anyone tell me how to use RV_MESSAGE_INSERT and RV_MESSAGE_UPDATE function modules to insert output types to multiple orders, deliveries or quotations at a single time? How can this be achieved? If I am using select-options as an input to get…
CoderW
  • 123
  • 3
  • 14
1
vote
1 answer

FM to simulate Delivery without Reference Sales Order

Is there other known FM that can be used to simulate deliveries aside from FM SD_SCD_SIMULATE_DELIVERIES? This FM SD_SCD_SIMULATE_DELIVERIES needs SALES_ORDER as mandatory importing parameter and I don't have SALES_ORDER. Please advise. Thanks! -CZa
Czarinaaaaa29
  • 311
  • 2
  • 8
  • 23
1
vote
1 answer

Obligatory field check ignored if TABBED BLOCK used

I have the following program. REPORT zz_tab_strip_obligatory. SELECTION-SCREEN BEGIN OF TABBED BLOCK tab FOR 20 LINES. SELECTION-SCREEN TAB (54) tab1 USER-COMMAND tab1 DEFAULT SCREEN 100. SELECTION-SCREEN TAB (54) tab2 USER-COMMAND tab2 DEFAULT…
Jagger
  • 10,350
  • 9
  • 51
  • 93
1
vote
1 answer

Update itab from another itab?

My program simply put the locks on users if the 'LOCK' checkbox is selected. Everything works and the users records are updated in the USR02. When this change occurs I want that it also be reflected in IT_USR02, i.e. DB table USR02 and itab it_usr02…
oceanlab1
  • 21
  • 1
  • 9
1
vote
1 answer

Right way of implementing a cursor in ABAP using OpenSQL

I use a SELECT statement to fill an internal table with a large amount of records. I am new to ABAP and OpenSQL. I know how cursors work and why I need them in this case, but I can't seem to find any good examples that show a correct implementation…
Erik
  • 361
  • 5
  • 16
1
vote
1 answer

How to select unique DB records in SAP

I have a table with 3 fields and 10 records. I want to make a SELECT on the 1st field with a WHERE and get the unique values. So if the select return 4 values of the field1 lets say AA, AA, AB, AC, I want to get AA, AB & AC. How I can do it? Thanks…
ekekakos
  • 563
  • 3
  • 20
  • 39
1
vote
1 answer

UOM not appearing on the second page of form

I have a 2-page Adobe form. In the footer section of master page I have the UOM for totals. When running the form UOM appears in the first page (footer section) but not in the second page. All other data except the UOM are successfully displayed,…
Czarinaaaaa29
  • 311
  • 2
  • 8
  • 23
1
vote
3 answers

How to get the max date per month using SQL

Something went wrong and I realise that I do not get what I want. I have the following lines in a table: 0000527746 1000 10.06.2017 20170718100757.5010080 0000527746 1000 10.06.2017 20170718100757.5039300 0000527746 1000 11.06.2017 …
ekekakos
  • 563
  • 3
  • 20
  • 39
1
vote
1 answer

How to add field via Enhancement in SM20 (SAPMSM20)

I have a requirement to display the tcode description along with tcode field(column) in the output ALV grid of the report SM20. The report already contain the tcode field (column) , so just want to add an additional column in the output to show the…
Owais
  • 21
  • 3
1
vote
1 answer

ABAP JSON Writer using incorrect Date and Time Output?

Valid JSON data types do not include dates. So why is SAP adding '-' ? data: lo_writer type ref to cl_sxml_string_writer, lo_xmldoc type ref to if_ixml_document, lv_xml type string, l_xstring type xstring, …
phil soady
  • 11,043
  • 5
  • 50
  • 95
1
vote
1 answer

Crash "Field symbol has not yet been assigned" when calling REUSE_ALV_GRID_DISPLAY

While displaying an ALV I get a crash report when executing the program. To create an ALV I have followed a few tutorials and stuff and at the moment it looks like this: TYPE-POOLS: slis. *build field catalog DATA: it_fieldcat TYPE…
Erik
  • 361
  • 5
  • 16
1 2 3
99
100