cancel
Showing results for 
Search instead for 
Did you mean: 

How to Connect the Report Output to the Smartform

Former Member
0 Kudos

Hi Friends,

In the selection screen iam having the Range of Article Document number and year as a input.

Based on the input the Article document information will display like PO number, Article number, Check box...etc.

Here my need is when in Select the some of the check box, and click on the Execute Button in the Output Screen.it should trigger the Smartform.Which is lincked to the Report.And it should display the Article Document number Details like which PO it is related and selling Price and cost Price of the Article....etc.

Can u tell,How to read,that how many Check Box have been connected and how to get the respective check box details.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

use check box as

parameters: x_1 as checkbox memory id x1,

x_2 as checkbox memory id x2,

x_3 as checkbox memory id x3.

then check as

if x_1 = 'X'

.....

elseif x_2 = 'X'

.......

like this u check then in particular if statement to call smartform use:

FM

SSF_FUNCTION_MODULE_NAME this is used to get the smartform

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = tnapr-sform

importing

fm_name = l_v_fm_name.

then call the smartform as

call function l_v_fm_name

pass the neccessary data to the smartform from here

Former Member
0 Kudos

suppose u think if the out put is having the 100 records .

i dont know how many they will select in the out put screen.

i need to read the selected check box details to be displayed in the smartforms.

Former Member
0 Kudos

use

read line...... statement

AT LINE-SELECTION.

READ LINE sy-index FIELD VALUE <check box>

date INTO wa.

move the checked value into new internal table ....and call the smart form with the new internal table..