cancel
Showing results for 
Search instead for 
Did you mean: 

Account Confirmation in CRM WEBUI

Former Member
0 Kudos

Hello,


I have requierment to confirm account on dispute selection


Wrote below code but getting dump   CALL METHOD lr_entity->if_bol_bo_property_access~set_property

DATA:
             lr_entity TYPE REF TO cl_crm_bol_entity.

     lr_gdc ?= cl_crm_ui_data_context_srv=>get_instance( ).
     TRY.

         CALL METHOD lr_entity->if_bol_bo_property_access~set_property
           EXPORTING
             iv_value     = lv_guid
             iv_attr_name = 'BP_GUID'.
       CATCH cx_sy_move_cast_error.
     ENDTRY.


     lr_gdc->set_entity( name = 'CURRENTCUSTOMER' value = lr_entity ).



When i confirmed account from account identification view then i am able to read account by below code



* get bp
     lr_bdc = cl_crm_ui_data_context_srv=>get_instance( me ).

     IF lr_bdc IS BOUND.
       lr_bp = lr_bdc->get_entity( name  = 'CURRENTCUSTOMER' ).
       IF lr_bp IS BOUND.
*     BP_NUMBER
*   Get contact person number
         CALL METHOD lr_bp->get_property_as_value
           EXPORTING
             iv_attr_name = 'BP_NUMBER'
           IMPORTING
             ev_result    = lv_customer.
       ENDIF.
     ENDIF.



But where i am wrong on setting the global parameter of account.


Pls help me


Accepted Solutions (0)

Answers (1)

Answers (1)

former_member193634
Active Participant
0 Kudos

Hello,

Account confirmation is quite "complex". Setting the CURRENTCUSTOMER won't do it.

If you want to perform a real account confirmation, please have a look, for example, at event handler EH_ONCONFIRM  of view ICCMP_BP_DETAIL/BuPaDetailB2B.

You will see there that account confirmation is done by calling method BP_CONFIRM of custom controller 'GLOBAL.CRMCMP_BPIDENT/CuCoBuPa'.

You may want to try to reproduce this behaviour in your custom development.

Hope this helps.

Best regards,

Sylvain AGUETTAZ