2004 Oct 06 4:44 PM
It must be simple, but we just can't find the BAPI call to get the current quantity on hand for a particular material in a specified storage location in MM. Does someone know the call?
Thanks.
It must be simple, but we just can't find the BAPI call to get the current quantity on hand for a particular material in a specified storage location in MM. Does someone know the call?
Thanks.
2004 Oct 06 5:18 PM
Have you tried BAPI_MATERIAL_GET_ALL?
2004 Oct 08 9:16 PM
We have looked at this but cannot find the quantity as displayed on the Stock Overview screen. We are looking for the unrestricted use stock. Are we just overlooking something?
2004 Oct 09 10:51 PM
2004 Oct 11 8:24 AM
Hi,
Rich is right; just a complementary remark: in case you also need figures from other periods than the previous period you van use FM 'MARD_EXTEND'.
Regards,
John.
2004 Oct 12 3:38 PM
Thank Rich. We did find these values in the MARD table, but when we access this table using .NET Connector and TABLE_READ_ALL function we get the following errors:
ASSIGN_CASTING_UNKNOWN_TYPE CX_SY_ASSIGN_CAST_UNKNOWN_TYPE
ASSIGN_BASE_WRONG_ALIGNMENT
Any suggestions?
2004 Oct 12 3:41 PM
We have also tried the RFC_READ_TABLE function with the same results.
2004 Oct 12 4:06 PM
The size of MARD is probably longer than 512 bytes, the size of returned internal table DATA from function module RFC_READ_TABLE.
2004 Oct 12 6:44 PM
Nablan:
Any other way to get this data with .NET Connector?
Dean
2004 Oct 12 7:47 PM
Just do like what Rich suggested. Create a custom RFC function module that just read the fields you want in MARD.
2004 Oct 12 7:59 PM
Thanks all. I was hoping for another solution, but we'll work on this.
Dean
2004 Oct 12 7:09 PM
Oh...never used .net connector.....just jCo. I'm assuming that they are pretty much the same, so my suggestion, if .net can not handle it, is to create your own RFC enabled function module with your import parameters, MATNR WERKS LGORT and exporting only the fields that you need. In the function module source, just hit table MARD with your parameters. Then just call this Function module in your .net program.
Good luck,
Rich Heilman
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |