ABAP Casting: Narrow vs Widening Explained

When we assign the instance of the Subclass back to the instance of the Superclass, than it is called the “Narrow Casting”, because we are switching from a “More Specific view of an object” to “less specific view”. When we assign the instance of the Superclass to the Subclass, than it is called the Widening … Continue reading ABAP Casting: Narrow vs Widening Explained

Understanding FI Integration in SAP

FI-MM Integration FI MM settings are maintained in transaction code OBYC. Within these there are various transaction keys to be maintained like BSX, WRX, GBB, PRD etc. In each of these transaction keys we specify the GL account which gets automatically passed at the time of entry. Few examples could be: BSX- Stands for Inventory … Continue reading Understanding FI Integration in SAP

ABAP Internal Tables Explained: Types and Usage

Internal tables are structures which are used to store temporary data during processing of an ABAP program. Following are the different kind of internal tables STANDARD SORTED HASHED CategoryInternally managed byAccessPrimary table keyWhen to useHintsSTANDARDPrimary table index (that's why these tables are called index tables)Table indexTable keyAlways non-unique, i.e. duplicate entries are always allowedDefinition of an … Continue reading ABAP Internal Tables Explained: Types and Usage

Unlocking Regex Power in ABAP Programming

There are lot of blogs out there which tells about regex but the main aim of this blog is to tell others the powers of regex specially in ABAP where we are obsessed with keywords like loop endloop and operations like CS EQ etc. Example : Lets say you have string where you find a … Continue reading Unlocking Regex Power in ABAP Programming

Understanding BDCDATA in SAP BDC Programs

What is use of BDCDATA ? While writing a BDC program, standard structure ‘BDCDATA’ is used to collect this information. The BDCDATA structure includes the following fields: PROGRAM DYNPRO DYNBEGIN FNAM FVAL BDCDATA structure is used to create an internal table in the BDC program which collect the above information for an entire transaction. Syntax … Continue reading Understanding BDCDATA in SAP BDC Programs

Using BDC for Multi-Line Item Recording

Table controls in BDCwhen we want to insert multiple line itemsSince the BDC programs can be used on different systems with different look and feel so the layout may vary from one system to another.So while doing the recording there we have an option to select the default option as it will keep the recording … Continue reading Using BDC for Multi-Line Item Recording

Understanding Session Method in BDC: SAP ABAP

BDC basically checks and validates eac field screen by screen and that’s why it takes timeBDC basically checks and validates eac field screen by screen and that’s why it takes timeEven though 60% of the BAPI’s use BDC in their backend CALL METHODSynchronous processing – until the data is successfully processed it won’t process the … Continue reading Understanding Session Method in BDC: SAP ABAP

BDC : Batch Data Communication in SAP

Let's talk about BDC and how it can be created in the system. Before you start with a BDC program you need to create a recording in transaction SHDB, as you can see from the below screen you need to provide a recording name and a transaction code for which you want to create the … Continue reading BDC : Batch Data Communication in SAP

ABAP ALV: Customizing User Commands with Callback Functions

It will be same as ALV EVENTS mentioned above only the call back program parameter will change while calling the FM REUSE_ALV_GRID_DISPLAY. we will pass the user command and perform the action accordingly. Please see the highlighted part which is different from the program mentioned for ALV EVENTS Example **&---------------------------------------------------------------------* **& Report ZALV_TEST_1 **& **&---------------------------------------------------------------------* … Continue reading ABAP ALV: Customizing User Commands with Callback Functions