Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI associated with MMBE Transaction

Former Member
0 Kudos

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

11 REPLIES 11

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I don't think that there is one. The data from MMBE comes from tables MARD and MSKA. You could write your own RFC function module if needed.

Regards,

Rich Heilman

Former Member
0 Kudos

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.

Lakshmant1
Active Contributor
0 Kudos

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

0 Kudos

I decided to stick to bapis and I will try Material.Availability and WarehouseStock.GetList

0 Kudos

An off topic question:

How do I close the post? by rewarding points?

And if no answer was helpful?

0 Kudos

Those methods will not get you what you want.

Regards,

Rich Heilman

0 Kudos

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

0 Kudos

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??

0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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