Hi Shaun,
This new button will be available in search result component, you can find the component using F2 in web ui.
I would prefer to remove the corresponding process type from the popup after clicking on new button because this new button may contains some other document types as well.
You can use the below code in event of the 'New' buttn to remove the unwanted process type documents.
lr_context_node = gr_proctype_popup->get_context_node( iv_cnode_name = 'PROCTYPE' )."#EC NOTEXT
CHECK lr_context_node IS BOUND.
lr_current = lr_context_node->collection_wrapper->get_first( ).
while lr_current is bound.
*Remove process types. If other transaction types are added in future, they will appear.
lv_proc_type = lr_current->get_property_as_string( 'PROCESS_TYPE' )."#EC NOTEXT
* if lv_proc_type eq lc_phase. "DEMX2D90 25.09.2013 REM lv_proc_type eq lc_offer or
if lv_proc_type eq 'ZMHF' OR lv_proc_type eq ZMML.
lr_context_node->collection_wrapper->remove( lr_current ).
lr_current = lr_context_node->collection_wrapper->get_current( ).
else.
lr_current = lr_context_node->collection_wrapper->get_next( ).
endif.
endwhile.
Best Regards,
Dharmakasi.