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

Reg: select statement

Former Member
0 Likes
458

Hi :

i have to select sales orders, item from a table based on plant , shipping point and delivery creation date.

In general how will we frame a select statement for the above fields.

Thx.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
434

Hi,

<b>SELECT VBELN

POSNR

FROM VBAP

INTO TABLE IT_VBAP

WHERE WERKS IN S_WERKS

AND VSTEL IN S_VSTEL

AND ERDAT IN S_ERDAT.</b>

reward if useful.

3 REPLIES 3
Read only

Former Member
0 Likes
434

Hi

Use table VBAK and VBAP for the same get the records and use join for the same to fetch the records

regards

Shiva

Read only

Former Member
0 Likes
434

Hi,

Select vbeln psonr
          from vbap
          into table i_vbap
          where werks  IN s_werks
          AND vstel   IN s_vstel
          AND date   IN s_date.

Read only

Former Member
0 Likes
435

Hi,

<b>SELECT VBELN

POSNR

FROM VBAP

INTO TABLE IT_VBAP

WHERE WERKS IN S_WERKS

AND VSTEL IN S_VSTEL

AND ERDAT IN S_ERDAT.</b>

reward if useful.