cancel
Showing results for 
Search instead for 
Did you mean: 

Enter data to input field

Former Member
0 Kudos

hi all,

I need to enter some data in the screen which should be updated to backend. i need to populate this data in the table and send it to RFC.

In the Screen i have put three Value attribute <b>name</b><b>currency</b>and <b>prodtyp</b>.<b>

Iv_Zoperation</b> is the input parameter in the RFC.

I am populating a node <b>It_Pricegrp</b>. But what happends is that i am able to update some times and some times it doesn't update in the backend.

<b>Is there any flaw in my code.</b>

The below is my code.

wdContext.currentZsd_Pmt_Pricegrp_Rfc_InputElement().setIv_Zoperation("A");

wdContext.currentIt_PricegrpElement().setZprigrpname(wdContext.currentContextElement().getName());

wdContext.currentIt_PricegrpElement().setZcurr(wdContext.currentContextElement().getCurrency());

wdContext.currentIt_PricegrpElement().setZprodtyp(wdContext.currentContextElement().getGradeClass());

wdThis.wdGetZRFController.execute_RFC();

Thanks in advance,

Gopi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Try this

Zsd_Pmt_Pricegrp_Rfc_Input input= new Zsd_Pmt_Pricegrp_Rfc_Input();

wdContext.nodeZsd_Pmt_Pricegrp_Rfc_Input().bind(inputContractPersonCreate);

It_Pricegrp price=new It_Pricegrp();

if(wdContext.currentContextElement().getName())!=null){

price.setsetZprigrpname(wdContext.currentContextElement().getName()));

}else{

price.setsetZprigrpname("");

}

input.addIt_Pricegrp(price);

wdThis.wdGetZRFController.execute_RFC();

Kind Regards

Mukesh

Former Member
0 Kudos

hi mukesh,

<b> Zsd_Pmt_Pricegrp_Rfc_Input input= new Zsd_Pmt_Pricegrp_Rfc_Input();

wdContext.nodeZsd_Pmt_Pricegrp_Rfc_Input().bind(inputContractPersonCreate);</b>

if i write the above code in the onActionAdd method. then its giving exception. is there any flaw in my code?

Thanks in advance,

gopi

Former Member
0 Kudos

Hi

I made mistake

use this

Zsd_Pmt_Pricegrp_Rfc_Input input= new Zsd_Pmt_Pricegrp_Rfc_Input();

wdContext.nodeZsd_Pmt_Pricegrp_Rfc_Input().bind(input);

Kind Regards

Mukesh

Former Member
0 Kudos

Gopi,

Instaed of setting the values to element explicitly, set the values to the attributes of the modelObject like this:


wdContext.currentZsd_Pmt_Pricegrp_Rfc_InputElement().modelObject().setIv_Zoperation("A");
wdContext.currentIt_PricegrpElement().<b>modelObject()</b>.setZprigrpname(wdContext.currentContextElement().getName());
wdContext.currentIt_PricegrpElement().<b>modelObject()</b>.setZcurr(wdContext.currentContextElement().getCurrency());
wdContext.currentIt_PricegrpElement().<b>modelObject()</b>.setZprodtyp(wdContext.currentContextElement().getGradeClass());

Bala