ABAP is the programming language of the SAP R/3 system.

learn more… | top users | synonyms

0
votes
1answer
22 views

Casting from a Packed(8) type to a TMSTMP (DEC15) type in a Unicode system (and back)

Background: I have several tables that are connected for maintenance in a view cluster (SE54). Each of these tables have the standard Created/Changed By/On fields. For created data updating the ...
1
vote
2answers
44 views

How to enhance a standard Transaction, to add a Parameter ID to one of the field in one screen?

Transaction MB1A That is the field I am interested in. When I analyze the field, it has no Parameter ID However I'd like to be able to call this transaction and for that field to be ...
3
votes
1answer
28 views

Writing without clearing the entire screen

I want to write something after a user command in report programming. (when he pushes a button in pf-status). But I dont want the screen to be cleared. It's like I want to append text in the end of a ...
-7
votes
1answer
47 views

How do I display an internal table as ALV? [closed]

I would like to display internal table IT_FINAL (below) in an alv grid: **** DATA Declaration TABLES: mara. TYPES: BEGIN OF ty_mara, matnr TYPE matnr, ersda TYPE ersda, ...
-4
votes
1answer
21 views

Double Record on itab [closed]

I have problem, I have 1 itab like this Do.No. Material Amount 10001 AAA 25000 10001 AAA 25000 10002 AAA 25000 My quest is How I can ...
3
votes
4answers
74 views

Function module to export local table to excel

I am working on a program in Business Warehouse that allows you to map out all of your process chains by following the hierarchy of parent to sub-chains by using the rspcchain table. As of right now I ...
4
votes
3answers
57 views

How to check status of a running program

I assume that I have an ABAP program that takes long time on running. So I want to check what the program is doing at the moment, which line of code is executing or what tables the program is writing ...
1
vote
2answers
121 views

Multiple lines in same excel cell using OLE

I have some SAP OLE code that takes an internal table and pastes it into excel. However one field requires two lines within the same cell. I've tried using CL_ABAP_CHAR_UTILITIES-NEWLINE and ...
1
vote
2answers
54 views

Looking for Non-Printable characters inside internal table ABAP

I have an internal table this is written to file and then pulled into the BW as a datasource. Occasionally a non printable character makes it into the file output and breaks the import process into ...
0
votes
1answer
50 views

Passing data via OLE to existing Excel file - ABAP

I'm trying to export several tables to an Excel file using OLE. Right now, I'm developing the hole file (merging cells, borders, shades, places, etc..). But I already have an empty file. Is it ...
2
votes
2answers
55 views

When to use the Y-Namespace

Is there a generally accepted convention among ABAP developers when to use the Y-Namespace and when to use the Z-Namespace for customer repository objects?
1
vote
1answer
23 views

When are controller methods called in WD4A?

Can someone explain to me when methods are called in WD4A applications? Particularly methods that are defined in the application controller (and not the view (controllers)). I'm looking at some sample ...
-3
votes
0answers
40 views

How can i use primary index, secondary index, view in abap program [closed]

I created views , primary and secondary indexex in ddic . but can anybody please show me a sample program to use views , primary and secondary index in abap program ?
1
vote
1answer
56 views

ABAP ALV grid: sorting by inverted date

