title: How to write condition in LEFT OUTER JOIN for select options?
body: <p>I have the following code which works fine:</p>
  <pre><code>TYPES: BEGIN OF ty_table,
     matnr TYPE marc-matnr,
     prodh TYPE mvke-prodh,
  END OF ty_table. 
  
  DATA: bukrs TYPE mvke-vkorg, matnr TYPE marc-matnr.
  DATA gt_table TYPE TABLE OF ty_table.
  
  SELECT-OPTIONS s_bukrs FOR bukrs.
  SELECT-OPTIONS s_matnr FOR matnr.
  
  SELECT marc~matnr, mvke~prodh
    FROM ( marc
           LEFT OUTER JOIN mvke
           ON mvke~matnr = marc~matnr )
      INTO TABLE @gt_table[]
         WHERE marc~matnr IN @s_matnr
           AND mvke~vkorg IN @s_bukrs.
  </code></pre>
  <p>I want to put the vkorg condition in LEFT OUTER JOIN, but it does not work:</p>
  <pre><code>SELECT marc~matnr, mvke~prodh
    FROM ( marc
           LEFT OUTER JOIN mvke
           ON mvke~matnr = marc~matnr
           AND mvke~vkorg IN @s_bukrs ) &quot; &lt;---
      INTO TABLE @gt_table[]
         WHERE marc~matnr IN @s_matnr.
  </code></pre>
  <p>By doing this, I receive the following error:</p>
  <pre><code>&quot;@S_BUKRS&quot; is invalid here (due to grammar). contains an invalid character or it is a
  </code></pre>
  <p>IF I write <code>AND mvke~vkorg = @s_bukrs</code> it works, but I need to use <code>IN</code>.</p>