Questions tagged [abap]
ABAP is the programming language of SAP softwares R/3, S/4HANA, CRM and many others.
2,970
questions
0
votes
0
answers
28
views
Using Select query how can we select specific number of records ,when after operations are done on it ,select next same number of records and opertate
So ,in abap i have a written a code to get all records into internal table using select query ,perform concatenation operations on it and update the record in db from internal table .
but to improve ...
-1
votes
0
answers
7
views
Is there any BAPI/FM available to create Promise to pay in Transaction UDM_SUPERVISOR?
I need to upload Promise to pay data using BAPI/FM from an excel file.
There is a data migration template which will include all the required fields for the creation of a Customer Promise To Pay in ...
0
votes
0
answers
16
views
Abap subquery Where Cond [duplicate]
in abap i've write a query like this
SELECT belnr, bukrs, gjahr
FROM bseg
WHERE ( belnr, bukrs ) IN (
SELECT belnr, bukrs
FROM @tabl as tab_data
)
INTO TABLE @data(...
-2
votes
0
answers
29
views
Error while generating document in SFP T-code ABAP related with Adobe Livecycle Designer [closed]
When ı run layout of the adobeform in sfp t-code in SAP ;
I get these errors.
Please can anyone help me ?
-1
votes
0
answers
15
views
How to display end of list (footer) without events in alv report? [closed]
How to create or display the end of list (footer) without events in alv report in sap abap.
-1
votes
1
answer
36
views
Convert ITAB to XSTRING and back
I need to save an itab as an xstring or something like this and save it in dbtab.
Later I need to gather this xstring from dbtab and convert it in the itab before with exactly the same input from ...
-1
votes
0
answers
18
views
Breakdown of amounts in COSB table in SAP PS
COSB table (CO Object: Total Variances/Results Analyses) is a standard table used in SAP PS module. Now, this table consists of the total amounts only. I would like to know the breakdown by line items ...
-2
votes
0
answers
24
views
Auto Refresh VA05 Layout
In our current SAP system, when executing the tCode VA05 List of Sales Orders, the Output of the query doesn't automatically update or can be updated. For this I always need to go back and execute the ...
1
vote
2
answers
62
views
What is the table for default report source code?
In SAP there is a table where you can write the "default report source code", so that every time you create a new report, the default/initial source code of said report will be whatever you ...
-1
votes
0
answers
14
views
BAPI_CUSTOMER_GETLIST - search Customer by Name, Address
I have BAPI_CUSTOMER_GETLIST, it only accepts a Customer Number as Input, I need to search customer by Name or Address.
0
votes
2
answers
50
views
Assigning Field Symbols to Internal Table
I'm trying upload Excel file to internal table in ABAP. I'm using function GUI_UPLOAD and then SCMS_BINARY_TO_XSTRING. At last I have field sybmbol <gt_data> with data from Excel file.
DATA(...
0
votes
2
answers
93
views
Not able to create ABAP structure to use /ui2/cl_json=>deserialize
My json file looks like:
{
"1489402": {
"Category": "Program error",
"CorrectionInstructionsObjectList": [{
"ObjectName&...
1
vote
1
answer
41
views
What is the best-practice to replace that TABLES statement in OOABAP?
In the following code:
TABLES: lqua.
CLASS TEST DEFINITION.
PRIVATE SECTION.
TYPES: BEGIN OF tt_data,
lgpla TYPE lqua-lgpla,
matnr TYPE lqua-matnr,
END OF tt_data.
...
-1
votes
0
answers
31
views
OpenSQL Inline Select [closed]
Im trying to achieve an inline select, but getting error;
SELECT A~ebeln
A~BUKRS (Select T~BUTXT from T001 as t where T~BUKRS = A~BUKRS) as plantName
FROM EKKO as A
0
votes
2
answers
45
views
ABAP : How to get value in loop by determine table field dynamically
In SAP there is a table T552A. There are several fields like TPR, TTP, FTK, VAR, KNF as per day of a month such as TPR01, TPR02, etc.
In a loop I would like to access the said fields by determining ...
0
votes
0
answers
29
views
Use calculated values in further calculations [closed]
In my OpenSQL statement, I need to calculate a field with the value of another calculated field:
SELECT string1,
SUM( num1 - num2 ) AS first,
first - dec1 AS second,
SUM( num1 - ...
0
votes
1
answer
31
views
Any workflow assigned to 531 and 261 movement types?
Follow-up question of BAPI_GOODSMVT_CREATE in parallel mode causes "plant data of the material XXX is locked" error.
As I wrote in above question - I'm currently improving program by using ...
1
vote
2
answers
73
views
Dynamic logical expression evaluating
I need to evaluate a dynamic logical expression and I know that in ABAP it is not possible.
I found the class cl_java_script and with this class I could achieve my requeriment. I've try something like ...
0
votes
1
answer
48
views
Is there an Object-Oriented way to use standard reporting events?
Is there an Object-Oriented way to create functionality for the standard reporting events like INITIALIZATION or AT SELECTION-SCREEN?
1
vote
1
answer
45
views
How to test flows involving STARTING NEW TASK?
I'm currently using the Data Access Object pattern with interfaces to replace the database access with in-memory data for unit tests. E.g. method find_product_by_id. the ZCL_XYZ_USER_MEM is used for ...
1
vote
2
answers
228
views
Make CL_SALV_TABLE column editable?
I am displaying an ALV using CL_SALV_TABLE=>FACTORY where I want the user to be able to select a number of lines which then will be processed further.
I did turn the column into a checkbox column ...
1
vote
2
answers
53
views
CDS View parameters in-line syntax form or not?
During a select from CDS with parameters, the into table does it always have to be in-line declaration??
MRP:
@AbapCatalog.sqlViewName: 'ZCDS_PARAM1'
@AbapCatalog.compiler.compareFilter: true
@...
0
votes
1
answer
33
views
Which connector(linked services) to use in ADF to connect and execute existing ABAP program
I would like to establish the connection and execute the existing SAP ABAP program using AZURE DATA FACTORY.
Could any one please help me any leads. Appreciate your effort. Thanks
0
votes
1
answer
62
views
Why does ABAP round a number down to the nearest integer when using the REDUCE operator?
In the code below, lv_sum_openamount should be 3.45 but the program rounds the number as 3.
I want lv_sum_openamount as 3.
How can I do that ?
DATA(lv_sum_openamount) = REDUCE dmbtr_cs( INIT sum = 0 ...
1
vote
1
answer
50
views
Select particular listbox value on start of Dynpro?
I have a custom dialog dynpro including an input field named DYN_MATNR as listbox for which I have included a list of particular materials as selection.
How can I set a specific material (of that list)...
0
votes
0
answers
25
views
incorrect borders in Smart Form Template
I don't have an upper frame and also ı have a 2 border in the right frame.
You can see more clear in the second screenshot.
I tried Select Pattern -> Displayed Framed Patterns but didn't work
1
vote
2
answers
149
views
Show output values aka conversion-exit values in CDS?
I've created a CDS view, which reads some data from 2 tables.
My problem is, that one of the columns has a conversion policy behind - so if I display the data with SE16n, it shows the "converted ...
2
votes
1
answer
102
views
add columns in a CDS view and fill it with a condition
I have been trying for several days, in a cds view, to convert a row of the acdoca table (here the amount of a debit/credit transaction, the hsl attribute in acdoca), into two columns debit and credit....
1
vote
1
answer
104
views
how to Filter on internal table using multiple fields
My requirement is to filter internal table using multiple fields.
CONSTANTS:lc_star TYPE c VALUE '*'.
DATA: lit_x_all TYPE STANDARD TABLE OF ztt WITH NON-UNIQUE KEY extsystem ccode ekorg werks ...
0
votes
0
answers
64
views
Exception cx_st_match_element when deserializing XML?
I'm having trouble getting a simple transformation for XML to work in ABAP. I keep getting the exception cx_st_match_element when I try to execute it on a test XML document inside of a report.
I have ...
0
votes
0
answers
102
views
BAPI_GOODSMVT_CREATE in parallel mode causes "plant data of the material XXX is locked" error
Currently, We're developing mass GI posting by parallelism, to reduce work time dramatically, because we have to post GI item about 300k+ at one day.
Problem
I know there is a restraint about ...
-1
votes
1
answer
32
views
abap - Field "ZCRM_MLS2" is unknown Error
I am getting a error of "Field "ZCRM_MLS2" is unknown." at Line 23. Do you guys have any idea? Thanks in advance.
REPORT zcrm_mls_program2.
DATA: lv_name_surname TYPE zcrm_dt_ml2,
...
0
votes
1
answer
87
views
INNER JOIN with 'OR' condition?
If have the following coding and the bold marked line is the problem, so it seems to be that's it not possible to use the "OR"-statement within a Inner Join select "ON":
PARAMETERS:...
1
vote
2
answers
129
views
BAPI_GOODSMVT_CREATE with multiple material numbers and same PP order?
As I know of, When you're using BAPI_GOODSMVT_CREATE at the same time(by loop or just coincidence), Using same material number puts you an error about locked object (Material XXXX is locked by USER ...
0
votes
2
answers
184
views
UPDATE only specific fields of database table from internal table
I need to update two fields called F1 and F2 within database table called ANLZ.
Table ANLA has a field called ACTIVE that states, whether the fields in ANLZ can be updated.
Key for connecting both ...
0
votes
0
answers
53
views
Restore deleted attachments after RSBCS_REORG
While we try to delete attachments from SOFFCONT1 by running RSBCS_REORG. system deleted all other attachments as well. Now, we would want to restore the deleted attachments back. could someone please ...
0
votes
1
answer
56
views
How to check if the field TFK is maintained in the table
I am trying to display an error message for certain conditions. The goal is that from table COST, for an object number (that contains TEST + cost center + activity type), gjahr, value type(WRTTP) and ...
1
vote
1
answer
114
views
Attach XSTRING file as GOS?
I have created a SICF Service for GOS.
Basically it takes a pdf on frontend, converts it to base64 or binary and send it to the backend.
Now on the backend I have that PDF as xstring and want to ...
-1
votes
2
answers
418
views
How to create a txt-file on the application server filled with an internal table?
I'm learning ABAP at the moment and got the task to build a function that creates a .txt file or a .csv file from an internal table and save it on the application server.
I know you can use, for ...
2
votes
0
answers
55
views
Mark method as not testable in ABAP
Can I mark methods as not testable for ABAP Unit tests so that the method is marked as fully tested in the ABAP Unit test coverage explorer?
0
votes
1
answer
138
views
Remove trailing hash'#' in tab delimited file-SAP ABAP
I am reading a file from app server. It is a tab delimited file , I am trying to remove trailing hash(#) , But I am unable to do so.
I am using split wa_string at cl_abap_char_utilities=>...
0
votes
2
answers
94
views
Custom table primary key changed
I have created a custom table as a data dictionary object in SE11. I have the following fields :
ID (KEY Field )
NAME (KEY Field )
DEP (KEY Field )
DESIGNATION
I have activated the table and also ...
0
votes
1
answer
62
views
What is reason why my second list for my ALV report not showing any info?
I am trying to create a classical list. Everything until At line-selection works. The problem that I have is with At line-selection. First, I execute the program and it shows me the parameter s_matnr, ...
0
votes
1
answer
222
views
Converting TZNTSTMPL long timestamp to TZNTSTMPS short timestamp?
In my CDS view, I'm required to Convert the Long timestamp (TZNTSTMPL) field to the Short timestamp(TZNTSTMPS).
This conversion will help in Filtering the data using date and time.
If we have Milli/...
0
votes
0
answers
21
views
JDBC connection for HANA with input parameters
I am trying to extract some tables with using RJDBC connection. However, in the tables, there are some must input variables that I need to give. I need to find a way that extract these input ...
0
votes
0
answers
52
views
Not condition dates also visible in output
My requirement is that I should not display the data on a specific date.
Given the select query below it should not display the dates which are present in not condition but in my output I could still ...
0
votes
2
answers
156
views
Filtering based on abap timestamp fails
I have an Odata Service where there is a field for ABAP Timestamp in Edm.Decimal format. Now when I try to filter the data between a given time frame, it is failing with error ( 400 ).
Example: I ...
0
votes
0
answers
82
views
Merge cells for empty values in PDF Form table?
I try to make pdf table like this:
I need:
if header1 and header2 in line is null - make only left border (or right for header2)
else make all border except bottom.
Why when header1 and header2 is ...
1
vote
1
answer
192
views
How to show all the fields of a maintenance view
I am trying to extend the maintenance view(sm30) of a table, so that all the fields of a table are shown without paging. So the current look is:
Now I need to show all the fields of the table without ...
1
vote
1
answer
112
views
Check if a file exists faster than OPEN DATASET
I'm searching for a way to check if a file exists before using the OPEN DATASET command to open it. The OPEN DATASET command takes up to 30 seconds to trigger an exception, which is too slow for my ...