cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between RFC and Adaptive RFC

Former Member
0 Kudos

Hi,

Can anybody tell me the difference between RFC and Adaptive RFC, try to tell me in own words...dont send the links....

Regards,

Suresh.T

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

A normal RFc model do not show adaptive behaviour i.e If there is a new entry in your structure and if you try to deploy the application it will give you an error whereas an Adaptive RFC model is flexible to that and it will adapt to changes in your structure(BAPI/RFC).

Adaptive RFC Model is exclusively used for connecting to R/3 System using BAPI'S. they show an adaptive behaviour that is they are flexible to the structure modification

Former Member
0 Kudos

Hi,

im pure Webdynpro.....so we dont hav rights to change structure....only ABAP developers can change that structure..tell me which structure can we modify?......then how u say it will be adaptable to change the structure?

Former Member
0 Kudos

this Web Dynpro model automatically adapts the data of the structure passed in the Java proxy generation to the current data – that is, a structure definition in the back-end system that may have been modified.

Generated structures are used for the context definition; the context ensures type-specific access to the attributes, as they are valid at runtime. However, the context attribute does not create the structure attributes until runtime and can therefore automatically take any changes made a later stage into account.

All structures, fields, and data types are maintained by the Java Dictionary runtime. A memory is available for this, which acts like a virtual machine: Load definitions are automatically loaded from the back end on demand.

The Web Dynpro context therefore shows adaptive, non-static behavior. At runtime, not just those fields are visible that were generated at design time. The following modification scenarios show the support offered by the Adaptive RFC in detail:

· Data types

¡ If a data type is edited in the back-end system, the structure used for the Web Dynpro application remains valid and no runtime error occurs.

· Customer enhancements and adjustments

¡ If a field length is changed in the back-end system or a customer enhancement field is created, the field values are still valid at runtime. The enhancement field remains visible even without a subsequent manual adjustment of the structure at design time.

· Release-specific structures

¡ If a structure changes in the back-end system due to a new release – for example, if the application developer adds a new field – no runtime error occurs in the Web Dynpro application.

· Different structure definitions in different back-end systems

¡ Restriction: No fields or structures may have been deleted in any of these systems.

Field Access

The visibility of enhancement fields using the Adaptive RFC model is achieved by using the generic get/setProperty on the model class.

For the visibility of enhancement fields from within the context use IWDNodeInfo or IWDAttributeInfo. All fields are copied using WDCopyService. To access the enhancement fields, use get/setAttributeValue on the model class.

Example

The following is a code example for a field access:

String getCustomerName()

String getCustomerID()

String getOrderID()

String getQuantity()

BigDecimal getPrice()

String getDiscount()

Object getAttributeValue(“CustomExtension”)

Former Member
0 Kudos

Hi

for example some new entry of fields arrived in the structure (i.e in BAPI) you just need to reimport the model without doing any changes to your application.

regards

ambicasony

Answers (1)

Answers (1)

former_member186016
Active Contributor
0 Kudos

See this:

Regards,

Ashwani Kr Sharma