Skip to Content
0
Feb 26, 2007 at 10:19 PM

Error parameter type sy--datum

361 Views

i got a block with 2 parameters like this:

<i>SELECTION-SCREEN BEGIN OF block 1 WITH FRAME TITLE text-001.

PARAMETERS: p_chkb AS CHECKBOX.

SELECT-OPTIONS: p_date FOR sy-datum.

SELECTION-SCREEN END OF block 1.</i>

in my main programa i want to make a perform like this

<i>IF p_chkb NE SPACE.

PERFORM form_xxx USING p_date.

ENDIF.

</i>

but when i define the <i>form_xxx</i> i got this error:

<i>FORM form_xxx USING s_date TYPE sy-datum.

READ TABLE s_date INDEX 1.

IF sy-subrc NE 0.

message 'Please insert the date field' TYPE 'I'.

ELSE.

...

...

...

ENDIF.

ENDFORM.

</i>

<b>"S_DATE" is neither specified under "TABLES" nor is it defined as an internal table</b>