CRMXIF_PRODUCT_MATERIAL_SAVE

Hi Experts,
I'm using this FM CRMXIF_PRODUCT_MATERIAL_SAVE to update the set types in CRM system.
However, inside this function, there is one more FM CRMXIF_SENDER_SITEID_GET which gets the site id of the sender.
Inside the FM CRMXIF_SENDER_SITEID_GET, i see one more FM ICF_IS_PLUGIN_SESSION which determines the context whether IDOC or SOAP.
When i'm using the FM CRMXIF_PRODUCT_MATERIAL_SAVE directly with some correct and valid data, the FM is not creating any customer set data in the set type.
However, when i check in debug mode and come to the FM ICF_IS_PLUGIN_SESSION, i can see that plugin_session is "N" and the context is "I " (IDOC). And when i change the context to "S" (SOAP), then I'M ABLE TO CREATE SET DATA IN THE CRM SET TYPE.
This FM is taking the below parameters:
IF sv_context IS INITIAL.
    CALL FUNCTION 'ICF_IS_PLUGIN_SESSION'
      IMPORTING
        plugin_session = lv_plugin_session.
    if lv_plugin_session = 'N'.
      sv_context = 'I'. "set context to IDOC
      sv_callmode = 'S'. "set callmode to synchron
    elseif lv_plugin_session = 'Y'.
      sv_context = 'S'. "set context to SOAP
      sv_callmode = 'S'. "set callmode to synchron
    else.
      sv_context = space.
      sv_callmode = space.
    endif.
  ENDIF.
I want the context to be set always as "S".
Could you please provide me some inputs over this? Why is it always the plugin session is "N" and the context set to "I"?
Thanks,
Shamim

Hi shamim,
Please find the answers into these forums:
[Extend Product for Custom set type using CRMXIF_PRODUCT_MATERIAL_SAVE]
[Error while uploading Product master with LSMW Idoc method using XIF]
[About CRMXIF_PRODUCT_MATERIAL_SAVE Function module]
hope it will useful.
have a nice day.
Thanks
Hemant ghiya

