2006 May 22 7:26 AM
hi,
my requirement is to display a field with check box
can any body help
Thanks in advance
2006 May 22 7:29 AM
Hai ravi
parameters : c1 as checkbox default 'X',
c2 as checkbox.
if c1 = 'X'.
<code>.
else.
<Code>.
endif.
hi,
my requirement is to display a field with check box
can any body help
Thanks in advance
2006 May 22 7:29 AM
Hai ravi
parameters : c1 as checkbox default 'X',
c2 as checkbox.
if c1 = 'X'.
<code>.
else.
<Code>.
endif.
2006 May 22 7:29 AM
Hi Ravi,
Use the "AS CHECKBOX" addition of the parameters statement.
ex:
parameters:
p_cbox type c as checkbox.
2006 May 22 7:31 AM
Hi Ravi,
Can you make it a little bit clearer? Is it in a selection screen or in a screen??
If it is in a selection screen,
then the syntax is
PARAMETERS: PARAM1 AS CHECKBOX.
If it is in screen, then just drag and drop the check box icon there and give the name and text to the checkbox..
Regards,
SP.
2006 May 22 7:31 AM
if ur using list display just add the code ... as checkbox after the write statement for that field.
Ex: write:/ test as checkbox.
if ur using a ALV display u have to modify FIELDCAT and then display
Hope that helps
Anirban
2006 May 22 7:36 AM
HI
GOOD
DO LIKE THIS
SELECTION-SCREEN BEGIN OF BLOCK b00 WITH FRAME TITLE text-b00.
*
SELECTION-SCREEN BEGIN OF BLOCK b01 WITH FRAME TITLE text-b01.
PARAMETERS: tabname LIKE dd02l-tabname OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b01.
*
SELECTION-SCREEN BEGIN OF BLOCK b03 WITH FRAME TITLE text-b03.
PARAMETERS: path(30) TYPE c DEFAULT 'C:\SAPWorkdir'.
SELECTION-SCREEN END OF BLOCK b03.
*
SELECTION-SCREEN BEGIN OF BLOCK b04 WITH FRAME TITLE text-b04.
PARAMETERS: p_exp RADIOBUTTON GROUP radi,
p_imp RADIOBUTTON GROUP radi,
p_clear AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK b04.
THANKS
MRUTYUN
2006 May 22 7:56 AM
hi
if u want checkbox in ur ouput
u ve to just do it like this..
once ur internal table is being populated
while writing the contents in output
do like this..
loop at itab .
write : / a as checkbox , itab-a ... itab-n .
endloop.
declare varaible a as checbox type char(1) .
thanks...
2006 May 22 7:54 AM
Hi,
where do you want to display it, is it in normal report or ALV report.
if it is normal check this code...
REPORT ZTEST_CHECK .
data: begin of itab occurs 0,
vbeln like vbak-vbeln,
posnr like vbap-posnr,
a(1),
end of itab.
select vbeln
posnr from vbap
up to 20 rows
into table itab .
loop at itab.
write:/ itab-a as checkbox,
itab-vbeln,
itab-posnr.
endloop.Regards
vijay
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |