3,466 questions
-2
votes
1
answer
81
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 ...
1
vote
1
answer
120
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
0
answers
119
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
2
answers
128
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
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 ...
-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
199
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
2
answers
284
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
1
answer
262
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
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
179
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
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
199
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, ...
0
votes
1
answer
239
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 ...
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?...
1
vote
1
answer
104
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
2
answers
626
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,...
0
votes
2
answers
191
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
0
answers
418
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
2
answers
257
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
268
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
2
answers
531
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
1
answer
329
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 ...
0
votes
1
answer
629
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....
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-...