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

Multiple selection in F4 help in table control

Former Member
0 Likes
1,695

Hi,

I am providing F4 help for a particular field in the table control. User must be able to select multiple values from this F4 help this is done using the function module F4IF_INT_TABLE_VALUE_REQUEST. Now the selected fields have to be transferred to screen, this is done using FM DYNP_VALUES_UPDATE.

My problem is i have 6 rows displayed in my table control. So only first 6 values from the user selected values are getting updated in my screen fields others are not getting updated. Say if the user selects 10 values out of them only 6 is populating in the screen. How do i get the others also? Please help.

Thanks,

Karthik

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
903

Hi,

Check the Following threads

After you select Multiple rows from F4 Help these are stored in RETURN table.
Now in main program modify the Internal Table.

In PAI

loop at itab.
" You can not handle this in this Loop
endloop.

module modify_from_f4 

process on value-request
field fname module get_f4 " Here you get the F4 Help and the values are in RETURN tab
in Program

module modify_from_f4.
" in this module you can use the RETURN TAB like
loop at itab 
read table RETURN with key fnam = itab-fnam " and get the corresponding value and modify itab from RETURN tab
if you can not find common fields and just want to pass the values then
read table RETURN INDEX SY-TABIX. " IF the Itab is empty then follow below loop
endloop.

loop at return.
move return-fieldvalue to itab-fnam
append itab.
endloop.
endmodule.

Cheerz

Ram

Hi,

Check the Following threads

After you select Multiple rows from F4 Help these are stored in RETURN table.
Now in main program modify the Internal Table.

In PAI

loop at itab.
" You can not handle this in this Loop
endloop.

module modify_from_f4 

process on value-request
field fname module get_f4 " Here you get the F4 Help and the values are in RETURN tab
in Program

module modify_from_f4.
" in this module you can use the RETURN TAB like
loop at itab 
read table RETURN with key fnam = itab-fnam " and get the corresponding value and modify itab from RETURN tab
if you can not find common fields and just want to pass the values then
read table RETURN INDEX SY-TABIX. " IF the Itab is empty then follow below loop
endloop.

loop at return.
move return-fieldvalue to itab-fnam
append itab.
endloop.
endmodule.

Cheerz

Ram

2 REPLIES 2
Read only

Former Member
0 Likes
904

Hi,

Check the Following threads

After you select Multiple rows from F4 Help these are stored in RETURN table.
Now in main program modify the Internal Table.

In PAI

loop at itab.
" You can not handle this in this Loop
endloop.

module modify_from_f4 

process on value-request
field fname module get_f4 " Here you get the F4 Help and the values are in RETURN tab
in Program

module modify_from_f4.
" in this module you can use the RETURN TAB like
loop at itab 
read table RETURN with key fnam = itab-fnam " and get the corresponding value and modify itab from RETURN tab
if you can not find common fields and just want to pass the values then
read table RETURN INDEX SY-TABIX. " IF the Itab is empty then follow below loop
endloop.

loop at return.
move return-fieldvalue to itab-fnam
append itab.
endloop.
endmodule.

Cheerz

Ram

Read only

0 Likes
903

Hi Ram,

Thank you very much for replying. It solved the problem.

Regards,

Karthik