Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem in Getting the Data from BAPI_GOODSMVT_GETITEMS in Web Dynpro

Hi Guru's,

I'm using the BAPI, BAPI_GOODSMVT_GETITEMS to get the list of Materials in WEB Dynpro.

for this i 'm passing the following parameters.

Material ,Plant , Movement Type and Special Stock parameters.

When i passed the same parameters in the R/3 Server, i'm getting the data. In webdynpro i'm not getting the data.

Please give me the solution

Here is the code i've written in the view level to pass parameters.

Bapi_Goodsmvt_Getitems_Input input = new Bapi_Goodsmvt_Getitems_Input();

wdContext.nodeBapi_Goodsmvt_Getitems_Input().bind(input);

Bapi2017_Gm_Material_Ra input1 = new Bapi2017_Gm_Material_Ra();

wdContext.nodeBapi2017_Gm_Material_Ra().bind(input1);

Bapi2017_Gm_Move_Type_Ra input2 = new Bapi2017_Gm_Move_Type_Ra();

wdContext.nodeBapi2017_Gm_Move_Type_Ra().bind(input2);

Bapi2017_Gm_Plant_Ra input3 = new Bapi2017_Gm_Plant_Ra();

wdContext.nodeBapi2017_Gm_Plant_Ra().bind(input3);

Bapi2017_Gm_Spec_Stock_Ra input4 = new Bapi2017_Gm_Spec_Stock_Ra();

wdContext.nodeBapi2017_Gm_Spec_Stock_Ra().bind(input4);

wdContext.nodeBapi2017_Gm_Material_Ra().currentBapi2017_Gm_Material_RaElement().setSign("I");

wdContext.nodeBapi2017_Gm_Material_Ra().currentBapi2017_Gm_Material_RaElement().setOption("EQ");

wdContext.nodeBapi2017_Gm_Material_Ra().currentBapi2017_Gm_Material_RaElement().setLow("1857");

wdContext.nodeBapi2017_Gm_Plant_Ra().currentBapi2017_Gm_Plant_RaElement().setSign("I");

wdContext.nodeBapi2017_Gm_Plant_Ra().currentBapi2017_Gm_Plant_RaElement().setOption("EQ");

wdContext.nodeBapi2017_Gm_Plant_Ra().currentBapi2017_Gm_Plant_RaElement().setLow("M110");

wdContext.nodeBapi2017_Gm_Move_Type_Ra().currentBapi2017_Gm_Move_Type_RaElement().setSign("I");

wdContext.nodeBapi2017_Gm_Move_Type_Ra().currentBapi2017_Gm_Move_Type_RaElement().setOption("EQ");

wdContext.nodeBapi2017_Gm_Move_Type_Ra().currentBapi2017_Gm_Move_Type_RaElement().setLow("309");

wdContext.nodeBapi2017_Gm_Spec_Stock_Ra().currentBapi2017_Gm_Spec_Stock_RaElement().setSign("I");

wdContext.nodeBapi2017_Gm_Spec_Stock_Ra().currentBapi2017_Gm_Spec_Stock_RaElement().setOption("EQ");

wdContext.nodeBapi2017_Gm_Spec_Stock_Ra().currentBapi2017_Gm_Spec_Stock_RaElement().setLow("W");

//

wdThis.wdGetWdsdgoodsmvmtcustController().execute_BAPI_GOODSMOVEMENT_GETITEMS();

Please correct me if i'm wrong in coding.

Thanks & Regards,

Adi

Not what you were looking for? View more on this topic or Ask a question