‎2008 Jun 15 11:14 AM
Hai Experts,
I have a table control in module pool program. In that i need two different field (2nd and 4th column) values not a field names from the particular row. Can any one tell me how to fetch those values from the table control.
Regards,
Harish
‎2008 Jun 17 9:10 AM
Hiiiii Harish ....
i think u want to have the field valu8es of the 2nd and 4rth columns of a selected row ....
onthe table control just have the with selection column check box to be checked in the attributes of the table control ...so that u ll get a selection column on the table control ...
have a same column name in the itab which u declare ...
and the entire logic would be same with in the
PAI.
loop...
endloop....
no when u select the selection column in the table control then the relevant columns of the selected records will reflect as X in the internal table that has been linked with the table control PAI ....
once the itab get refelcted with X of the selected records in the table control ...
read the itab that has X in the selction column ...
capture the values in the 2nd and 4rth column of the record ...
i think that will be done and slove ur problem ....
regards
chandu reddy
‎2008 Jun 16 8:56 AM
Hi,
Make use of FM DYNP_VALUES_READ in POV.
data :it_dynpread type standard table of dynpread,
wa_dynpread type dynpread.
CLEAR wa_dynpread.
wa_dynpread-fieldname = 'IT_TABLE_CONTROL_1-TYPE'.
APPEND wa_dynpread TO it_dynpread.
*Read the Type
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TRANSLATE_TO_UPPER = ' '
request = 'A'
PERFORM_CONVERSION_EXITS = ' '
PERFORM_INPUT_CONVERSION = ' '
DETERMINE_LOOP_INDEX = ' '
START_SEARCH_IN_CURRENT_SCREEN = ' '
START_SEARCH_IN_MAIN_SCREEN = ' '
START_SEARCH_IN_STACKED_SCREEN = ' '
START_SEARCH_ON_SCR_STACKPOS = ' '
SEARCH_OWN_SUBSCREENS_FIRST = ' '
SEARCHPATH_OF_SUBSCREEN_AREAS = ' '
TABLES
dynpfields = it_dynpread
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11
.
‎2008 Jun 17 6:28 AM
Hi Vishal,
Through this FM I can get field names only not a field values.... But I need particular field values of the table control (3rowu2019s 2nd column and 4th column values). But that FM retrieve the entire field names not only table control field names, for example it retrieve also the label, text box, and radio button names and so on..... Can you give me the idea to get the particular column values of the particular row.
Regards,
Harish.
‎2008 Jun 16 9:58 AM
Hi,
Just treat ur table control as an internal table.
you can put LOOP and ENDLOOP statement to get values of fields.
‎2008 Jun 17 9:10 AM
Hiiiii Harish ....
i think u want to have the field valu8es of the 2nd and 4rth columns of a selected row ....
onthe table control just have the with selection column check box to be checked in the attributes of the table control ...so that u ll get a selection column on the table control ...
have a same column name in the itab which u declare ...
and the entire logic would be same with in the
PAI.
loop...
endloop....
no when u select the selection column in the table control then the relevant columns of the selected records will reflect as X in the internal table that has been linked with the table control PAI ....
once the itab get refelcted with X of the selected records in the table control ...
read the itab that has X in the selction column ...
capture the values in the 2nd and 4rth column of the record ...
i think that will be done and slove ur problem ....
regards
chandu reddy