on 07-06-2007 10:12 AM
hello everyone
I am in trouble.I use a bapi with Tables parameter in my wedDynpro,and bind some data to this Tables model structure.Unfortunately,these data aren't be passed to bapi,and in my bapi the Tables paremeterTable is initial state.
Could some to help me ?
My wedDynpro programme follows:
public void execute_Test( )
{
//@@begin execute_Test()
IWDMessageManager manager = wdComponentAPI.getMessageManager();
Zzshibin_Test5_Input input = new Zzshibin_Test5_Input();
wdContext.nodeZzshibin_Test5_Input().bind(input);
Zzbsctmydsub_Score score = new Zzbsctmydsub_Score();
score.setZzmydkey("1");
score.setZzrltkey("2");
score.setZzsubdes("3");
score.setZzsubwgtrst("4");
AbstractList list = new Zzbsctmydsub_Score.Zzbsctmydsub_Score_List();
list.add(score);
input.setTable(list);
try
{
wdContext.currentZzshibin_Test5_InputElement().modelObject().execute();
}
catch(Exception e)
{
manager.reportException("error",true);
return;
}
I am wating for answer.
Any one
?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I doubt would the portal or R/3 (ECC5) need some configuration? Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much,everyone.I follow your adivce,but it doesn't work.I am very puzzled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bin,
Please try the follwoing code.
public void execute_Test( )
{
//@@begin execute_Test()
IWDMessageManager manager = wdComponentAPI.getMessageManager();
Zzshibin_Test5_Input input = new Zzshibin_Test5_Input();
wdContext.nodeZzshibin_Test5_Input().bind(input);
Zzbsctmydsub_Score score = new Zzbsctmydsub_Score();
score.setZzmydkey("1");
score.setZzrltkey("2");
score.setZzsubdes("3");
score.setZzsubwgtrst("4");
<b>input.add<tablename>(score);</b>
try
{
wdContext.currentZzshibin_Test5_InputElement().modelObject().execute();
}
catch(Exception e)
{
manager.reportException("error",true);
return;
}
With Regards
Balaram Naidu Bankuru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry,
Change
input.add<bst..>(input);
as
<b>input.add<bst..>(score);</b>
Regards
Fahad Hamsa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Instead of
AbstractList list = new Zzbsctmydsub_Score.Zzbsctmydsub_Score_List();
list.add(score);
input.setTable(list);
Try
input.add<bst..>(input);
Regards
Fahad Hamsa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And I use wedDynpro debug and found thes data have be bound to Input model already.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Let's try something :
Zzshibin_Test5_Input input = new Zzshibin_Test5_Input();
<b>input.addTable(new Zzbsctmydsub_Score());</b>
wdContext.nodeZzshibin_Test5_Input().bind(input);
wdContext.currentZzshibin_Test5Element().setZzmydkey("1");
wdContext.currentZzshibin_Test5Element().setZzrltkey("2");
wdContext.currentZzshibin_Test5Element().setZzsubdes("3");
wdContext.currentZzshibin_Test5Element().setZzsubwgtrst("4");
try
{
wdContext.currentZzshibin_Test5_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
}
catch(Exception e)
{
manager.reportException("error",true);
return;
}
regards
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
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.