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 for field placed in table control

Former Member
0 Kudos
1,148

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..

1 ACCEPTED SOLUTION

titus_thomas2
Explorer
0 Kudos
628

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

7 REPLIES 7

Former Member
0 Kudos
628

Check weather any search help is avaliable

for the field or data element.

Thanks

RRM

titus_thomas2
Explorer
0 Kudos
629

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

0 Kudos
628

hi,

use the function module 'F4IF_FIELD_VALUE_REQUEST' for f4 option in POV.

regards,

syed

Former Member
0 Kudos
628

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

0 Kudos
628

Thans.

It worked.

kesavadas_thekkillath
Active Contributor
0 Kudos
628

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'

Former Member
0 Kudos
628

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.

.