Hi,
I am working on Netweaver 7.2.
I imported a BAPI model: BAPI_MATERIAL_GETLIST.
I imported the model node in my context node:
Bapi_Material_Getlist_Input node in which I have the Materialshortdescsel node, Maxrowd value and the Output node in which I have the Matnrlist for results.
The following code is used in the wdDoInit of the component controller:
Bapi_Material_Getlist_Input input = new Bapi_Material_Getlist_Input(); wdContext.nodeBapi_Material_Getlist_Input().bind(input); wdContext.nodeBapi_Material_Getlist_Input().currentBapi_Material_Getlist_InputElement().setMaxrows(0); Bapimatras bps = new Bapimatras(); wdContext.currentBapi_Material_Getlist_InputElement().modelObject() .addMaterialshortdescsel(bps);
I use the following code to execute the BAPI:
wdContext.currentBapi_Material_Getlist_InputElement().modelObject().execute(); wdContext.nodeOutput().invalidate();
I have checked in ST05 and the BAPI is called from the application. But I never get any values. As on the ECC side, when I test it, I get 16 values.
What is wrong with the code above ?
Thanks in advance for your help.
Thibault