cancel
Showing results for 
Search instead for 
Did you mean: 

Start F4 help from code - DUMP

Former Member
0 Kudos

Hi!

I'm using the following code to start an F4 help from code. In abap, it is working fine, but in Webdynpro I got a DUMP.

DATA: lt_sh_values TYPE STANDARD TABLE OF ddshretval,
        ls_sh_value LIKE LINE OF lt_sh_values.

  DATA: ls_shlp TYPE shlp_descr,
        wa_shlp_interface TYPE ddshiface.

  CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
       EXPORTING
            shlpname = 'Z_PERNR_NAME'
       IMPORTING
            shlp     = ls_shlp.

  CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
       EXPORTING
            shlp          = ls_shlp
       TABLES
            return_values = lt_sh_values.

And the DUMP:

Note

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

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

The termination type was: RABAX_STATE

The ABAP call stack was:

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: ONACTIONENTER_NAME_FIELD of program /1BCWDY/EMQ6FBTGBR32V3AMP6XW==CP

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

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

Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP

Any help is welcome.

Thank you

Tamá

Accepted Solutions (1)

Accepted Solutions (1)

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

If you want an F4 help for the field you can directly bind it to the attribute in the context.

Why do u want to call those F4 helps in Web dynpro

What is your actual requirement in the Web dynpro

Regards,

Priya

Answers (1)

Answers (1)

Former Member
0 Kudos

My requirement is that, if the user is pressing ENTER on a field, the same search help should appear which one comes with the F4 button.

Former Member
0 Kudos

Hi,

How can that search help window will open on ENTER key without pressing F4....

Regards,

Lekha.

Former Member
0 Kudos

For this I wanted to use the code in my question, at the field's onenter action.

Former Member
0 Kudos

Hi,

It will not work I guess....

Regards,

Lekha.

Former Member
0 Kudos

hi,

Using CL_WDR_VALUE_HELP_HANDLER=>HANDLE_VALUE_HELP thiis can be solved but, you are advised not follow use this class & method as they may be stopped at any time by SAP. All the classes which start with CL_WDR* are meant for internal use by SAP and are not meant for use by customers. We are supposed to use only classes which start with CL_WD*.

Refer this thread :

You can try resolve this problem by creating an Freely Programmed Value Help & when you press enter you can call this search help

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can't call the F4IF* function modules. These are only designed for classic dynpro. They contain CALL SCREEN statements and other incompatible commands that assume a SAPGUI connection. Hence the reason for the Screen Output Without Connection to User error message you received in the short dump.

You could try the suggested approach to call the SAP internal API, but I would heed the warning you were given. This is not a public API, nor will you receive SAP support for using this API.