on 02-16-2011 3:33 PM
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
Dear Thibault,
When you import a BAPI / RFC, you get one node, Output. What I can see is that you are not using the Output node. You must use the output node's child node, which the the ones, which give the output.
Please try by using the output node, that should help. revert in case of issues.
Cheers!!!
Umang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
What are the import parameters are expecting FM?
Are you passing correct Import parameters? While executing from backend working means it is issue with your code.
Try to check import parameters , if it is required add prefix 0 (zero's ) to import parameters.
BR
SS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.