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

Bapi_Goodsmvt_Create: Material does not exist or is not activated....

Former Member
0 Likes
1,211

Hi all,

I'm using .Net connector to execute BAPI from my program and I'm able to login but always get the same message when I try to execute the material transfer: <b>Material xxx does not exist or is not activated</b>.

I'm not sure it has anything to do with the permission of my account because this is the first time our SAP admin create a "Communication" type user and we really don't know what kind of permission is good enough for BAPI_GOODSMVT_CREATE. Plus the error message does not show any thing about permission.... And same message returned if I use the dialog user.

If I use transaction MB1B to do the transfer (with the same material) then things are ok.

Any ideas are appreciated,

Eric

Message was edited by:

Eric Nguyen

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
917

The only thing I can think of is that when calling from .net, you are passing the material number without its internal format. The material number field in R/3 is an 18 character field. If the material number is numeric, the materail number is then padded with zeros on the left. Example, for material 12345, the internal format is 000000000000012345. If the BAPI in question is not fomatting the material internally in the BAPI, then it must be passed this way. CHeck how you are passing, if it is numeric and not zero filled left, then you must write some .net code to do so.

Regards,

Rich Heilman

Hi all,

I'm using .Net connector to execute BAPI from my program and I'm able to login but always get the same message when I try to execute the material transfer: <b>Material xxx does not exist or is not activated</b>.

I'm not sure it has anything to do with the permission of my account because this is the first time our SAP admin create a "Communication" type user and we really don't know what kind of permission is good enough for BAPI_GOODSMVT_CREATE. Plus the error message does not show any thing about permission.... And same message returned if I use the dialog user.

If I use transaction MB1B to do the transfer (with the same material) then things are ok.

Any ideas are appreciated,

Eric

Message was edited by:

Eric Nguyen

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
918

The only thing I can think of is that when calling from .net, you are passing the material number without its internal format. The material number field in R/3 is an 18 character field. If the material number is numeric, the materail number is then padded with zeros on the left. Example, for material 12345, the internal format is 000000000000012345. If the BAPI in question is not fomatting the material internally in the BAPI, then it must be passed this way. CHeck how you are passing, if it is numeric and not zero filled left, then you must write some .net code to do so.

Regards,

Rich Heilman

Read only

0 Likes
917

Yes.........

I see material length is 18 characters but I didn't think about appending 0 before my material number. BAPI does return material document now.

Thank you very much, Rich!

Read only

0 Likes
917

Cool, maybe you could consider awarding points for helpful answers. I see that you have marked the post as solved, if my answer has solved the problem, maybe you could mark the radiobutton next to my answer. Thanks.

Regards,

Rich Heilman