Hi All,
I am trying to get the material info from SAP by webDynPro.
My Input Parameter is Material(IMPORT PARAMETER) and out put is Matrial_general_data(EXPORT PARAMETER).
In the implementation of method in
wdDoInit().
Bapi_Material_Get_Detail_Input input = new Bapi_Material_Get_Detail_Input();
wdContext.nodeBapi_Material_Get_Detail_Input().bind(input);
****************************************
what is the object I have to initiate for material Parameter.
//for input data Material
Matnr bapimat = new Matnr();
I tried in different way I am getting error.
Thanks & Regards,
Ram
Hi Ram,
looking at the corresponding XML interface specification at the" target="_blank">http://ifr.sap.com/catalog/query.asp">the SAP interface repository there are only simple import parameters for Material.GetDetail. According to Web Dynpro model creation conventions, you should be able to set the parameters directly in the Bapi_Material_Get_Detail_Input instance like:
Bapi_Material_Get_Detail_Input input = new Bapi_Material_Get_Detail_Input(); wdContext.nodeBapi_Material_Get_Detail_Input().bind(input); input.setPlant("yourPlant"); input.setValuationArea(...);
Hope that helps.
Regards
Stefan
Add a comment