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

Error during program syntax check

Former Member
0 Likes
435

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

3 REPLIES 3
Read only

Former Member
0 Likes
415

u should give IN ('a', 'b').

S@ameer

Read only

Former Member
0 Likes
415

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

Read only

Former Member
0 Likes
415

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