Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3193

Re: Select-options

$
0
0

Second option:

 

TABLES:mara.

SELECT-OPTIONS: matnr FOR mara-matnr.

 

TYPES:BEGIN OF st_mara.

         INCLUDE STRUCTURE mara.

TYPES:END OF st_mara.

 

DATA:it_mara TYPE TABLE OF st_mara,

      wa_mara TYPE st_mara.

 

DATA: true TYPE i.

 

START-OF-SELECTION.

   BREAK-POINT.

   LOOP AT matnr.

     IF matnr-sign EQ 'I'  AND matnr-option EQ 'BT'.

       wa_mara-matnr = matnr-low.

       APPEND wa_mara TO it_mara.

       CLEAR:wa_mara.

 

       wa_mara-matnr = matnr-high.

       APPEND wa_mara TO it_mara.

       CLEAR:wa_mara.

     ENDIF.

     IF matnr-sign EQ 'I'  AND matnr-option EQ 'EQ'.

       wa_mara-matnr = matnr-low.

       APPEND wa_mara TO it_mara.

       CLEAR:wa_mara.

     ENDIF.

   ENDLOOP.


In selection options you may try to enter Between or only single options.

then looping the select options then it will store the values in Internal table

From internal table you need to check particular doc type is available or Not.

Hope you understood.



Viewing all articles
Browse latest Browse all 3193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>