Skip to Content
author's profile photo Former Member
Former Member

BAPI_Material_get_Detail Function Module Error in WEBDYNPRO application

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 04, 2005 at 02:09 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.