cancel
Showing results for 
Search instead for 
Did you mean: 

how to update the output of adpative rfc model

junwu
Active Contributor
0 Kudos

Hi Gurus,

I import a rfc as model in webdynpro.

I input a company code, the rfc will return the cost center code list.

Scenario:

I input a company code A, it returns me a code list.

I put an invalid company code B, the rfc will throw some exception which is caught in webdynpro java, but the problem is the output part is not cleaned, I can still get the cost center code which belong to company A.

so , I want to know when I caught the exception how can I empty the output part.

Best regards,

John

Accepted Solutions (0)

Answers (3)

Answers (3)

junwu
Active Contributor
0 Kudos

Hi all,

I bind the output with a empty list, my problem solved.

Best regards,

John

sid_sunny
Contributor
0 Kudos

Hi Jhon,

You can invalidate the RFC node like this - wdContext().node<your RFC node>().invalidate();

Regards

Sid

Former Member
0 Kudos

Hi John,

is this rfc customized or standard SAP?

if it is customized, why don't you clean the output in the rfc itself?

junwu
Active Contributor
0 Kudos

Hi Abdulla&#65292;

this is customized rfc. when I debug, i found the rfc return a empty table, that is right. but i don't know why the model in webdynpro didn't get updated.

Best regards.

John

Former Member
0 Kudos

Try to re import the model then i think it wil get reflected in the EP too.