cancel
Showing results for 
Search instead for 
Did you mean: 

How to call elem. Search help on Button click event in WD appilcation

ChandraMahajan
Active Contributor
0 Kudos

Hello All,

i have requirement to call elem. search help on button click event in WD application. currently i am calling FM F4IF_START_VALUE_REQUEST but getting the short dump as below,

The following error text was processed in the system X31 : Screen output without connection to user.

The error occurred on the application server saps_X31_31 and in the work process 0 .

The termination type was: RABAX_STATE

The ABAP call stack was:

SYSTEM-EXIT of program SAPLSDH4

Function: F4_PRESEL_WITH_TABSTRIP of program SAPLSDH4

Form: F4PROZ_STEP_PRESEL of program SAPLSDSD

Function: DD_SHLP_SINGLE_STEP of program SAPLSDSD

Form: F4PROZ_LOOP of program SAPLSDSD

Form: F4PROZ of program SAPLSDSD

Function: F4IF_START_VALUE_REQUEST of program SAPLSDHI

Method: ONACTIONSEARCH_CUSTOMER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP

Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP

Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP

is there any way to achieve the required behaviour.

please let me know.

Regards,

Chandra

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

As far as i unterstood, you want to call the OVS by coding not by clicking the "help symbol" within a INput Field?!

I had the demand, to open the value help depending on an other action...

cl_wdr_value_help_handler=>handle_value_help(

context_element = <CONTEXT_ELEMENT>

context_attribute = <ATTRIBUTE NAME>

Be sure, that there is a VALUE HELP defined for your attribute.

Edited by: Richard Ettrich on May 26, 2010 12:13 AM

Former Member
0 Kudos

Hi Friends,

I have the similar kind of requirement. Upon click on a Button on screen i need to call a search help, and collect one or more selected material numbers.

The search help is working fine and i am getting the entries with the following code.

The problem is i am finding extra popup on screen.


CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname         =  space
fieldname       =  space
SEARCHHELP      =  'MAT1'
MULTIPLE_CHOICE =  'X'
STEPL           =  0
value           = 'MATNR'
*dynpprog        =  progname
*dynpnr          =  dynnum
*dynprofield     = 'CARRIER'
CALLBACK_PROGRAM          = 'ZTEST_1_PRA'
CALLBACK_FORM             = 'F4CALLBACK'
TABLES
RETURN_TAB                = RETURN_TAB
EXCEPTIONS
FIELD_NOT_FOUND           = 1
NO_HELP_FOR_FIELD         = 2
INCONSISTENT_HELP         = 3
NO_VALUES_FOUND           = 4
OTHERS                    = 5.

Former Member
0 Kudos

Hi Chandra,

If you want to display some entries on the Button itself then you can use a UI element called "MenuButton" you can attach or create the menu Dynamically and by reading the ID in OnAction click you can perform the desired operation.

Hope this helps. Do award points if you found the post helpful.

Regards,

Anoop

Former Member
0 Kudos

Hi,

if you want to call a searchhelp, the easiest is to have it on an inputfield,

when it has to be done by clicking on a button, you should use the option of

calling a custom F4, meaning create popupwindow with the F4 events in the framework.

grtz

Koen