cancel
Showing results for 
Search instead for 
Did you mean: 

Model reimport issue in WD for JAVA

Former Member
0 Kudos

Dear experts,

I am creating an application in webdynpro in JAVA. I wanted to add 3 BAPIs in the existing ARFC model. So I reimported it and added the required BAPIs. Reimport was successful It shows those 3 BAPIs under WeDynpro --> Models --> <Model Name> --> Model Classes.

But when I am tring to see those in Component Controller --> Context, I do not see those newly added BAPIs.

Anyone has come across similar problem? Any solution to ithis?

Thanks and regards,

Pradnya

Accepted Solutions (1)

Accepted Solutions (1)

lokesh_kamana
Active Contributor
0 Kudos

Hi pradnya,

Ur saying u have reimported the BAPI in the same model object then they will be present in the previous model object only.

You have the previous mapping na.

Just click edit context mapping and map the new BAPI nodes from the Model node to component controller.

And continue with ur work.

Note:-

But for the model to work you have start the J2EE Engine.

I think you know this.

This is just for your information.

Not related to teh question.

Thanks & Regards,

Lokesh

Former Member
0 Kudos

Dear Lokesh,

Thanks for reply!

I do have new BAPIs in the reimported model. Now the next obstacle is though I can see new BAPIs in the model, they are not available in the CONTEXT controller.

I am not able to do the mapping. As I cannot map them I am not able to use them. In the VIEW I have added new element such as drop down. Now when I try to specify value to the drop down, I do not get the specific BAPI.

As a result of all this application throws an error, does not get compiled.

One solution to this, I have created new model for those new BAPIs. Can I have two models for one application?

I am trying for the same.

Thanks and regards,

Pradnya

Answers (4)

Answers (4)

lokesh_kamana
Active Contributor
0 Kudos

Hi,

ok creating another model is not a big prob.

But be careful while exceuting it.

And invaliadte all the nodes.

Continue creating 2 models no prob.

Thanks & Regards,

Lokesh

lokesh_kamana
Active Contributor
0 Kudos

Hi,

Open the Data modeler and do context mapping from model node to the component controller again.

I have done the same i am able to find the new node in component controller.

Try this and revert back to me if any issues.

Thanks & Regards,

Lokesh

Former Member
0 Kudos

Dear Lokesh,

Thanks for reply!

I did try mapping, but I do not see reimported BAPIs in the DATA modeler.

Am I missing on some point?

Thanks and regards,

Pradnya

lokesh_kamana
Active Contributor
0 Kudos

Hi,

I think if i understand ur prob correctly.

You said you have reimported the model,then the data will be imported into the model context.

But without mapping the model context to component controller you will not be able to see the newly added context in the component controller.

DO the context mapping form newly imported model to the component controller.

Try this and get back to me if the prob i not yet solved.

Thanks & Regards,

Lokesh

Former Member
0 Kudos

Dear Lokesh,

Thank you for reply!

I have newly added BAPIs in the model Class. As you said I need to map them in the context of Component Controller. When I opened component controller for context mapping I see all the earlier BAPIs in the list at right hand side. Newly added BAPIs are missing.

Those added BAPIs are visible only in model class.So I can not map them.

Any solution to this?

Former Member
0 Kudos

Hi

Hav u added the model as Used model to the component?

only aftr doing so u can get reference to the modal node in the component controller.

Regards,

Archana