2010 Mar 31 1:06 PM
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
2010 Mar 31 2:19 PM
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,
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
2010 Mar 31 2:19 PM
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
2010 Apr 01 4:13 PM
Hi Ram,
Thank you very much for replying. It solved the problem.
Regards,
Karthik
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |