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

Re: Display PM orders with REL status only

$
0
0

balaji

 

One easy method without any fm or objnr, but only by using simply the Order number.

TABLES:afih.

SELECT-OPTIONS: so_aufnr FOR afih-aufnr.

 

TYPES: BEGIN OF ty_ord,

          aufnr TYPE aufnr,

          iphas TYPE pm_phase,

        END OF ty_ord.

 

DATA: it_ord TYPE TABLE OF ty_ord.

 

SELECT aufnr iphas FROM afih INTO TABLE it_ord WHERE aufnr IN so_aufnr.

DELETE it_ord WHERE iphas <> '2'.

 

Means: The field IPHAS in table AFIH  indicates the Order status and if it is '2' then it is an order with system status REL. So at the end of the code above the internal table it_ord is left with all REL orders.

 

 

Good luck

KJogeswaraRao


Viewing all articles
Browse latest Browse all 2740

Trending Articles



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