‎2006 May 24 4:37 PM
I have write a checkbox in basic list and i have created a status for the list, and when i click the checkbox it doesn´t works to the event at line-selection, i have tried with the hide command too, but it doesnt goes to the event, i think that it goes before creating the status and write the checkbox, does anybody know how to resolve it?,
Thanks in advance
‎2006 May 24 4:41 PM
I do not believe that you can fire an event when checking a checkbox in a list display. Please see the following program as it allows the user to click a "DISPLAY" button and then it will read all of the select lines.
report zrich_0001 no standard page heading.
data: begin of ivbak occurs 0,
check type char01,
vbeln type vbak-vbeln,
end of ivbak.
data: lines type i.
select-options: s_vbeln for ivbak-vbeln.
start-of-selection.
set pf-status 'LIST'.
select vbeln into corresponding fields of table ivbak
from vbak
where vbeln in s_vbeln.
loop at ivbak.
write:/ ivbak-check as checkbox, ivbak-vbeln.
endloop.
at user-command.
case sy-ucomm.
when 'DISPLAY'.
* Mark the internal table for the checkboxes selected on list
describe table ivbak lines lines.
do lines times.
read line sy-index field value ivbak-check.
if ivbak-check = 'X'.
read table ivbak index sy-index.
if sy-subrc = 0.
ivbak-check = 'X'.
modify ivbak index sy-index.
endif.
endif.
enddo.
* Now display the sales order for all select SD docs
loop at ivbak where check = 'X'.
set parameter id 'AUN' field ivbak-vbeln.
call transaction 'VA03' and skip first screen..
endloop.
endcase.
Regards,
Rich Heilman
‎2006 May 24 5:16 PM
I have had to create a status for the button select_all.
Hi Rich, i am using the sentence read line, but it doesn´t take me the checkbox value.
regards
‎2006 May 24 4:41 PM
HI Carlson,
YO do not need to craete a PF-STATUS for that.
Probably that is causing a problem.
Regards,
Ravi
‎2006 May 24 5:13 PM
I have had to create a status for the button select_all.
Hi Rich, i am using the sentence read line, but it doesn´t take me the checkbox value.
regards
‎2006 May 24 5:16 PM
I have had to create a status for the button select_all.
Hi Rich, i am using the sentence read line, but it doesn´t take me the checkbox value.
regards