BAdI for replacing CRM Pricing

Hi Experts,
I have a requirement to make a RFC call to retrieve the pricing from ECC/Vistex in CRMD_ORDER transaction after hit enter key with product/qty entry. I'm searching a BAdI for CRMD_ORDER (so many BAdIs for this TC) that can RFC by customer/material to retrieve the pricing from ECC then overwrite CRM's pricing with it (at least has customer/material as importing and subtotals as export/changing). Can anyone please advise if there is a BAdI for this purpose?
Thanks in advance, Jin

In CRM_PRICING_I_BADI-MERGE: there are netvalue/price and subtotals in Importing IU/S_PRICING_I_WRK, but not in Changing CS_PRICING_I_BADI. 
In CRM_PRICING_BADI-MERGE: there are none of them. 
Why PRICING BADIs have no Pricing fields that can be changed? I think I'm missing something here.  Any advise / documentation?
Thanks, Jin

Similar Messages

  • BAdI in CRMD_ORDER for replacing CRM Pricing

    Hi Experts,
    I have a requirement to make a RFC call to retrieve the pricing from ECC in CRMD_ORDER Std Order transaction after hit enter key with product/qty entry. I'm searching a BAdI for CRMD_ORDER (so many BAdIs for this TC) that can RFC by customer/material to retrieve the pricing from ECC then overwrite CRM's pricing with it (at least has netvalue/price and subtotals in Changing).
    I tried CRM_PRICING_I_BADI and CRM_PRICING_BADI but both have no netvalue/price and subtotals in Changing CS_PRICING_I_BADI or CS_PRICING_BADI.  I think I'm missing something here. 
    Can anyone please advise if there is a BAdI for this purpose? Any documentation?
    Thanks in advance, Jin

    Sorry, I duplicated it ... please don't reply this one.  Thanks.

  • Java call to RFC FM for replacing CRM pricing

    Hi Experts,
    I have a requirement to make a RFC call to retrieve the pricing from ECC in CRMD_ORDER transaction after hit enter key with product/qty entry (use Web UI/shop/IC as frontend). Is it possible to made a Java call to RFC FM in SAP CRM which in turn calls R/3 to execute pricing and display this price on web order page?  If yes, any documentation/samples and advise please.
    Thanks in advance, Jin

    Hi all,
    Following the AP7 Pricing Userexit Manual, I can change the price value in the exit (good doc, thanks).  my next steip is to get sales org, customer and product info to make RFC, but I don't know from which Interface I can retrieve these info, can anyone help me? any doc or sample code?
    Thanks, Jin

  • CRM - Pricing User Exit in Java - BADI CRM_COND_COM_BADI

    Hi All
    I have to convert some user-exit from Abap to Java in order to work in CRM Pricing Scenario (I use VMC technology based on Web AS 7.00).
    In the manual attached to note 809820 (New userexit concept for pricing)
    I find this chapter but I don't understand how to work with BADI <b>CRM_COND_COM_BADI.</b>
    <b>My objective is to create Java user-exit using Custom Tables and Fileds.</b>
    <b>Passing additional information to pricing</b>
    To summarize, if the information used in a requirement is not depending on the current calculation result, then the information can be passed to the pricing engine. This is the best way to avoid e.g. DB or JCo calls from the user exits.
    Nearly all application scenarios using the pricing engine provide a way of filling additional attributes.
    1. Create a field catalogue entry for the additional attribute
    2. Program the filling of that attribute value
    The application calling the pricing engine and the way it is allowing customer code to fill or influence attributes is not part of this document. Here is only a short list of documentation to start with (also various notes exist):
    Application Description
    CRM Online Order Processing
    Implement BADI CRM_COND_COM_BADI. Note 850077
    Mobile Solutions Implement VBA user exit methods on SPCDOCHANDLER or SPCITEMHANDLER.Note 677314 and Note 934216
    Best regards
    Davide Ivanov
    [email protected]

    Hi davide,
    The BADI CRM_COND_COM_BADI is used for filling the pricing communication structure.
    If you have added any field at header level of the field catelog that will available in the changing parameter of the method HEADER_COMMUNICATION_STRUCTURE.
    If you have added any field at item level of the field catelog that will available in the changing parameter of the method ITEM_COMMUNICATION_STRUCTURE.
    Additional fields added at catelog can be filled with the values using this BADI.
    Thanks & Regards,
    Raghuram. K.R.

  • CRM Pricing - BADI to Populate pricing conditions fields

    Hello All,
    We have CRM 5.0 installed in our customer.
    We are facing problems when we tried to replicate the pricing  from R/3.
    Basically, all Brazilian formulas we have in R/3 are Z. We tried to replicate them in JAVA (IPC) with no success. At this time, it is imposible for us to move to the standard because of the decision of the business.
    We are trying to find one BADI where we can populate all the pricing conditions retrieved via RFC from R/3. Unfortunatelly we don't have good luck with this.
    Our idea is to use this BADI to call R/3 and retrieve the conditions needed, and then populate the CRM pricing fields..
    Could you please help us? Do you have any other idea to solve this issue?
    This is very critical for us.
    Thanks in advance.
    Martin

    Hi Ntk,
    Thanks for your reply.
    I tried to search in se18. I found one BADI that runs when users enter new materials or changes the quantity of the sales order.
    This one  does not help us too much, because when you go to conditions tab (into CRMD_ORDER or via ICWEB) all conditions are redetermined with the pricing determined in IPC.
    We want to fill the conditions of the sales orders or the sales quotations at running time. In the BADI we would use the function module RFC SD_SALESDOCUMENT_CREATE (in simulation mode) in R/3 and retrieve all conditions fields and then populate the pricing conditions in CRM.
    Do you know any BADI with this behaviour? Or another similar?
    THANKS!

  • How to find the BADI for the transaction CRM_IC in CRm 5.0

    Hi all,
    I have a issue:
    in CRM 5.0, for the transaction CRM_IC (IC Web tcode), i need to do an enhancement for that tcode.
    In crm_ic, we can enter Business partner and product id data,whenever we provide the inputs for BP and Product id and if we press enter then it displays the details like product description, UOM etc.
    what i need to do is when we enter product id which is not available in Product Master,develop an enhancement which get those details from Cust / Dist chain and replace the entered value with retrieved value.
    For this CRM_IC, I need to find the correct BADI.
    Can any one send me out the Exact BADI for this requirement.

    spro> crm > transactions > basic settings > badi's
    BAdI: Product Processing at Item Level
    In this step, you can create enhancements for product processing at item level in the business transaction The following methods are available to you in the Business Add-In CRM_PRODUCT_I_BADI:
    CRM_PRODUCT_I_CHECK: BAdI to check object PRODUCT_I
    CRM_PRODUCT_I_MERGE: BAdI to merge object PRODUCT_I

  • Creating BADI for datasource enhancement in CRM system

    Hi,
    I am working on SAP BI/BW. This is the first time I am working in CRM system with CRM datasources. Facing some problem for datasource enhancement as never done it before in the CRM system. Is there anyone who can help in in creating BADI for datasource enhancement in CRM.
    Thanks in advance
    Moumita

    Hi Kushal,
    You can find the BADI name by,
    Go to Transaction SE24
    Enter the Object Type CL_EXITHANDLER and click on Display.
    Double Click on method "GET_INSTANCE".
    Put a Break-point on Call method cl_exithandler=>get_class_name_by_interface
    Run RSA3 transaction and execute the DataSource.
    The execution will stop at the break point.
    Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    Thanks,
    Kokila

  • Creating BADI for datasource enhancement in CRM.

    Hi,
    I am working on SAP BI/BW. This is the first time I am working in CRM system with CRM datasources. Facing some problem for datasource enhancement as never done it before in the CRM system. Is there anyone who can help in in creating BADI for datasource enhancement in CRM.
    Thanks in advance
    Moumita

    Hi Prasad Reddy,
    This are the available badis and exits for this t.code:
    Enhancement/ Business Add-in            Description
    Enhancement
    MGA00001                                Material Master (Industry): Checks and Enhancements
    MGA00002                                Material Master (Industry): Number Assignment
    MGA00003                                Material Master (Industry and Retail): Number Display
    Business Add-in
    MG_MASS_NEWSEG                          User-Specific Fields & Segments in Mass Maintenance
    MATGRP_SKU_UPD
    CDT_CHECK_MATERIAL                      Checks for Existence of a Material in a CDT
    BADI_MM_MATNR
    BADI_MAT_F_SPEC_SEL                     BAdI for Material Special Field Selection
    BADI_MATNR_CHECK_PVS
    BADI_MATERIAL_REF                       Addition of customer-defined default data for material
    BADI_MATERIAL_OD
    BADI_MATERIAL_CHECK                     Enhanced checks for material master table
    BADI_GTIN_VARIANT
    BADI_EAN_SYSTEMATIC
    o.of Exits:          3
    o.of BADis:         11
    Find the Exact  exits and badis for ur requirement.
    How to fine the exact badi:
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any
    transaction
    Rgds,
    P.Naganjana Reddy
    if you follow this 7 steps, you will find a suitable BADI.

  • User,Customer exits or BADI for IDOC Type - CRMXIF_ORDER_SAVE_M01 in CRM

    Hi Friends,
    We are creating teh EDI Sales order in CRM using below details:
    Basic Type - CRMXIF_ORDER_SAVE_M01
    Message Type - CRMXIF_ORDER_SAVE_M
    Functional Module  - IDOC_INPUT_CRMXIF_ORDER_SAVE_M
    Direction -Inbound
    We need to customize the values for the IDOC,
    Can any one help  us in providing the details on any Customer Exits , User Exits and /or  BADIs for the abov ementioned FM.
    We greatly appreciate your early responce.
    Thanks
    Vijay

    Thanks Naresh, it helped...
    Can you please help on the below:
    1. For outbound Sales order IDoc- CRMXIF_ORDER_SAVE_M01,need BADIs for modification of the IDoc before it gets generated.
    2. Need program to generate output as outbound IDoc- CRMXIF_ORDER_SAVE_M01  for sales order conformation/acknowledgement.
    3. Need a BADI after the EDI Sales order is saved.
    Thanks in advance
    Vijay

  • BADI for CRM Order item

    Hi There,
    I have to execute some custom code whenever an order line item has been deleted. Is there any BADI for this?
    BADI should give me all the line item details and update indicator.
    Thanks in advance,
    Rams.

    Hi Rams,
    Use the parameter IV_GUID in which you will get HEADER GUID.
    Pass this header guid to the CRM_ORDER_READ to get the required data for item.
    Refer the following piece of code:
      APPEND iv_guid TO lit_header_guid.
      INSERT gc_object_name-orderadm_h INTO TABLE lit_req_object.
      INSERT gc_object_name-orderadm_i INTO TABLE lit_req_object.
      CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          it_header_guid       = lit_header_guid
          it_requested_objects = lit_req_object
        IMPORTING
          et_orderadm_h        = lit_orderadm_h
          et_orderadm_i        = lit_orderadm_i
        EXCEPTIONS
          document_not_found   = 1
          error_occurred       = 2
          document_locked      = 3
          no_change_authority  = 4
          no_display_authority = 5
          no_change_allowed    = 6
          OTHERS               = 7.
    <b>Reward points if it helps.</b>

  • BADI ME_PO_PRICING_CUST or  VOFM Pricing Rouitnes

    Hi All,
    I need to replace distribution chain in the price determination for stock trasnport order.
    It can be done either thorugh BADI ME_PO_PRICING_CUST or  VOFM Pricing Rouitnes.
    Could you please let me know which is best way to do this.
    I should go ahead with BADI or VOFM Routine.
    Best Regards,
    Pramod Upadhyay

    hello,
    To imorove the perfomence you have to check which option will have better perfromance. one way is to check 'which option will tirgger multiple times. VoFM routince tiggers mutilple times so please check if the badi tringgers less number of time by setting break point..
    Then you have the answer!!...
    Regards
    Naresh

  • Badi for searchterm and lifecycle

    Hi,
    When an account is created then the value in searchterm is checked against a table .If the value in searchterm is present in the ztable and our lifecycle value is customer then that account is created otherwise an error message is to be returned on the UI.
    For implementing the above condition we have to implement BADI's for both the fields?
    I am able to find the BADI for searchterm check but i am unable 2 find a BADI for lifecycle field.
    Please help.
    Regards
    Shilpi

    I think you can use the badi 'BUPA_FURTHER_CHECK'. This badi is called in the function module 'BUPA_CENTRAL_CHANGE'.
    In general, the BP search term ('BU_SORT1' or 'BU_SORT2' in the table 'BUT000' is contained in the root object 'BuilHeader' of BOL model.This object is controlled by the class 'CL_BUPA_IL_HEADER' (#1). If an user changes the BP data, the method 'Modify' will be called. And also, if the user saves the BP data, the method 'SAVE' will be called.
    The above badi is called during the processing the 'modify' method.
    If this badi does not meet your requirment, I think you should also consider to use the following transaction (#2). In this transaction, you can replace the standard processing (ex. cl_bupa_il_header) with your own logic.
    Hope this helps.
    (#1) You can find the standard definition in the table 'CRMC_OBJIMP_BUIL'
    (#2) t-cd: spro
    -> Customer relationship management
    -> CRM cross-application components
    -> Generic Interaction Layer / Object Layer
    -> Component-Specific Settings
    -> Extend Object Model for Business Partner

  • CRM Pricing Exits

    Hi,
    I am new to CRM pricing, and want to port my R/3 exits and ZZ fields to CRM. Would really appreciate if someone can send me some sample code about CRM_COND_COM_BADI and Java-exits, as to how do I manipulate the ZZ fields I have added to CRM Catalog. If there is any documentation available on this also please send me the same at [email protected]
    Thanks in Advance,
    Indi

    Also, have a look at the following BADI implementation for CRM_COND_COM_BADI :
    METHOD if_ex_crm_cond_com_badi~item_communication_structure .
      INCLUDE crm_object_names_con.
    * Internal Table Declaration
      DATA: lit_header_guid         TYPE crmt_object_guid_tab,
            lit_item_guid           TYPE crmt_object_guid_tab,
            lit_requested_objects   TYPE crmt_object_name_tab,
            lit_partner             TYPE crmt_partner_external_wrkt,
            lit_partner_tmp         TYPE TABLE OF crmt_partner_external_wrk,
            lit_customer_i          TYPE crmt_customer_i_wrkt,
            lit_customer_h          TYPE crmt_customer_h_wrkt,
            lit_orderadm_i          TYPE crmt_orderadm_i_wrkt,
            lit_appointment         TYPE crmt_appointment_wrkt,
            lit_pricing             TYPE crmt_pricing_wrkt,
            lit_pricing_tmp         TYPE TABLE OF crmt_pricing_wrk,
            lit_appointment_tmp     TYPE TABLE OF crmt_appointment_wrk.
    * Work Area declaration
      DATA: wa_crmt_partner_external_wrk TYPE crmt_partner_external_wrk,
            wa_crmt_customer_i_wrk       TYPE crmt_customer_i_wrk,
            wa_crmt_customer_h_wrk       TYPE crmt_customer_h_wrk,
            wa_crmt_appointment_wrk      TYPE crmt_appointment_wrk,
            wa_crmt_orderadm_i           TYPE crmt_orderadm_i_wrk,
            wa_pricing                   TYPE crmt_pricing_wrk,
            wa_product_guid              TYPE comt_product_guid,
            wa_zcsme_std                 TYPE zcsme_std,
            wa_partner                   LIKE LINE OF lit_partner,
            wa_utilitydivision           TYPE crm_util_division.
    *Variable Declaration
      DATA:   lv_ldz                   TYPE zeew_dataelement0141,
              lv_aqband                TYPE zz_aqband,
              lv_sp_aq                 TYPE zeew_dataelement0139,
              lv_temp                  TYPE i,
              lv_partner_guid          TYPE but000-partner_guid,
              lv_item_guid             TYPE crmt_item_guid,
              lv_pod_id                TYPE guid_22,
              lv_premise_typ           TYPE eui_vbsart,
              lv_but000                TYPE bus000,
              lv_productguid           TYPE comm_producth-product_guid,
    *          lv_address               TYPE bus000_ext,
              lv_cst_apr               TYPE zcsme_cst_apr,
              lv_payment_meth          TYPE crmt_buag_paymeth,
              lv_fragment_guid         TYPE comt_frg_guid,
              lv_catid                 TYPE comt_category_id,
              lv_partnerno             TYPE but000-partner,
              lv_dialog                TYPE c.
    *Constants Declaration
      CONSTANTS: lc_max_score(6)          TYPE n VALUE 9999,
                 lc_cont_dur(10)          TYPE c VALUE 'CONTDURA',
                 lc_type_h                TYPE c VALUE 'A',
                 lc_type_i                TYPE c VALUE 'B',
                 lc_msg_id(10)            TYPE c VALUE 'ZCRM_APPL',
                 lc_msg_typ               TYPE c VALUE 'I',
                 lc_msg_no_091(3)         TYPE c VALUE '091',
                 lc_part_fct_z00001(6)    TYPE c VALUE 'Z00001',
                 lc_part_fct_00000001(10) TYPE c VALUE '00000001',
                 lc_spec_items            TYPE crmt_boolean VALUE 'X'.
    * Check if header information is incomplete......................
      CHECK cs_acs_i_com IS NOT INITIAL.
    * Read the contents of the table entries of CRMT_ACS_I_SEL...
      INSERT cs_acs_i_com-header_guid INTO TABLE lit_header_guid.
      INSERT cs_acs_i_com-guid        INTO TABLE lit_item_guid.
    * Populate the internal table which will be passed to the function
    * module CRM_ORDER_READ so that only the requested information will be
    * retrieved.
      INSERT gc_object_name-customer_h  INTO TABLE lit_requested_objects.
      INSERT gc_object_name-customer_i  INTO TABLE lit_requested_objects.
      INSERT gc_object_name-orderadm_i  INTO TABLE lit_requested_objects.
      INSERT gc_object_name-appointment INTO TABLE lit_requested_objects.
      INSERT gc_object_name-partner     INTO TABLE lit_requested_objects.
      INSERT gc_object_name-pricing     INTO TABLE lit_requested_objects.
    * Read Order details.........................................
      CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          it_header_guid       = lit_header_guid
          it_item_guid         = lit_item_guid
          it_requested_objects = lit_requested_objects
          iv_only_spec_items   = lc_spec_items
        IMPORTING
          et_orderadm_i        = lit_orderadm_i
          et_customer_h        = lit_customer_h
          et_customer_i        = lit_customer_i
          et_appointment       = lit_appointment
          et_partner           = lit_partner
          et_pricing           = lit_pricing
        EXCEPTIONS
          document_not_found   = 0
          error_occurred       = 0
          document_locked      = 0
          no_change_authority  = 0
          no_display_authority = 0
          no_change_allowed    = 0
          OTHERS               = 0.
    * Read Business Partner details
      READ TABLE lit_partner INTO wa_partner
      WITH KEY ref_kind = lc_type_h
               ref_partner_fct   = lc_part_fct_00000001.
      MOVE wa_partner-partner_no TO lv_partnerno.
      IF sy-subrc EQ 0.
        CALL FUNCTION 'BUP_PARTNER_GET'
          EXPORTING
            i_partner         = lv_partnerno
          IMPORTING
            e_but000          = lv_but000
          EXCEPTIONS
            partner_not_found = 1
            wrong_parameters  = 2
            internal_error    = 3
            OTHERS            = 4.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    * Copy the custom fields to IPC
    * Determine LDZ and AQBAND..........................................
      IF lit_customer_i[] IS NOT INITIAL.
    * Table type is sorted so no need to sort the internal table and use of
    * BINARY SEARCH
        READ TABLE lit_customer_i INTO wa_crmt_customer_i_wrk
        WITH KEY guid = cs_acs_i_com-guid.
        IF sy-subrc EQ 0.
          lv_ldz   = wa_crmt_customer_i_wrk-zzcustomer_i0141.
          lv_sp_aq = wa_crmt_customer_i_wrk-zzcustomer_i0139.
          cs_acs_i_com-zz_ldz = lv_ldz(2).       " Copy LDZ...
          IF lv_sp_aq  IS NOT INITIAL.
            SELECT SINGLE zz_aqband
                     FROM ztcrm_aq_to_band
                     INTO lv_aqband
                    WHERE zz_aq_from LE lv_sp_aq
                      AND zz_aq_to GE lv_sp_aq.
            IF sy-subrc EQ 0.
              cs_acs_i_com-zz_aqband = lv_aqband.  " Copy AQBAND...
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    * Determine Credit Score
      IF lit_customer_h[] IS NOT INITIAL.
    * Table type is sorted so no need to sort the internal table and use of
    * BINARY SEARCH
        READ TABLE lit_customer_h INTO wa_crmt_customer_h_wrk
        WITH KEY guid = cs_acs_i_com-guid.
        IF sy-subrc EQ 0.
          IF wa_crmt_customer_h_wrk-zzcustomer_h0311 IS INITIAL.
            cs_acs_i_com-zz_credit_score = lc_max_score.
          ELSE.
            cs_acs_i_com-zz_credit_score
            = wa_crmt_customer_h_wrk-zzcustomer_h0311.
          ENDIF.
        ELSE.
          cs_acs_i_com-zz_credit_score = lc_max_score.
        ENDIF.
      ELSE.
        cs_acs_i_com-zz_credit_score = lc_max_score.
      ENDIF.
    * Determine Contract duration.
      IF lit_appointment[] IS NOT INITIAL.
        lit_appointment_tmp[] = lit_appointment[].
        SORT lit_appointment_tmp BY ref_guid ref_kind appt_type.
        READ TABLE lit_appointment_tmp INTO wa_crmt_appointment_wrk
        WITH KEY ref_guid = cs_acs_i_com-header_guid
                 ref_kind = lc_type_h
                 appt_type = lc_cont_dur
        BINARY SEARCH.
        IF sy-subrc EQ 0 AND
          wa_crmt_appointment_wrk-duration NE space.
          cs_acs_i_com-zz_duration = wa_crmt_appointment_wrk-duration.
        ENDIF.
      ENDIF.
    * Copy BP type,  potential value, elasticity index
    * and cost to server.
      IF lv_but000 IS NOT INITIAL.
        cs_acs_i_com-zz_bptype        = lv_but000-bpkind.
        IF lv_but000-zzpnt_val0001 IS INITIAL.
          cs_acs_i_com-zz_potentialval = lc_max_score.
        ELSE.
          cs_acs_i_com-zz_potentialval  = lv_but000-zzpnt_val0001.
        ENDIF.
        IF lv_but000-zzei_indx0001 IS INITIAL.
          cs_acs_i_com-zz_elstct_indx   = lc_max_score.
        ELSE.
          cs_acs_i_com-zz_elstct_indx   = lv_but000-zzei_indx0001.
        ENDIF.
        IF lv_but000-zzcost_to_se0001 IS INITIAL.
          cs_acs_i_com-zz_cost_to_serve   = lc_max_score.
        ELSE.
          cs_acs_i_com-zz_cost_to_serve   = lv_but000-zzcost_to_se0001.
        ENDIF.
      ENDIF.
    * Determine Broker.
      IF lit_partner[] IS NOT INITIAL.
        lit_partner_tmp[] = lit_partner[].
        SORT lit_partner_tmp BY  ref_guid partner_fct.
        READ TABLE lit_partner_tmp
        INTO wa_crmt_partner_external_wrk
        WITH KEY  ref_guid = cs_acs_i_com-guid
                  partner_fct = lc_part_fct_z00001
        BINARY SEARCH.
        IF sy-subrc EQ 0.
          cs_acs_i_com-zz_broker
          = wa_crmt_partner_external_wrk-ref_partner_no.
        ENDIF.
      ENDIF.
    * Determine SIC_CODE..........................................
      lv_item_guid = cs_acs_i_com-crm_item_guid.
      IF lv_item_guid IS NOT INITIAL.
        CALL FUNCTION 'ECRM_ISU_GET_PODGUID'   " Retrieve the pod ID
          EXPORTING
            x_orderadm_i_guid = lv_item_guid
          IMPORTING
            y_podguid         = lv_pod_id.
        IF lv_pod_id IS NOT INITIAL.
          SELECT SINGLE vbsart                 " Retrieve the pod
                   FROM isu_pod
                   INTO lv_premise_typ
                  WHERE int_ui = lv_pod_id.
          IF sy-subrc EQ 0.
            cs_acs_i_com-zz_sic_code = lv_premise_typ. " Set the SIC_CODE
            IF cs_acs_i_com-zz_sic_code IS INITIAL.
              cs_acs_i_com-zz_sic_code = lc_max_score.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    * Determine customer approach,Utility Division and standing charge value
      CALL FUNCTION 'ZCRM_READ_PRODUCT_DTLS'
        EXPORTING
          x_product_guid      = cs_acs_i_com-product
        IMPORTING
          y_sme_product_dtls  = wa_zcsme_std
        EXCEPTIONS
          table_not_found     = 1
          settype_not_found   = 2
          no_authority        = 3
          frg_not_found       = 4
          prod_dtls_not_found = 5
          OTHERS              = 6.
      IF sy-subrc EQ 0.
        cs_acs_i_com-zz_csme_cst_apr = wa_zcsme_std-zz0012.
        cs_acs_i_com-zz_csme_std_chg = wa_zcsme_std-zz0014.
        cs_acs_i_com-zz_utildivision = wa_zcsme_std-zz0015.
      ENDIF.
    * Determine Payment Method......................
      IF lit_pricing[] IS NOT INITIAL.
        lit_pricing_tmp[] = lit_pricing[].
        SORT lit_pricing_tmp BY ref_guid.
        READ TABLE lit_pricing_tmp INTO wa_pricing
        WITH KEY ref_guid = cs_acs_i_com-crm_item_guid
        BINARY SEARCH.
        IF sy-subrc EQ 0.
          cs_acs_i_com-zz_paymenthod = wa_pricing-payment_method.
        ENDIF.
      ENDIF.
    * Determine Business Partner type
      cs_acs_i_com-zz_bptype = lv_but000-bpkind.
    * Set a flag if this module is called in background
      CALL FUNCTION 'DIALOG_GET_STATUS'
        IMPORTING
          dialog_status = lv_dialog.
      cs_acs_i_com-zz_dialog = lv_dialog.
    <b>Reward points if it helps.</b>

  • BAdi for Search Criteria in IC

    Hi Experts,
    I am working on the UI of the IC, i have to implement a BAdi for the search criteria in the Account Identification -> ERP Sales Document , I am trying this badi "CRM_BUPA_IL_SEARCH" but this is not getting triggered.
    Can anyone suggest any name of the BAdi for the same ?
    Thanks in advance,
    regards,
    sharad,

    Hi sharad,,
    if you want to use your badi to search a object you have to use as a search bol object BuilHeaderSearchNew. If you are using BuilHeaderSearch(sap standard) it's not working.
    You can define to use the BuilHeaderSearchNew in spro->CRM->INDUSTRY-SPECIFIC Solution->Utility Industries->Setting for User Interfaces->Identification->Define Identification Profiles. Choose your z-profile and in the row Search By BP select the value BuilHeaderSearch. Check if it saves your value, becouse we had a problem with this.
    Or you can use table crmc_iu_md_prof to enter the value BuilHeaderSearchNew directly for your z-profile.

  • BADI trigered in CRM while creating a order from B2B webshop

    Hellow Gurus,
    Could you please tell the BADIs triggered in CRM when we create an order from B2B webshop. I have to keep a validation to ensure the delivery type 'Standard' should be applicables orders having gross weight less thatn 4 kg only.
    I should also throw an alert in B2B webshop saying ' Please choose other type' as well. I dont know how to proceed for this.
    Please help.

    Hello,
    The  best way to determine the BADI's called is to look at the Log files.  The following OSS Notes (based on your release) will instruct you how to create a session trace.
    Note 569976 (Release 4.0)  - creation fo session logs
    Note 1090753 (Release 5.0) - Creation of logs for B2B and B2C
    Note 1156730 -  Creation of logs for ISAUserAdm and ShopAdmin
    You can also look at the [Modifiation and Extension guide |https://websmp210.sap-ag.de/~sapdownload/011000358700000469462006E/]for instructions (chapter Session Tracing).
    I hope this helps.
    Deb

Maybe you are looking for

  • Creation of new entity on ADEP content server fails

    Hi.  I get the following error when trying to persist a new instance of an entity into the content (experience?) server: Create Item Failed, RepositoryException: {Code}-LCC-REP-FCT-002, {Message}-Access denied The new instance is defined in a Flex GU

  • Adobe CS4 crashes in OS X Mavericks

    Photoshop CS4 crashes every time I attempt to manipulate layers. Additionally after a reinstall it will no longer accept my serial number [I have previously reinstalled without problems]. Is this a compatibility issue? are there workarounds for this?

  • Final cut pro not exporting my movie

    My movie that I worked hard for is not exporting when I click export movie or when I try to upload it to Youtube I get an error please help me

  • BED amount more then Base Value

    hi, i create SA,qty=250,000EA nad rate 182/, when doing migo wrt SA for qty 90.base value is calculating correctly=90*182=16380 but bed calculating wrongly(14%),its calculating 22,930.00(it should be 2293/.) please guid us regards ssp

  • How to clear the power up reset states

    my pci 7344 is  in the power up reset state. How to clear the power up reset state of an 7344 programmatically. Using clear power up reset state in block diagram doesnt seem to work. Give a possible solution