07-28-2015 7:31 AM
Hi Experts,
I have a requirement to pass company code field value in Account assignment tab to the f4 help for field Cost centre. How can I pass this value dynamically based on the line item selected.
Thanks,
Anju
07-28-2015 10:52 AM
Hallo Anju,
if you want to pass the field to a select option in a report please have a look at the function module F4IF_INT_TABLE_VALUE_REQUEST. Here you can pass the values of the F4-help to the select option field.
l_program = sy-repid.
l_dynpro = sy-dynnr.
l_feld = 'SO_SPMON'.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'SPMON'
value_org = 'S'
dynpprog = l_program
dynpnr = l_dynpro
dynprofield = l_feld
tables
value_tab = l_tab.
Is this what you're looking for ?
Bye, Volker