Skip to Content
0
Former Member
Jun 10, 2009 at 06:54 PM

One input node not sending data to SAP

33 Views

Hello all,

First of all, let me start off by saying that I have a Java background and virtually no SAP background, so I apologize if I'm using the wrong terms here.

I'm working on a Web Dynpro for Java app that a previous employee wrote. There was an RFC Model created, and an ABAP Developer added a new table to that RFC, so we updated the Model to reflect that.

We have a context node representing that model, it's called Zwm_Get_Gen_Func_Loc_Info_Input.

Under that node, there are a number of nodes. One that was already existing is called Obj_Type. The new node we added for the new table is called Unit.

In the Web Dynpro app, there is a method that gets called in order to set some fields in Obj_Type and Unit and then execute the RFC. Here is a snippet of that method:

//setting all the data for the obj_type

wdContext.currentObj_TypeElement().setLow(obj_type_output.getObj_Types());

wdContext.currentObj_TypeElement().setOption("EQ");

wdContext.currentObj_TypeElement().setSign("I");

if (wdContext.currentUnitElement() == null) {

Zwm_Gen_Unit_Sel unit = new Zwm_Gen_Unit_Sel();

wdContext.nodeUnit().addElement(wdContext.nodeUnit().createUnitElement(unit));

}

//setting all the data for unit

wdContext.currentUnitElement().setLow(wdContext.currentZpg_Unit_OutputElement().getPlant_Unit());

wdContext.currentUnitElement().setZ_Option("EQ");

wdContext.currentUnitElement().setZ_Sign("I");

//execute.

try {

wdContext.currentZwm_Get_Gen_Func_Loc_Info_InputElement().modelObject().execute();

//etc, etc, etc.

Anyway, so... the weird thing is, everything is working FINE for the Obj_Type node - I can debug the RFC in SAP and see that all the data is getting to that table. But NOTHING is getting sent to the Unit table.

Any ideas?

Thanks,

Jennifer

Edited by: Jennifer A. Jacobs on Jun 10, 2009 8:54 PM