Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

block alv

Former Member
0 Likes
399

Hi,

I have a doubt in block ALV.If in the first block,If I have fields that need 2 be extracted from different database tables.

How can I extract the data by using SELECT.

For ex,In the first block,If I have employee name,organisation,ID.........which are from different database tables.Hou can I write SELECT statement.

1 ACCEPTED SOLUTION
Read only

alejandro_bindi
Active Contributor
0 Likes
382

Probably you need to write a JOIN (Check Help under Open SQL syntax).

Check <a href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/content.htm">this link</a>.

Regards.

Please reward points if helpful.

2 REPLIES 2
Read only

alejandro_bindi
Active Contributor
0 Likes
383

Probably you need to write a JOIN (Check Help under Open SQL syntax).

Check <a href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/content.htm">this link</a>.

Regards.

Please reward points if helpful.

Read only

Former Member
0 Likes
382

If you are not sure where data is coming from, you can turn the SQL Trace (Performance Trace = transaction ST05) on and run the standard SAP transaction / report where you normally see this data. Then turn the trace off and examine the output... not only can you see which tables are used, but you can often pick up really good examples of how SAP have structured their database accesses, and even possibly find function modules that return the data you want.