Get Product Type from Product Category

Hello,
  I need to get Product Type (Material or Service) from Product Category.
Does anyone knows the Function Module which can be used.
Warm regards,
Girish

Hi Girish,
Use FM "COM_PRCAT_READ" to read the product type of a product category.
Give the Product category Guid and you will get product type. 
To get the Guid of a product use FM 'BBP_CATEGORY_GET_GUID'.
Hope this solve your requirement.
Note: Reward points for helpful answer.
Regards,
Andy.
Dont forget to Reward points for helpful answers
Message was edited by:
        Andy V

Similar Messages

  • How to get payment type from payment module...

    Hi,
    We need payment type from payment module in sale transaction for which we are trying to access BO object of Payment Module into sale Transaction.
    We followed steps as mentioned in www.scn.sap.com/thread/3335391 (second last reply by : Suhas).
    But we are unable to get the data.
    All the suggestion would be much appreciated

    Hi Steffen
    we have followed the below link.
    Exception in UI Module using Module Access of custom Module

  • How to get URL type from String.

    Hi,
    Is there any way to convert a String or String to int to URL type? For example, I getting value form a JTextArea. This value will be a int ( A combination of number only) so I am converting the String the int and then can it be converted into URL???
    Thanks

    merit wrote:
    I tried reading it but I dont understand the syntax. Can you please show me how to do this?
    public uRLReader(String uRL)throws MalformedURLException{
                   URL newURL = new URL(uRL);
    retrun (newURL);
              }will this code convert the String to URL type?
    Thank you.What don't you understand? If you don't know how to use the API docs to use a class, then you need to start from the very beginning of a Java tutorial.
    Also, you have what looks like a constructor, but it's returning a value. C'tors don't return values at all, and the value you're trying to return is a URL, which means you'd have to declare this as a method that returns URL.
    You seem to be struggling with basic, fundamental concepts. I recommend you get a better handle on those before trying to do anything with URLs.
    [http://java.sun.com/docs/books/tutorial/]

  • How to get order type from reference  document

    Hi ABAP Gurus,
      I am working on pricing routines for return orders.
      in this return order i am getting reference docuemnt number .
      now i need to find that this reference document is sales order or invoice .
      how can i find  this .
      i know i need to use VBFA table . but i am confused in precedding and subsequent document.
    please guide me how can i find this.
    Thnaks,
    Neo

    > I am working on pricing routines for return
    >  orders.
    > in this return order i am getting reference docuemnt
    >  number .
    > now i need to find that this reference document is
    >  sales order or invoice .
    >  how can i find  this .
    > i know i need to use VBFA table . but i am confused
    >  in precedding and subsequent document.
    Since you mention the pricing routines, I guess you are working on a VOFM routine or a user exit. I think that Anji gave the best universal solution for finding the document type by using VBUK table. VBFA table should not be used for this purpose IMHO.
    Additionally, inside the VOFM routine or a user exit you might be able to use VBPA or XVBPA/YVBPA table - the field VGTYP will contain the reference document category for each line. C = order, M = invoice, there are several orders, which you can see in SE11.
    Just FYI "preceding document" in VBFA is the document that was created first. For example, a sales order is a "preceding document" and the corresponding outbound delivery is a "subsequent document".
    Hope this helps and good luck!

  • Getting the Type from a DataReader

    How do I test for the "Type" when using the DataReader? I'm trying to determine what DataType each field is.
    While dr.Read()
    If dr.GetType(0).GetTypeCode = OracleDecimal Then
    'Do something
    Else
    'Do something else
    End If
    End While
    Jeff

    Actually, I used:
    If dr.GetDataTypeName(i).ToString = "Decimal" Then
    myVal = dr.GetOracleDecimal(i).ToDouble
    Else
    myVal = dr.GetValue(i)
    End If
    Thanks anyway!

  • Can't find  Set type when maintain Product Category in Local Scenarios

    hi, expert
    We use SRM7.0 in Local Scenarios. Just create local material.
    Our developer made a 'Product Categories mass inport programme' , but for some unexpected reasons, we cann't check or edit original prodcuct categories. so I have to create new product category manually.
      When i create prodcut ,  i get a error message ' Data cannot be maintained for set type COMM_PR_SHTEXT . '  So i wanna add set types 'COMM_PR_SHTEXT' to this product category. but i cann't find this set type in the list whiche ever exist !
      which i can find in the list show below:
          CALL_FWD_TD
          COMM_PR_GTIN
          COM_COMMERCIAL
          COM_TA_R3_ID
          CRMM_PR_TAX
          GSM_PHONE_TD
          ISPS_MARA
      what should i to do, make  the set type 'COMM_PR_UNIT' , ' COMM_PR_SHTEXT ' and some 'Z_xx_settype'... can be used.
      Thanks .
                              claud
    Edited by: Guang Li on May 23, 2011 7:07 AM

    Hi
    check this link
    Materials replication from R/3
    Regards
    G.Ganesh Kumar

  • Issue in  product category replication from R/3 to SRM

    Mehul G Shah: BACKGROUND:
    We are in the process of replicating Material Group from R/3 to SRM
    using transaction R3AR2 & R3AR4. Our Pre-Production server got
    refreshed recently & this has caused all EBM data inclucing Logical
    System & Destination being overwritten with EBP data.
    We have maintained middleware paramaters, viz., CRMCONSUM, CRMRFCPAR,
    CRMPAROLTP & also TBE11.
    We have also maintained sites in CRM Middleware Monitoring Cockpit
    using SMWP.
    We have also tried after deleting entries in tables CRMPRLS (R/3) &
    CRMMLSGUID (EBM) as suggested by SAP note 765018
    We have followed steps mentioned in link /people/marcin.gajewski/blog/2007/02/05/how-to-replicate-material-master-from-r3-to-srm
    (But we are not clear about site attributes which needs to maintain as per the CRM Middleware Monitoring Cockpit.)
    ISSUE:
    Material Group gets replicated to Product Category in SRM. However, the
    Product Category gets replicated with Logical System which is not
    maintained in EBM

    Hi ,
    Thanks 4  ur replay,i have maintained Site attributes,please give me detail of site attributes like which attributes should i maintain ?please give me descriptive answer.

  • Transfer product category from catalog to SRM with 2 BE systems

    Hello experts,
    We are having an issue when transfering products from the SRM-MDM Catalog though OCI, since we have an SRM extended classic scenario connected to 2 backend systems.
    When the information is downloaded to SRM, the product category is changed and a "default" is assigned.
    SAP has confirmed this issue happens because there are 2 entries in table COMM_CATEGORY for this value (even though they are clearly differentiated by backend system).
    In our case, let's say Product Category "OS" (Office Supplies) exists in both backend systems, and it seems the system only searches for "OS" instead of doing a link to the logical system somehow.
    How can I implement BADI BBP_CATALOG_TRANSFER in order for the system to use the right Product Category? Should I map one the backend system in one of the custom fields or is ir possible to somehow get the backend system in some other way?
    Regards,
    Gilberto Gallardo

    Hi Gilberto,
    You should use the BBP_CATALOG_TRANSFER Badi to also define the relevent category GUID during transfer, in this way you can make the category unique and the default will not be selected.
    Regards,
    Jason

  • Issue in Product Category regd Set Types

    Hi,
    I am customizing Product Category ( for CRM 5.0 standalone) for Material using Building Block guides. I have created root hierarchy and category as described. Now I want to create category for Sales products using the root category. While creating this category the BB guide states following customization steps
    Basic Data on Category
    Product Type     Material
    Product / Object Assignment Possible     
    Product / Object Maintenance: Control Fields
    Can Maintain Documents (Click this)     
    Can Maint. Conditions (click this)     
    But in my case I am not able to see following in Product / Object Maintenance: Control Fields section (following 2 controls)
    Can Maintain Documents     
    Can Maint. Conditions     
    Because of this I am not able to get Set types COMM_PR_UNIT, COMM_PR_LGTEXT1, and COMM_PR_SHTEXT
    Pl provide guidance and assist this is quite urgent.
    With regards
    Ambar Adhav

    Please check this ...
    1. You have created a  hierarchy...
    2. you have cretad a root category...say CRM_PROD
    3. check whether you have created a sub category under the root category.
        to do that... Please click on CRM_PROD.. right click and create  category..
    then we can see the 
    Can Maintain Documents
    Can Maint. Conditions
    Hope it helps..
    <b>Reward points if it helps you..</b>
    Yaswanth.K

  • I Need BAPI to get partners, product, Product category in CRM

    Hi Experts,
    I need bapi to get all partner detials, All product detials, all product category details.
    I found one bapi(BAPI_CRM_PRODUCT_GETLIST) to get product.But we should give the product category as import field. But i need with out any input should generate all product details. These bapi we will use in crm to create Opportunity.
    Please any one help me...........
    Thanks,
    Sunil

    COM_PRODUCT_CATEGORY_CHECK_ALL
    COM_PRODUCT_CATEGORY_API
    COM_PRODCAT_API_GET_PRODUCTS
    COM_PRODUCT_BASE_CATEGORY_READ
    COM_PRODUCT_CATEGORY_API_FREE
    COM_PRODUCT_CATEGORY_GETLIST
    COM_PRODUCT_CATEGORY_F4
    COM_PRODUCT_CATEGORY_APPL_F4
    COM_PRODUCT_CATEGORY_F4
    COM_PRODUCT_CATEGORY_F4_HIERI
    COM_PRODUCT_CATEGORY_F4_PRREF
    COM_BSP_PRODUCT_GUID_GET
    BAPI_CRM_PRODUCT_GETLIST
    BAPI_PPRODUCT_READMULTIPLE
    COM_PRODUCT_CHANGEM
    COM_PRODUCT_CREATEM
    COM_PRODUCT_FREE
    COM_PRODUCT_GUID_GET_INTERNAL
    COM_PRODUCT_MAINTAIN_INIT
    COM_PRODUCT_MAINTAIN_READ
    COM_PRODUCT_MAINT_CHECK_ON_DB
    COM_PRODUCT_READ_MULTIPLE
    COM_PRODUCT_READ_SINGLE
    COM_PRODUCT_READ_SINGLEM
    COM_PRODUCT_READ_VIA_RFC
    COM_PRODUCT_SAVE
    COM_PRODUCT_SAVE_LOCAL_END
    COM_PRODUCT_SAVE_LOCAL_START
    COM_PRODUCT_GET_PARTNER_PROC
    COM_PRODUCT_GET_REFERENCE_PROD
    COM_PRODUCT_GUID_GET
    COM_PRODUCT_HISTORY_GET
    COM_PRODUCT_ID_GET
    COM_PRODUCT_GETLIST
    COM_PRODCAT_API_GET_PRODUCTS
    COM_PRODUCT_BASE_CATEGORY_REA
    COM_PRODUCT_CATEGORY_API_FREE
    COM_PRODUCT_CATEGORY_GETLIST
    COM_PRODUCT_GETDETAIL_API
    COM_PRODUCT_GETDETAIL_INTERNAL
    COM_PRODUCT_GETHISTORY_API
    COM_PRODUCT_MAPPING_MODULE
    COM_PRODUCT_GET_PRODUCT_STATUS
    COM_PRODUCT_GET_SALES_STATUS
    COM_PRODUCT_HANDLE_ARCHIVE
    COM_PRODUCT_HANDLE_RECAT
    COM_PRODUCT_MOBILE_CHANGE_BDOC
    COM_PRODUCT_SET_CHANGED_FIELDS
    COM_PRODUCT_SET_SENDBITS_TASK
    COM_PRODUCT_SET_UPDATE_TYPE
    COM_PRODUCT_VAR_MAP_TO_BDOC
    COM_PRODUCT_CHECK_DELETED
    COM_PRODUCT_MAINTAIN
    COM_PRODUCT_MAINTAIN_GETSTATUS
    COM_PRODUCT_MAINTAIN_GET_CC
    COM_PRODUCT_MAINTAIN_RESSTATUS
    COM_PRODUCT_MAINTAIN_RES_CC
    COM_PRODUCT_MAINTAIN_SETSTATUS
    COM_PRODUCT_MAINTAIN_SET_CC
    COM_PRODUCT_MAINTAIN_STATUS
    COM_PRODUCT_SAVE_DB
    COM_PRODUCT_GET_TABLES
    COM_PRODUCT_UI_GETDETAIL
    CRM_PRODUCT_GETDETAIL_API
    CRM_PRODUCT_GETLIST2
    CRM_WAP_PRODUCT_GET_CATEGORY   Get Hierarchy and Category of a product
    CRM_WAP_PRODUCT_GET_DETAILS    Get ID,descrion,UOM, Price of a product
    CRM_WAP_PRODUCT_GET_LIST       Get product list from  favorit
    CRM_WAP_PRODUCT_GET_PPR        Get the prp product list for a partner
    COM_PRODUCT_GET_CDB_TABLES
    This is all FM Related to Product deatils Fetching..Hope it will help you

  • Product category from CRM_ORDER_READ

    Hi,
    can anyone tell me how to find out the values for "product category" from FM "CRM_ORDER_READ"?
    -Ganesh

    Hey Ganesh,
    This fm is used to read the order's and lt_products will return produst used in the order.
    If you want to get the product category use the FM:CRM_WAP_PRODUCT_GET_CATEGORY
    Hope this will help.
    Regards,
    Arjun
    Please do reward points

  • Promotion planning level change from product to product  category.

    Hi
    About the promotion planning level, currently we use product level which means we adds individual products and assign money to there.
    But we are thinkin of changing this to product category level planning.
    Could anyone please teach me some good references or links or how to do it in step by step?
    It seems we need to do a lot of work to change the level of planning, but hopefully it might be not too difficult?
    If you know the solution, could you point me some directions?
    Thanks.

    Looking at all that code, I can suggest one way of debugging the issue(Its a bit hard to guess what went in this case,particularly when the problem could be at so many places).
    1. Run your PLSQL as an anonymous block and check if the generated XML structure is what you expect.
    2. Check Firebug Console (if you have it) if an ajax request is send when the item is changed.
    3. Print out the return XML as a string on the screen so that you can make sure it what you wanted(use alert function or append to some page element)
    4. Now try your XML parser JS section starting with the obtained XML as a static variable, trying printing out the parsed out values at different stages
    5. Setting the page items shouldn't be much of a trouble if everything else worked fine.
    Some Observations: If you are on Apex 4.0 wouldn't a Dynamic Action save you all this trouble (Two SetValue processes). Even otherwise you seem to be fetching two id's from the Ondemand process..Can't you just concatenate them with some separator and send that as the result stream(htp.p), handling them in JS would be simple using the split function. If the data is more complex you could return it as a JSON string and parse it with fewer lines of code.
    Found a problem with the code :
    get.add('PRODUCT_ID',pValue)Do you have a page item by that name(PRODUCT_ID) ? else change it to
    get.add('P4_PRODUCT_ID',pValue)and change the following in ur PLSQL process code
    PRODUCT_ID = TO_NUMBER (v ('PRODUCT_ID'));to
    PRODUCT_ID = TO_NUMBER (v ('P4_PRODUCT_ID'));But as I said earlier, Debugging it step by step might be easier.

  • While upgrading Adobe Creative Suite CS4 ME into Adobe Creative Suite CS5.5 Design Premium, I get an error saying This serial number is not of a qualifying product, please try another. I used to be able to get a code from customer service but I can't get

    While upgrading Adobe Creative Suite CS4 ME into Adobe Creative Suite CS5.5 Design Premium, I get an error saying This serial number is not of a qualifying product, please try another. I used to be able to get a code from customer service but I can't get to the chat. Please advise!!!!

    MoeGhazal I reviewed your account and it looks like you have have upgraded from a CS4 volume license for Design Premium to a retail upgrade of Design Premium 5.5.
    I also show that you made two purchases of CS5.5 Design Premium but the second purchase was canceled.  Please make sure you are utilizing the serial number which ends in 7886.
    If you are using the correct serial number then it is likely the installer will not recognize your volume license CS4 serial number as being valid for an upgrade.  If you can contact our support team then you can be walked through an unlocking procedure to allow you to proceed with the installation.  You can contact our support team directly at Contact Customer Care.  You may want to try installing a web browser you have not previously utilized.  It is likely a toolbar or some other software application is affecting your ability to access chat support successfully.
    If you are still unable to reach our support team then please verify the information under your account is accurate.  If you can please then update this discussion after confirming this then I can request a member of our support team contact you directly.
    Again I would recommend reaching out directly if possible as it will be the most efficient method of resolving your current error.

  • No authorization to purchase from product category

    Hi
      I am trying to add an item to the shopping cart. When I press "Add to Shopping cart" the following warning message came.
    No authorization to purchase from product category 'Raw Materials'.
    How should I assign this authorization to my user name(I have all the admin privilages).
    Thanks for your help
    Vidya

    Hi
    In the transaction PFCG, for the role of Startegic purchaser,under the Personalization tab,set the attribute BBP_WFL_SECURITY to '4'.Also,check the authorisation data for the Strategic purchaser role.
    Check by giving SAP_ALL access to the user for time being.
    Regards
    - Atul

  • No authorization to purchase from product category X

    Hello,
    when I click on shop and select the product (relicated from BE), while adding this item to SC got the error 'No authorization to purchase from product category xxx', but for the same material and product category I can create a free form SC or PO (through process purchase order) or a contract. I have assigned the rite Product categories to user and PGRP. pls let me know if you have seem this message before?
    Thanks,

    Hi,
    Please assign the product category in the extended tab in transaction PPOMA_BBP for the user.
    In the transaction PFCG, for the role of Startegic purchaser,under the Personalization tab,set the attribute BBP_WFL_SECURITY to '4'.Also,check the authorisation data for the Strategic purchaser role.
    You can check by giving SAP_ALL access temporarily.
    BR,
    Disha.
    Do reward points for useful answers.

Maybe you are looking for