Application Development and Automation 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: 
Read only

ALV GRID WITH OOPS

Former Member
0 Likes
849

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
Read only

Former Member
0 Likes
815

Hi,

You can refer to the standard program BCALV_EDIT_05

Hope this helps.

Read only

Former Member
0 Likes
815

You have to call this method in PAI

call method grid->check_changed_data.

what error you are getting.

Read only

0 Likes
815

I am getting runtime error .

Read only

0 Likes
815

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

if possibel post your code here.

Read only

0 Likes
815

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

Read only

Former Member
0 Likes
815

Thanks