2010 Dec 28 6:17 AM
Hi,
I have place one field in table control.When I call POV for this field and return back , I found no value in that field.
Is there any other way like to specify row index of selected field or any thing else?
Pls tell me ...
Thanks in advance..
2010 Dec 28 8:28 AM
When using POV, did you use any Function module for displaying the search help ? If so, there are paramteres to get the line no. and column no. which needs to be passed to the FM.
Please explain how you coded your POV.
Titus
2010 Dec 28 6:40 AM
Check weather any search help is avaliable
for the field or data element.
Thanks
RRM
2010 Dec 28 8:28 AM
When using POV, did you use any Function module for displaying the search help ? If so, there are paramteres to get the line no. and column no. which needs to be passed to the FM.
Please explain how you coded your POV.
Titus
2010 Dec 28 10:13 AM
hi,
use the function module 'F4IF_FIELD_VALUE_REQUEST' for f4 option in POV.
regards,
syed
2010 Dec 28 10:20 AM
Hi Madani,
check the sample code...
process after input.
* Table control
loop at <tablecontrol> .
module modify.
endloop.
*F4 Help
process on value-request.
field <tablecontrolfield> module f4_help.
module f4_help.
* Varaibles used in FM
data : selfield(50) type c.
data : selline type i,
selindex type i .
clear : selline ,selindex,w_char_old,w_flg_val_changed_exp.
* getting the cursor line in Table Control
get cursor field selfield line selline.
selindex = tc_batch-top_line + selline - 1.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
endmodule.
prabhudas
2011 Mar 04 1:14 PM
2010 Dec 28 11:04 AM
Use function DYNP_GET_STEPL for getting the index. Then use fm F4IF_INT_TABLE_VALUE_REQUEST, here you have to pass the selected index to parameter stepl along with the screen field name.
Example
retfield = 'ID'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'TBCL-ID'
stepl = lv_stepl "Index obtained from DYNP_GET_STEPL
value_org = 'S'
2010 Dec 29 10:48 AM
HI
First check for standard search help is available for that particular field or not, if standard search help is available then assign to that field , if not use this
FM : CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = <FIELD NAME>
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = <screen field name>
value_org = 'S'
TABLES
value_tab = t_vkbur
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
.