cancel
Showing results for 
Search instead for 
Did you mean: 

How to change or edit a model that already exists in java webdynpro component?

Former Member
0 Kudos

Hi All,

I have a java webdynpro application and there is a model which is fetching some data from the backend system.

Now we have few changes to the existing function module so that it can send some more data along with the original data. Now please let me know if I would have to do any changes to the model in the WEBDYNPRO component (in NWDS).

If yes, then how should it be done. If not, would attribute level changes to the corresponding context help me fetch the new data into the layout.

I am new to WDJ and hence require some help!!!

BR,

Vidya S

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vidya,

Please re0import the model and then you will have all the changes done in function module.

Thanks,

Sandip

Answers (3)

Answers (3)

vijay_kumar49
Active Contributor
0 Kudos

Hi,

1.Its Simple way. Just Right click on your Model--- Choose Re-Import.

2..After re-import the RFC we are getting some errors. These error we can rectify by the  cache invalidation and Re Start the J2EE Engine Server you can solve the problem.

After Re-Import the model you can do cache invalidation

There is a need to restart the portal system to clear the cache. Once its done your application would work fine.

Another thing that you can try to clear the cache is

1. Go to link http://<servername> : <portname> /webdynpro/dispatcher/sap.com/tcwdtools/WebDynproConsole

2. Click on the last link in detail navigation "Invalidation of ARFC Metadata Cache"

3. From "Adaptive RFC Metadata Cache Invalidation " tray, choose the JCO that you are using

4. From " Dictionaries Cache Invalidation" tray, choose the dictionary(model) whose cache you want to clear.

If you have more clarification please read the [Document|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b...]

Hope this helps!!

Best Regards

Vijay K

Former Member
0 Kudos

Hi,

Please note that I have reimported the model (which is in a separate DC).

Now , the changes are reflecting in that particular class of the model in the DC mentioned above.

But, this DC and its models are used under a DC where the actual layout & the component exists. Here, I deleted the model under USED MODELS and addded it again hoping for the changes.

But I can't see the changes in the model in this DC.

Have also tried to invalidate the ARFC cache. Dint help ....

Are there any other suggestions

BR,

Vidya S

vijay_kumar49
Active Contributor
0 Kudos

Hi,

1.Its Simple way. Just Right click on your Model--- Choose Re-Import.

2..After re-import the RFC we are getting some errors. These error we can rectify by the  cache invalidation and Re Start the J2EE Engine Server you can solve the problem.

After Re-Import the model you can do cache invalidation

There is a need to restart the portal system to clear the cache. Once its done your application would work fine.

Another thing that you can try to clear the cache is

1. Go to link http://<servername> : <portname> /webdynpro/dispatcher/sap.com/tcwdtools/WebDynproConsole

2. Click on the last link in detail navigation "Invalidation of ARFC Metadata Cache"

3. From "Adaptive RFC Metadata Cache Invalidation " tray, choose the JCO that you are using

4. From " Dictionaries Cache Invalidation" tray, choose the dictionary(model) whose cache you want to clear.

The above option saves time but in case it doesnu2019t work, you can go in for Portal restart. It would surely work.

If you have more clarification please read the [Document|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b...]

Hope this helps!!

Best Regards

Vijay K

Sreejith1
Contributor
0 Kudos

Hi Vidya,

check below link. It explains your question.

http://scn.sap.com/thread/2136030

Regards

Ram