Application Development 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: 

Check box in Report Program

Former Member
0 Kudos

Hi Experts

How to add the check box in the parameter of the report program.

Thanks in advance

Regards

Rajaram

1 ACCEPTED SOLUTION

Former Member
0 Kudos

u want to add check box in the selection screen

selection-screen : begin of block b1.

parameter : gv_check_box as checkbox.

selection-screen : end of block b1.

5 REPLIES 5

Former Member
0 Kudos

u want to add check box in the selection screen

selection-screen : begin of block b1.

parameter : gv_check_box as checkbox.

selection-screen : end of block b1.

Former Member
0 Kudos

Hi,

PARAMETERS p_chk AS CHECKBOX .

regards,

Pankaj

Former Member
0 Kudos

where you have to keep the check box?

if you want to keep the check box in the selection screen it self

follow this code....

parameters : a1 as checkbox,

a2 as checkbox.

if you want to keep the check box at the time of out put display

then you have to write the code at the time of displaying the result\

means write : it_itab-aa as check box.

it will reflect as output with check box at the final result.

Regards,

swami

Former Member
0 Kudos

Hi this is the code.

TABLES:MARA.

DATA:BEGIN OF GT_MARA OCCURS 0,

MATNR LIKE MARA-MATNR,

END OF GT_MARA,

GV_CB,

GV_CBV,

GV_LINES TYPE I,

INDEX TYPE I,

SY_INDEX TYPE I,

GV_LINES1 TYPE I,

MATNR LIKE MARA-MATNR.

SELECT-OPTIONS:S_MATNR FOR MARA-MATNR.

SELECT

MATNR FROM MARA

INTO TABLE GT_MARA

WHERE MATNR IN S_MATNR.

IF SY-SUBRC = 0.

DESCRIBE TABLE GT_MARA LINES GV_LINES.

ENDIF.

LOOP AT GT_MARA.

WRITE:/ GV_CB AS CHECKBOX,

GT_MARA-MATNR.

ENDLOOP.

CLEAR GT_MARA.

WRITE:'Total num of records is ',GV_LINES.

SET PF-STATUS 'DEL'.

AT USER-COMMAND.

IF SY-UCOMM = 'DEL' OR SY-UCOMM = 'PICK'.

DO 50 TIMES.

SY_INDEX = SY-INDEX.

READ LINE SY_INDEX FIELD VALUE GV_CB

GT_MARA-MATNR INTO MATNR.

IF GV_CB = 'X'." AND MATNR IS NOT INITIAL.

  • LOOP AT GT_MARA." WHERE MATNR = MATNR.

  • DELETE GT_MARA.

  • CLEAR GT_MARA.

  • ENDLOOP.

delete gt_mara index sy_index.

ENDIF.

ENDDO.

DESCRIBE TABLE GT_MARA LINES GV_LINES1.

WRITE:'Total num of records is ',GV_LINES1.

CLEAR:GV_LINES .

LOOP AT GT_MARA.

WRITE:/ GT_MARA-MATNR.

ENDLOOP.

ENDIF.

with regards,

Hema Sundara.

pls give points if found helpful.

Former Member
0 Kudos

Hi Raja

hope this syntax will solve your problem

PARAMETERS p_chk AS CHECKBOX .

Reward pts if help.