cancel
Showing results for 
Search instead for 
Did you mean: 

smartform--urgent

Former Member
0 Kudos

I have one requriment,

From report i am calling smartform, in that report we have around 10 check box , based on this check boxes i need to display data in smartform, for everycheck box i have taken one window mean its 10 window, but problem

suppose if we click 5 check box that 5 window should display in the output not all the 10 windows, here its displaying 10 windows,

assume if click 1 check box the output will be only one window not all the 10 windows.

please help me anybody.....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

u r rquirement is to print some data onto smartform depending upon the check box checked

if this is right then insted of using different windows use main window and in main window decalre a text elements for each checkboxes.

from program pass flag for each checkbox.

in smartform u'll have output options for each text element there u can check for flag if flag is true then only print.

because with windows you have to give postion and if u r not going to print suppose 1st window then this position may get u blank in output.

hope it is useful.

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

use the if condition and write a code for that in program lines of smart form.

Former Member
0 Kudos

s dsdsasa

Former Member
0 Kudos

Hi Srinivas,

To display the windows besed on the check boxes checked in the program you have to declere the same variable(c1) in smartforms form Interface and you have to pass those variables in windows condition.

Ex: Window1 -> Condition -> c1 = 1.

Window2 -> Condition -> c1 = 2.

Window3 -> Condition -> c1 = 3.

Window4 -> Condition -> c1 = 4.

Window5 -> Condition -> c1 = 5.

program:

Parameters: C1 As checkbox,

C2 As checkbox.

DATA :C3 TYPE C,

Start-of-selection.

If c1 = 'X'.

c3 = '1'.

elseif c2 = 'X'.

c3 = '2'.

endif.

pass c3 to the function module for parameter c1.

hope your problem solved.