3,466 questions
-2
votes
1
answer
78
views
What means the key in the declaration of a STANDARD internal table?
I see in many existing ABAP programs that standard internal tables are declared without key fields, for instance:
TYPES type_itab TYPE STANDARD TABLE OF sflight WITH DEFAULT KEY.
DATA itab_0 TYPE ...
0
votes
1
answer
128
views
CDS-based table type?
Can I create table type from CDS view? This is what I see when I try to put CDS as a line type for TT despite this CDS exists and I see it in SDDLAR. I tried also to create table type based on ...
1
vote
1
answer
117
views
How to hide a SALV table?
I'm trying to bind several SALV tables to the same container to let the user switch between the displayed SALV table. Only one SALV table should be visible at a time. I've tried doing this by binding ...
0
votes
1
answer
149
views
SAPUI5 ODataModel update (PUT) fails with “HTTP method not allowed”, works in SEGW client
I have an OData service generated in SEGW (SAP Gateway).
I want to update a single record from SAPUI5 using oDataModel.update.
My UI5 code:
const owner = this.getOwnerComponent();
const oDomModel =...
0
votes
0
answers
115
views
Limit input characters for a field in a Fiori Elements grid table
I am working on a SAP Fiori Elements application using ABAP CDS views and want to limit the number of characters that can be entered in a particular field that is part of a grid table.
In the frontend,...
0
votes
0
answers
47
views
How to hide x-axis values with function module STAT_GRAPH?
I need to hide all the values in x-axis because they are worthless for the customer and don't want to watch them anymore.
I am talking about this:
How you can see, in x-axis I squared the values I ...
0
votes
2
answers
125
views
How to switch from one SALV to another with the back button?
Let me have SALV1 and SALV2. Both of them display completely different tables, custom buttons etc.
SALV1 is created with cl_gui_container=>screen0 and SALV2 with cl_gui_container=>screen1.
Now I ...
0
votes
0
answers
411
views
ABAP RAP managed: confirmation Pop up for actions
We have created a managed app as ListReport template using SAP Web IDE.
Submitwf is defined on the consumption view and on the interface view.
on Meta Data Extension, Submitwf type is #FOR_ACTION and ...
0
votes
0
answers
117
views
Splitting Spool by pages and download in ABAP
My customer has the request, that a spool with for example 10 Pages need to be downloaded by separated pages.
Let´s say, that the Spool has 10 pages and at every two pages I need to split the Spool ...
0
votes
0
answers
58
views
lost formatting in file read and overwritten by abap2xlsx
I'm currently facing a problem with lost formatting on every worksheets except the last one in a xlsx file.
My current use-case requires me to read an xlsx file on the application server and append a ...
-1
votes
1
answer
81
views
google-api for geolocation not the same as about google maps
While using the Geocoding API, I noticed that there are differences in determining the country, which do not exist in the Google Maps web interface.
Example:
Input address: city code 300000 + CN
...
0
votes
1
answer
204
views
How to handle dynamic internal table field names in ABAP? [duplicate]
I'm working on a generic report where I need to read values dynamically from different fields in an internal table based on user selection.
How can I retrieve a field's value dynamically when the ...
0
votes
1
answer
190
views
is_numeric function in ABAP
I'm currently trying to find a Standard-FM or Class or inbuilt-Function, that can perform a "simple" numeric check.
Currently i just do IF val CO '0123456789.,+-'. But thats not really nice.
...
0
votes
0
answers
164
views
Eclipse ABAP ADT - New Cloud Project - No option for 'SAP BTP ABAP Environment'
I've installed latest Eclipse and ABAP ADT. I did the pre-reqs specified here
https://tools.hana.ondemand.com/#abap
However when I go to create an ABAP Cloud project I don't see an option to choose '...
0
votes
2
answers
270
views
How to make a query case-insensitive?
I have the below CDS view. I need to do 1 more thing that the business has requested.
Column Name1 has value 'STARBUCKS' in the db table and when user tries to search with 'Starbucks' it does not ...
0
votes
0
answers
96
views
Root entity as a child entity
Is it possible to somehow have a child entity the same as root entity? If the root entity is Task it can have other tasks as children and those children also can have other tasks. Is it possible in ...
0
votes
1
answer
258
views
"SELECT" is not defined as a table, projection view or database view in the ABAP dictionary
I get the following error in the following sentence in SAP ABAP SQL: "SELECT" is not defined in the ABAP dictionary as a table, projection view, or database view."
select *
from (
...
0
votes
0
answers
272
views
How to achieve EXISTS with the ABAP CDS?
I would like to get all sales orders where the material number is ABCD. I would do this with an EXISTS in OpenSQL:
SELECT * FROM VBAK
INTO TABLE @DATA(lt_target)
WHERE EXISTS ( SELECT vbeln ...
0
votes
0
answers
84
views
Can I group fields into sections for Mass Edit standard functionality in OData V4 RAP
I have a question in regard to the standard Mass Edit functionality available for ODATA V4 RAP. The standard currently does not seem to support the grouping of fields into particular sections; with ...
0
votes
1
answer
77
views
Eclipse Crashes on Startup with JavaFX Module Path in eclipse.ini
I was able to use Eclipse on macOS without issues three days ago, but now it crashes immediately after the initial loading screen. The splash screen appears briefly, but then Eclipse closes without ...
0
votes
1
answer
177
views
SAP ABAP Subroutine Pools that are dynamically created and end in ======FT
We are researching older programs and other objects in our SAP ECC6 system and have encountered many programs that end in ======FT (e.g. ZTEST=======FT).
It appears that the subroutines in these ...
0
votes
0
answers
517
views
Add a value help to a field from an extension to a standard gateway service
I'm trying to add a value help to an extended field of the standard report Monitor Purchase Order Items
I've added the field gsber to the report by extending CDS view C_PurchaseOrderItemMoni and the ...
0
votes
0
answers
78
views
Eclipse ADT (ABAP Development Tools) skips breakpoints (is it a MacOS related issue?)
I am starting off on learning ABAP and require to make small code snippets and run them, often with Breakpoints. In the learning program at https://learning.sap.com/learning-journeys/acquire-core-abap-...
0
votes
0
answers
89
views
SAP HANA performance degradation with increasing background ABAP jobs (CPU and memory not saturated)
We are running SAP HANA (version 81) on IBM POWER9.
I have a simple ABAP program that runs as a background job. It receives random MATNR keys and performs SELECTs using these keys. There can be more ...
0
votes
0
answers
198
views
How to display a Word-Document using the Document Viewer in ABAP
I have a requirement where different documents are saved as a xstring on a database table. These documents should now be displayed. For this I use the SAP Document Viewer. I got it to work with PDFs, ...
1
vote
0
answers
67
views
Eclipse- Windows11 - coloring- text editor font color
I have a strange issue after automatic win11 update. All my selection texts in the dark theme turned black. This in combination with dark background makes things impossible to read / work with
Visual ...
0
votes
1
answer
231
views
How to concatenate output from READ_TEXT in ABAP
I have a task to replace the second column, which data is stored in STXH and STHL tables (currently 40 characters long) with a new column that displays longer text. The new column should be generated ...
1
vote
2
answers
377
views
SORT Issue in SAP ABAP
Even though I am sorting the internal table LT_DATA by the FKDAT field, the POSNR field is still being sorted in an unexpected order. For example, in the original data of the internal table, POSNR ...
0
votes
0
answers
105
views
How to set BLDAT on a different value than BUDAT with BAPI_PRODORDCONF_CREATE_TT?
Im using BAPI_PRODORDCONF_CREATE_TT to create a Prod-Order. I set postg_date in the Structure for the Timetickets to our budat, but that also changes everytime the bldat in the mkpf.
How to avoid that?...
0
votes
0
answers
338
views
RAP Action update Entity even on fail
I have an action in an ABAP RAP application that creates an accounting document. However, when an error occurs and I set a message in the 'reported' field, the entity's status cannot be updated with ...
1
vote
1
answer
101
views
How to get the context of a parent oDataService in an enhancement implementation?
We have a standard Fiori Application that is calling a pretty complex standard oDataService.
We have an enhancement implementation (ZCL_MYENHANCEMENT) that is called as part of the backend call from ...
1
vote
1
answer
261
views
ABAP newline in ABAP ADT Console
How can I add a new line on a string in ABAP on Eclipse?
This is my code below and I just want to put a newline after the first line so my code will not be redundant:
OUT->write( |Firstname: { ...
1
vote
2
answers
613
views
"SELECT ... WHERE @variable LIKE column" syntax error
I have table column ZZPATTN which stores patterns like 01-001\*, 01-002\*, etc. and I have the variable IM_NAME which contains values like 01-001-ABC, 01-002-DEF, etc.
In SELECT statement WHERE clause,...
2
votes
1
answer
294
views
How to store msg into string coming from fm Appl_log_read_db?
I used the function module APPL_LOG_READ_DB to read logs. I am getting data of messages like msgno, id, ty, v1, v2, v3, v4. I want one single message using these field in an itab or string. The goal ...
0
votes
2
answers
190
views
Set Conversion Exit for dropdown values on INT4 field in editable SALV
Currently I set the dropdowns of an INT4 id field as follows:
TYPES: BEGIN OF dropdown_column_ty,
columnname_handle TYPE lvc_fname,
columnname TYPE lvc_fname,
...
0
votes
1
answer
90
views
Tabstrip not showing in selection screen
I want to set two tabs.
When I run the program, it only shows the address tab and the tab strip control to switch to the other tab doesn't show up. Why?
I defined the two subscreens as follows:
...
0
votes
0
answers
410
views
How to set value for @Consumption.filter.defaultValue?
I've got code like @Consumption.filter: { default value: '2025' }. Instead of this constant value, I want to have a dynamic value approach like:
last day of the current month
current year
= !blank
...
0
votes
1
answer
146
views
Is there an ABAP function or method to resolve include statements?
I am looking for an ABAP function module - or a method - which replaces all INCLUDE statements in the source code of a given main program (like the source code of ZCL_TEST======================CP for ...
0
votes
2
answers
255
views
Clear Structure field in FOR loop in ABAP
Is there any way we can clear for loop structure fields in sap abap and return it back to new internal table.
LOOP AT lt_a INTO DATA(ls_a).
CLEAR: ls_a-f1, ls_a-f2.
APPEND ls_a TO lt_n.
...
1
vote
1
answer
2k
views
Why buttons added to a GUI Status are not visible or grayed out?
I want to add buttons to a standard screen.
I have added the buttons to the GUI status, but they are still not visible.
What is the reason and how to make them visible?
For instance, I have changed ...
1
vote
1
answer
266
views
How to know the used GUI Status of the displayed screen?
There is a Dynpro screen with a GUI Status containing buttons that I want to extend with custom buttons.
How to know the names of the program and the GUI Status used?
How to find the ABAP place where ...
0
votes
0
answers
188
views
When running a planning sequence with an AMDP function inside, a dump occurs
I wrote a test class and tried to run it from RSPLAN.
I created a planning function in RSPLF1 with these settings:
"without blocks"
"process empty records"
I enter the planning ...
0
votes
2
answers
522
views
How to retrieve data from a popup window in ALV display report after user input in SAP ABAP?
I'm working on an SAP ABAP program where I have an ALV report with two custom buttons. When a user clicks one of the buttons, a popup window appears with two fields where the user needs to enter data.
...
0
votes
0
answers
208
views
How to add custom buttons to MB52?
I created a custom transaction code ZMB52 by copying the standard SAP transaction code MB52. In the program, I'm trying to add two custom push buttons to the ALV toolbar, but the buttons are not ...
0
votes
1
answer
327
views
How to include a Standard Selection (TABLES PERNR.) in a Tab in SAP
I am working on an SAP Dynpro screen with a tabbed layout, and I want to include the standard selection TABLES PERNR. in one of the tabs. Specifically, my goal is to have:
Tab 1: Contains the ...
1
vote
1
answer
617
views
Multiple for groups / let reduce aggregations with ABAP 7.57
I have a raw dataset that looks like this:
that I need to convert to looking like that for today, which is 18.12.2024:
It is in essentialy pivoting.
So far I managed to create the dynamic table ...
0
votes
1
answer
619
views
How can I read files from a directory?
So I tried EPS2_GET_DIRECTORY_LISTING and EPS_GET_DIRECTORY_LISTING.
But the issue is, that inside the function, there is a check to verify whether the user has the necessary permssions for transports....
0
votes
0
answers
114
views
How to apply custom button and function code in FB60?
We are implementing a custom function to attach DMS document for FI tcodes F-22, F-29, F-47, FB60, etc.
Currently, we added a custom button to FB60 and assigned function code to it and we created an ...
1
vote
1
answer
1k
views
How do I submit a background job without the spool printing?
Here is an outline of my code that submits a background job:
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = v_jobname
sdlstrtdt = sy-datum
sdlstrttm = sy-...
0
votes
2
answers
436
views
How can i define a parameter of type integer (or similar) on the selection-screen with a fixed number of digits?
I need a single digit positive number on the Selection-Screen.
Things I have tried so far:
This has no effect on visible length:
parameters pnum TYPE i VISIBLE LENGTH 1.
Using type p LENGTH 1 works:
...