Application Development 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: 

F4 help - Dynamically pass value

former_member188217
Active Participant
0 Kudos


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

1 REPLY 1

POV8FE
Explorer
0 Kudos

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