2024 Jul 29 8:11 PM - edited 2024 Jul 29 8:17 PM
Hello everyone!! I have the following problem. I created a user exit for a custom search help, where I filter the data to be displayed by certain fields. The problem occurs when trying to use DYNP_GET_STEPL, I can’t get the STEPL, it always returns 0. I checked the dynpro number and program name and it is correct as it brings and displays the data as I want if I hardcode stepl = 1. Any help, suggestion or another FM that serves me? PS: I tried with get cursor line but it also returns 0. This is my code:
DATA: gs_dynpread TYPE dynpread,
gt_dynpread TYPE TABLE OF dynpread. "tabla con los campos de la vista
CALL FUNCTION 'DYNP_GET_STEPL'
IMPORTING
povstepl = gs_dynpread-stepl
EXCEPTIONS
stepl_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
** Implement suitable error handling here
ENDIF.
************REEMPLAZAR***********************
* gs_dynpread-stepl = 1. Hardcode does work
APPEND gs_dynpread TO gt_dynpread.
Request clarification before answering.
For getting the information about F4 on a field in a Table Control, it depends whether you handle F4 via POV (MODULE ON VALUE-REQUEST or AT SELECTION-SCREEN ON field) or via Search Help (in the Search Help Exit).
For POV, DYNP_GET_STEPL is to be used.
For Search Help Exit, as answered by @rgore at Re: How To transfer values from search help to tab... - SAP Community:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.