Skip to Content
0
Former Member
Jun 11, 2005 at 07:26 PM

Problems to get the content of context to R/3

19 Views

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