cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve the values from SAP database using Web Dynpro

Former Member
0 Kudos

I'm working with Web Dynpro. I need to generate some reports in Web Dynpro based on the data in the table of SAP Data Base (Ztable). So How can i retrieve the data from the SAP Data Base.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi!

Never code SQL statements directly whithin WebDynpro for ABAP. This is a bad and ugly mixture of UI and business logic - strictly forbidden (but technically possible) by the MVC design paradigm. Instead create ABAP Objects classes and methods and/or Function Modules you can call from within your WebDynpro for ABAP application. TRhere are Code Wizards to semi-automatically create the required coding.

Simply have a look at some tutorials in SAP documentation for WebDynpro for ABAP. In SDN you can also find (even better) tutorials. A good starting point is here:

https://wiki.sdn.sap.com/wiki/display/WDABAP/Main

WD4A SAP documentation:

http://help.sap.com/saphelp_nw2004s/helpdata/de/43/4e335b3d1d1bcde10000000a1553f7/frameset.htm

Hope this helps.

Regards,

Volker

Former Member
0 Kudos

Hi,

You cannot retrieve data using web dynpro. You can only display them using wd4a. Retrieval is just as you would do in normal dynpros or any ABAP code. Create APIs to access your tables and use them. Create a table UI element and bind the data to the element so that you can see it in a view.

Regards

Nithya

mohammed_anzys
Contributor
0 Kudos

Hi

Use your function modules or select queries to fetch the data inside the WDDOINIT orWDDOMODIFY of your view.And this data , you can bind it to the context of your view .

Please go through some tutorial.

Thanks

Anzy