Hi,
We have a custom program which creates the QUOTA via BAPI BAPI_QTASRVAPS_SAVEMULTI2 using entries from a flat file.
Somehow this program is incorretcly creating entries for products which do not exist in the target location.As aresult,when I run tcode /sapapo/scc_tq1,and then select a material to view details ,it displays error message “PRODUCT XXXX does not exist in location XXX’.
Hence I need to perform a check in the program to see if the product exists in that location.
I want to do a similar chekc as in the standard error message /SAPAPO/OO_TR 183.
I debugged this error mesage and found that the check was done via FM /SAPAPO/DM_MATLOC_GET_DATA to which the MAT ID(GUID) and LOC ID(GUID) is passed,but when I ruin this FM in Se37 with the MAT ID,LOC ID and version values,I see the error message "Location does not exist".
Please let me know how do Check if the product is existing in a location ?Is there any FM available?