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: 

ALV GRID WITH OOPS

Former Member
0 Kudos

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 ?

6 REPLIES 6

Former Member
0 Kudos

Hi,

You can refer to the standard program BCALV_EDIT_05

Hope this helps.

former_member188685
Active Contributor
0 Kudos

You have to call this method in PAI

call method grid->check_changed_data.

what error you are getting.

0 Kudos

I am getting runtime error .

0 Kudos

show me the Dump...Analysis, what it say..?

if possibel post your code here.

0 Kudos

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

Former Member
0 Kudos

Thanks