Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: Hyperlink issue

$
0
0

Hi Ram,

 

before click on hyperlink we can restrict by using this code..

ORDER_SAVE there is a method CHECK_BEFORE_SAVE.


read your require data and

CALLFUNCTION'CRM_ORDER_READ'
EXPORTING

      it_header_guid              = it_header_guid[]

      et_lead_h                   = it_lead_h[]

EXPORTING
et_orderadm_h               = it_orderadm_h[]
et_opport_h                 = it_oppt_h[]
et_lead_h                   = it_lead_h[]
.

LOOPAT it_lead_h INTO wa_lead_h. "check for customer referral
lv_src = wa_lead_h-source.
IF lv_src = 'Z18'.
READTABLE it_partner INTO wa_partner WITHKEY ref_partner_fct = 'Z0000013'.
IF sy-subrc <> 0.
cv_own_message =
'X'.
MESSAGE'Please Enter Customer Referal In Parties Involved'TYPE'E'RAISING do_not_save.
ENDIF.
ENDIF.

in website event u should write like this.

window.open ("http://www.google.com","mywindow","menubar=1,resizable=1,width=350,height=250");

ENDIF.

 

 

this is another way..

 

read the value of all attributes..

 

  lr_col ?= typed_context->contectnode->collection_wrapper.


 

lr_curr ?= lr_col->get_current( ).

 

 

lr_entity ?= lr_curr->get_first( ).

while lr_entity is bound.

 

 

   lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'VAR1'

                                        IMPORTING ev_result = lv_var1).

   lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'VAR2'

                                        IMPORTING ev_result = lv_var2).

 

lr_entity ?= lr_curr->get_next( ).

  endwhile.

 

check each and every value is not initial..

if it is having data then you should call the web site..

otherwise rise error like this..

lr_core = cl_crm_bol_core=>get_instance( ).

 

 

CALL METHOD LR_CORE->GET_GLOBAL_MESSAGE_CONT

  RECEIVING

    RV_RESULT = lr_cont.

CALL METHOD LR_CONT->ADD_MESSAGE

    EXPORTING

      IV_MSG_TYPE       = 'E'

      IV_MSG_ID         = 'ZMSG22'

      IV_MSG_NUMBER     = '000'

*      IV_MSG_TEXT       =

*      IV_MSG_V1         =

*      IV_MSG_V2         =

*      IV_MSG_V3         =

*      IV_MSG_V4         =

      IV_SHOW_ONLY_ONCE = 'X'

*      IV_MSG_LEVEL      = '1'.

 

 

Thanks & Regards,

Srinivask


Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>