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

button in selection screen

Former Member
0 Likes
377

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 .

1 REPLY 1
Read only

Former Member
0 Likes
339

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