abap

ABAP Column Tree Model doesn't expand node after EXPAND_NO_CHILDREN event

I am displaying a list of items using a SAP ABAP column tree model, basically a tree of folder and files, with columns. I want to load the sub-nodes of folders dynamically, so I'm using the EXPAND_NO_CHILDREN event which is firing correctly. Unfortunately, after I add the new nodes and items to the tree, the folder is automatically colla...

Big pdf attachemts in e-mails from SAP

I use ABAP program to send e-mail invoices to our customers. Invoice is pdf attachment created by function SX_OBJECT_CONVERT_OTF_PDF. Problem is that when language is PL (Polish) attachment is 10 times bigger comparing to EN language. Why? ...

Get the contents of a server-side directory in SAP ABAP

I need to get a listing of a server-side directory inside SAP. How do I achieve this in ABAP? Are there any built-in SAP functions I can call? Ideally I want a function which I can pass a path as input, and which will return a list of filenames in an internal table. ...

Calling an existing SAP report in ABAP, with GUI suppression

I want to expose the functionality of an SAP program (transaction) as a BAPI. I need to call a report and supply range filters such that the GUI is bypassed. Does anyone have a working example of the SUBMIT ... WITH ... ABAP construct, or other suggestions on how to accomplish what I need to do? ...

How to set (unix) permissions when creating a file in SAP ABAP?

you would think this would be obvious, but searching through documentation, SAP forums, Googling, etc., I've been spectacularly unsuccessful. I'm creating a file in ABAP on a solaris filesystem using the following code: OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT. the resulting file is owned and grouped according to ...

Time estimate for SAP/ABAP

Hi all there, I'm looking for a table or list of standard time estimations for developments in SAP/ABAP, something customizable in some variables according to the development team, complexity of project, etc... Something similar to: Simple Module Pool -> 10 hours Complex Module Pool -> 30 hours Definition of Dictionary -> (0,4 * numbe...

Managing ABAP Source Code in Source Control

Our product currently spans a large number of technologies, including Java, PL/SQL, VB.Net and ABAP. We have a fairly mature source control and build system set up for all of the languages except ABAP, which is still in the stone ages. Since SAP has a build system set up within it, our engineers do all of their development in an SAP envi...

Java or ABAP Web Dynpro? (SAP Web Development on Netweaver)

Are there any good arguments for using Java Web Dynpro over ABAP Web Dynpro? I've heard that the Java version is more mature by about 18 months because Dynpro was made for Java, and then ABAP devs wanted it once they saw it working. I know ABAP is propriatary to SAP and the Java is much more widely used. Does this fact, plus the maturit...

How to get rows count of internal table in abap?

How do I get the row count of an internal table? I guess that I can loop on it. But there must be a saner way. I don't know if it makes a difference but the code should run on 4.6c version. ...

How to make an abap program pause?

For testing purposes I need my abap program to wait for few seconds. How can this be done? Thanks. ...

How to store configuration information in sap abap application?

There are parameters that I would not want to be transfered from production environment to qa. Staff like network path and url's. The problem is that in sap abap everything is in the database and when the database is copied to the qa system you have to manually change those parameters. And this is prone to errors. Is there a way to stor...

Where to find novice SAP BAPI coding guides?

I've been working with applications interfacing with SAP via a web service for a little while now and I want to get into programming the BAPI's behind the web services as well. My company has been using a SAP consultant for the BAPI programming and I'd like to move into filling that role also. I have a decent amount of experience with t...

ABAP RFC Debugging

Hello! I'm a ASP.NET and ABAP developer. For years, I used RFC's to communicate with ASP.NET using SAP .NET Connector. During the integrated tests, sometimes we need to debug a RFC that has been called from ASP.ENT, just because the bug we are facing does not happens at SE37. So, everytime I needed to debug the RFC, I just inserted: ...

ABAP Stdout and Stderr

Does ABAP allow writing to stdout and stderr? I need to write small programs to test interface connections to SAP systems via a job scheduler(Cronacle). For instance, start/write 'Hello World!' + date + time to stdout/exit. I'm a .net programmer tasked with this seemingly TRIVIAL program and I'm stuck. ...

ABAP OO obsolete statements: How do these affect your existing code-base?

Since upgrading from 4.7 to ECC6 the ABAP compiler has become a lot stricter on the use of certain statements in the OO context. For instance you're not allowed to use the statement LIKE, but in stead have to use TYPE and internal tables does not have an implicit header line, etc. These restrictions are explained in greater detail here...

OO ABAP: When and Why?

Months after my company has upgraded from 4.6c to ECC6.0, our team of programmers are still coding in the traditional 4.7c way. I'm eager to try out the new OO approach of ABAP, but much to my dismay most people here only emphasize on getting things done in the shortest time frame given. My question would be: 1) When do people in your ...

Do you see any (anti) patterns in my design? How to recognize pattern?

Hi, i have a Web App coded in ABAP / BSP. I´m interested to deliver fine code so maybe you can help my recognize some good or bad pattern. Actually i do following. Declare a base class object and instantiate it dynamically based on some parameter with a sub class. The base class has some methods for data fetching () the sub classes use ...

Want implement a utility class which methods represent steps in a validation process. Is there a pattern or best practise for that?

Hi, i want to implement a utility class which methods are internal steps of a validation process. Is there a pattern for this or should i use a totally different approach? Im open for suggestions. (I´m coding in abap but i dont think that is important) Edit: Its no frontend validation of text, but a check if certain conditions are mat...

Why This ABAP Funtion Module Always Set the Importing Parameter with <Initial>?

We have a function module which contains an importing parameter IS_USER, which is of type S_USER, S_USER is a structure and contains the following fields: USER_ID USER_ID CHAR 60 IP_ADDR IP_ADDR CHAR 16 SESSION_ID SESSION_ID CHAR 20 LANGU SPRAS LANG 1 MACHINE_NAME MACHINE_NAME CHAR 128 SAP_PASSPORT SAP_PASSPORT STRIN...

What's the meaning of ?= in ABAP keywords?

Hi all, My question is just as the title said, What's the difference between = and ?= in ABAP keywords? Thanks in advance. ...