Similar Messages

  • Error in CRMXIF_PRODUCT_MATERIAL_SAVE

    Hi,
    I am using CRMXIF_PRODUCT_MATERIAL_SAVE this fm to create product. I give the existing set type to CUSTOMER_SET_DATA ,
    I'm getting error message "User-defined set type ZFORM does not exist in BDOC structure" .
    please give me some ideas.
    Regards,
    S.ABINAYA PRAVEEN KUMAR.
    NW CLIENTS MODERATORS NOTE : Content moved to  "SAP CRM: Webclient UI - Frameworkcustom set type in the fm CRMXIF_PRODUCT_MATERIAL_SAVE"
    Message was edited by: Eric VanDeCatsije

    Hi Abinaya,
    I am assuming you have added the set-type and not extended the XIF. As per my knowledge, the custom set type would not be part of standard XIF. You may have to extend XIF adapter as well to include custom set type using BDFG transaction.
    Rgds,
    Ravi

  • About CRMXIF_PRODUCT_MATERIAL_SAVE Function module

    Hi CRM Experts,
    I want to know the structure of the "CRMXIF_PRODUCT_MATERIAL_SAVE" IDoc, what type of data it is holding and on that what are the mandatory fields.
    Regards
    Ramesh

    Hi Ramesh,
                The Structure of the Segment "E101COMXIF_PRODUCT_MATERIAL" is shown here in
    E101COMXIF_PRODUCT_MATERIAL    Interface Product Material
        E101COMXIF_PR_S_COMM_PR_MAT    IF Material
            E116COMXIF_PRODUCT_S_ADMIN     COM XIF Product: Set Administration Data
            E101OMXIF_PRD_S_COMM_PR_MAT    IF Material: Data Fields
            E101MXIF_PRD_SX_COMM_PR_MAT    IF Material: Checkboxes
        E101COMXIF_PR_S_CATEGORIES     IF Material-Category-Assignment
            E101COMXIF_PRODUCT_S_ADMIN     COM XIF Product: Set Administration Data
            E101COMXIF_PRD_S_CATEGORIES    IF Material-Category-Assignment: Data Fields
        E101COMXIF_PR_S_SHORT_TEXT     IF Material-Short Text
            E102COMXIF_PRODUCT_S_ADMIN     COM XIF Product: Set Administration Data
            E101COMXIF_PRD_S_SHORT_TEXT    IF Material-Short Text: Data Fields
        E101COMXIF_PR_S_UNIT           IF Material-Units of Measure
            E103COMXIF_PRODUCT_S_ADMIN     COM XIF Product: Set Administration Data
            E101MXIF_PRD_S_COMM_PR_UNIT    IF Material-Units of Measurement: Data Fields
            E101XIF_PRD_SX_COMM_PR_UNIT    IF Material-Units of Measure: Checkboxes
        E101OMXIF_PR_S_COMM_PR_GTIN    IF Material-Global Trade Item Number
            E104COMXIF_PRODUCT_S_ADMIN     COM XIF Product: Set Administration Data
            E101MXIF_PRD_S_COMM_PR_GTIN    IF Material-Global Trade Item Number: Data Fields
            E101XIF_PRD_SX_COMM_PR_GTIN    IF Material-Global Trade Item Number: Checkboxes
        E101COMXIF_PR_S_PRODUCT_SET    IF Material-Extension Set Type
            E105COMXIF_PRODUCT_S_ADMIN     COM XIF Product: Set Administration Data
            E101XIF_PR_PRODUCT_SET_CUST    IF Material-Extension Set Type: Data Fields
        E101IF_PR_S_FREE_ATTRIBUTES    IF Material-Free Attribute
            E106COMXIF_PRODUCT_S_ADMIN     COM XIF Product: Set Administration Data
            E101F_PRD_S_FREE_ATTRIBUTES    IF Material-Free Attribute: Data Fields
        E101COMXIF_PR_S_STATUS         IF Material-Individual Status
            E101BAPI_PRD_STATUS            IF Material-Individual Status
        E101IF_PR_S_BBPM_PR_GENERAL    IF Material Purchasing
            E107COMXIF_PRODUCT_S_ADMIN     COM XIF Product: Set Administration Data
         E101F_PRD_S_BBPM_PR_GENERAL    IF Material Purchasing: Data Fields
         E101_PRD_SX_BBPM_PR_GENERAL    IF Material Purchasing: Checkboxes
    COMXIF_PR_S_LONG_TEXTS     IF Material-Texts
         E108COMXIF_PRODUCT_S_ADMIN     COM XIF Product: Set Administration Data
         E101COMXIF_PRD_TEXT            IF Material-Texts
             E101COMXIF_PRD_TLINE           IF Material-Texts: Text Lines
    RMXIF_PR_MATERIAL_SALES    IF Material-Distribution Chain
         E101XIF_PR_S_CRMM_PR_SALESA    IF Material-Sales-Order
          E101XIF_PR_S_CRMM_PR_SALESG    IF Material-Sales-Pricing
          E101IF_PR_S_CRMM_PR_SUCCESS    IF Material-Success Rate
          E101XIF_PR_S_CRM_PR_RESIDVL    IF Material-Residual Values-Parameter
          E102COMXIF_PR_S_LONG_TEXTS     IF Material-Texts
          E101COMXIF_PR_PRODUCT_SET      IF Material-Extension Set Type
    CRMXIF_PR_S_CRMM_PR_TAX    IF Material-Tax
        E115COMXIF_PRODUCT_S_ADMIN     COM XIF Product: Set Administration Data
         E101RMXIF_PRD_S_CRMM_PR_TAX    IF Material-Tax: Data Fields
         E101MXIF_PRD_SX_CRMM_PR_TAX    IF Material-Tax: Data Fields
    The Mandatory Fields for the same are those that you Set for a Particular Type(EG for your Type Material the Fields Mandatory for Material are  same Mandatory for the Object)
    Thanks and Regards,
    RK.
    Updated by: RK on Apr 25, 2009 11:32 AM

  • About FM CRMXIF_PRODUCT_MATERIAL_SAVE

    Hello,
    I am trying to extend product material saved in CRM with custom attribute field. For this I am using CRMXIF_PRODUCT_MATERIAL_SAVE. I am entering the custom settype id and custom attribute id and its value on CUSTOMER_SET_DATA. But in RETURN table I get error as: Validation error occurred: Module COM_PRODUCT_MAT_VALIDATE, BDoc type PRODUCT_MA.
    Can anyone guide me how can I Create Material Products with Z fields by using FM  CRMXIF_PRODUCT_MATERIAL_SAVE.

    Xu zhexue,
    Can you tell me how you solved this problem?
    I have a similar situation where I am trying to update custom product attributes using CRMXIF_PRODUCT_MATERIAL_SAVE.  I have set up the set types, checked the API check box at transport, and have regenerated the PRODUCT_MAT for the BDOC, but I am still receiving a message stating that the custom set type does not exist in the BDOC.
    Please let me know if you have any ideas...
    Thank you
    JE

  • CRMXIF_PRODUCT_MATERIAL_SAVE - update Product Category

    Hello,
    i'm trying to update, in CRM, the Product  Category using bapi CRMXIF_PRODUCT_MATERIAL_SAVE.
    Can anyone help me to use this function?
    Thank

    The problem is solved.

  • LSMW and condition

    Hi,
    I loaded material master data such as product type, name, unit … I used lsmw and Message Type CRMXIF_PRODUCT_MATERIAL_SAVE. I’d like additionally add Conditions (price e.g. 0PR0 type, Sales org., Dis. Chan.) to this data. Which message type should I use to this job.

    Hi,
    For external system data loads, CRM uses the XIF adapter so by just going into transaction se37 and typing in CRMXIF* you can find a lot of fuction modules to use.
    So maybe try putting in CRMXIFCON and you will find what you are after.
    Cheers
    Andrew

  • Error in Tcode COMMPR01

    Hi Gurus,
    I am working on Sap_basis 7.00. During the recording thru SHDB  for (tcode COMMPR01) when I am inserting the data in "Basis Text" in "financing" view that is not recording.Pls send me the solutiion.
    Regds

    Akash,
    Do not use a BDC to load data into CRM.  It really isn't supported at all.  You should instead use a BAPI, or the XIF adapter.  Do a search on the CRM general forum for product master data load and you will find plenty of topics on how to use it.
    for the XIF you can use the function module
    CRMXIF_PRODUCT_MATERIAL_SAVE to save the products into the system.
    Take care,
    Stephen

  • Numerator in Unit of Measure

    Hi All,
    We are updating the Unit of meaure using Function Module CRMXIF_PRODUCT_MATERIAL_SAVE. It is creation material successfullly & changing all attributes of products except the Numerator or Denominator of alternative Unit of Measure..
    How to change Numerator or Denominatior of existing products...
    Thanks in Advance
    Regards
    Sushil

    I have this report which does the same..code is given below.
    REPORT  ZCRM_PRODUCT_UOM_ALTERNATIVE                                     .
                                  PARAMETER                              *
    parameter: p_pr_gr type CRMM_PR_SALESG-PROD_PR_GROUP value check.
                                  D A T A                                *
    data: ls_unit type COMM_PR_UNIT.
    data: ls_product type comm_product.
    data: ls_zmodelinfo type zmodelinfo.
    data: lt_product type table of comm_product with header line.
    Get all the Product which have UNIT as Category
    select * into corresponding fields of ls_product
                             from comm_product as prd
                             inner join COMM_PRPRDCATR as cat
                             on prdproduct_guid = catPRODUCT_GUID
                             where CATEGORY_ID = 'UNIT'.
    ****************29.06.2006******************
    *For Product Price Group
          data: ls_pr_group type CRMM_PR_SALESG.
          clear ls_pr_group .
          SELECT single *
              INTO corresponding fields of ls_pr_group
              FROM COMM_PR_FRG_Rod AS M INNER JOIN CRMM_PR_SALESG AS P
                     ON MFRAGMENT_GUID = PFRG_GUID
              WHERE M~PRODUCT_GUID = ls_product-PRODUCT_GUID.
    check ls_pr_group-PROD_PR_GROUP = p_pr_gr.
    **********End*29.06.2006******************
    Get SALEABLE AREA for the Product and put it in table COMM_PR_UNIT
      select single ZZ0012 into corresponding fields of ls_zmodelinfo
                           from comm_pr_frg_rel as frg
                           inner join zmodelinfo as zmod
                           on frgFRAGMENT_GUID = zmodFRG_GUID
                           where PRODUCT_GUID = ls_product-PRODUCT_GUID.
      clear ls_unit.
      ls_unit-PRODUCT_GUID = ls_product-PRODUCT_GUID.
      ls_unit-UNIT = 'FT2'.
      ls_unit-NUMERATOR = 1.
      ls_unit-DENOMINATOR = ls_zmodelinfo-ZZ0012.
      ls_unit-LOGSYS = 'PCRCLNT300'.
      modify COMM_PR_UNIT from ls_unit.
    insert COMM_PR_UNIT from ls_unit.
      append ls_product to lt_product.
      clear ls_unit.
      clear ls_product.
    endselect.
    Print all the products that have been changed
    loop at lt_product into ls_product.
      write:/ ls_product-product_id.
      clear ls_product.
    endloop.
    Julius

  • Set Types in COMMPR01

    Hi Forum,
    I have a set types in a ztabs. I use a report to upload some products from a txt file  in this fields. Everything is ok in test machine, but when i upload the file in productive machine this fields are filled but the boxes still not editable, the entry is not possible..
    The report i use to upload the product use this function: CRMXIF_PRODUCT_MATERIAL_SAVE
    Any help or suggestion¿?
    Thanks in advance and regards,
    Mon

    Hi,
        Please check whether u have the authorization to modify a product in the production system.
        General IT people do not have authorization and is to be done by Data Mangement Team.
    Regards,
    Ajay Gupta

  • Set Types not in IDOC

    Dear Experts,
    Currently I am working on an interface between CRM 6.0 and XI to deliver product specific information, including customer fields.
    I am using the BDOC type PRODUCT_MAT.
    The customer fields have been implemented through set types in transaction comm_attrset. For each set type an API append was created successfully through function u201CSet types/attributesu201D > u201CTransportu201D > u201CSet Typeu201D.
    The set types are available in the API structure of the BDOC PRODUCT_MAT (structure COMT_PROD_MATERIAL_BDOC_TAB). But the set types are not available in the generated IDOC (I use the function module CRMXIF_PRODUCT_MATERIAL_SAVE to generate the IDOC...).
    Has anybody of you an idea why the set types are not in the IDOC / how to get the set types into the IDOC?
    Thanks in advance,
    Alex

    Dear Vamsi,
    Thanku2019s for your reply. I checked the module CRMXIF_PRODUCT_MATERIAL_SAVE, but it has no output structure named CUSTOMER_SET_DATA which could hold the set types.
    Any other hints?
    At the moment I am wondering what might be the general process to add set types to IDOCs? Are set types generally also added to IDOCs as soon as they are generated and added to BDOCS, or is there a different mechanism like generating the IDOC structure from the BDOC structure?
    Thanks for any answers in advance!
    Regards,
    Alex

  • How to main multiple attributes for set type R E W ARD_PRO_LOY using IDOC?

    Hi,
    I'm now trying to add the set type and attributes to my products existing in the CRM system. I decided to use LSMW and IDOC CRMXIF_PRODUCT_MATERIAL_SAVE to maintain the set type and attributes.
    I successfully maintained the categories for the products and also assigned the set type. Now I need to add the attributes for this set type, where there are 3:
    LMPRODUCT_TYPE
    LOYPRODUCT_UNIT
    LMPRODUCT_VALUE
    But because in the IDOC structure only one attribute can be maintained at one time, how can I input all those 3 attributes together? Thanks a lot.

    I tried to insert one data field first then update it by the second attributes, but then the system assigned two separated lines of data to my set type....

  • Import Product Price and Condition using LSMW IDoc method

    Hi Friends,
    I am working on the Product Import to CRM from flat file using LSMW IDoc method using the "CRMXIF_PRODUCT_MATERIAL_SAVE" message type.
    I am able to import the entire product with its required details except the Price and its conditions.
    Can anyone please let me know which structure or with message type to be used to import the Product Price and condition using the IDoc method.
    Please pass on your valuable comments.
    Thanking you,
    Naveen

    Hi Naveen.
    I am doing the same thing but only the product gets created and the details like short text, unit etc. do not get populated. The idoc gets processed successfuly. Can you share the fields that are required to be mapped or are mandatory.

  • BAPI or FM to create Products t-code : commpr01

    HI,
    Please let me know the Bapi or FM to CReate Products  the commpr01 t-code.
    Thanks and Regards,

    HI,
    There are two different Function Modules used to create service product and material product in CRM system.
    CRMXIF_PRODUCT_MATERIAL_SAVE for creating product of type material
    and CRMXIF_PRODUCT_SERVICE_SAVE for creating product of type service.
    Regards,
    PP

  • BAPI or FM to create/update variant configuration

    Is there a BAPI or FM to create/update variant configuraion?
    There is one for sales order BAPI_SALESORDER_CREATEFRONDAT1 to create VC while creating SALES order.
    How do you do create VC while creating PO?
    Thanks.

    HI,
    There are two different Function Modules used to create service product and material product in CRM system.
    CRMXIF_PRODUCT_MATERIAL_SAVE for creating product of type material
    and CRMXIF_PRODUCT_SERVICE_SAVE for creating product of type service.
    Regards,
    PP

  • How can I create materials by BAPI  in CRM?

    Hello!
    through the transaction COMMPR01 I can create several materials, I would like to know if there is the relative bapi to create these materials.
    Thanks.
    Message was edited by: Maria Sorrentino

    I took the suggestion of Manuel Rodriguez and
    I tried to run the bapi  ”CRMXIF_PRODUCT_MATERIAL_SAVE“ but the system returns errors.
    I have to admit that I am a beginner user of the system so if it is possible I’d like to have a sample so that I can adapt it to my case.
    In addition, to receive a sample that can better fit my case: I have to use bapi just for these fields: Material (char,40), Short Description (char,40), Category (char,20) and Hierarchy (char,10).
    Thank you very much.
    Filippo
    e-mail: [email protected]

