2009 Oct 22 11:55 AM
Hi Experts,
I need your help in solving a query about F4 help. I would like to know whether it is possible to return more than one column value from a F4 help. I am working on a scenario where, consider i have a table control with 3 columns. I have F4 helps for two columns. The third column which does not have the F4 help is the primary key and the two columns which have F4 help has repeated values. Consider the following values in the F4 help internal table.
ColumnA ColumnB ColumnC
1 01 10.09.2009
2 01 10.09.2009
3 01 10.09.2009
Now consider the user selects first row '10.09.2009' in ColumnC and selects '01' from first row columnB from F4 help. I need to populate '1' in columnA of table control. For this i am using read statement in PBO of my screen. But the read statement fails since ColumnB and ColumnC have repeated values. Kindly provide a solution to fix this problem. Is it possible to get the row id of the row selected by the user from F4 help? I am using the Fm F4IF_INT_TABLE_VALUE_REQUEST. This Fm returns a return_tab. The return_tab has a field record_pos which is 001 always. So it is of no use. Pls help me with a proper suggestion.
Regards
Rohan
2009 Oct 22 1:13 PM
hi
if u want an f4 help and get the other values in the row u need to write the code in process on values request.
in PVR
GET CURSOR LINE LINE.
IF TC-TOP_LINE > 1.
LINE = LINE + ( TC-TOP_LINE - 1 ).
ENDIF.
read table itab index line.
in that itab u will get the values .
Hi Experts,
I need your help in solving a query about F4 help. I would like to know whether it is possible to return more than one column value from a F4 help. I am working on a scenario where, consider i have a table control with 3 columns. I have F4 helps for two columns. The third column which does not have the F4 help is the primary key and the two columns which have F4 help has repeated values. Consider the following values in the F4 help internal table.
ColumnA ColumnB ColumnC
1 01 10.09.2009
2 01 10.09.2009
3 01 10.09.2009
Now consider the user selects first row '10.09.2009' in ColumnC and selects '01' from first row columnB from F4 help. I need to populate '1' in columnA of table control. For this i am using read statement in PBO of my screen. But the read statement fails since ColumnB and ColumnC have repeated values. Kindly provide a solution to fix this problem. Is it possible to get the row id of the row selected by the user from F4 help? I am using the Fm F4IF_INT_TABLE_VALUE_REQUEST. This Fm returns a return_tab. The return_tab has a field record_pos which is 001 always. So it is of no use. Pls help me with a proper suggestion.
Regards
Rohan
2009 Oct 22 1:13 PM
hi
if u want an f4 help and get the other values in the row u need to write the code in process on values request.
in PVR
GET CURSOR LINE LINE.
IF TC-TOP_LINE > 1.
LINE = LINE + ( TC-TOP_LINE - 1 ).
ENDIF.
read table itab index line.
in that itab u will get the values .
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |