cancel
Showing results for 
Search instead for 
Did you mean: 

not able to retrieve data from Bapi

Former Member
0 Kudos

I am new to web dynpros and i have used the bapi

Bapi_Material_Get_All for getting material description if we enter material number

and in the custom controller i have written the code

public void wdDoInit()

{

//@@begin wdDoInit()

Bapi_Material_Get_All_Input Input = new Bapi_Material_Get_All_Input();

wdContext.nodeBapi_Material_Get_All_Input().bind(Input);

//@@end

}

and in a separate method of custom controller i have written this code which will be called when i navigate from first view to second view

wdContext.currentBapi_Material_Get_All_InputElement().modelObject().execute();

wdContext.nodeOutput().invalidate();

plzzz someone help me in this regard....

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The code looks correct. Are you populating the material number from the first view into the input node's attribute for it to use to retrieve the description?

Also, there should be a return node that you can check the result and if there are any error messages coming back from the BAPI execute.

-Cindy