08-14-2008 8:47 AM
Dear Abap gurus,
I have created grid display using oops concept . I want to update my internal table with teh grid data . I have used method "check_changed_data" But the method is giving error as it cannot take the "checkbox' . But I have check box in my grid . Did anyone have this kind of problem ? If so could you give me the solution for that ?
08-14-2008 8:50 AM
Hi,
You can refer to the standard program BCALV_EDIT_05
Hope this helps.
08-14-2008 9:51 AM
You have to call this method in PAI
call method grid->check_changed_data.
what error you are getting.
08-14-2008 10:23 AM
08-14-2008 10:23 AM
show me the Dump...Analysis, what it say..?
if possibel post your code here.
08-14-2008 2:48 PM
FORM F_EDIT_PO .
DATA: l_w_s_row TYPE lvc_s_row,
l_wa_final_output TYPE ty_final_output .
CLEAR l_wa_final_output .
CLEAR l_w_s_row .
**getting the current cell index
CALL METHOD O_GRID->GET_CURRENT_CELL
IMPORTING
ES_ROW_ID = l_w_s_row.
***Reading the final internal table to get the current cell data .
READ TABLE i_final_output INTO l_wa_final_output INDEX l_w_s_row .
SET PARAMETER ID 'BR1' FIELD l_wa_final_output-aufnr.
CALL TRANSACTION 'COR2' AND SKIP FIRST SCREEN .
***Changing the internal table according to the screen value
CALL METHOD O_GRID->CHECK_CHANGED_DATA
.
I am selecting the order no which is calling the transaction COR2 .
After that I am doing some changes in the COR2 tcode and I want it to get updated in the grid display when I am clicking on save thatu2019s why calling the CHECK_CHANGED_DATA .
BUT it id dumping
09-04-2008 7:43 AM