Skip to Content
author's profile photo Former Member
Former Member

Method or Grid not triggering for second time call

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2016 at 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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.