cancel
Showing results for 
Search instead for 
Did you mean: 

how to fetch data dynamically

Former Member
0 Kudos

Hi

I have an inputfield. when i enter the value in that, based on that value some data from the database table have to be fetched and displayed in the table.

How do i go about doing this. there was tutorial fetching data through BAPI,

but how to do this without a BAPI?

Where do i code for this action.

Regards

Ramya

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

create a function module and put your data fetching logic in that.

Call that using Service Call Wizard.

You can write Select Query anywhere in Web Dynpro, framework will not stop you doing so, but it does not enforce MVC and it is a bad practice

Abhi

Answers (2)

Answers (2)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Here is a video tutorial from the SDN eLearning section that shows this very thing:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/093055e7-0b01-0010-d89d-cf883...

Former Member
0 Kudos

Hi

Problem Solved

Thanks.

Regards

Ramya

Former Member
0 Kudos

Hi Ramya,

Can i know how u have solved this problem why because i got same problem.In header table i am getting different tables name in one field.So whatever table name was stored in that field i want to fetch data from that problem.Please send the code for this other wise give me the solution how u have solved..

Thanks

Prasad

Former Member
0 Kudos

Hi there,

check out this link, theres is a section on populating a table on action!

http://www.sapdev.co.uk/webapps/webdynpro/wdphome.htm

Regards

Mart