07-31-2008 10:04 AM
Hi Experts,
I have requirement in which I have to call the function module(RFC Enabled) or BAPI which give the following fields as listed below
1.Plant
2.Material
3.Material description
4.Batch number
5.Material type
6.Basic unit of measure
7.Storage location
8.Unrestricted quantity (not consignment)
9.Reserved quantity
10.Quantity under inspection,
11.Blocked
12.Returns
13.Stock in transit
Please help me out soon.
Thanks and regards,
Kuldeep Verma
07-31-2008 10:10 AM
Hi Friend,
Pls check the following
BAPI_MATERIAL_STOCK_REQ_LIST
Regards,
Suresh.S
07-31-2008 10:08 AM
07-31-2008 10:08 AM
Hi,
You can use 'BAPI_MATERIAL_AVAILABILITY' to find available stock of material.
You can get reservations and reserved quantity from table RESB.
Regards,
Aparna Gaikwad.
07-31-2008 10:10 AM
Hi Friend,
Pls check the following
BAPI_MATERIAL_STOCK_REQ_LIST
Regards,
Suresh.S
07-31-2008 10:41 AM
Thanks Aparna and Suresh, For giving me the help at right time.
But Still I am not able to find the BAPI for the fields like
Material description
Basic unit of measure
Can you please fwd me that BAPI also
Thanks and regards,
Kuldeep Verma
07-31-2008 10:45 AM
07-31-2008 11:05 AM
Hi,
BAPI_MATERIAL_AVAILABILITY is the correct BAPI to get the details.
here is the sample code:
REPORT ZREPORT_MAT.
data: ENDLEADTME type BAPICM61M-WZTER,
AV_QTY_PLT type BAPICM61V-WKBST,
DIALOGFLAG type BAPICM61V-DIAFL,
RETURN type BAPIRETURN,
WMDVSX type table of BAPIWMDVS,
WMDVEX type table of BAPIWMDVE.
CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'
EXPORTING
plant = '1100'
material = '000000000300000292'
unit = 'EA'
CHECK_RULE =
STGE_LOC =
BATCH =
CUSTOMER =
DOC_NUMBER =
ITM_NUMBER =
WBS_ELEM =
STOCK_IND =
DEC_FOR_ROUNDING =
DEC_FOR_ROUNDING_X =
READ_ATP_LOCK =
READ_ATP_LOCK_X =
MATERIAL_EVG =
IMPORTING
ENDLEADTME = ENDLEADTME
AV_QTY_PLT = AV_QTY_PLT
DIALOGFLAG = DIALOGFLAG
RETURN = RETURN
tables
wmdvsx = WMDVSX
wmdvex = WMDVEX
.
break developer.
write:/ AV_QTY_PLT.
Reward points if useful.