‎2008 Jul 11 6:20 AM
hello guru ,
Guru I have created several button in my selection screen , for different condition , suppose when I wl click on first button the sale contract will release on some condition , but the thing is that ......
Program is comming ok , but in second time when I click on that button again , alv data is comming(field catalog ) twice(duplicate data , same line ) in horizantly not vertically ,
I am not getting whats the prob , and I am not able to clear the button action for first button before pressing the second button .
this bello code I have witten for button in selection screen .
CLEAR v_flag.
IF sscrfields-ucomm = 'UCOM1'.
CLEAR it_output .
CLEAR fieldcatalog .
CLEAR gd_layout .
v_flag = '1'.
v_lifsk1 = '11' .
ELSEIF sscrfields-ucomm = 'UCOM2'.
v_flag = '2' .
v_lifsk1 = '14' .
ENDIF.
how do this , plz healp .
I am waiting for your healp .
regards ,
Joy Chakravorty .
‎2008 Jul 11 8:01 AM
Hi,
CLEAR it_output .
CLEAR fieldcatalog .
CLEAR gd_layout .
u clear the header ALSO Clear the body of the itab
like below code.
CLEAR it_output[] .
CLEAR fieldcatalog[].
CLEAR gd_layout[] .
It will work.
Reward if usefull.
Thanks,
Durai.V