‎2012 Jun 06 7:21 AM
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.
‎2012 Jun 06 7:27 AM
Hi,
Set the flag value in the PBO module of each screen.
With regards,
‎2012 Jun 06 7:32 AM
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.
‎2012 Jun 06 7:33 AM
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
‎2012 Jun 06 7:39 AM
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.
‎2012 Jun 06 7:46 AM
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
‎2012 Jun 06 7:58 AM
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.
‎2012 Jun 06 8:29 AM
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