3,444
questions
0
votes
0
answers
8
views
ABAP select with primary key in HANA applying condition to whole primary key
Is there a way to implement a full primary key select? I will explain it in more detail in the following lines.
I have to process all records of a table in sequence, using cursors, if the process ends ...
-1
votes
0
answers
13
views
[ABAP]How do I pass or retrieve the values of (SAPMF05A)RF05A into a local structure?
I'm trying to retrieve the value of NEWKO field from (SAPMF05A)RF05A but I'm not sure how to do it. Any tips? Tried to do it in a local structure but was not successful
Goal is to retrieve the values ...
1
vote
0
answers
28
views
How can you modify only specific columns in a global table?
I'm selecting four fields in an inner-join select into an internal structure that I've created. Then, I want to update those specific fields in one of the tables under a different primary key. Here's ...
-1
votes
0
answers
36
views
How to pass data to a specific background request?
I need to run several background tasks from a main program. All the tasks consist of the same program. I want to pass a different value to each of those called programs. I could run the tasks ...
-3
votes
0
answers
30
views
Renaming after deployment [closed]
I am working on a Fiori app in the Web IDE, which is connected to the source of the app in SAP Logon 770.
The issue I’m encountering is that when I create a new file in the Web IDE and deploy the app, ...
1
vote
2
answers
64
views
How to retrieve the position of an internal table line from a reference to that line?
Is there a way to retrieve the relative position of a line in an internal table from a reference to that line ? The table line is not unique.
I need to keep track of the positions of the lines of a ...
0
votes
0
answers
33
views
Retrieve SAP Security Audit logs using ABAP function
I need to retrieve SAP Security Audit logs using ABAP function.
I am able to retrieve it using, code: /osm20, on SAP GUI.
But same thing is not coming from ABAP function. The tables which I have found ...
0
votes
1
answer
37
views
PNP Logical Database Selection Screen
everybody. I'm making a request to the HCM department and using some Standard Logicaldatabase, and I am facing a problem that when the BUKRS filter is not filled, I fill it with a specific BUKRS, but ...
0
votes
2
answers
38
views
Run ABAP Unit Tests Programmatically
How can we run ABAP Unit tests programmatically from say, a standard ABAP report?
We want the tests to run on a schedule and to be able to display the results pass/fail in a normal ABAP ALV list.
Note:...
0
votes
1
answer
66
views
How to upload a BMP (or any other format) with transparent Background to SE78?
We need to upload images with transparent background to SE78 to use it in ABAP later to include them in automatically generated E-Mails. Currently they all have a background.
The problem is, currently ...
0
votes
3
answers
59
views
ADT (ABAP) - Eclipse Project Explorer does not show the "Linked" object when it is open
I'm following SAP material where they are asking for you to find a class. According to instructions, if the "Linked with Editor" button is held, the Project Manager should open all the tree ...
0
votes
1
answer
34
views
How to check the value of the global container in SAP workflow?
I am looking for a way to check how the values in the container change during the runtime in debug mode.
The containers that are bound to a task I can set a breakpoint to see how they change. I want ...
0
votes
0
answers
37
views
EXPORT INTO raising syntax errors in AMDP procedure
I am trying to upload the data from SAP tables to GCS Storage bucket and followed the documentation provided in EXPORT INTO Statement (Data Import Export), however when I try to implement the same in ...
0
votes
1
answer
43
views
Params not showing in class constructor in ABAP Eclipse
I created a local class with a constructor that get two parameters as inputs:
CLASS lcl_connection DEFINITION.
PUBLIC SECTION.
DATA carrier_id TYPE str.
DATA connection_id TYPE str.
...
1
vote
2
answers
53
views
Could we remove the sorting of attributes while using ST?
I have to generate a XML based on structures, I use Simple Transformation to generate it.
It seems that while performing the serialization there is an automatic sorting of the attributes of the XML.
...
0
votes
0
answers
52
views
How to display subtotals without a grand total in SAP SALV?
I'm working with the CL_SALV_TABLE class in SAP to create an ALV report. My goal is to display subtotals for specific columns, but I do not want a grand total at the end of the report.
I've managed to ...
0
votes
1
answer
52
views
Can SAP GUI scripts be executed from an ABAP program?
I created a SAP GUI script here and can play it back without any problems:
Is there a way to play it back from my own ABAP program?
*&--------------------------------------------------------------...
0
votes
0
answers
54
views
ALV Grid: how to process a click on standard toolbar buttons: Insert row and Delete row?
Is there a way to react to a click on the standard ALV Grid tool bar buttons: insert row, delete row, copy row etc. ? It doesn't seem like the backend even reacts to it, is it only handled locally ?
I ...
0
votes
2
answers
47
views
ALV Grid doesn't check for cross-structure foreign keys
I have an editable ALV Grid. The line type consists of two include types, both defined in the DDIC. A field from one structure has a foreign key in the other.
When I edit that field in the ALV, the ...
0
votes
0
answers
44
views
SAP ABAP infoset union query
I have 2 tables in SAP and I want to perform a union between both of them. In essence, I want to have the rows of the second query under the first one. It's worth noting that they have different ...
0
votes
1
answer
57
views
ABAP insert internal table with dynamic name
In ABAP we can insert value into internal table with:
insert wa into table my_table.
Question is, if the name of my_table can only be determined at runtime, how to tackle it? Something like ...
0
votes
1
answer
81
views
How to add external email notification to SAP workflow WS20000077?
I need to add email notification to WS20000077 workflow in SAP. All approvers should get an email notification when they have an internal approval request in the SAP inbox.
In the container there are ...
0
votes
1
answer
95
views
ALV Grid: how to manually trigger DATA_CHANGED after a call to CHANGE_DATA_FROM_INSIDE()?
I'm using an editable ALV Grid. I would like it to behave like this:
A custom button fills some cells in the ALV. Data validation shouldn't be triggered yet.
The user checks the filled data and ...
0
votes
2
answers
85
views
Get the full Directory Path of Application Server using Value Help in Selection Screen
Here's the requirement, I want to get the Directory path and populate that in the Selection Screen Parameter of my report. But I don't see any standard Function Module to get the path, as it always ...
0
votes
0
answers
57
views
How to synchronize data from SAP to an external database?
Our goal: Synchronize a delta of SAP tables to an external SQL Server database without complex ABAP reports. We are using an SAP ECC 6.0 EHP8 system.
In our current landscape, we are running RFC-...
0
votes
2
answers
76
views
How to update a single database table in a separate LUW in ABAP?
I have a requirement in an existing production development to log errors. It needs to be done in multiple applications.
I created a table and called it in a method. I am calling a Function Module as ...
0
votes
2
answers
165
views
BACK Button ends Transaction, but should go back to selection screen
I want to use an ALV grid with a selection screen but without adding additional dynpros and PAI PBO Modules, like shown in this Example.
Everything works fine, but I can't go back from ALV to ...
0
votes
1
answer
63
views
How to configure the Original language of an SAP workflow?
I am trying to edit a standard workflow but it is not editable. Whenever I click on the edit button it is giving a message that "Object maintenance in this system only possible in original ...
0
votes
2
answers
132
views
ABAP Program: Append the content of two binary files into one file
In my ABAP program, I have the content of two binary files of the same type as XSTRING.
Binary files such as: docx, xlsx, pptx, pdf, etc.
I need to append these two files content to another file of ...
0
votes
2
answers
114
views
How to select Sales Tab in Transaction BP from ABAP
I want to start the transaction BP with the "Sales"(Vertrieb) View, but my code below just opens the default starting Page:
Do I need a subheader-ID? If yes, how do I find it? If no, what ...
0
votes
2
answers
208
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
3
answers
325
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
60
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
202
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
50
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
2
answers
260
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
149
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
44
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
31
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
118
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
85
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
143
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
57
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
2
answers
44
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
37
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 ...
0
votes
4
answers
638
views
How to deal with unconverted value in itab from database SAP ABAP?
I'm a little bit confused about getting converted data in ABAP because I'm still new to the ABAP world.
I have a table with data as shown here:
As you can see in the screenshot, there are two columns ...
0
votes
0
answers
47
views
Dynamically fill the spreadsheet underlying the charts of a MS Word document from ABAP
I have a MS Word template containing in some part of it an empty Chart (e.g. line chart). My requirement is to find a way to fill the data of the spreadsheet underlying the chart (see picture below) ...
0
votes
0
answers
48
views
SUM aggregates on multi level autoreference table in ABAP CDS
I have an auto-referenced table with "storage location".
Location
Higher Level Location
A
A1
A
AA1
A1
AAA1
AA1
AAAA1
AAA1
B
In another table, I have some stock in AAA1.
I have ...
0
votes
0
answers
97
views
Fetching data from RPSCO table to get actual spend in the project. SAP PS
I have created this logic to get actual spent amount of projects in SAP PS.
But I need help on this I am unable to fetch data correctly. I need to know how to give logic to get control area currency ...
2
votes
0
answers
108
views
temp index create error when running HANA subquery?
I wrote an AMDP method, and when I run the method, I get the following DUMP.
Error while executing a database procedure
During execution of database procedure
ZCL_MM_REPORTE_INV_AMDP=\>...