‎2009 Mar 09 2:36 PM
Dear Frnds,
I am passing records through selection option
SELECT-OPTIONS : SPERBL FOR CE2SKHG-PERBL NO-EXTENSION.
i want to pass only period in COEP Table for that I used,
ranges: date for COEP-PERIO.
date-sign = 'I'.
date-option = 'BT'.
date-low = SPERBL-LOW+4(3).
date-high = SPERBL-HIGH+4(3).
append date.
SELECT PERIO MATNR OBJNR SCOPE
FROM COEP
INTO CORRESPONDING FIELDS OF TABLE IT_COEP
FOR ALL ENTRIES IN IT_CE2SKHG
WHERE PERIO IN DATE
AND SCOPE IN ('OCOST', 'PRODT')
AND MATNR = IT_CE2SKHG-ARTNR.
In debugging Mode am getting DATE properly but the records are geting for every period.
Eg: I am passing in DATE- 10
but records are displaying for every period.
Regards
‎2009 Mar 09 2:44 PM
Hi,
Instead of the offset..assign the select options value directly.
ex..
READ TABLE SPERBL INTO SPERBL INDEX 1.
date-sign = 'I'.
date-option = 'BT'.
date-low = SPERBL-LOW.
date-high = SPERBL-HIGH.
append date.
‎2009 Mar 09 2:45 PM
Hi,
OR...
date-sign = 'I'.
date-option = 'BT'.
date-low = SPERBL-LOW+3(3).
date-high = SPERBL-HIGH+3(3).
append date.Thanks
Naren