cancel
Showing results for 
Search instead for 
Did you mean: 

Table control

Former Member
0 Kudos

Hi,

I was using two fields in table control..It was taken from table.In the first box using search help i select one value..Keeping the cursor in second field and pressing F4..Here i need to dislpay the value based on the first field value..

How to do this in Table control..I am using POV..But the value is not coming inside the program..

Can any body help in this issue

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

in that POV you have to call this function module

data: dyname like d020s-prog value 'TESTPROG',

dynumb like d020s-dnum value '100'.

data: begin of it_read occurs 3.

include structure dynpread.

data: end of it_read .

move <TABNAME> to it_read -fieldname.

" here tabname is the screen field table name in table

" control

append it_read .

move <FIELDNAME> to it_read -fieldname.

" here fieldname is the screen field field name in table

" control

append it_read .

call function 'DYNP_VALUES_READ'

exporting

dyname = dyname

dynumb = dynumb

translate_to_upper = 'X'

tables

dynpfields = it_read

exceptions

invalid_abapworkarea = 01

invalid_dynprofield = 02

invalid_dynproname = 03

invalid_dynpronummer = 04

invalid_request = 05

no_fielddescription = 06

undefind_error = 07.

->Now loop the internal table and

LOOP AT it_read INTO wa_read.

CASE wa_read-fieldname.

WHEN 'VTWEG'.

vtweg = wa_read-fieldvalue.

endcase.

ENDLOOP.

-> and call this function module to get f4

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = field2

window_title = 'Line Item'

value_org = 'S'

multiple_choice = c_x " (for muliple selection)

TABLES

value_tab = i_display

field_tab = i_fieldtab

return_tab = i_returnval

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

Thanks,

Nethaji.

Former Member
0 Kudos

Hi Buddy,

An event has to occur for the data to come in the second column based on the first column. This could be done by hitting the enter key once.

Thanks

Nayan

Former Member
0 Kudos

Hi,

The values of the first field wil be transfered only when there is a user action. You can try this, Enter the value in first field, Hit an enter key and the pres F4 on the second field.