B2C scenario customer specific discount when customer login to the B2C site

Hi E-Commerce gurus,
We want to implement a customer specific discount scenario when the customer login to the B2C web site afterwards that easily see the customer specific discount as soon as duration of the login process. We have also succeed sales org-material     scenario that according to our given below function module calculates a discount rate covers all the material within the related sales organization and also shows the indicator of discount rate on the every material pictures at the web site.
Moreover we have configured an access sequence for condition ZB2I(discount condition) that related with Sales Org.-Customer then we replicate the CNACRMPRCUS666 condition table from ECC to CRM with all values but we can not calculate and display the discount rate on the web site when the customer log on the site and/or going to the basket. 
Is there any available BADI, BAPI on ABAP and JAVA Stack. How can we display the spesific customer discount rate when the customer log on the site and/or going to the basket?
Kind Regards, 
Fahrettin
DATA : lv_time_stamp    TYPE timestamp.
  DATA : BEGIN OF ls_product,
            product_guid    TYPE comt_product_guid,
            indirim         TYPE prct_cond_rate,
         END OF ls_product,
         lt_product         LIKE TABLE OF ls_product.
  DATA : ls_shop_s          TYPE crmm_isa_shop_h,
         ls_vrt             TYPE comm_pcat_vrt.
  CALL FUNCTION 'CRM_ISA_SHOP_READ'
    EXPORTING
      iv_shop_id     = iv_shop_id
    IMPORTING
      es_shop_h      = ls_shop_s
    EXCEPTIONS
      shop_not_found = 1
      OTHERS         = 2.
  IF sy-subrc <> 0.
    RAISE shop_not_found.
  ENDIF.
  SELECT SINGLE * INTO ls_vrt
  FROM comm_pcat_vrt
  WHERE guid = ls_shop_s-pcat_vrt_guid.
  IF sy-subrc <> 0.
    RAISE shop_not_found.
  ENDIF.
  CONVERT DATE sy-datum TIME sy-uzeit INTO TIME STAMP lv_time_stamp
  TIME ZONE sy-zonlo.
  CLEAR ev_indirim.
  SELECT SINGLE kbetr  AS indirim
  INTO ev_indirim
  FROM cnccrmprsap350
  WHERE sales_org      EQ ls_vrt-sales_org
    AND timestamp_from LE lv_time_stamp
    AND timestamp_to   GE lv_time_stamp
    AND kschl          EQ 'ZB2I'.
  ev_indirim = - ev_indirim / 10.
  SELECT DISTINCT product AS product_guid kbetr AS indirim
  INTO CORRESPONDING FIELDS OF TABLE lt_product
  FROM cnccrmprcus518
  WHERE timestamp_from LE lv_time_stamp
    AND timestamp_to   GE lv_time_stamp
    AND kschl          EQ 'ZB2I'.
  LOOP AT lt_product INTO ls_product.
    ls_product-indirim = - ls_product-indirim .
    IF ls_product-indirim GT 90.
      ls_product-indirim =  ls_product-indirim / 10.
    ENDIF.
    MOVE-CORRESPONDING ls_product TO  et_list.
    APPEND et_list.
  ENDLOOP.
  SORT et_list .
ENDFUNCTION.

Hi,
As per my knowledge if you want to implement customer specific discount then you should use ISA B2B instead of ISA B2C. ISA B2B gives you this facility which you want to implement on B2C.
Also How you will distinguish User in B2C to display specific prise. Your discount price is based on Sales Org or base on user?
As your ABAP program is working fine but you are not getting it on web site then you have to write custom java code and collect all the required information on ISA side then pass it to RFC's import parameter and get the result back and display result on ISA B2C.
eCommerce Developer

Similar Messages

Maybe you are looking for