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

Problem while passing Selection option

ashish_shah5
Participant
0 Likes
386

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

2 REPLIES 2
Read only

Former Member
0 Likes
348

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.

Read only

Former Member
0 Likes
348

Hi,

OR...

date-sign = 'I'.
date-option = 'BT'.
date-low = SPERBL-LOW+3(3).
date-high = SPERBL-HIGH+3(3).
append date.

Thanks

Naren