09-10-2008 1:45 PM
Dear Gurus , I made a report using OO .
My screen has a custom container and below this i have drawn some icons.
I want when i hit a button to give a value to this icon .
I didi it but my problem is that i lose the current line in ALV when i call the screen again .
Look my code ..
......
call screen 100 .
......
&----
*& Form HANDLE_BUTTON_CLICK
&----
text
----
-->ES_ROW_NO text
-->ES_COL_ID text
-->IS_ROW_NO text
----
FORM HANDLE_BUTTON_CLICK USING I_COLUMN_ID TYPE LVC_S_COL
IS_ROW_NO TYPE LVC_S_ROID.
READ TABLE ITAB INDEX IS_ROW_NO-ROW_ID .
IF SY-SUBRC = 0 AND I_COLUMN_ID-FIELDNAME = 'MATKL' .
PERFORM CHECK_CUST. -
> i put the values in icons for the screen
CALL SCREEN 100. -
>i call the screen again ... IS IT RIGHT ?
ENDIF.
Please help ....
09-10-2008 1:49 PM
Don't call the screen again... Refresh the ALV grid to display new values instead of ICON...
Thanks
Amol Lohade
09-10-2008 1:51 PM
My problem is that the icon is outside the alv grid . ....
-
A L V
-
icon icon icon
09-10-2008 1:52 PM
FORM HANDLE_BUTTON_CLICK USING I_COLUMN_ID TYPE LVC_S_COL
IS_ROW_NO TYPE LVC_S_ROID.
READ TABLE ITAB INDEX IS_ROW_NO-ROW_ID .
IF SY-SUBRC = 0 AND I_COLUMN_ID-FIELDNAME = 'MATKL' .
PERFORM CHECK_CUST. ---------------------------> i put the
"instead of calling again
"Call the method REFRESH_TABLE_DISPLAY
"That refresh the contents of the ALV output.
ENDIF.