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 pass single-column table to AMDP method?

I need to pass a table with a single column to an AMDP method which throws the error, the other parameters go fine: TYPES: BEGIN OF s_so_i, parent_key TYPE snwd_so_i-parent_key, product_guid TYPE snwd_pd-node_key, …
András
  • 1,326
  • 4
  • 16
  • 26
1
vote
1 answer

Different number of parameters in FORM and PERFORM

I want to avoid copy+paste in my function and want to create a subroutine. But this fails. Here is the function (I removed unimportant parts): FUNCTION /foo/bar . *"---------------------------------------------------------------------- *" …
guettli
  • 25,042
  • 81
  • 346
  • 663
1
vote
1 answer

numeric value out of range Sum=> value out of range CDS view

I have created CDS view. some detail as below. @AbapCatalog.sqlViewName: 'ZUA_HOURS' @AbapCatalog.compiler.compareFilter: true @AccessControl.authorizationCheck: #CHECK @ClientDependent: true @EndUserText.label: 'Employee hours reported' define view…
Umar Abdullah
  • 1,282
  • 1
  • 19
  • 37
1
vote
2 answers

How to handle the case when report does not return any data?

I have ABAP code which works fine, if the report has data. But if there is no data found, then I get: GETWA_NOT_ASSIGNED The error happens in the line marked with "**************" " Let know the model" cl_salv_bs_runtime_info=>set( EXPORTING …
guettli
  • 25,042
  • 81
  • 346
  • 663
1
vote
2 answers

Casting column inside CASE is not supported

I want to make a new field in my CDS-View, with a CASE-condition as below case when usage = 0 then '1' when usage < '10' or usage_6m > '0' then '2' when usage < '250' or usage_6m > '10' then '3' else '0' end as usage The problem is that…
Umar Abdullah
  • 1,282
  • 1
  • 19
  • 37
1
vote
1 answer

SAP Function Module to SQL Server stored procedure

I am trying to convert a SAP ETL process (implemented by BODS) to SQL Server (SSIS). The process is for delta changes (every 15 minutes) and the object is called “0FI_AP_4” in SAP. I want to implement an SSIS package (SQL Server stored procedure)…
1
vote
2 answers

Updating ME21n fields WEORA/BSTAE via ME_PROCESS_PO_CUST BAdi?

I am trying to modify the values of WEORA, BSTAE in ME21n tcode upon saving. I've written the code in ME_PROCESS_PO_CUST BADI, method CHECK: DATA: lt_data TYPE PURCHASE_ORDER_ITEMS, lo_header TYPE REF TO CL_PO_HEADER_HANDLE_MM, lt_item…
Yuri
  • 11
  • 2
  • 5
1
vote
2 answers

Type mismatch when calling cl_salv_bs_runtime_info=>get_data_ref()

I found a solution here which I try to apply. cl_salv_bs_runtime_info=>set( EXPORTING display = abap_false metadata = abap_false data = abap_true ). SUBMIT ('RM07MLBS') AND RETURN. DATA: lt_outtab TYPE STANDARD TABLE OF…
guettli
  • 25,042
  • 81
  • 346
  • 663
1
vote
1 answer

how to leave program with f12 after write

Once I leave the selection screen in ABAP e.g. by write: How to rewrite cancel button behavior? In my shortened code below, each time I click execute and then cancel, I'm back at the selection screen :( Instead of this behavior I want to leave the…
7gegenTheben
  • 81
  • 1
  • 10
1
vote
2 answers

Join list of strings with a comma

I am learning ABAP. In the past I used python. Python: ', '.join(['one', 'two', 'three']) Result: 'one, two, three' How can I join a list of strings with , and create a string containing one, two, three? System release is 740.
guettli
  • 25,042
  • 81
  • 346
  • 663
1
vote
3 answers

Include a text message in ASSERT?

I have an ABAP line like this: assert ( cond = 'x' ). The caller of this RFC function gets a meaningless message that some assertion failed and I would like to supply an additional explanatory text. This way I can easily find the matching line if…
guettli
  • 25,042
  • 81
  • 346
  • 663
1
vote
5 answers

Can I use FOR ALL ENTRIES with GROUP BY?

Currently the code looks something like this: LOOP AT lt_orders ASSIGNING . SELECT COUNT(*) AS cnt FROM order_items INTO -cnt WHERE order_id = -order_id. ENDLOOP. It is the slowest part of the…
András
  • 1,326
  • 4
  • 16
  • 26
1
vote
1 answer

Substring of a column in a join condition of database view

I need to create an SAP Database view for EKPO table with some other tables. And need to get EBELN column's first three chars like Substring(EBELN,0,3)
tarzanbappa
  • 4,930
  • 22
  • 75
  • 117
1
vote
1 answer

How to use a range table with LOOP

I know how to use range tables with SELECTs. However, is it possible to use it in a LOOP's WHERE condition? If not, is there a workaround?
András
  • 1,326
  • 4
  • 16
  • 26
1
vote
4 answers

Caching in ABAP

In my scenario, I connect my ABAP system to a non ABAP based system using HTTP destination. I want to implement caching in ABAP such that the performance of the application can be used and I don't have to hit the backend every time. I guess in ABAP…
saurav
  • 5,388
  • 10
  • 56
  • 101