abap

What is ABAP and SAP?

What is SAP and ABAP. I searched and got bunch of different acronyms that don't quite make sense. Is SAP a database engine, and is ABAP a programming language, or nothing of that nature? What are they primarily used for? ...

Parsing XML within SAP ABAP

My company is working on a project that needs to read XML files within SAP ABAP. When the XML file has no data for a particular tag it omits that data. Some tags are self closing. e.g. <tag /> The SAP developer says that to read the XML document he first parses the document into an ABAP XML structure. This process fails on point 2. H...

Finding the class for method

How do you actually find the class for a specific method in ABAP? Is this even possible? EDITED: I was given a method name without the class name from the functional team, so I am wondering if we could find the class with the given method name. ...

ABAP create object

Below is a code snippet that is creating object. Form userexit_save_document_prepare. data: /bks/exitmanager type ref to /bks/exit_manager. create object /bks/exitmanager exporting main_prog = 'SAPMV45A' exit_form = 'USEREXIT_SAVE_DOCUMENT_PREPARE'. include /bks/exitman. ENDFORM. I got this from the d...

Determine current MM periods?

The standard SAP MM advice is that only two periods can be open simultaneously. How to determine them from within the program (FM to call/table to read)? ...

ABAP select performance

Are there general ABAP-specific tips related to performance of big SELECT queries? In particular, is it possible to close once and for all the question of FOR ALL ENTRIES IN vs JOIN? ...

SAP ABAP Ecc.6 Associate level Exam Books link required

Can anyone provide me link or Ebooks of ABAP Ecc.6 or the way to fine them for Associalte Level exam preparation. ...

ABAP free video training links ?

can anyone send me the link of free video training links of ABAP? ...

How to round a sum for the swiss currency (francs) in ABAP

here in switzerland our currency is francs and the smallest coin is 5 centimes which is 0.05 francs. what is the best way to round amounts to be payable with our money using the programming language ABAP in a SAP R/3 system? examples: " 4.48 should round to 4.50 " 2746.24 should round to 2746.25 ...

How to decode SAP text from from STXL.CLUSTD ?

I know ! The "proper" way to read STXL.CLUSTD is through SAP ABAP function. But I'm sorry, we are suffering badly from performance problem. We have already make our decision to go directly to the database (Oracle), and we don't have any plan to revert our decision yet since everything goes so much better so far. However, we've came acro...

Helicopterview of ABAP

I don't know a thing about ABAP, apart from it has an OO side, and I would like to have some kind of helicopterview of it before I start to look at it in detail. I know I can find all of this when studying it , but like I said for starters I like to know what I am dealing with. Is it (always) compiled? Typestem : Is it strongly type...

How can I call ActiveX from SAP?

I have a custom ActiveX control that I would like to Call from SAP. In this case I cannot use PI, what other options do I have? ...

Hiding Extended program check errors for Includes in ABAP

How can I stop the ABAP extended program check (SLIN) from reporting errors in include libraries that I may not have write access to? I like to leave the extended check with as few errors & warnings as possible, usually when I intentionally use something in a way that may cause a warning, I use the pseudo comments ("#EC * etc) to hide t...

ABAP WebAS Active Codepage

Hello! I need to concatenate different lines in a string. To do so, I need to use CR + LF hexadecimal characters. The problem is that, when I'm using an 8 bit/char environment, I just need to do something like this: constants : c_lf type x value '10'. constants : c_cr type x value '13'. data : g_html type string. concatenate '<htm...

Using XML to generate SAP ABAP and/or SAPScript?

Has anyone got examples and/or experience of generating SAP ABAP or SAPScript form code from XML that came from an external application? This would help: creation of SAP-based applications in a data-driven way by automating the knowledge to do so from the export of XML from an external application automated inputting of knowledge from...

Correct Approach for mastering SAP R3 and ABAP.

Hello all, i have been working on sap technology for the last 2.5 years. since there were so many concepts involved technically,i couldn't get a single source where i can learn about everything related to it. Still,i didnt get the confidence of mastering all the technical concepts. v please help me out if you have faced such experience a...

What is SY-ONCOM?

What is sy-oncom used for? I've the following explanation from SDN but in my program I'm getting a value of 'T' and 'X'. SY-ONCOM On Commit flag. This system field is set to different values depending on the call status of an ABAP program. Of these, only the value of ‘P’ is guaranteed. If at all, SY-ONCOM must only...

How to populate object dependencies with routing bapi

I'm using BAPI_ROUTING_CREATE to interface routing creation/changes from an external system. There doesn't seem to be a way to pass VC object dependencies for each operation. Does anyone know of a way to programmatically update object dependencies? I'd prefer to avoid BDCs if possible. ...

abap date formatting

Hi there, I'm new to abap and just writing my first application. Now I got a date of the type SYDATUM and wondering how to format it in a format like m/d/y. I've found some snippets on the web, but they were not really helpful. -thanks yor your help. ...

2 Column Array in SAP ABAP A = 1, B = 2... ZZZ = ?

I need to create a 2 column array in ABAP so that a program can look up a record item (defined by the letters A - ZZZ) and then return the number associated with it. For example: A = 1 B = 2 C = 3 ... Z = 26 AA = 27 AB = 28 ... AZ = BA = ... BZ = CA = ... ... ZZZ = Please can you suggest how I can code this. Is t...