Maybe you are looking for

  • Help - moved itunes folders to external drive and now my itunes is totally

    A few months ago, in order to free up space on my c drive, i had to purchase an external drive - everything i installed via itunes since that date has been on the hard drive and everything was fine. Last night i needed more room on my C drive so i st

  • F4IF_INT_TABLE_VALUE_REQUEST -Restrictions dialog box

    Hi, I am using the function module F4IF_INT_TABLE_VALUE_REQUEST in screens, to implement a search help in my program , but instead of directly displaying the hit list , i want the restrictions screen to be displayed first with some default values, an

  • User exit to update the incompletion log in sales order for pricing error

    Hi experts, I have to check the some mandotory pricing conditions in sales order, if that conditions are not exist in sales order then i need to show the information message as well as i need to update it in incompletion log of sales order. (incoplet

  • Image control on Forms for retreiving Image stored in tables

    Oracle 10 g XE is miising an easy to use Image add/show feature from a database table in it's application builder. Use of BLOB and BFile is not easily handled and neither it is covered well in the user guide. Can someone help me in some easy to do st

  • Slow due to huge number of tables

    Hi, unfortunately we have a really huge number of tables in the ( Advantage Server ) database. About 18,000 + tables Firing the acitveX preview thru RDC, or just running a preview in the designer slows down to a crawl. Any hints? ( Besides get rid of