‎2009 Jul 24 2:55 PM
Hi all,
I am defining selection screen, in which I need to define 30 Checkboxes, is their any way of creating of 30 parameters instead of writing 30 parameter statements.
regards
Ravi
‎2009 Jul 24 2:58 PM
Hi
No! Sorry, u can create a macro, but u need to call the macro for every checkbox u need to create:
DEFINE CHECK_BOX.
PARAMETERS: &1 AS CHECKBOX.
END-OF-DEFINITION.
CHECK_BOX: p1, p2, p3, p4, p5, p6, p7,......, P30.Max
‎2009 Jul 24 3:00 PM
Hi,
I dont think it's possible to create the parameters dynamically without defining them explicitly.
‎2009 Jul 24 3:02 PM
Hi,
It is not possible becz for declaring 30 Parameter we need to have 30 different names and I do not thhink there is any stmt which declare 30 parameter.
Thanks & regards,
Shreemohan
‎2009 Jul 24 5:34 PM
parameters: p1 as checkbox,
p2 as check box,
.....................
.....................
.....................
.....................
p30 as check box.whats wrong in using this?
‎2009 Jul 25 4:55 AM
Hi Ravi,
Max bianchi idea is so good. It works indeed. I appreciate his work here.
Test the way he told.
Thanks
Venkat.O
REPORT ztest_notepad.
DEFINE check_box.
parameters: &1 as checkbox.
END-OF-DEFINITION.
check_box: p1, p2, p3, p4, p5, p6, p7,p8,p9,p10,
p11,p12,p13,p14,p15,p16,p17,p18,p19,p20,
p21,p22,p23,p24,p25,p26,p27,p28,p29,p30.
‎2009 Jul 25 6:44 AM
Try this code
REPORT ztest_jg.
DEFINE checkbox.
parameters: p&1 as checkbox.
END-OF-DEFINITION.
checkbox : 1,2,3,4,5.....30.