Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How important it is to understand Concept of Narrow & Wide casting in ABAP Objects

Former Member
0 Kudos
318

Hi Friends,

I Understood that, it is very important to understand the concept of "Casting ( Narrow Casting & Wide Casting )" properly.

Let us see the following cases where the concept of "Casting ( Narrow Casting & Wide Casting )" comes into the picture in various practices of Abap, Webdynpro abap and FPM.

1. ABAP:-

When we are working with RTTS in abap it is very much important we must know the Casting Techniques. Without knowledge of the Casting of objects, there will be a lot of trouble we may faces.

Mainly RTTS offers Runtime Type Services, means RTTS Programming enables us to find the type of the particular data obejct or data type or data reference in the run time.

RTTS also enables us to create the data in the run time very dynamically.

So, in the run time when we finding the type of the data objects or creation of data objects in the run time, We must do the Wide casting and Narrow casting also some times on the references provided by SAP Dynamically.

So, here we go to have knowledge on Casting is mandatory.

2. WEBDYNPRO ABAP:-

The another point where the concept of casting comes into picture is , When we working with the ALV Reports and Dynamic programming of WEBDYNPRO. Here also we should posses good casting skills.

3. FPM:-

The major use of casting comes in hand is none other than FPM. When we working with certain Floor Plans or when we woking with Feeder Class concept of FPM, Casting comes into picture again.

Along with Casting ( Narrow casting & Wide casting ), We must have the knowledge of 'Field Symbols' and 'Data References (known & Unknown)' to work with our all complex scenarios of Webdynpro and FPM and all.

So guys, please have Knowledge on the following, befor you master on advanced techniques of WEBDYNPRO and FPM etc.

     1. Field Symbols

     2. Data References (known & unknown)

     3. Casting (Narrow casting & Wide casting)

     4. Brief Idea about RTTS

All the above 4 concepts will definitely make our life easy when dig more into WEBDYNPRO ABAP and FPM.

Thank You.

Please share your comments on the same.

2 REPLIES 2

former_member210252
Contributor
0 Kudos
167

Hi Shankar,

It's really good to know.

It could be great if you can share few technicalities for the concepts explained.

Regards,

Rafi

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Kudos
167

Rafi Mohammed wrote:


It could be great if you can share few technicalities for the concepts explained

They have already been discussed at length in the forums. Just search for it!