on 07-01-2013 7:59 AM
Hi,
I need to overwrite the standard search help for shipto address in SRM7.0 with a Z search help. I tried by coding in Post exit of wdoint method and in Modify view also. But its not working. Can someone please guide me on this.
Hi,
I recently had this task and achieved it. Would like to share the easiest method.
Go to se18, implement the badi WD_BADI_DOMODIFYVIEW.
provide Filter values .., i.e., window name and view name where you the search help component is present.
and write this code in the method WDDOMODIFYVIEW.
DATA LO_ND_ATTRIB TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_ND_ATTRIB_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
*get the reference to context node info
LO_ND_ATTRIB_INFO = WD_CONTEXT->GET_NODE_INFO( ).
LO_ND_ATTRIB_INFO = LO_ND_ATTRIB_INFO->GET_CHILD_NODE( '<nodename>' ).
*attach the search help to the relevant attribute
LO_ND_ATTRIB_INFO->SET_ATTRIBUTE_VALUE_HELP(
NAME = '<attr_name>'
VALUE_HELP_MODE = '121' "(IF it IS DDIC shlp)
VALUE_HELP = '<zsearch help name>' ) .
Activate and You are done. .
dont forget to say thanks the sdn way.
Regards,
karthik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mano,
You can achieve this by creating a enhancement in the post exit of the WDDOMODIFYVIEW method of the Webdynpro. I have added the code for the Limit Shopping Cart.
Please use the below code to achieve your requirement.
CONSTANTS: lc_attribute TYPE string VALUE <Enter the field name>
lc_help_mode TYPE i VALUE '121'.
DATA lon_limit_item TYPE REF TO if_wd_context_node.
DATA lon_limit_item_info TYPE REF TO if_wd_context_node_info.
*& I have used the below code for Limit Shopping cart, you need to use the variables
*& based on your requirement.
lon_limit_item = wd_context->get_child_node( name = wd_this->wdctx_limit_item ).
lon_limit_item_info = lon_limit_item->get_node_info( ).
** set search help
CALL METHOD lon_limit_item_info->set_attribute_value_help
EXPORTING
name = lc_attribute
value_help_mode = lc_help_mode
value_help = <Pass your Z search help here>
Activate this code and you will see that your standard search help is replaced with a Z search help.
With Regards,
Nitin B Modi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mano,
In SRM there are two BAdI's for F4
BBP_F4_READ_ON_EXIT
BBP_F4_READ_ON_ENTRY
Please use them for your requirements.
Best regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mano,
Why you don't try to create a new field with your custom search-help?
After updating the field you can copy that entry to standard field (make it invisible too).
Regards
SG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Mano ,
Can u Let me know the Exact requirement .Details all about the component and context node .
May be U cn do it by using method like SET_ATTRIBUTE_VALUE_HELP method in class IF_WD_CONTEXT_NODE_INFO
Thanks ,
Sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.