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

Refresh Editable ALV Grid inside a custom Container

Former Member
0 Likes
2,275

Hello all,

I am having a screen with custom container in which i am populating datas and a entry screen which is going to have my

filtering condition for this custom container screen..

The problem i am facing is whenever i come out of the custom container screen after displaying and again give the

necessary filtering data in the previous screen...

the custom container screen displays wrong values...

But when i refresh the data with the refresh icon in the container right datas are coming...

I even used CALL METHOD C_ALVGD->REFRESH_TABLE_DISPLAY

EXPORTING

IS_STABLE = STABLE

EXCEPTIONS

FINISHED = 1

OTHERS = 2. after displaying the values using

CALL METHOD C_ALVGD->SET_TABLE_FOR_FIRST_DISPLAY

EXPORTING

IT_TOOLBAR_EXCLUDING = T_FUNC

IS_LAYOUT = IT_LAYOUT

          • I_SAVE = 'A'

CHANGING

IT_OUTTAB = IT_ZCAWNT_V

IT_FIELDCATALOG = IT_FCAT

EXCEPTIONS

INVALID_PARAMETER_COMBINATION = 1

PROGRAM_ERROR = 2

TOO_MANY_LINES = 3

OTHERS = 4.

IF SY-SUBRC 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

I have refreshed my internal table once when i display and again fetched from the DB according to the filtering conditions given

in the first screen.

I have tried clearing the Object created once when i display and again recreated it.But could not get the output.

solution would be really helpful...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,177

try before calling alv:

IF C_ALVGD IS BOUND.

C_ALVGD->close_screen( ).

custom_container->free( ).

ENDIF.

try before calling alv:

IF C_ALVGD IS BOUND.

C_ALVGD->close_screen( ).

custom_container->free( ).

ENDIF.

3 REPLIES 3
Read only

Former Member
0 Likes
1,178

try before calling alv:

IF C_ALVGD IS BOUND.

C_ALVGD->close_screen( ).

custom_container->free( ).

ENDIF.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,177

HI jagan,

what about this thread

Try to continue with the same thread instead of a new one

Read only

Former Member
0 Likes
1,177

Hey all,

Thanks a lot for helping me...

The problem is solved....

i just used,

CALL METHOD C_ALVGD->FREE. 'Grid inside the container

CLEAR C_ALVGD.

CALL METHOD C_CCONT->FREE. "Container

CLEAR C_CCONT.

when i click BACK Button from screen 2 to screen1.