cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_Material_get_Detail Function Module Error in WEBDYNPRO application

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ram,

looking at the corresponding XML interface specification at <a href="http://ifr.sap.com/catalog/query.asp">the SAP interface repository</a> 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