Created
March 29, 2012 18:12
-
-
Save hugo-dc/2241323 to your computer and use it in GitHub Desktop.
Matchcode for Dynpro field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* At dynpro logic, after PAI | |
PROCESS ON VALUE-REQUEST. | |
FIELD zconcent_k-folio MODULE matchcode_module. | |
* wherever you want | |
MODULE matchcode_module INPUT. | |
DATA: t_return LIKE ddshretval OCCURS 0 WITH HEADER LINE. | |
DATA: BEGIN OF t_value OCCURS 0 , | |
field1 LIKE ZDATATYPE, | |
field2 LIKE ZDATATYPE. | |
DATA: END OF t_value. | |
* fill your t_values table | |
t_values-field1 = 'something'. | |
t_values-field2 = 'something else'. | |
append t_values. | |
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' | |
EXPORTING | |
retfield = 'FIELDNAME' | |
value_org = 'S' | |
TABLES | |
value_tab = t_value | |
return_tab = t_return | |
EXCEPTIONS | |
parameter_error = 1 | |
no_values_found = 2 | |
OTHERS = 3. | |
IF sy-subrc = 0. | |
READ TABLE t_return INDEX 1. | |
MOVE t_return-fieldval TO YOUR_DYNPRO_FIELD. | |
ENDIF. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment