Questions tagged [abap]
ABAP is the programming language of SAP softwares R/3, S/4HANA, CRM and many others.
abap
3,415
questions
0
votes
1
answer
50
views
How to update the background color of a cell in an ALV grid?
I have an editable ALV Grid managed via CL_GUI_ALV_GRID. I have defined a cell background color in the color table of each line and that color is displaying correctly. Now I would like to update the ...
1
vote
2
answers
86
views
Most efficient way to SELECT on a cluster table?
In my program, I need to perform a select on the CDPOS cluster table. However, this process is very inefficient and, depending on the amount of data, it can take several minutes or simply hit a ...
0
votes
0
answers
31
views
ABAP: Generate class with SEO_CLASS_CREATE_COMPLETE with pretty printer
I'm using the Function Module SEO_CLASS_CREATE_COMPLETE to generate classes, but the problem is, that it doesn't do Pretty-print on the source code.
Q:
Is there a way to make the FM do Pretty-print?
...
1
vote
1
answer
61
views
Callback subroutine of REUSE_ALV_GRID_DISPLAY is not triggered?
I watched a video on YouTube that showed how to call a transaction by clicking on a specific field in the ALV view, but when replicating it in my code I was unable to implement this function.
When I ...
0
votes
0
answers
41
views
Action that deletes an Item of a List Page changes to object page
I have implemented the following function for an action in a Behavior Definition Handler class:
METHODS nohit FOR MODIFY
IMPORTING keys FOR ACTION hitabbd~nohit RESULT result.
...
METHOD nohit.
...
-1
votes
1
answer
60
views
How to get beginning/start date and month of the year in ABAP CDS view using $session.system_date
The requirement is to fetch all the material master data based on the date and the date must be beginning of the year i.e., 01.01.2024. We have declared $session.system_date as a current date input ...
0
votes
0
answers
43
views
How to pass parameter from parameterized parent view to parameterized child view?
I have two CDS-Views with the same Parameters. They have a composition - to parent association constellation.
The parent view will be used to build a Fiori List Report Page (via Elements). The ...
-1
votes
1
answer
36
views
Highlight the last table entry in color
I'm trying to display the last entry in the result table in color. Everything I've tried so far didn't work with ABAP 7.00. Here is the code for displaying the SALV table.
DATA: lo_salv TYPE REF TO ...
0
votes
0
answers
24
views
I am trying to transpile code using the Abaplint's transpiler-CLI package. I am unable to identify and extract the transpiled code after running it
Everytime, despite running the code with a target directory, the code in image below creates a new output directory with a huge number of files and it becomes impossible to find the transpiled code ...
1
vote
1
answer
57
views
How to download attachment using SO_DOCUMENT_READ_API1?
I need to download the attachment from Purchase Order using SSIS/C#.
Using the object SRGBTBREL
WHERE RELTYPE = 'ATTA'
AND CATID_A = 'BO'
AND LOGSYS_A = ''
I got a list of PO with attachmentkey (...
-1
votes
1
answer
58
views
Can we use expressions such as GE or LE in FILTER statement in ABAP 7.5
I've my code written as below
DATA LT_OP TYPE STANDARD TABLE OF TY_ABC
WITH EMPTY KEY
WITH NON-UNIQUE SORTED KEY AB
COMPONENTS AB BC CD.
lt_OP = ...
2
votes
1
answer
61
views
Tracking progress of tRFC units in BGRFC mode in SAP ABAP
I've a scenario as follows:
Background:
I've a Parent class (let's say ZCL_PARENT) and have 3 child classes (ZCL_CHILD1, ZCL_CHILD2, ZCL_CHILD3).
All the 3 child classes process different set of ...
0
votes
0
answers
42
views
Inspection lot : Update UD just for point in code
I want to simulate a change of UD (only for UD = A) in the Inspection lot only for an inspection point - as can be done in QA32
I did not find a suitable BAPI that I could use.
Would you happen to ...
0
votes
0
answers
28
views
Is there a way to create a dependency between two search fields in odatav2 preview using RAP?
I'm quite new to RAP development and would like some help.
The requirement is to create a dependency between an Amount field and its Currency field. If the user inputs the amount field and tries to ...
0
votes
0
answers
22
views
How to decode VARILRAW to itab
I have an older version of ABAP and would benefit greatly for my tasks from a program that retrieves variant values from canceled tasks with a specific name, etc. I did a trace of transaction SM37 and ...