on 06-11-2005 8:26 PM
Hello,
i have problems with connection between the context in web dynpro and r/3. I use a rfc function, which i wrote on my own (no standard) in order to get persons from web dynpro to r/3. In web dynpro I created a multi selection table where the user can choose a list of persons. the selection works in web dynpro. for example: when i choose two persons then i can see those two persons in my context (model node) but not in the table of the rfc function in r/3. that's my problem. here some coding of my view implementation.
for (int i = 0; i < wdContext.nodeBearbeiter().size(); i++) {
if (wdContext.nodeBearbeiter().isMultiSelected(i)) {
String str = wdContext
.nodeBearbeiter()
.getElementAt(i)
.getAttributeValue("Bname")
.toString();
Usr03 bearb = new Usr03();
IWDNodeElement fb_bearb =
wdContext
.nodeZ_Fh0002_Datenverwaltung()
.nodeImt_Bearbeiter()
.createImt_BearbeiterElement(bearb);
fb_bearb.setAttributeValue("Bname", str);
wdContext.nodeZ_Fh0002_Datenverwaltung()
.nodeImt_Bearbeiter()
.addElement(fb_bearb);
}
}
the node z_fh0002_datenverwaltung is mapped to the controller context. the mapping between view and controller works. in the example: I can also see those two selected persons in the context node of the controller context just before calling the r/3 function. but the table imt_bearbeiter() is always empty in r/3.
can anybody help me please?
best regards
petra
Hi
I think if every thing is correct
u need to write this piece of code.
u have written
wdContext.nodeBearbeiter().getElementAt(i).getAttributeValue("Bname").toString();
whereas i feel u shuld write like this
wdContext.nodeBearbeiter().getBearbeiterElementAt(i).getAttributeValue("Bname").toString();
Just Check This
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Armin,
here my coding for calling the r/3 function:
<u>view controller</u>
wdThis.wdGetAccountCreateController().callZ_Fh0002_Datenverwaltung();
<u>component controller</u>
wdContext.currentZ_Fh0002_Datenverwaltung_InputElement()
.modelObject()
.execute();
wdContext.nodeZ_Fh0002_Datenverwaltung_Input()
.nodeOutput()
.invalidate();
What do you mean with the typed context API?
Petra
Hi,
the values I set in context of the view and this is mapped to the component controller context. I report some messages (IWDMessageManager) to check my coding in the component controller just before calling my rfc function and I detected that the correct values also in the context of the component controller. but if i debugg to r/3 there are the tables empty.
Petra
try the following
for (int i = 0; i < wdContext.nodeBearbeiter().size(); i++) {
if (wdContext.nodeBearbeiter().isMultiSelected(i)) {
String str = wdContext
.nodeBearbeiter()
.getElementAt(i)
.getAttributeValue("Bname")
.toString();
Usr03 bearb = new Usr03();
wdContext.nodeImt_Bearbeiter().addElement(bearb);
bearb.setAttributeValue("Bname", str);
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.