Skip to Content
avatar image
Former Member

Start F4 help from code - DUMP

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á

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 04, 2009 at 10:03 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 04, 2009 at 11:03 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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.