on 11-04-2009 9:57 AM
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á
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.