‎2006 Oct 17 4:41 PM
Hi All,
I have a requirement in module pool programming.
I have two fields on the screen. When I press F4 help on one field, it should fill both the fields with the respective values.
For example, I have G/L account and cost center for a Plant. when I click F4 for G/L, both G/L and cost center should be filled with the respective values.
Thanks in advance.
‎2006 Oct 17 4:48 PM
Hi,
You have to write module in the process on value-rquest event in the flow logic.
Use DYNP_UPDATE_FIELDS functin moudle to show in the screen.
Thanks,
Ramakrishna
‎2006 Oct 17 9:13 PM
Hi,
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'Zxxx'-------secondfield
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE = 'abcdef'
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
TABLES
VALUE_TAB = itab_details-zfirst----main field
FIELD_TAB =
RETURN_TAB = it_return
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
if sy-subrc = 0.
clear itab_details.
read table it_return index 1.
itab_details-zxxx = it_return-fieldval.
read table itab_details with key zxxx = itab_details-zxxx.
itab-zxxx = itab_details-zxxx.
itab-zabc = itab_details-zabc.
endif.
let me know if you need anything
Thanks
Venki