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

Code for select query

Former Member
0 Likes
727

Hi please help me to write this select query

report i/ps are :bukrs,anlkl,report date,ktansw,budat and posnr

report o/p:belnr,bukrs

bukrs:value is entered in the selection screen

anlkl:optional field in selection screen

report date:fetched and placed in a table

ktansw:can this be directly fetched from table

budat:fetched and placed in a table

posnr:already fetched and placed in the table

5 REPLIES 5
Read only

Former Member
0 Likes
706

Hi,

What condition u want 2 fetch the data.....

regards:

Prabu

Read only

0 Likes
706

using whatever i have mentioned in the report i/p should be in the where codn.

Read only

Former Member
0 Likes
706

Hi,

on what condition it should be fetched and give the table names.

Narendra

Read only

0 Likes
706

anek table which has the values of belnr,bukrs.

anlav structure which has the field anlkl,

rbada structure which has the value of brdatu(but this is already fetched and placed in a table)

Read only

0 Likes
706

ANLAV is a structure. Structures don't hold data. You need to find the associated database table.

Then, you just select the data you want (and don't already have) from the database tables into internal tables defined in your program ....and there you have it.