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

Finding problem when displaying a Interative list report

Former Member
0 Likes
738

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

7 REPLIES 7
Read only

Former Member
0 Likes
721

Hi Yamini,

Remember you should not write the same data again as another derived list. Use MODIFY LINE .... INDEX indx.

Regards,

Srikanth

Read only

Former Member
0 Likes
721

Hi,

Just clear that check box in at selection-screen output.

rgds

p.kp

Read only

Former Member
0 Likes
721

Hi yamini,

in the back sy-ucomm clear the checkbox value.

or use checkbox = ' '.

thanks

vijay

Read only

Former Member
0 Likes
721

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

Read only

0 Likes
721

Hi yamini,

case sy-ucomm.
 when 'BACK'.
loop at itab where check = 'X'.
itab-check = ' '.
modify itab.
endloop.

endcase.

try this way..

thanks

vijay

Read only

0 Likes
721

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

Read only

Former Member
0 Likes
721

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.