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

Parameter Declarations !!

Former Member
0 Likes
806

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

6 REPLIES 6
Read only

Former Member
0 Likes
738

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

Read only

Former Member
0 Likes
738

Hi,

I dont think it's possible to create the parameters dynamically without defining them explicitly.

Read only

Former Member
0 Likes
738

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

Read only

Former Member
0 Likes
738
parameters: p1 as checkbox, 
                     p2 as check box,
                      .....................
                      .....................
                      .....................
                      .....................
                      p30 as check box.

whats wrong in using this?

Read only

venkat_o
Active Contributor
0 Likes
738

Hi Ravi, Max bianchi idea is so good. It works indeed. I appreciate his work here. Test the way he told.


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.
Thanks Venkat.O

Read only

Former Member
0 Likes
738

Try this code

REPORT ztest_jg.

DEFINE checkbox.

parameters: p&1 as checkbox.

END-OF-DEFINITION.

checkbox : 1,2,3,4,5.....30.