I'd like to know how to check if the current contents of a field are in the set described by an internal table.
I know I have to use the statement <b>IN</b>, but I don't know exactly how to define the internal table. In my case, I have a single field (<i>tipo_doc</i>) in my internal table which stores 4 different values: C, I, K, L.
I want to use the statement <b>IN</b> as shown next:
SELECT * FROM VBFA APPENDING CORRESPONDING FIELDS OF TABLE it_flujo_docs WHERE ( VBELN = it_total_fact-vbeln )
AND ( VBTYP_V <b>IN</b> itab).
Then I'd like to know how the internal table <i>itab</i> should be defined. It should be something like this I think, but it doesn't work:
DATA: BEGIN OF itab OCCURS 0,
tipo_doc LIKE zpedidos-tipo_doc,
tipo_doc-sign = 'I',
tipo_doc-option = 'EQ',
tipo_doc-low = C,
tipo_doc-high = L,
END OF it_tipo_doc_ped.
I'd appreciate if someone could tell me the proper way to define it.
Thanks in advance,