BAPI_GOODSMVT_CREATE Error - The material does not exist or is not activatd
Scenario is to make a Goods Receipt on a material which is being imported from external sources.
There is a purchase order created for this already in SAP.
From MII we are using standard BAPI - BAPI_GOODSMVT_CREATE and passing the fields below:
GM_Code - 01 since it is a goods receipt
Psting_date - current date
Material - material code given by SAP
Plant - Plant code on which GR takes place.
Move_type - 101 because it is a GR
Entry_Qnt - 1
PO_number - Purchase order which is created in SAP
When I pass these details to the standard BAPI I get a return message - " The material 10xxxxxxxx does not exist or is not activated"
Not sure where I am going wrong.
Any help is highly appreciated.