IS-Retail: BAPI_MATERIAL_MAINTAINDATA_RT

Hello guys,
still using BAPI_MATERIAL_MAINTAINDATA_RT.
If I create a new article, the FM does not load all field values from the reference material (that should be used by default - Transaction WG24). Some fields that are not loaded are:
- MARA-RAUBE
- MARA-IPRKZ
- MARA-SPART
- MARA-MTPOS_MARA
ecc..
The fields in the structures like CLIENTDATAX are alle empty.
Does anyone know why not all attributes of the reference material are used for the creation of a new material?
Thank you,
Manuel

Hi Manuel,
the reference handling for such fields is not easy.
Please look at transaction OMSR in details for this field.
Here at least the flag KZCPY must be enabled to activate teh copy function from
a reference article.
Further this field MUSt be visible and ready fro input.
and finnally, go to SE80 inf unction group MGWL.
Here for the fields the logical subroutines
Referenz_before
referenz_***
ref_***_after
will be called
If you look at referenz_before, you can see that
wmara-spart = t023-spart.  will be referenced by mechandise category and not by ref. article. So this is hard coded.
If this will not help, please open an CSN message with an example. Our support guys will help you within some seconds.
Regards
Björn

Similar Messages

  • Can't find retail  purchase/sales info in BAPI_MATERIAL_MAINTAINDATA_RT

    We are trying to convert articles from our legacy system to SAP Retail.
    We are using the function BAPI_MATERIAL_MAINTAINDATA_RT.  I have found most of the data for MM41, but am missing the following:
    Listing Tab:
    Need to set up assortments.  This is the equivalent of checking the New Listing Check and clicking the Execute Listing button.  This should create all assortments (we only have 1).
    Purchasing Tab:
    Vendor - RMMW1-LIFNR
    Purchas Org - RMMW1-EKORG
    Order Units - EINA-MEINS (it is also in clientdata-PO_UNIT and set up in unitsofmeasure)
    Vendor Matl no. -  EINA-IDNLF
    Return Agmt. -  EINA-RUECK
    Regular Vendor -  EINA-RELIF
    Purchasing Group - EINE-EKGRP (it is also in addnlclientdata-pur_group and plantdata-pur_group)
    Pl. Deliv. Time - EINE-APLFZ (it is also in plantdata-PLND_DELRY)
    Net Price - EINE-NETPR
    Per (/) - EINE-PEINH (always 1)
    Purchasing UOM - EINE-BPRME (Same as Order Units above)
    Sales Tab:
    Sale Units - MVKE-VRKME (always same as base UOM so this is blank)
    Cash Discount - MVKE-SKTOF
    Final Price - CALP-ENDPR
    Any help would be appreciated.
    Deb

    Hi there,
    Same here, but I used BAPI_MATERIAL_SAVEDATA. After creating an article, the related fields in MAW1 is missing and there is no RMMW1 data's too.
    I wish to change to  BAPI_MATERIAL_MAINTAINDATA_RT, I wanna know if it can save the data of RMMW1 too. Have you resolve your question yet? Please let me know as well
    Regards,
    Nick

  • IS-RETAIL: How to update custom enhancement field using BAPI?

    Hi gurus,
    Like ECC BAPI: BAPI_MATERIAL_SAVEDATA,
    This BAPI(BAPI_MATERIAL_MAINTAINDATA_RT) is specific for IS-RETAIL to create and update material master data.
    But now If I append one custom field "ZFIELD" to end of table MARA, my question is how to update this custom enhancement field(ZFIELD) using BAPI(BAPI_MATERIAL_MAINTAINDATA_RT)
    Thanks in advance!

    Hi DongHai,
    I suggest you create your own BAPI. Just copy the codes in BAPI_MATERIAL_MAINTAINDATA_RT and add your custom fields. If you want to append the data of the custom field in table MARA, first, you have to create a structure table then goto SE11, type MARA and display. Click the APPEND STRUCTURE then choose the structure that you've created. Hope this will help.
    Rewards if useful
    Regards,
    Mark

  • SAP Retail : Article Master Data Transfer using LSMW/ARTMAS05: EAN Error

    Hi Bjorn Panter,
    I want to thank you for providing very informative articles on the Master Data of ERP Retail.
    We are currently loading articles to SAP from legacy and use your articles on ERP Retail as part of our knowledge warehouse.
    We have encountered an error which has stumped our conversion.
    We are getting an M3 535 error stating that "First specify the main EAN for the unit EA".  We are using LSMW (IDOC Method, Basic Type ARTMAS05).
    Our MARM segments have generic and variants.  The UPC and UPC category (set to UC) are filled for the variants and blank in the segment containing the generic.
    Our MEAN segments contain variants only with the UPC and UPC category (set to UC) filled.
    Our UC EAN category is configured with a blank check digit algorithm and a number range of 12 digits.  We are loading our variants with EANs that are 12 digits.
    When debugged IDOC_INPUT_ARTMAS, I noticed that :
    In routine  MARM_UEBERGEBEN (in function module BAPI_MATERIAL_MAINTAINDATA_RT), this code clears our MARMX indicators :
       LOOP AT UNITSOFMEASURE.
        ART_DATA_EXISTS = 'X'.    "JH/05.01.00/4.6C Entkopplung der MALG
        IF UNITSOFMEASURE-FUNCTION NE C_MSGFN_D.   ->>>> this checks if our function code is 003 (which is a delete).
    *     TMFIELDRES aufbauen
          CLEAR UNITSOFMEASUREX.                   ->>>> Since we are doing a create, it clears the indicators in unitsofmeasureX
    To bypass this clear, I debugged the program and overlayed the indicators and marked UPC and UPC category as 'X'.  This worked and we were able to post our IDOC successfully... THe UPCs showed in the MARM and MEAN tables.
    However, knowing that there are a lot of Retail companies loading articles into their SAP system, it would seem odd that no one has reported this as a bug or no one has posted this issue in SDN.  I could not find any OSS note related to this issue either.
    Can you please help us figure out what is wrong ? Have you encountered this error in the past ?  Is there something in config that we should check ?  Should we look at fields in our segments ?
    Any help from you would be greatly appreciated.
    Thanks,
    Sarah

    Dear Sarah,
    please open an OSS customer message.
    Put in a valid IDOC ARTMAS number with this error and open your system.
    I guess either it is a bug in IODC structure or you found a bug in software.
    My colleages will take care.
    Regards
    Björn

  • Can I use "BAPI_MATERIAL_SAVEDATA"  Mass Change Material for IS Retail

    Hi,
    I have customize program to do mass material changes for IS Retail. Currenlty we are using BAPI_MATERIAL_MAINTAINDATA_RT to do the changes for each selected article and site, it could be 70k combination.
    since BAPI_MATERIAL_MAINTAINDATA_RT cannot handle more than 1 article per execution can I use standard BAPI_MATERIAL_SAVEDATA ?
    Please advise.
    thank You and Best Regards
    Fernand

    Hello,
    Both BAPI's support only one article per execution. BAPI_MATERIAL_MAINTAINDATA_RT is meant for Retail environment whereas BAPI_MATERIAL_SAVEDATA will not update table such as MAW1.  You may call the BAPI in a loop to update multiple articles.
    Thanks,
    Venu

  • Can I use BAPI_MATERIAL_MAINTAINDATA_RT to create standard material?

    Hi Friends,
    I was looking for a BAPI/RFC to create Material Basic, Extended, Classification and Inforecord Data in ECC 6.0 and I found a standard BAPI -  BAPI_MATERIAL_SAVEREPLICA to create/update material, but this BAPI cannot create classfication data and inforecord data. And there is another BAPI related to Retail i.e. BAPI_MATERIAL_MAINTAINDATA_RT to create material master data. This BAPI has parameters to pass Material Classification and Inforecord data apart from Basic & extended data. After some intial testing, am able to create Basic and Inforecord data but not Classification and extended data(plant, valuation etc) and it throws the errors like 'this plant is neither a store or distribution center' and in case of classifiaction its not showing any error but classfication view is not getting created.
    Could I use this BAPI to create Meterial not related to Retail?
    Please help me if anyone of you worked on this BAPI.
    Regards,
    Dev

    I am not sure about that BAPI but I would try BAPI_MATERIAL_SAVEDATA.  I am not 100% sure on the location of the '_' but those are the words in the BAPI.  I am using it now and, if memory serves me correctly, it will do what you ask.

  • Deleting main EAN (MEAN-HPEAN = 'X') in retail material master data

    Hello experts,
    I have a customer (IS Retail) that realized, after data migration from legacy system, that many EAN including the main ones were obsolete or wrong. They asked me to clean all the EANs for a set of items, before deciding the new ones to be migrated.
    I tried 'BAPI_MATERIAL_MAINTAINDATA_RT' that deletes all EAN but not the main one, and I can manage to remove the flag of main ean (MEAN-HPEAN = 'X'), but after that I cannot cancel the last EAN anyway, because in effect it's not correct, as SAP best practices suggest.
    Please consider that all OSS notes available have been implemented, and that I have checked with all available threads and posts on the network with no answer.
    Could please somebody help me?
    thanks in advance
    Chiara

    Hello,
    I used this 'BAPI_MATERIAL_MAINTAINDATA_RT' (that works for RETAIL solutions, otherwise you have to use 'BAPI_MATERIAL_SAVEDATA')
    DATA: T_BAPIE1MATHEAD TYPE BAPIE1MATHEAD OCCURS 0 WITH HEADER LINE.
    DATA: T_RET TYPE BAPIRETURN1 OCCURS 0 WITH HEADER LINE..
    DATA: T_MEAN TYPE BAPIE1MEANRT  OCCURS 0 WITH HEADER LINE.
    (You have to select the material number and EANs you want to delete in two internal tables, such as T_MARA1 and *T_MEAN1, then loop at those tables and:)
          REFRESH: T_BAPIE1MATHEAD, T_MEAN. "T_MARA, T_MARAX.
    *header
          T_BAPIE1MATHEAD-FUNCTION = '003'. "function code for DELETING
          T_BAPIE1MATHEAD-MATERIAL = T_MARA1-MATNR.
          T_BAPIE1MATHEAD-NO_APPL_LOG = 'X'.
          APPEND T_BAPIE1MATHEAD.
    *mean
            T_MEAN-FUNCTION = '003'.
            T_MEAN-MATERIAL = T_BAPIE1MATHEAD-MATERIAL.
            T_MEAN-UNIT = 'ST'.
            T_MEAN-UNIT_ISO = 'PCE'.
            T_MEAN-EAN_UPC = T_MEAN1-EAN11.
            T_MEAN-EAN_CAT = T_MEAN1-EANTP.
            APPEND T_MEAN.
          CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'
             EXPORTING
               HEADDATA                   = T_BAPIE1MATHEAD
            IMPORTING
              RETURN                     = T_RET
         TABLES
          INTERNATIONALARTNOS        = T_MEAN
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              WAIT = 'X'.
    *(Close the loops) This works for all NON MAIN EAN, but not for the main.
    If you are in a non-retail system, this changes into:
    **header
          T_BAPIMATHEAD-MATERIAL = T_MARA1-MATNR.
          APPEND T_BAPIMATHEAD.
            T_MEAN-UNIT = 'ST'.
            T_MEAN-UNIT_ISO = 'PCE'.
            T_MEAN-EAN_UPC = T_MEAN1-EAN11.
            T_MEAN-EAN_CAT = T_MEAN1-EANTP.
            T_MEAN-DEL_FLAG = 'X'.
            APPEND T_MEAN.
         CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
            EXPORTING
            HEADDATA            = T_BAPIMATHEAD
          TABLES
              INTERNATIONALARTNOS = T_MEAN.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
            WAIT = 'X'.
    hope this can help
    kind regards
    chiara

  • BADI - tcode MASS / MM46 in IS-Retail

    hi,
    anybody ever used / made an enhancement using BADIs? target is to update append fields of the article master (especially table mara) using tcode MASS or MM46 (mass maintenance tool) in IS-Retail or has done something similar? the business object type would be BUS1001001.
    the documentation mentions MASS_SAVE_ARTICLE_USING_BAPI but unluckily not much more.
    a hint would be great.
    thanks rob

    Hi Robert!
    In general update via MM46 needs two additional implementations:
    a) User-exit to extend BAPI_MATERIAL_MAINTAINDATA_RT to book customer fields.
    b) BADI to move data from MM46 transaction to table parameter of BAPI_MATERIAL_MAINTAINDATA_RT calling
    a) Is done with enhancement MGV00003, exits EXIT_SAPL1001_003, EXIT_SAPLMV01_003. Both have some sample code in documentation. In the end, a lot of coding has to be implemented, but it's mainly copying the example and field name replacement. I guess, it's done
    b) MM46 needs some help to call BAPI_MATERIAL_MAINTAINDATA_RT correct in 'extended' version. Here BADI_ARTICLE_MASS_RT comes into action (with bad docu and BADI level). But it's two methods are well documented (interface documentation). In short: first an internal table with customer fields has to be created -> standard will leave these fields untouched. Second method has to fill the customer table parameters (e.g. T_CLIENTEXT and T_CLIENTEXTX for MARA-ZZ_fields).
    Regards,
    Christian

  • No entry in key field of table MARC for BAPI_MATERIAL_MAINTAINDATA_RT

    Hi Gurus ,
    I have a requirment to upload Retail Articles. I am using BAPI_MATERIAL_MAINTAINDATA_RT to create articles for Basic View, Listing View and Sales View.
    I got the error:
    No entry in key field of table MARC
    Message no. MG502
    Moderator message - Please respect the 5,000 character maximum when posting. Post only the relevant portions of code
    Please let me know how to fix this.
    Edited by: Rob Burbank on Dec 22, 2010 12:38 PM

    Thanks a lot Rob Burbank  for the hint!
    I figured out that though I was passing the Site under MARC, it wasn't getting transfered to the field. I fixed the code.
    Thanks for prompt response!

  • Material created by  BAPI_MATERIAL_MAINTAINDATA_RT give the error MH084

    Hi,
    I'm trying to use the BAPI_MATERIAL_MAINTAINDATA_RT to create new retail material, it says it created with sucess but when going to tcode MM43 to display the material it throws the error message MH084.
    Any idea way?
    thanzs to all in advanced
    Best regards
    Jaime

    Hi Jaime,
    Please call the BAPI_TRANSACTION_COMMIT after every call to the FM BAPI_MATERIAL_MAINTAINDATA_RT. This commits the classification data to the database.
    Hope this helps.
    Thanks,
    Balaji

  • Asking for help about modification to article master data of retail system

    Deal All,
    Is there any one can tell me how to modify the article master data in retail system ?
    I have tried to deal with the requirement by BDC and calling the function BAPI_MATERIAL_MAINTAINDATA_RT,
    but both of the two approaches can not update the customized fields in the table MAW1.
    For BDC, the changed data can only be update in debug mode.
    For the function, no customized fields of table MAW1 are taken into account as to its parameters.
    Can anyone tell how I should do ?
    Thanks in advance,
    Kevin

    Hi Kevin,
    Try FM: MATERIAL_UPDATE_ALL_RETAIL
    Thanks,
    Dharmishta

  • How to delete the Sites in SAP IS RETAIL

    hello ALL,
    can any one explain me how to delete the Sites in Sap Retail.
    thanks in advance

    Hello All,
    Delete the plant / Site complete details and put in one transport and do the import & export.
    Thanks.
    Edited by: krishna cherry on Jul 26, 2010 3:28 PM

  • Free goods in Retail

    Hi
    These are scenario for Beverage business- mostly they have complicated promotion on free gifts which I think SAP ERP SD cannot cover it. I also check Promotion in retail and found out, if it's discount - it can handled but for free goods - there is similar to ERP Sales. If anyone can take a look at the below case and share with me whether IS-Retail can handle it or any idea how to handle it as now I can only think of custom development.
    This is pretty much general scenario in Thailand, not only beverage but wholesales & distribution but I don't think SAP ERP can handle it smoothly.
    1. Buy soda water size 10 oz regardless of soda taste (coke, orange, grape) for 1 pack (1 pack consist of 24 bottles) then get 1 bottle free.
    2. Buy soda water size 10 oz regardless of soda taste for 1 pack, then get 1 bottle free - maximum at 2 sets.
    3. Buy soda water either size 10 oz or 15 oz for 1 pack, get 1 bottle of 10 oz free
    4. Buy soda water regardless of soda taste as set i.e. for every 36 packs of combine size 10 oz, 15 oz and 1 lt - get free items of 10 oz/15 oz for 2 bottles per pack and free item of 1lt for 1 bottle per pack
    5. Similar to 4 with additional condition that 1 soda taste must be more than 50%  - for example, it must be coke at least 50%
    6. Sales quota - Buy 1 pack, get 1 bottle free - maximum 100 bottles for each customer
    Please kindly share your experience or ideas. Thank you
    Chanchana

    HI,
    1. Use txn VBK1 to create a bonus buy condition
    2. In SAP Retail, we can create % Off Conditions, Absolute Off Conditions as standard promotion conditions, Special Price Conditions.
    3. You can also can create Bonus Buy: Price, Bonus Buy: % Discount, Bonus Buy: Absolute Discount and Bonus Buy: Free Goods conditions.
    For Example: Buy 4 Get 1 Free Article is a Bonus Buy condition. for this try In VBK1, use Discount Type BB04 to configure bonus buy.
    For more information plz try this link http://help.sap.com/erp2005_ehp_03/helpdata/EN/40/c0e238f0d111d2adff080009d2232d/frameset.htm
    Regards
    GK.

  • Free Goods Promotions for Retail.

    Hi SAP Retail Xperts.
    Actually I am working with Promotions for retail industry, and I am using the transaction WAK1, in order to create them.
    Our client, work with free goods (exclusive bonus quantity) and I can see that the WAK1 transaction has a view for that, but the Create Free Goods button IS NOT  active.
    Does anybody knows how could I active it. If it is active, I will be able to create a Free Goods exclusive bonus quantity from WAK1 transaction???.
    Thanks in advance.
    Manuel

    Hi Machacon,
    Create Promotion in WAK1.Enter Articles in fast entry tab,Quantity in
    Quantity Planning tab,site groups in site group tab.Save your promotion.
    Go to your newly created Promotion in change WAK2, now you go to Free goods tab
    where you can see free goods button in active form.
    Hope this help you.
    Regards,
    Mohanavel

  • Handling of Hazardous Articles in SAP Retail

    Hi SAP Retail Experts
    Would like to know the porcess in SAP to configure the hazardous goods management in Article master whereby we can accomodate the dangerous goods data from and external system into Article Master.

    Dear Pratim
    I don't catch your question. Check e.g. SAP Environment, Health, and Safety Management (SAP EHS Management)
    1.) the term "Dangerous Goods" and Hazard substance" is not the same
    2.) In EHS classic you can get external data for DG use using ALE; same is true for hazardous substance master
    I have no experience with SAP Retail. But according to SAP help: This is a SAP ECC/ERP system in a "special"  mode (you have activated an "industry specific" function). So you need to prepare EHS customizing
    C.B:

Maybe you are looking for

  • Opening an .ipa file

    Question, I'm just starting to dabble in XCode. I have an app in an .ipa file and wanted to know if there is a way to unzip the ipa so I can look inside the files that created the app? I tried to do this in X Code and it gives me ( I would think its

  • THE ULTIMATE IRONY!

    Hello everybody... check out the copy below... this is how ADOBE describe FREEHAND on THIS website...pretty amazing eh! This poses the question to me, why not practice what you preach adobe! why don't you take a leaf out of your own (or macromedia's)

  • Use of JCo destinations with SAP Logon Ticket

    I would have got a precision about the use of a connection pool in a JCo destination using the SAP Logon Ticket connectivity: do i have got the same functionality around the pool connection if i use the SAP logon ticket instead of a user/password ins

  • Improve Performance of Dimension and Fact table

    Hi All, Can any one explain me the steps how to improve performance of Dimension and Fact table. Thanks in advace.... redd

  • Reboot lost all purchased songs

    When I downloaded the new version of iTunes, it started downloading songs I didn't have, then my computer crashed and didn't turn back on so I had to reboot it. I lost all my music, especially the ones I actually care about like my purchased music. I