‎2007 Aug 09 11:04 AM
Hi,
I have written the following code
INCLUDE zfirf_rfd_final_top.
* INCLUDE ZFIRF_RFD_FINAL1_O01 . " PBO-Modules
* INCLUDE ZFIRF_RFD_FINAL1_I01 . " PAI-Modules
INCLUDE ZFIRF_RFD_FINAL_F01 . " FORM-Routines
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_keydt TYPE erdk-erdat OBLIGATORY.
SELECT-OPTIONS: s_bp FOR erdk-partner,
s_ca FOR erdk-vkont.
SELECTION-SCREEN END OF BLOCK b1.
INITIALIZATION.
SET TITLEBAR 'REFUND'.
START-OF-SELECTION.
PERFORM get_data_from_selection.
FORM get_data_from_selection.
SELECT opbel
partner
vkont
FROM erdk
INTO CORRESPONDING FIELDS OF TABLE t_erdk
WHERE verart EQ c_43
AND simulated EQ space
AND stokz EQ space
AND tobreleasd EQ space
AND intopbel EQ space
AND invoiced NE space
AND partner IN s_bp
AND vkont IN s_ca.
ENDFORM.
when i do a syntax check i get the following error
The IN operator with "S_BP" is followed neither by an internal table nor by a value list.
Can you suggest what is the error in the program ?
Regards,
Imran
‎2007 Aug 09 11:07 AM
‎2007 Aug 09 11:13 AM
Hi Imran,
please try this one dont try in perform and form
INCLUDE zfirf_rfd_final_top.
INCLUDE ZFIRF_RFD_FINAL1_O01 . " PBO-Modules
INCLUDE ZFIRF_RFD_FINAL1_I01 . " PAI-Modules
INCLUDE ZFIRF_RFD_FINAL_F01 . " FORM-Routines
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_keydt TYPE erdk-erdat OBLIGATORY.
SELECT-OPTIONS: s_bp FOR erdk-partner,
s_ca FOR erdk-vkont.
SELECTION-SCREEN END OF BLOCK b1.
INITIALIZATION.
SET TITLEBAR 'REFUND'.
START-OF-SELECTION.
SELECT opbel
partner
vkont
FROM erdk
INTO CORRESPONDING FIELDS OF TABLE t_erdk
WHERE verart EQ c_43
AND simulated EQ space
AND stokz EQ space
AND tobreleasd EQ space
AND intopbel EQ space
AND invoiced NE space
AND partner IN s_bp
AND vkont IN s_ca.
reward points to all helpful answers
kiran.M
‎2007 Aug 09 11:14 AM
Hi Imran
I think the problem is in the positioning of your code. Can you paste you complete code, i mean to say the main program, top include and your form include. That should help to analyse better,
~Ranganath