cancel
Showing results for 
Search instead for 
Did you mean: 

FPM in ARFC2

Former Member
0 Kudos

Hi,

I need to convert the model in a FPM based application to ARFC2.

I want to know how to handle the below statements in that case:


myModel = (MyModel) WDModelFactory.getModelInstance(MyModel.class,WDModelScopeType.APPLICATION_SCOPE);

fpm.connectModel(myModel);

If I define my ARFC2 model instance and use it as below, I get cast error (cannot cast from IWDModel to MyModel), although the ARFC model works fine with this statement

myModel=(MyModel)WDModelFactory.getModelInstance(AddperdataModel.class);

Without converting it to ARFC2, I cannot reimport the model to get the changes done at RFC end into my WDJ code.

Any suggestion is appreciated.

Thanks,

Priyanka

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Priyanka,

Please check following document.

Using an Adaptive RFC 2 Model in Web Dynpro for... | SCN

Thanks,

Patralekha

Former Member
0 Kudos

Thanks for responding.

I have already gone through this document and have been able to convert non-FPM based applications.

I am having issues specifically with FPM based applications in the scenario mentioned in my query.

Do you know how to resolve that?

Thanks,

Priyanka

Former Member
0 Kudos

We are keeping the models in ARFC only.

lakshmi_narayana2
Active Participant
0 Kudos

Hi Priyanka

I am in the same situation, Can you please let me know if you are able to solve the issue regarding FPM in ARFC2.

Your immediate response is appreciated.

Thanks

Lakshmi

lakshmi_narayana2
Active Participant
0 Kudos

Hi All

Any response on this is highly appreciated

Thanks

Lakshmi