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

Problem regarding module pool

Former Member
0 Likes
639

how to set flag in abap dialog programming that first time screen should not refresh and second screen should refresh?

If I set the value of flag = 0. In pbo it will same value again.

I have increment the loop counter in PAI.

7 REPLIES 7
Read only

former_member282968
Contributor
0 Likes
615

Hi,

Set the flag value in the PBO module of each screen.

With regards,

Read only

0 Likes
615

Hi Naveen,

       If I set the value of flag = 0.

then it will take value of flag = 0 evertime.

I want its value to be incremented .

So that first time my table should not refresh and after that it should refresh each time.

Read only

Former Member
0 Likes
615

Hi Abhinav ,

    Just check when the screen refreshes.

When you try to fetch some values or When your click enter .

Just capture the ok code , Based on ok code  set the flag in PBO.

With Regards,

Sudhir S

Read only

0 Likes
615

Hi Sudhir,

          But the ok _code is same , So how can I set flag in PBO.

In my requirement user can call wizard n no. of times each time same process will happen.

So the value of ok_code will remain the same.

Read only

0 Likes
615

Hi Abhinav ,

    Could you elaborate me in detail what are elements that you use in your screen , So that I can better understand to provide solution.

With Regards,

Sudhir S

Read only

0 Likes
615

Hi Lingaraj,

       In my case there is an ALV tree control on that there is afind button .

If I press on find button then it finds out correct line item ,but after that there is a module free container

which refresh data from alv tree control. My requirement is that first time I dont want this free container module to call and second time onwards I want this free container module to call and it should refresh my alv tree control.

       

Hope u got my requirement.

If there is any other option do tell me.

Read only

0 Likes
615

Hi Abhinav ,

     Try checking the function code for find button.

In PBO ,

    if ok_code eq 'Function code for find button'.

    set flag.

    endif.

IN PAI

if the flag is not set.

 

free the container. " Put your free module  inside this if condition.

 

endif.

Hope this will work.

With Regards,

Sudhir S