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

Why IN UPDATE TASK module always does a rollback of DB?

While updating actual DB table (using SAP LUW), IN UPDATE TASK is always Rollback changes made in actual table. APPEND ls_emp TO lt_up_emp. call function 'ZFM_UPDATE_EMPLOYEE' in update task tables lt_update = lt_up_emp. COMMIT…
divScorp
  • 498
  • 1
  • 8
  • 17
1
vote
2 answers

REPORT/PROGRAM Statement missing, or program type is I(INCLUDE)

Below is my function module, when I check the below functional module it does not throw any error but when I'm activating it is giving me the following error, which is in image 3. Someone please help me am I going wrong. Thank you.
Yavvari Pradeep
  • 301
  • 5
  • 19
1
vote
2 answers

BAPI Function Rollback on asp.net web pages

I Have a C# web application that call multiple BAPI and stored procedure at one of the function in ASP.net Website. i need to rollback all the bapi executed on the function that called on the web if one of the method inside the function is…
mdsuffian
  • 33
  • 4
1
vote
1 answer

ABAP type pool: program with type code TYPP but with name longer than five characters

We are writing a tool in Java that parses and transforms ABAP code. We therefore have no intention to write new ABAP code but our tool has to handle all of ABAP, even obsolete statements. Furthermore, I'm not an ABAP expert. ABAP programs can use…
Ulrich Scholz
  • 2,039
  • 4
  • 30
  • 51
1
vote
1 answer

ABAP: pass data type to form

I want to pass my own datatype to a form - but it doesn´t work: TYPES: BEGIN OF my_type, v1 TYPE i, v2 TYPE i, END OF my_type. PERFORM calc using ...some parameters... . FORM calc using ...some parameters... . DATA values TYPE…
neox2811
  • 87
  • 5
1
vote
2 answers

In SAP scripts how do you define which data is sent to an element

I need to make some changes to an SAPScript. I have the program and form name Program: RBOSORDER01 Form: RBOSORDER02 I am looking to change some of the data shown in the form. I have debugged the program and I get see the call to write to the form,…
Malorrr
  • 11
  • 1
  • 6
1
vote
2 answers

Add code to ENHANCEMENT-SECTION .. SPOTS ... INCLUDE BOUND

I need to add some code in ENHANCEMENT-SECTION. It looks as follows: It is possible or not? Thank you very much.
Saros Begh
  • 35
  • 2
  • 9
1
vote
2 answers

AT NEW with substring access?

I have a solution that includes a LOOP which I would like to spare. So I wonder, whether you know a better way to do this. My goal is to loop through an internal, alphabetically sorted standard table. This table has two columns: a name and a table,…
Ela
  • 325
  • 1
  • 3
  • 13
1
vote
2 answers

SAP GATEWAY & UI5: How can reset the CSRF token?=

I need to reset the CSRF token in an OData model. Based on the UI5 documentation I am trying to do that with refreshSecurityToken(fnSuccess?, fnError?, bAsync?) function. (click here for reference) I wrote the following code: var oDataModel =…
MJBZA
  • 4,796
  • 8
  • 48
  • 97
1
vote
2 answers

How to return value to user from a Search Help Exit

I have a Search Help with many fields to be displayed to the user in order to apply values. I want to get 3 fields APOFASI, SKOPOS, KATDANL from the user. In the CALLCONTROL-STEP = SELECT in the exit FM, I want to get these values in variables and…
ekekakos
  • 563
  • 3
  • 20
  • 39
1
vote
1 answer

Selection screen parameter with a dynamic matchcode

I have a serie of entry parameters where there a match code, I need that this field (matchcode) will be dependent of a text parameter. For example, something like that : SELECTION-SCREEN BEGIN OF BLOCK block02 WITH FRAME TITLE text-002. …
Juan Morales
  • 33
  • 1
  • 4
1
vote
1 answer

Execute IP30(RISTRA20) from report

I am facing problem in executing IP30 (maintenance plant scheduling) tcode from report background. I have tried using submit and return, in this case, it is executing but not returning to the caller program, it remains on the screen and after…
rhsabbir
  • 247
  • 1
  • 6
  • 19
1
vote
3 answers

Wrong results of SELECT with OR condition

It seems that as result the program is getting all sales orders (from VBAK table) only with AUART = 'YI01', and indeed I am getting 1.699.698 sales orders. So it is ignoring the other parameters in select VTWEG = 'Z1', SPART = 'Z1', KUNNR =…
hammerman
  • 23
  • 1
  • 5
1
vote
1 answer

Use dynamic values in CDS access control

How can I compare a cds element to a return value of an ABAP function? As an example: An employee is assigned to a company and the company has orders from customers. These orders are displayed in a table and employees should only see orders for the…
Stefan Blamberg
  • 816
  • 9
  • 24
1
vote
1 answer

Allow free text in ALV Grid cell with dropdown

I have set a dropdown list for an ALV Grid cell. The dropdow works fine, but it allows to enter values from the dropdown value list only. Is it possible to allow free text entry in the cell? My ABAP code is: Creating a value list: DATA: lt_dropdown…
Skalozub
  • 539
  • 7
  • 26