3,457 questions
0
votes
1
answer
30
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
32
views
ABAP Virtual element field displays but is duplicated for every work item
I am new to abap and currently experimenting with an abap class that determines the current approver for work items. I am using virtual elements to determine this field which is displayed in my cds ...
0
votes
0
answers
34
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
73
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
65
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:
...
0
votes
0
answers
71
views
ABAP CDS View - ON and Where Clause Using Substring
I create SAP ABAP CDS view using Z table join with table AUFK and COBRB. I want filter field GABJA based on year of KEYDT and field GABPE based on month of KEYDT. But, when I put code c.gabja = ...
0
votes
1
answer
53
views
How to enable parallel execution of ABAP in PyRFC?
I am migrating a project to PyRFC, using a server configuration.
My program is registering a function that has to be called. The incoming data is splitted across 3 DTP, hence my function will be ...
0
votes
1
answer
178
views
How to simulate LEFT and RIGHT functions in ABAP CDS 7.40?
The Eclipse (version June 2023 release) is showing a syntax error on the below SAP CDS view, I am unable to save/activate it in our SAP ECC system, but exactly the same code is saving/activating fine ...
0
votes
0
answers
65
views
SAP S4/HANA Condition Base KONV-KAWRT is wrongly set
The value in the condition base KONV-KAWRT is divided by 10!
These happened for all conditions even for manually set ones.
And for all pricing procedures and all document types as well.
Really no clue ...
1
vote
0
answers
69
views
How to display simple text on an embedded Word document within SAP GUI using OLE without opening an external Word instance?
I'm working on an SAP ABAP program that embeds a Microsoft Word document into the SAP GUI container using i_oi_document_proxy from SAP's Office Integration. I need to display a simple text, retrieved ...
0
votes
2
answers
124
views
Manage layouts in ALV grid does not work in splitter container
I try to use an ALV grid inside a splitter container.
Currently I am facing a bug when trying to manage variants. The "manage variants" screen is empty.
I think this issue occurs because the ...
0
votes
0
answers
86
views
Is there a way to set a 'watchpoint' on an ABAP variable without debugging?
We have an issue where there are runtime errors in our production system almost daily and I can see that this is due to a variable being empty when it should be set. We've tried very hard but cannot ...
0
votes
1
answer
75
views
sap.ui.core.util.File.save file corrupted?
I want to download in frontend an excel file that is coming from backend as OData.
The file is encoded using FM 'SCMS_BASE64_ENCODE_STR' and now I want to decode it and download it using SAPUI5.
I am ...
0
votes
1
answer
68
views
SAP Odata ABAP standard stack calls
I tried to debug the ABAP stack of an OData service, and I see there is this call which is taking more time which is called as "Load MPC class" same with all the DPC and DPC_EXT classes, ...
0
votes
1
answer
92
views
Ref-Node Error when running Simple Transformation
I have a problem with using a simple transformation I can't figure out.
Running the code gives me the following error message (exception class CX_ST_REF_ACCESS) at the transformation line <tt:loop ...
0
votes
0
answers
42
views
Enhancement when a transfer order is cancelled in LT15
Is there any enhancement to delete an entry from a custom table as soon as a transfer order is cancelled in LT15 when the save button is pressed?
0
votes
2
answers
135
views
ABAP SELECT case and Common Table Expressions
I need to construct a statement that fills column value depending on existance in another table. I am guessing combination of CTE (7.51 abapwith ) and select case would do the job, but I cannot write ...
0
votes
0
answers
54
views
How to remove extra tabs from Name field in abap from kna1 table
I'm stuck in a requirement where I generated an ABAP report in which there is a selection screen which accepts kunnr as input from kna1 table and, based on that, I'm fetching details of kna1 table ...
0
votes
0
answers
48
views
How to link XFPLA and XVBAP in MV45AFZZ during sales order creation?
In include MV45AFZZ, form USEREXIT_SAVE_DOCUMENT_PREPARE, during sales order creation, is there a way to link data from XFPLA to XVBAP ?
I need to know which item a particular billing plan is tied to.
...
0
votes
1
answer
291
views
Error During Installing SAP NetWeaver 7.52
I want to install "SAP NetWeaver AS ABAP Developer Edition 7.52 SP04" on openSUSE 15.6, and this error appears:
Abort execution because of Step returns modlib.jslib.caughtException
ASE ...
0
votes
1
answer
109
views
How to share a Control Framework demo such a way it can be run by a simple copy/paste?
I've got a very simple ABAP program demonstrating how to display a Text Editor field (cl_gui_textedit), which I want to share via Internet, email, forum, blog post or whatever.
I'd like the people to ...
0
votes
1
answer
239
views
How to display a SALV in a splitting container bound to cl_gui_container=>default_screen
Sorry for the extremely simple question, by I can't seem to display a SALV table in a splitting container bound to cl_gui_container=>default_screen.
Minimal code:
DATA: lo_salv_table type ref to ...
1
vote
1
answer
82
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
vote
1
answer
78
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
vote
2
answers
264
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
90
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
98
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
60
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
284
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
263
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
164
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
89
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
73
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
61
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
253
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
104
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
154
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
80
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
98
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
128
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
266
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
712
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
451
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
97
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
293
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
477
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
126
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
417
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
320
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
542
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 ...