03-11-2005 1:05 PM
Hi everyone,
I´d like to know the name of the BAPI associated with the MMBE Transaction (Screen) on SAP 46C.
Thank you in advance
03-11-2005 1:19 PM
03-11-2005 1:23 PM
Hi,
I do not think that it is likely for this transaction to have a BAPI. It is just a report transaction and displays some values based on the selection criteria.
If you want the data, then you need to code for your own FM and make it RFC enabled.
regards,
anand mandalika.
03-11-2005 1:39 PM
Hi Donato,
I am not sure about BAPI, but if you are facing any performace related issues with MMBE you can refer to OSS Note 422295.
Thanks
Lakshman
03-11-2005 5:46 PM
I decided to stick to bapis and I will try Material.Availability and WarehouseStock.GetList
03-11-2005 5:48 PM
An off topic question:
How do I close the post? by rewarding points?
And if no answer was helpful?
03-11-2005 6:00 PM
03-11-2005 6:12 PM
Its really as easy as the following code....
report zrich_0001.
data: imard type table of mard with header line,
imska type table of mska with header line.
parameters: p_matnr type mard-matnr,
p_werks type mard-werks,
p_lgort type mard-lgort.
start-of-selection.
select * into corresponding fields of table imard
from mard
where matnr = p_matnr
and werks = p_werks
and lgort = p_lgort.
select * into corresponding fields of table imska
from mska
where matnr = p_matnr
and werks = p_werks
and lgort = p_lgort.
check sy-subrc = 0.
This will give you all of the stock records for that material/plant/storage location.
If you only want to see where inventory stock > 0.
report zrich_0001.
data: imard type table of mard with header line,
imska type table of mska with header line.
parameters: p_matnr type mard-matnr,
p_werks type mard-werks,
p_lgort type mard-lgort.
start-of-selection.
select * into corresponding fields of table imard
from mard
where matnr = p_matnr
and werks = p_werks
and lgort = p_lgort
and LABST > 0.
select * into corresponding fields of table imska
from mska
where matnr = p_matnr
and werks = p_werks
and lgort = p_lgort
and KALAB > 0.
check sy-subrc = 0.
Just incorporate this code into an RFC enabled function module.
Regards,
Rich Heilman
03-14-2005 7:11 PM
Its really as easy as the following code....
as easy and simple as it may be, I have never used RFC. I am not too familiar with ABAP.
Just incorporate this code into an RFC enabled
function module.
I don´t know how to set things up, where do I find an RFC enabled function mod? how do I call it? how do i pass it parameters?? Does anyone have a tutorial for this??
03-14-2005 7:40 PM
In SAP, transaction code SE37 is where you create function modules. You give name to your function module(of course within the customer name range), define the interface(i.e., IMPORT, EXPORT, CHANGING, TABLES), and in the attributes section, you will define the function module as remotely executable which makes it a RFC. You will have to assign a function group to your function module even before you do all this. So create a funciton group by going through the menu in SE37 'Go To> Function Group>Create Group'.
Here is the link to the documentation.
http://help.sap.com/saphelp_46c/helpdata/en/22/0427c0488911d189490000e829fbbd/frameset.htm
Srinivas
09-28-2010 3:01 AM
Rich - Thanks much for the great info.
Question: Have you ever used function module MB_CHECK_MATERIAL_STOCKS? I am sure you have.
If so - can you direct me towards how to effectively populate the import and/or table parameters in order to get this same info?
Thanks much for your insight.
08-06-2007 11:29 AM
Hi Donato Azevedo,
i got the same requirement which u got previously, can u please let me know how u proceeded.
my requirement is for mmbe transaction code material field looks like parameters, here we need it as select-options.
u can contact me on avkvaraprasad@gmail.com
thanks in advance