My friends, I faced some interesting problem: There was a necessity to output TCURR table (exchange rates) into ALV grid. All went fine but when user tried to sort table by "valid from" date (GDATU ...
0
votes
1answer
63 views

to transfer data from module pool screen to standard "FB60' transaction screen

here is my requirement,(just a newcomer in abap) i have created a screen with all fields under BASIC DATA tab of transaction 'FB60'. using module pool program.i have also created 2 buttons one ...
4
votes
0answers
119 views

SAP Simple Transformation with unknown XML

I have XML of unknown structure and I want to apply ST (Simple Transformation) on it to get "somehow" that content out of XML into ABAP structures. For now I have following test report: report ...
1
vote
1answer
70 views

FM to Download ABAP report output to PC as text

Is there any function module aside from GUI_DOWNLOAD to download the ABAP report output?
2
votes
2answers
97 views

What is the significance of the CHANGING keyword when a method is called in ABAP?

I understand what IMPORTING and EXPORTING keywords do, but what is the significance of the CHANGING keyword?
2
votes
1answer
73 views

Program behaves differently when user can debug

We encountered an annoying heisenbug: A few users (not all) of an ABAP program complain about a problem we are unable to reproduce (the search help for contract accounts in transaction FKKORD1 ...
1
vote
3answers
47 views

How to find the Change Request with my modifications?

I've copied 2 Function Modules (QM06_SEND_PAPER_STEP2 and QM06_FM_TASK_CLAIM_SEND_PAPER) to analogous Z* Function Modules. I've put these FuBa's inside a ZQM06 Function group (which was created by ...
3
votes
3answers
117 views

How to increase the length of select-options in ui

As I understood, select-options in abap just takes 45 characters from ui. Whatever i assign the type of select-option, it doesnt take more then 45 characters. SELECT-OPTIONS: s_key FOR ...
3
votes
1answer
56 views

Is it possible not to show dialog boxes in download function

I'm using "DOWNLOAD" function of abap to download something as txt file. But "DOWNLOAD" function shows some dialog boxes that shows where the file is being downloaded and asks if there is another file ...
3
votes
1answer
74 views

Field order for Where clause

I've discovered, that field order impacts on Select performance. For example, I want to extract data from view V_EUQI by TPLNR(500), DATBI(1) and EQTYP(1), the sentence: SELECT ... FROM v_equi INTO ...
0
votes
1answer
71 views

ABAP OLE - Checking if an OLE object is password protected

So I want to open a password protected excel file prompting the user to enter the password BUT I want to check that the file does in fact require a password before I prompt the user. My current ...
3
votes
1answer
144 views

ABAP OLE - Open excel password protected workbook

I'm trying to open a password protected excel file using SAP ABAP OLE OBJECT as follows: DATA: lt_excel_line(4096) OCCURS 10 WITH HEADER LINE. DATA: app TYPE ole2_object, workbook TYPE ...
3
votes
3answers
117 views

Given a field symbol pointing to a table, how do I assign it to a structure field symbol?

I have a field symbol <lt_something> which points to a table. This table has a single line as content. How do I assign that line in the table to a new field symbol, say <ls_something> ? I ...
0
votes
1answer
73 views

Sonar Plugin - View Source Code

I'm writing a small Sonar Plugin for Abap Code. I alread have presented metrics in Sonar, and also have the source Code of some Abap Files in the Sonar Database (i checked it with a sql client). But ...
0
votes
1answer
97 views

How to encode JSON in ABAP

As Horst Keller mentioned in his ABAP and JSON post, "with Releases 7.02 and 7.03/7.31 (Kernelpatch 116) JSON is supported natively in ABAP". Appartently 7.02 in my case of too generic because the ...
1
vote
2answers
42 views

In what transaction can we maintain the print programs, routines and Forms, to be printed in transaction QM02?

I need to modify a standard form, and to do this, I'm copying it to a Z* form, and I'd like to know where my print program and SapScript form is being assigned to the workflow. Anyway, since a lot of ...
2
votes
1answer
32 views

Do the builtin types (c, d, i, f, etc.) have CONVERSION_EXI_* functions? And if so, how to find them?

The WRITE statement has a lot of options, so I was wondering, does it call CONVERSION_EXIT_* functions, or how does it print the primitive data types in so many ways? And if it does use ...
2
votes
2answers
121 views

ABAP: Using colors as variables in Write statement

How can I insert color value into variable? For example this works for me: write:/10 'test' COLOR COL_HEADING. I thoght that colours are integers so I tried: data: gv_mycolor type I. gv_mycolor ...
3
votes
3answers
99 views

How to write character type number with points

I am holding the number in character format in abap. Because I have to take the minus from right to left. So I have to put the number to character and shift or using function 'CLOI_PUT_SIGN_IN_FRONT' ...
0
votes
2answers
336 views

Reading characters in a string in ABAP

How can I read each character in a String in ABAP? For example, I want to read each character in String "a7m4d0". After that I want to verify that each character is a character or a number. Any tips ...
2
votes
2answers
41 views

In transaction NACE, is it possible to find out the print program and form routine, if i know the name of the Smartform?

I want to find out the name of the Print Program, and the name of the subroutine (form) that prints my SmartForm. Now luckily in NACE (Conditions for Output Control), one can "kinna" figure out the ...
1
vote
0answers
46 views

RFBVBIC2 Updating program documentation when implementing SAP Correction 1737484

we updated Report RFBVBIC2 (Transaction Code BIC2) implementing SAP Note 1737484. Furthermore we found a zip file "RFBVBIC2-ITF.zip" in the attachment section. The program documentation wasn't ...
0
votes
0answers
34 views

Archiving Interactive Forms

Problem: I have created an Invoice pdf using adobe interactive forms in abap and want to print and archive this form to an outside source. I know how to archive the form if I created the program that ...
2
votes
1answer
38 views

Storing result of date arithmetic in string

The following code is supposed to subtract 10 days from a given date, store the result in a string variable and write it. DATA str TYPE string. DATA date TYPE d. date = '20130418'. " 2013-04-18 str ...
1
vote
2answers
49 views

What kind of enhancement is this (FORM USEREXIT_*), and how do I implement such an enhancement

I have an include RV60AFZZ, and a form USEREXIT_NUMBER_RANGE. On one system, this form contains an addition *{ INSERT ASDF555555 1 "Custom code ...
2
votes
1answer
51 views

How to create a Search Help Exit Function Module, if it requires TABLES parameters but those are obsolete?

Trying to create a Search Help Exit (to copy an old one actually). My problem is that I can't declare Tables parameters for a function module (because they are obsolete and i can't get past the ...
2
votes
2answers
50 views

Why is this custom program name outside of customer space?

I found a 'Z' transaction calling a program not in the customer space. This program "seems" to be something developed by the customer, meaning its name is "AQZZZFI_ABC=====ZPYORD========", where "ABC" ...
2
votes
1answer
99 views

selecting in 4 tables with conditions

i need to select vbeln from likp and i have to select only vbeln that has been marked 'C' in vbuk. and from that likp-vbeln(delivery) i have to search/select for its carrier in vekp and after ...
3
votes
1answer
53 views

ABAP feature lists

So I just discovered String templates and they are amazing. Is there a resource where I can find what each SAP release brings to ABAP ? Not strictly an SO question, but it will make all ABAP ...
0
votes
1answer
79 views

Dont trim when downloading file in SAP

SAP has trim for downloaded files but I need to add spaces at the end of the string and download the file with these spaces. I tried to add dash character at the end of the string and then translate ...
1
vote
2answers
141 views

GUI_UPLOAD does not work properly

I'm using gui_upload to attach a file to email. Gui_upload fills the internal table in hex format. But, always, the last record of internal table is filled with zero '0' until it fits its length. ...
1
vote
3answers
208 views

Where does gui_upload uploads the files?

Simply, where does gui_upload function uploads the files in Application Server. How can I find the location of them, or is there any tcode that I can find last uploaded files or search by name ? ...
1
vote
2answers
167 views

ABAP: logical SELECT-OPTIONS in classes

Had faced such a problem: wanted to formulate complex logical condition in class method through SELECT-OPTIONS like this IF col IN seltab. ...logic.... ENDIF. But received such error "local ...
2
votes
1answer
42 views

Do we still need to do DEFINITION LOAD in EP4+

I am adapting RM_FM_EXCEL_TO_INTERNAL_TAB to my needs and I saw the following code: "Get TAB-sign for separation of fields CLASS cl_abap_char_utilities DEFINITION LOAD. ld_separator = ...
2
votes
1answer
172 views

Abap write new line to file

I'm trying to write to file newline. I'm using WS_DOWNLOAD but have no idea how to write new line into text. Anyone knows ?
0
votes
3answers
90 views

How to generate a table with dynamic amount of colums (and a fixed set of rows)?

I have some calculations in the area of payroll which result in a lot of data each per month/year and two dates: an begin date (mm/yyyy) and an end date (mm/yyyy). what I want: generating an internal ...
1
vote
0answers
63 views

Web Dynpro for ABAP Explanation Text (Green Underline) not working for certain users

I have recently added Explanation text to certain fields on the SRM Contract screen (both standard and cusom fields). The user that I unit tested with worked fine, however most other users do not ...

1 2 3 4 5 10