cancel
Showing results for 
Search instead for 
Did you mean: 

Executing Bapi from webdynpro application

Former Member
0 Kudos

Hi ,

I am try to access backend data through bapi in my webdynpo application..

I have created a model selected the bapi req.

Mapping the contex of model to cust controller and further to UIelement context is done ...

Problem is with coding now ....

The coding done in customcontroller is

onwdDoInit()

{

Bapi_Ial_Createfromdata1_Input input = new Bapi_Ial_Createfromdata1_Input();

wdContext.nodeBapi_Ial_Createfromdata1_Input().bind(input);

input.setIal_Header_In(new zbapiialheadnew());

Bapi_Transaction_Commit_Input input1 = new Bapi_Transaction_Commit_Input();

wdContext.nodeBapi_Transaction_Commit_Input().bind(input1);

}

while creating a new element in the node Ial_Header_In give error that zbapiialheadnew cannot be resolved.

How to solve it ????

In view -

there is a dropdownkey which has action onactionselectplant,where we need to have the list of all available plant in it through bapi

Now coding is -

onactionselectplant()

{

wdContext.currentBapi_Ial_Createfromdata1_InputElement().setPlant(wdContext.currentBapi_Ial_Createfromdata1_InputElement().getPlant());

}

It also give the error thet plant cannot be resolved...

I suppose the second on is link with the first error ...but dont know how to remove it ...

onactionselectloc() - this method has to show the list of locations based on the selected planted in the other dropdownkey element to which this action is added in the onselect property of that dropdownkey element...

Please suggest how to do this coding?????

Please help ..

Thanks,

Gunja

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

solved my self ... thanks guys

Former Member
0 Kudos

Hi Gunja,

I think there is no such model class zbapiialheadnew generated while importing the RFCs. May be you should try looking into whatever model classes have been imported and use correct model class name. It must be something like ZBapi_Ialheadnew.

Regards,

Gopal

Former Member
0 Kudos

Hi ,

Organize imports then * while creating a new element in the node Ial_Header_In give error that zbapiialheadnew cannot be resolved * will be resolved.

Regards,

Sunitha Hari

Former Member
0 Kudos

Hi,

Organise imports is already done..........

still the error persist .............

Please guys help its very urgent....

Thanks,

Gunja