Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

F4 help in module pool programming

Former Member
0 Likes
486

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.

2 REPLIES 2
Read only

venkata_ramisetti
Active Contributor
0 Likes
446

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

Read only

0 Likes
446

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