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

Select goods receipt

Former Member
0 Likes
797

Dear All,

Could you please let me know what other selection scriteia to be considered for selecting goods received(MENGE) from MSEG table provided we have material doc (MBLNR) , year (MJAHR) and purchase doc (EBELN).

What other points to be considered in the below select query to obtain correct GR.

select mblnr

mjahr

zeile

Menge

into table lt_mseg

from MSEG

for all entries in lt_mkpf

where mblnr EQ lt_mkpf-belnr

and mjahr EQ lt_mkpf-gjahr

and zeile NE space

and matnr EQ gs_item-matnr

and ebeln EQ gs_item-ebeln

and ebelp EQ gs_item-ebelp

and j_3asiz EQ gs_item-grid.

Dear All,

Could you please let me know what other selection scriteia to be considered for selecting goods received(MENGE) from MSEG table provided we have material doc (MBLNR) , year (MJAHR) and purchase doc (EBELN).

What other points to be considered in the below select query to obtain correct GR.

select mblnr

mjahr

zeile

Menge

into table lt_mseg

from MSEG

for all entries in lt_mkpf

where mblnr EQ lt_mkpf-belnr

and mjahr EQ lt_mkpf-gjahr

and zeile NE space

and matnr EQ gs_item-matnr

and ebeln EQ gs_item-ebeln

and ebelp EQ gs_item-ebelp

and j_3asiz EQ gs_item-grid.

5 REPLIES 5
Read only

Former Member
0 Likes
742

check EKBE table .

EKBE - VGABE = 1.

<b>Hello ,

For GR u have to take Movement types 101/102 as a standard process .

If u want data based on the PO then better to use EKBE table to get performace.</b>

Regards

Peram

Read only

0 Likes
742

Thank you for your reply..

I mean what other field of MSEG table has to be considered inorder to get correct quantity MSEG-MENGE.

regards

Read only

Former Member
0 Likes
742

Hi

Consider the MOVEMENT TYPE field BWART of table MSEG in the where condition

because based on the Movement type GR/GI and other goods movements are distinguished clearly

Reward points for useful Answers

Regards

Anji

Read only

Former Member
0 Likes
742

BWART in MSEG table

Regards

Read only

Former Member
0 Likes
742

Got the answer