Application Development 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: 

BAPI_GOODSMVT_CREATE Error - The material does not exist or is not activatd

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

Hi,

Use the conversion exit of MATNR(Function module :CONVERSION_EXIT_MATN1_INPUT) to convert the data in SAP format, then use it in BAPI.

Regards

Vinod

0 Kudos

Thanks for your reply Vinod...

Well.. I am calling this BAPI from Netweaver MII and I just see the request and response tags to which I pass the required values to BAPI request fields.

I am not sure how to call this FM which you are refering to, can you please elobrate a bit or is there any guide I am refer to?

0 Kudos

Hi srinivas,

I don't know how to call this function module in Netweaver MII. This function module will add additional zeros (0) to the starting of material number so that total length of material number is 18 characters.

Regards

Vinod

0 Kudos

1. Check the material number in table:MARA.

If YES.

2. check purchasing view, is there any option or check box to get it acivated ...etc like that

--

Reddy