abap Questions

5

Solved

When I'm defining a parameter, like: PARAMETER pa_date TYPE d DEFAULT sy-datum. How do I change "pa_date" to something else when the app is launched? I want to change it to something like "choo...
Ieper asked 24/1, 2011 at 14:51

5

Solved

I get a internal table from a Function Module call that returns ~ 100 rows. About 40% of the rows are not relevant to me because I only need the entries with PAR1 = "XYZ". On SQL tables (...
Gum asked 5/8, 2013 at 14:54

5

ABAP 7.40 added the line_exists( ... ) predicate function to analyse internal tables. But is there any way I can check for the presence of a line where a particular column is initial or different f...
Exhilarate asked 27/9, 2018 at 14:55

2

Solved

We have a custom web application that gets used via normal desktop browser, including IE, Chrome, and Firefox. When troubleshooting javascript type issues with this application, we can use the F12 ...
Ikey asked 9/2, 2018 at 16:31

1

Solved

The following is a question about the performance of the ABAP TRY/CATCH construct. In particular, it is not about throwing or catching exceptions. Is there a performance cost when entering TRY/CATC...
Regazzi asked 13/2, 2023 at 12:17

3

Solved

I have an ABAP internal table. Structured, with several columns (e.g. 25). Names and types are irrelevant. The table can get pretty large (e.g. 5,000 records). | A | B | ... | | --- | --- | --- | ...
Haddington asked 15/3, 2018 at 16:11

1

Here is one for you. Although such a language construction does not make much sense I would like to know why the nested LOOP AT SCREEN cause infinite loop (recursion?). Let us take the following s...
Hartmann asked 25/6, 2019 at 6:38

6

Solved

Sometimes ABAP drives me crazy with really simple tasks such as incrementing an integer within a loop... Here's my try: METHOD test. DATA lv_id TYPE integer. lv_id = 1. LOOP AT x ASSIGNING ...
Tiossem asked 2/6, 2010 at 13:1

2

Solved

Are there any existing methods or function modules that flip boolean values efficiently? I've come up with a simple implementation should I have to define my own utility method, but I'm wondering ...
Nitza asked 24/4, 2014 at 10:21

3

Solved

An official SAP presentation discussing new ABAP programming features in NetWeaver 7.4 (CD261) makes a big deal about table expressions, replacing the old syntax to read from an internal table: RE...
Vernon asked 31/10, 2014 at 12:55

3

How can I use color value variable? For example, this works for me: write:/10 'test' COLOR COL_HEADING. I thoght that colours are integers so I tried: data: gv_mycolor type I. gv_mycolor = 5. w...
Tweezers asked 22/4, 2013 at 12:23

3

Solved

I have the name of a table DATA lv_tablename TYPE tabname VALUE 'xxxxx', and a generic FIELD-SYMBOLS: <lt_table> TYPE ANY TABLE. which contains entries selected from that corresponding table....
Pejsach asked 18/9, 2013 at 9:55

4

Solved

For testing purposes I need my ABAP program to wait for few seconds. How can this be done?
Admissive asked 28/12, 2008 at 20:51

6

Solved

I would like to implement ABAP Unit tests in my ABAP programs, but my first report is a classic ABAP report, no OO classes at all. Is this even possible? Or ABAP Unit intended solely on OO classes?...
Odericus asked 5/10, 2012 at 20:8

4

Solved

I've got to admit that I'm not an expert on SAP R/3 programming, so this is more of a basic question on that matter. Is there any way to get a list of accessible RFC modules and/or tables on a SAP ...
Stonemason asked 14/9, 2010 at 16:8

6

Solved

Our product currently spans a large number of technologies, including Java, PL/SQL, VB.Net and ABAP. We have a fairly mature source control and build system set up for all of the languages except A...
Synergism asked 1/12, 2008 at 9:45

4

Solved

Is it possible to determine via code if the current system is R/3 or S/4? I need it because I have a method that returns the software component of Human Resources related data, but this component s...
Tatro asked 25/8, 2020 at 16:50

1

Solved

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 ...
Redoubtable asked 17/7, 2020 at 14:50

3

Solved

I have a select similar to the one below: SELECT DISTINCT SCARR~CARRID, SCARR~CARRNAME, MIN( SPFLI~DISTANCE ) AS MIN_DISTANCE FROM SCARR JOIN SPFLI ON SPFLI~CARRid = SCARR~CARRid GROUP BY SCA...
Whippoorwill asked 3/4, 2020 at 9:47

3

Solved

My java/groovy program receives table names and table fields from the user input, it queries the tables in SAP and returns its contents. The user input may concern the tables CDPOS and CDHDR. Afte...
Coadjutress asked 12/11, 2010 at 14:21

7

Solved

Can Python be used to query a SAP database?
Kensell asked 23/9, 2009 at 15:55

1

I'm reading data from a SAP Core Data Service (CDS view, SAP R/3, ABAP 7.50) using a WHERE clause on its primary (and only) key column. There is a massive performance decrease when using FOR ALL EN...
Fleam asked 12/6, 2019 at 7:5

5

Solved

Is there another way to concatenate in ABAP instead of using the CONCATENATE keyword? An example using CONCATENATE: DATA: foo TYPE string, bar TYPE string, foobar TYPE string. foo = 'foo'. ...
Hygroscope asked 17/9, 2013 at 21:34

1

Solved

I am using asynchronous RFC calls for doing some parallel work in SAP. Here you can see my pseudo code. * class variable data: gv_counter type i . .... method start_tasks . do 10 times . cal...
Mckinleymckinney asked 4/5, 2019 at 9:6

8

Are there general ABAP-specific tips related to performance of big SELECT queries? In particular, is it possible to close once and for all the question of FOR ALL ENTRIES IN vs JOIN?
Collectivism asked 28/12, 2009 at 0:21

© 2022 - 2025 — McMap. All rights reserved.