2006 Oct 23 2:01 PM
I NEED HELP PLZ SEE FOR PARTICULAR MATERIAL I HAVE TO FIND QUANTITY AND BATCH NO HOW TO WRITE CODING
2006 Oct 23 2:06 PM
for quantity do like this:
data: l_labst type mard-labst.
select sum( LABST )
into l_labst
from mard
where matnr = p_matnr.
For batches, you have to use the bapi:
BAPI_MATERIAL_GETBATCHES
Regards,
ravi
I NEED HELP PLZ SEE FOR PARTICULAR MATERIAL I HAVE TO FIND QUANTITY AND BATCH NO HOW TO WRITE CODING
2006 Oct 23 2:06 PM
for quantity do like this:
data: l_labst type mard-labst.
select sum( LABST )
into l_labst
from mard
where matnr = p_matnr.
For batches, you have to use the bapi:
BAPI_MATERIAL_GETBATCHES
Regards,
ravi
2006 Oct 23 2:14 PM
Hi,
use tables mard-labst(stock quantity),mch1-charg
tables for
batch.
select matnr labst from mard into table i_mard
for all entries in i_mara
where matnr = i_mara-matnr.
if not i_mard[] is initial.
select matnr charg from mch1 into i_batch
for all entries in i_mard
where matnr = i_mard-matnr
charg in s_charg.
endif.
Regards
amole
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |