01-08-2016 11:52 AM
Hi all,
Is there any standard BAPI which takes only plant details as importing parameters and provides details of 'all' the materials within that single plant?
BAPI_MATERIAL_GET_DETAIL, BAPI_MATERIAL_GET_ALL etc., all these bapi's require material number also as a input parameter. I need only plant as importing parameter.
Thanks in advance,
Regards,
Shrusti
01-08-2016 12:46 PM
Hi Shrusti,
I have not seen a bapi that would return the result set your looking for especially with the input parameter you mentioned.
Have you thought about trying something like running a sql query against the MARD table and getting all of the matnr for a specific werks and then you can run either of the two bapi's that you mentioned above and pass both the matnr and werks into them?
If you were wanting to do this type of call often then you could easily create a Z FM that performed this logic and return a table(s) of the FM results.
Hope this helps,
Geoffery
01-08-2016 1:12 PM
Hi Shrusti,
I don't think there is a standard BAPI for this, but you can write your own report, selecting material codes by plant from MARC, and pass each of them to the mentioned BAPI.
BAPI result can be collected and returned as applicable.
Hope this could help.
Thanks and regards,
Flavio
01-08-2016 1:33 PM
Regards,
Raymond