cancel
Showing results for 
Search instead for 
Did you mean: 

Migrating to ARFC2 model

krishg
Active Participant
0 Kudos

I am migrating my java webdynpro to ARFC2 model. I clicked on model in dynpro explorer and migrated to ARC2 model.

When I clicked on the repair, I got bunch of errors in my model java class.

As per the instructions, I went and added the following line

ARFC2ModelName ModelInst = new ARFC2ModelName();

ModelClass objModClass = new objModClass(ModelInst);

I still get an error that Constructor for objModClass(ARFC2ModelName) is undefined.

and NWDS gives the following three suggestions, which is making me pull my hair,

a) change type of ModelInst to ARFC2ModelName (

b) change constructure for objModClass(ARFC2ModelName) to objModClass(ARFC2ModelName)

c) create constructor objModClass(ARFC2ModelName)

what am I doing wrong?

it complains about uncatchable exception, but when i add

(ARFC2ModelExecuteException), it complains about exception cannot be resolved to type.

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

you can use wizard to generate the code for model initialization and execution.

krishg
Active Participant
0 Kudos


Patralekha,Thank you for the link. I was under the impression that we had already migrated to 7.1 (but we are still using the old nw 04's)

I had only migrated the model to ARFC2 .. Does this still work without migrating to the new 7.1 from  the old 04's? or am I getting such syntax errors because of the fact that I have not migrated to the new environment? Based on the cheat sheet, I have to make lot of changes and I was hoping to avoid those changes.

Jun,  When you say use the Wizard to generate the code (My main java class has some custom code inbuilt into it, will the wizard overwrite that code?).   Are you talking about Re-importing the model ?

krishg
Active Participant
0 Kudos

Stupid mistake.. We had the same java class name in two different packages.. Sorry for the inconvenience 😞

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Krish,

Please follow below document - "Migrating Web Dynpro Applications From SAP NetWeaver 7.0 to CE 7.1"

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40af00ad-8080-2a10-88b5-cc4cec99d...

Thanks,

Patralekha