on 2008 Jun 05 8:48 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.