on 2012 May 09 2:28 PM
Dear Experts,
I have to validate the Lead while creation for duplication on certain criteria like sales area, prospect, process type and Object Type,if any duplicate record found while saving needs to pop up the with custom message and that to i have to make OK and Cancel buttons in that POP UP. OK is to create duplicate record and cancel for not to create duplicate.
for this requirement can any body provide solution for this .
when we checked at run time the standard charecterstics used are as follows which will met our custom requirement but we couldn't understand the Date_1 and Date_2 fields.
CRMT_REPORT_DYN_SQL_LINE>CRMD_ORDER_INDEX~OBJECT_TYPE IN ('BUS2000108', 'BUS2000129') AND</CRMT_REPORT_DYN_SQL_LINE>
it it would be great if somebody respond to this at the earliest.
Best Regards,
Venat
Hi Venky,
CALL METHOD comp_controller->window_manager->create_popup_2_confirm
EXPORTING
iv_title = 'Error Message'
iv_text = 'text-001' " Duplicate Record Found. Create Duplicate?
iv_btncombination = if_bsp_wd_window_manager=>co_btncomb_okcancel
RECEIVING
rv_result = gr_popup.
gr_popup->set_on_close_event( iv_event_name = 'CLOSE' iv_view = me ).
gr_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
gr_popup->open( ).
Now create another event handler method through the wizard using the event name CLOSE (created above in line 11). Implement the following sample code in EH_ONCLOSE method:
data: lv_answer type string.
lv_answer = gr_popup->get_fired_outbound_plug( ).
if lv_answer = 'OK'.
***** Create Duplicate Records ****
elseif lv_answer = 'CANCEL' .
***** Don't Create Duplicate Records ****
endif.
Hope this helps.
Thanks
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Vishal,
we are success for checking duplication while creation, but couldn't for you know, if we are click on edit Prime Lead and click on save(with out any modification) its getting triggered custom pop up which shouldn't.
could you please suggest me on this how to proceed if we are in modification page.
Best Regards,
Venky
User | Count |
---|---|
25 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.