‎2006 Jan 05 6:16 AM
Hi All,
I have a req where i have to display some records in my detail list after clicking on the primary list.
On th basis list i have a user command 'A' and some of records are being displayed on my screen.
Here i have to click on any one of the available checkbox and press the user command A.
Then some details are displayed in secondary list when i click back on the BACK button the checkbox which i have checked must be cleared.
But that is not happening in my program.
I tried using clear and refresh statements but it is not clearing my checkbox.
Kindly let me know how to clear the checkbox .
Thanks and Regards,
Yamini.A
‎2006 Jan 05 6:22 AM
Hi Yamini,
Remember you should not write the same data again as another derived list. Use MODIFY LINE .... INDEX indx.
Regards,
Srikanth
‎2006 Jan 05 6:30 AM
Hi,
Just clear that check box in at selection-screen output.
rgds
p.kp
‎2006 Jan 05 6:31 AM
Hi yamini,
in the back sy-ucomm clear the checkbox value.
or use checkbox = ' '.
thanks
vijay
‎2006 Jan 05 6:36 AM
Hi
i cant use modify line statement here, let me clearly explain about my problem
The basic list display some 4 records with checkbox ,i have to click on any one of the checkbox ,so that the particualr line is read,based on some cal i am populating the value only for the selected checkbox in seconday list.
Hope this is clear.
Then when i click on the back button the checkobx which i have clicked earlier must be blank.
but this is not happening in my case.
how to clear this.
Regards,
Yamini.A
‎2006 Jan 05 6:41 AM
Hi yamini,
case sy-ucomm.
when 'BACK'.
loop at itab where check = 'X'.
itab-check = ' '.
modify itab.
endloop.
endcase.try this way..
thanks
vijay
‎2006 Jan 05 6:42 AM
Hi Yamini,
You are right but before you write anything on your secondary list, first thing first clear this checkbox using modify line and then you start the secondary list.
Regards,
Srikanth
Message was edited by: Srikanth Lodd
‎2006 Jan 05 7:02 AM
Hi Yamini,
1. I understood ur problem and i could do at my end.
By simple means, we cannot achive that :
We have to use our own PF Status
In this pf-status, do not use std code BACK
2. Try what i have done :
a) new z program (code as given below)
b) in this program, create new pf-status ABCD
c) Add Two Buttons/Icon in this PF Status
(In App Toolbar)
d) SHOWDE , GOBACK.
e) Activate GUI Status, and the program
f) Now run the program (it will do what u want)
3.
REPORT abc.
*----
DATA : ck TYPE c.
DATA : flag TYPE c.
PARAMETERS : a TYPE c.
*----
START-OF-SELECTION.
SET PF-STATUS 'ABCD'.
PERFORM basiclist.
*----
FORM basiclist.
sy-lsind = 0.
flag = ''.
WRITE 😕 ck AS CHECKBOX , 'Basic List'.
ENDFORM. "basiclist
*----
FORM detaillist.
flag = 'X'.
WRITE 😕 'Detail List'.
WRITE 😕 'Detail List'.
ENDFORM. "detaillist
*----
AT USER-COMMAND.
IF sy-ucomm = 'SHOWDE'.
PERFORM detaillist.
ENDIF.
IF sy-ucomm = 'GOBACK'.
IF flag = ''. "BASIC LIST
LEAVE LIST-PROCESSING.
ENDIF.
IF flag = 'X'. "DETAIL LIST
PERFORM basiclist.
ENDIF.
ENDIF.