‎2016 Jan 14 12:05 PM
Hi all,
I am unable to find out the exact reason for my problem.
I have three screen
100---first grid
200---second grid
300---pop up.
Actually I am displaying GL accounts balance in first gird that is local currency. Next when I click on Button(created on toolbar) using events, I am Calling screen 300 as popup for for other currencies.
Now in 300 screen I have one grid with other currencies value like (USD, EUR, SGD etc). Based on this currency it has to display other currency balances.
That also I am getting fine for first time.
I have created Top of page for this also. for first time iam able get exact top of page values based on that currency and data in grid in screen 200.
now when I call screen 300 popup from screen 200, balances are updating in grid but i am not able to get top of page values.
when I debugged for second time, its not even going to debug mode,... its directly updating that data in 200 screen grid but not top up page.
so please any one help me out from this.
Thanks,
Karunakar Reddy.
‎2016 Jan 14 12:16 PM
Free the grid and regenerate it...
IF gr_con IS NOT INITIAL.
IF gr_alv IS NOT INITIAL.
CALL METHOD gr_alv->free
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
FREE gr_alv.
ENDIF.
CALL METHOD gr_con->free
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
FREE gr_con.
ENDIF.