cancel
Showing results for 
Search instead for 
Did you mean: 

Regd SVS ?

Former Member
0 Kudos

Hi @,

I am implementing SVS for a context attribute wiht values like

a = Success

b= Failed

c = Exception

In my view I can see the Succe Fail Exc resp but what will be passed at the backend when the following things are selected a,b, c or Succes Faiuled etc.

Is it better to use own datatype to achive this or go for code based SVS and generate the list

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

After creating a simple type and assigning this simple type to a attribute,

Make sure that the data type of the simple type is same as the data type of the Import parameter of RFC to which you want to pass this SVS value. Then on the Onselect event capture the value of the SVS by making use of getxxx() method and assign it to the Import parameter of the RFC by making use of setxxx() method and then execute the method of the RFC, so that the method of the RFC is executed after assigning.

In the RFC code try to make validations as per your requirement making use of If else statements

a = Success

b= Failed

c = Exception

Thanks & Regards,

Yusuf.

Answers (2)

Answers (2)

narendra_bendi
Active Participant
0 Kudos

Hi,

First ,the fields of the RFC parameters should able to pull the data as

a SUCCESS

b FAILED.....

So after bnding, you would see the SUCCESS, FAILED....)and when you choose, the respective code(a, b, ...) would only be passed to backend...

Anyway it all depend on how the RFC is been created...either for accepting (a, b, c...) or (SUCCESS, FAILED,.....)

Regards,

Narendra..

Former Member
0 Kudos

hi,

if you select Success it will pass " a " like following...

it is better to use own datatype (simple type).

if your simple type looks this

(Description) Success = a (value)

Failed = b

Exception = c

Regards,

ramesh

Former Member
0 Kudos

hi Ramesh,

I have to pass the selected value in RFC input but the value isnot coming from RFC. Do I have to do any parameter binding also in this case or I can directly use the same .

Regards

Former Member
0 Kudos

Hi,

if you want to pass the selected value to rfc input.

do like this,for example

String value=wdContext.currentContextElement.getDDKey() ;

the above statement will fetch the selected value from the DDKey.

then pass the "value" to rfc input field in onSelect() event of the DDKey.

wdContext.currentRFCElement().setInput(value);

Regards,

ramesh