‎2019 May 28 1:49 PM
I am working on a Z report which shows material value based on batch must be matched with mb52.
In mb52 unristricted quantity is showing but value shows 0 for certain batch when special stocks is checked.
What logic i put to match this.
Thanks And Regards.
‎2019 May 28 4:09 PM
Did you analyze MB52 to understand when and which table is read to valuate an item (MBEW, EBEW, QBEW, OBEW) and how to join those tables from MCHA/MCH1, MCHB.
Another solution is calling the report behind MB52 and in the standard report, export the data/suppress the dialog (with some enhancement of the transaction, e.g. add an hidden parameter, and before display if the parameter is set, export data to memory and return)
‎2019 May 28 2:12 PM
Hi,
I think if you need to get same logic why don't you copy the MB52 program or enhance and add whatever the additional field what you need.
you can try this FM.
BAPI_MATERIAL_STOCK_REQ_LIST.
Get the Stock data from the tables MCHB for the material/plant/batch combination
Regards,
Nawa
‎2019 May 28 4:09 PM
Did you analyze MB52 to understand when and which table is read to valuate an item (MBEW, EBEW, QBEW, OBEW) and how to join those tables from MCHA/MCH1, MCHB.
Another solution is calling the report behind MB52 and in the standard report, export the data/suppress the dialog (with some enhancement of the transaction, e.g. add an hidden parameter, and before display if the parameter is set, export data to memory and return)
‎2019 May 29 6:24 AM

Yeah, stock & values are coming properly from mchb and mbew respectively , but how i can determine, which batch have zero values for materials in it.
‎2019 Jun 02 6:34 PM
‎2019 Jun 03 6:05 AM
Yes, Raymond Giuseppi, I inner join mcha with mssa and red value of kzbws.
Now it is matching with mb52.
Thanks for reply.