SAP for Retail Discussions
Join conversations about personalization, omnichannel strategies, and operational excellence in retail using SAP for Retail software.
cancel
Showing results for 
Search instead for 
Did you mean: 

execute listing function from BAPI

0 Kudos

Hello,

I' m creating article using bapi 'BAPI_MATERIAL_MAINTAINDATA_RT'. Views being created are BASIC Data, Listing and Store.

I'm also assigning a listing procedure in the BAPI for each article.

My questions is regarding 'EXECUTE LISTING' functionality from MM41/MM42 trasnaction. Post execution of BAPI, I need to go to MM42 and do 'EXECUTE LISTING' from the listnig view and save the article for the article to get listed.

I want to list the material in all stores assigned to a distribution chain.

If I use transaction WSM8 then I need to specify individual stores and run the program for them.

Is there a way to trigger automatic listing while creating article using BAPI to simulate the 'EXECUTE LISTING' button from Article Master maintenance screen? Or there is a program which will allow me to run listing for a distribution chain? WSP7is for 'VALUE ONLY ARTICLE'. Any other TCODE?

Regards,

8 REPLIES 8

Former Member
0 Kudos

please try tcode:WDBI_HPR

0 Kudos

Hello Deyi,

when I use this transaction, it needs an assortment profile.

I want to have a simulation of MM41/42 EXECUTE_LISTING function which uses the listing procedure and does a listing for the distribution chain. I'm using listing procedure '99' which does not need anything else.

Can I execute it from outside wither via a transaction or BAPI?

As a short term measure, I have coded a BDC to MM42 which triggers 'EXECUTE_LISTING' and nothing else.

Any help will be appreciated.

0 Kudos

Hi,

I does the listing thru IDOC listing.

It work fine with me.

bye

0 Kudos

Hi,

what is the IDOC-Type, Message-TYPE?

0 Kudos

Hi,

Sorry, it is a function module that I am using.  

      call function 'LISTING_COND_MAINTAIN_DARK_RFC'

        exporting

          upd_mode                        = w-function

          p_create_change_document        = 'X'

*         P_WSOR_CTRL                     =

          no_commit                       = ' '

*       IMPORTING

*         NUMBER_ERRORS_TRANSACTION       =

        tables

          tab_wlk1                        = i_wlk2

          amatnrerrdat                    = i_errdat .

You will need to populate the site that you wished to list in table i_wlk2.

Hope it is useful to you

Former Member
0 Kudos

Hello Gitesh,

I have not used but know that you can list non-listed articles using function module -

LISTING_COND_MAINTAIN_DARK

Also the basic type Idoc for listing is LIKOND01.

Let me know if this helps.

Best Regards,

Swanand

arin2018
Discoverer

the Ideal FM to list with an Assortment is WRF_MAPINB_ASSORT_LISTING_RFC

Arindam Das

Ahmadfurqoni68
Participant
0 Kudos

Hello,

I have a question why you need to listing per individual store? Because I think you can create general assortment, then you input your all site and MC in here. So when you run wsm8, you choose this general assortment then it's updated for all store.