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: 

Losing the current line in ALV using OO

Former Member
0 Kudos

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 ....

3 REPLIES 3

Former Member
0 Kudos

Don't call the screen again... Refresh the ALV grid to display new values instead of ICON...

Thanks

Amol Lohade

0 Kudos

My problem is that the icon is outside the alv grid . ....

-


A L V

-


icon icon icon

former_member188685
Active Contributor
0 Kudos
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.