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

SELECT STATEMENT

Former Member
0 Likes
545

Hi,

Is there any problem in this select statement, it is not returning data, though i have data in MARD table for material and respective plant. also checked the date field DLINL field is empty. I am using SAP 4.6c version.

SELECT * FROM MARD APPENDING TABLE TMARD

WHERE MATNR IN MS_MATNR

AND WERKS IN MS_WERKS

AND LGORT IN MS_LGORT

and dlinl = ' '.

Regards,

Shan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
519

try this

SELECT * FROM MARD APPENDING TABLE TMARD

WHERE MATNR IN MS_MATNR

AND WERKS IN MS_WERKS

AND LGORT IN MS_LGORT

and dlinl eq '00000000'.

regards

shiba dutta

3 REPLIES 3
Read only

Former Member
0 Likes
520

try this

SELECT * FROM MARD APPENDING TABLE TMARD

WHERE MATNR IN MS_MATNR

AND WERKS IN MS_WERKS

AND LGORT IN MS_LGORT

and dlinl eq '00000000'.

regards

shiba dutta

Read only

Former Member
0 Likes
519

initial value for date is '00000000'

try to use this value in ur select statement for the date filter

regards

Read only

Former Member
0 Likes
519

thanks