‎2006 Nov 09 8:55 PM
Hello,
How do I select applicable P0000 record where date entered on the selection screen equals P0000-AEDTM. Date is not a parameter.It is a select-option..
Thanks
Vicky
‎2006 Nov 09 8:56 PM
use the following..
select * from pa0000 into table i_pa0000
where aedtm in s_aedtm.~Suresh
‎2006 Nov 09 8:57 PM
Hi Vicky,
data itab type table of p0000.
select * from pa0000 into corresponding fields of table itab where aedtm in so_aedtm.
hope this helps.
Sajan.
Message was edited by: Sajan Joseph
‎2006 Nov 09 8:58 PM
Hi,
use the IN operator..
EX.
SELECT-OPTIONS SO_DATE FOR SY-DATUM.
DATA: T_VBAK TYPE STANDARD TABLE OF VBAK.
SELECT * FROM VBAK
WHERE <b>ERDAT IN SO_DATE</b>.
Thanks,
Naren
‎2006 Nov 09 9:02 PM
I used get pernr.So I also need to include condition for pernr. How do I do this?
‎2006 Nov 09 9:04 PM
get pernr.
loop at p0000 where ( aedtm le s_aedtm-high and a
aedtm ge s_aedtm-low ).
*
endloop.
~Suresh
‎2006 Nov 09 9:10 PM
Thanks Suresh for the reply..Now the thing is I need to pull the applicable records from P0001 P0002 P0007 using P0000-begda..How do i use this?
Thanks
VIcky
‎2006 Nov 09 9:20 PM
Thanks Suresh for the reply..Now the thing is I need to pull the applicable records from P0001 P0002 P0007 using P0000-begda..How do i use this?
Thanks
‎2006 Nov 10 2:48 AM
try this..
tables:pernr.
infotypes:0000,0001,0002,0007.
get pernr.
loop at p0000 where ( aedtm le s_aedtm-high and a
aedtm ge s_aedtm-low ).
rp-provide-from-last p0001 space p0000-begda p0000-begda.
if pnp-sw-found eq 1.
*p0001 will have the reqd record
endif.
rp-provide-from-last p0002 space p0000-begda p0000-begda.
if pnp-sw-found eq 1.
*p0002 will have the reqd record
endif.
rp-provide-from-last p0007 space p0000-begda p0000-begda.
if pnp-sw-found eq 1.
*p0007 will have the reqd record
endif.
endloop.
end-of-selection.
~Suresh