‎2006 Mar 02 12:46 PM
HI,
What is the equivalent select statement for below mentioned condition.
SELECT-OPTIONS : SALEDOCU FOR VBAK-VBELN OBLIGATORY,
DATE FOR VBAK-ERDAT OBLIGATORY,
CHANEEL FOR VBAK-VTWEG,
SALETYPE FOR VBAK-AUART OBLIGATORY DEFAULT 'QT'
NO INTERVALS NO-EXTENSION.
Regards,
John.
‎2006 Mar 02 12:49 PM
mmmh, what do you means with equivalent select ?
select * from vbak
where vbeln in saledocu
and erdat in date
and vtweg in chaneel
and auart in saletype.
endselect.??
Rgd
Frédéric
‎2006 Mar 02 12:52 PM
Hi john,
1. we can use like this :
2.
DATA : itab LIKE TABLE OF vbak WITH HEADER LINE.
SELECT * FROM vbak
INTO TABLE itab
WHERE vbeln IN saledocu
AND audat IN date
AND vtweg IN chaneel
AND auart in saletype
regards,
amit m.
‎2006 Mar 02 12:53 PM
Hi,
Select * from VBAK into table it_vbak
where vbeln in SALEDOCU
and ERDAT in DATE
and AUART in SALETYPE
and VTWEG in CHANEEL.
Regards,
GSR.
‎2006 Mar 02 12:54 PM
Hi john dias
select * from vbak where vbeln in saledocu and erdat in date and vtweg in chanel and auart in saletype.
you can use AND or OR as per requirement.
regards
kishore
‎2006 Mar 02 12:55 PM
hi john,
Could you be please clear about ur question.
What i understand is ur looking for a select query using the above selection screen parameters.
You can use Array fetch by doing:
select * from vbak into table it_vbak
where vbeln in saledocu
and erdat in date
and vtweg in chaneel
and auart in saletype.
Cheers
Sunny
‎2006 Mar 02 12:57 PM
hi,
you can use following code.
tables vbak.
data : begin of t_vbak occurs 0.
include structure vbak.
data : end of t_vbak.
select * from vbak into table t_vbak where
vbeln in saledocu and
erdat in date and
vtweg in chaneel and
auart in saletype.
Hope this helps.
Regards,
Shashank
‎2006 Mar 02 1:04 PM
‎2006 Mar 02 1:18 PM
tables : vbak.
start-of-selection.
select * into table itab from vbak
where vbeln in saledocu
and erdat in date
and vtweg in channel
______________________
and auart in saletype
_______________________
*or u can use as
select * into table itab from vbak
where vbeln in saledocu
and erdat in date
and vtweg in channel
________________________
and auart = 'QT'.
_________________
regards,
vijay.