Skip to Content
avatar image
Former Member

Is it possible to create WareHouse Product using CIF interface from ECC (Y/N)?

Hi there,

I have seen this issue being discussed in the past in the SCM community a couple of times, but I did not find a clear answer. Most topics were about 2 years old, so maybe things have changed.

My question is: Is it possible to create a WareHouse Product automatically using the CIF interface from ECC?

Our situation is like this:

Materials are created in ECC they are being transferred to EWM using the CIF interface. The EWM products are created fine, but we also need them to be created/extended as Warehouse products.

I have found a BAdi which is executed by the CIF Create-product-interface on EWM, where I actually can populate and add the structures for MATLWH and MATLWHST, but then the Product Creation ends in error in SMQ2.

My second question is then:

What is the best way to create Warehouse Products from existing Products? In other words, is there a BAPI or other FM which I can use in my own Report to create the entries in the /SAPAPO/MATLWH and ~/MATLWHST tables? I think a recording BIM can do the job, but I would create a job for it.

I tried /SAPAPO/DM_PRODUCTS_MAINTAIN, but this is also not working, or I do not know how to use it...

Has anybody solved this issue, or any new ideas?

Thank you so far,

regards, Walter.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 17, 2013 at 07:19 PM

    Hi,

    I posted this question 8 days ago and I just got notified by the moderators that this message was approved to be posted....???

    Don't know why that takes so long, but meanwhile the issue has been solved (by me).

    Solution for those who are interested:

    EWM has some BAdi's which are called by the different CIF-interfaces.

    The BAdi's are called: SMOD_APOCF***; the description of the BAdi points to the type of CIF-interface. For this Product interface I used the BAdi SMOD_APOCF005.

    In this BAdi I populated and added the structures ET_MATLWH(X) and ET_MATLWHST(X) (which correspond to the warehouse product tables  /sapapo/matlwh  and  /sapapo/matlwhst), and that's it.

    I looped over the structure ET_MATLOC to get the actual Locations which is needed for the 2 structures to be processed correctly. It took some trial and error for finding that out.

    Good luck, Walter.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 30, 2014 at 02:37 PM

    Hi Walter - can you please share the code used in BADI implementation to populate table  /sapapo/matlwh?


    Regards,

    Rama Krishna.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Walter - I am implementing this BADI to insert data into /sapapo/matlwh, so i wouldn't find any rows.

      Regards,

      Rama Krishna.