0% found this document useful (0 votes)
106 views11 pages

03 02 2014

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1/ 11

http://e-university.wisdomjobs.com/sap-abap-web-dynpro/chapter-68-274/view-controller-methods.

html
http://careerabap.blogspot.com.tr/2010/12/deleting-row-from-web-dynpro-table.html
http://stepbystepbi.blogspot.com.tr/p/abap.html
http://sapbimaterials.blogspot.com.tr/2012/08/part-3.html
http://sapbimaterials.blogspot.com.tr/2012/08/calling-web-dynpro-code-wizard-runtime.html
http://sapbimaterials.blogspot.com.tr/2012/08/user-interface-elements-ui-elements.html
http://webdynpro-tutorials.blogspot.com.tr/p/tutorials-for-advance-level.html

ntroller-methods.html

ZCRM_IHALE_REMIND_MAIL_01
ZCRM_KARNEAKT_REMIND_MAIL_01
ZCRM_SIKAYET_GELISME_BILDIRIM
ZCRM_SIKAYET_GELISME_UYARI
ZCRM_SIKAYET_KAPANMA_MAIL
ZCRM_SIKAYET_MUSTERI_MAILI
ZCRM_SIKAYET_REMIND_MAIL_01
ZCRM_SOZLESME_REMIND_MAIL_01

ZCOM_PARTNER_BADI

Muhatap No:

Badi
CLASS

ZCL_IM_COM_PARTNER_BADI

331

http://scn.sap.com/community/crm/blog/2009/12/28/crm-70-how-to--5d-custom-controller-and-binding-of-context-nodes

roller-and-binding-of-context-nodes

COM_PARTNER_BADI
IF_EX_COM_PARTNER_BADI~DETERMINATION_ADD_IN_1.
It will triggered while creating new opportunity .
IF is_partner_control-object_idIS INITIAL
IF is_determination_step-access_sequence= 'Z001' " your access sequence
read table IT_EXISTING_PARTNERS in ls_EXISTING_PARTNERS ......
CLEAR ls_found_partners.
ls_found_partners-no_type= 'BP'.
ls_found_partners-display_type= 'BP'.
ls_found_partners-partner_number= ls_EXISTING_PARTNERS-partner_no.
APPEND ls_found_partnersTO et_found_partners.
ENDIF.
ENDIF.

Example

CALLMETHODsuper->do_prepare_output
EXPORTING
iv_first_time=iv_first_time.
DATA:lv_dateTYPEstring,
lv_usertypestring,
lv_statusTYPEstring.
DATA:lr_entityTYPEREFTOcl_crm_bol_entity,
lr_entity_adminTYPEREFTOcl_crm_bol_entity.
TRY.
lv_status=typed_context->btadminh->get_lcstatus(attribute_path='ACT_STATUS').
IFlv_statusEQ'E0002'.
lr_entity_admin?=typed_context->btadminh->collection_wrapper->get_current().
lv_date=sy-datum.
lr_entity_admin->set_property(iv_attr_name='DATE_FROM'
iv_value=lv_date).
ENDIF.

CATCHcx_root.
ENDTRY.

DO PREPARE

BT_DATE iin

CALLMETHODsuper->do_prepare_output
EXPORTING
iv_first_time=iv_first_time.
DATA:lv_dateTYPEstring,
lv_userTYPEstring,
lv_statusTYPEstring.
DATA:lr_entityTYPEREFTOcl_crm_bol_entity,
lr_entity_adminTYPEREFTOcl_crm_bol_entity,
lr_entity_datesTYPEREFTOcl_crm_bol_entity,
lr_date_colTYPEREFTOcl_crm_bol_bo_col,
lv_date_typeTYPEstring.
TRY.
lv_status=typed_context->btadminh->get_lcstatus(attribute_path='ACT_STATUS').
IFlv_statusEQ'E0002'.
lr_entity?=typed_context->btadminh->collection_wrapper->get_current().

*lr_entity_dates?=typed_context->btdates->collection_wrapper->get_current().
*lv_date=sy-datum.
*lr_entity_dates->set_property(iv_attr_name='DATE_FROM'
*iv_value=lv_date).
lr_entity?=lr_entity->get_related_entity(iv_relation_name='BTHeaderDatesSet').
lr_date_col?=lr_entity->get_related_entities(iv_relation_name='BTDatesAllCust_OPPORT
lr_entity_dates?=lr_date_col->if_bol_bo_col~get_first().
WHILElr_entity_datesISBOUND.
lv_date_type=lr_entity_dates->get_property_as_string('APPT_TYPE').
IFlv_date_type='CONTSTART'.
lv_date=sy-datum.
lr_entity_dates->set_property(iv_attr_name='FROMDATE'
iv_value=lv_date).
EXIT.
ENDIF.
lr_entity_dates?=lr_date_col->if_bol_bo_col~get_next().
ENDWHILE.
ENDIF.
CATCHcx_root.
ENDTRY.

bute_path='ACT_STATUS').

_wrapper->get_current().

methodCREATE_BTADMINH.

DATA:
modeltypeREFTOif_bsp_
coll_wrapperTYPEREFTOcl_bsp_
entityTYPEREFTOcl_crm_
entity_colTYPEREFTOif_bol_

model=owner->create_model(
class_name='ZL_BTDATES_DATES0_CN
model_id='BTAdminH').

BTAdminH?=model.
CLEARmodel.

owner->do_context_node_binding(
iv_controller_type=cl_bsp_wd
iv_name='ZBTDATES
iv_target_node_name='BTAdminH
iv_node_2_bind=BTAdminH
).

endmethod.

bute_path='ACT_STATUS').

er->get_current().

_wrapper->get_current().

n_name='BTHeaderDatesSet').
ation_name='BTDatesAllCust_OPPORTUNITY').

ng('APPT_TYPE').

ltypeREFTOif_bsp_model,
_wrapperTYPEREFTOcl_bsp_wd_collection_wrapper,
tyTYPEREFTOcl_crm_bol_entity,
ty_colTYPEREFTOif_bol_entity_col.

wner->create_model(
_name='ZL_BTDATES_DATES0_CN00'
_id='BTAdminH').

_context_node_binding(
v_controller_type=cl_bsp_wd_controller=>co_type_custom
v_name='ZBTDATES/BTAdminH'
v_target_node_name='BTAdminH'
v_node_2_bind=BTAdminH

You might also like