2006 Dec 12 12:39 AM
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
2006 Dec 12 12:46 AM
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
2006 Dec 12 12:46 AM
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
2006 Dec 12 12:59 AM
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!
2006 Dec 12 1:01 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |