on 09-25-2006 11:07 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.