cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms printing

Former Member
0 Kudos

CAN I PRINT MY REPORT PROGRAM IN SMARTFORM AS IT IS .............IF IT IS POSSIBLE PLS LET ME KNOW ..........

<b>REGARDS

REDDY</b>

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

Try similar to this sample code according to your requirment this is how you can print it

report znit3.

tables : vbak.

*--declaration of internal table

data : i_vbak type table of znit_smartform.

*

*--declaration of work area

data : wa_vbak type znit_smartform.

*--defining of select options

select-options : s_vbeln for vbak-vbeln.

*--defining parameters

parameters : s_vbtyp type vbak-vbtyp.

parameters : v_bukrs type t001-bukrs.

data : v_formname type tdsfname value 'ZNIT_FORM',

v_fmname type rs38l_fnam.

load-of-program.

*--start of selection events

start-of-selection.

*--SELECTING THE DATA FROM DATABASE INTO INTERNAL TABLE

select vbeln

auart

netwr

ernam

from vbak

into table i_vbak

where vbeln in s_vbeln .

if sy-subrc ne 0.

message i000(zmsg_demo1) with s_vbtyp

'NO RECORDS FOUND'.

endif.

end-of-selection.

*&----


*& This function Module returns the function Module Name which the

*& smartform generates after activating it.

*&----


call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = v_formname

importing

fm_name = v_fmname

exceptions

no_form = 1

no_function_module = 2

others = 3

.

*&----


*& Here we call the function module generated by the Smartform. After

*& activating each SMAERTFORM generates a unique Function Module which

*& is called in the program. The internal table, and other varialbles

*& which needs to be displayed are exported through this function module

*& to the SMARTFORM.

*&----


call function v_fmname

exporting

v_bukrs = v_bukrs

tables

i_final = i_vbak

.

Close your thread if your question is answered.

Regards,

SaiRam

Former Member
0 Kudos

Hi,

You can print it using smartform.

Design the smartform and pass the values it will print as you like.

<b>Reward if helpful.</b>

Former Member
0 Kudos

HI, UMA

I WANT TO PRINT MY ALV REPORT IN SMARTFORMS ............NOT A DRIVER PROGRAM ...........HOW CAN I DO SO ..........I WANT THE EXACT OUTPUT OF THE REPORT AS I GET WHEN THE ALV IS EXECUTED ..........

Former Member
0 Kudos

Hi,

It is same for all the cases. You have to create the layout and pass the internal table to it.Based on your input it will print.

Reward if helpful.

Former Member
0 Kudos

Bala, an ALV list cannot be directlye printed in smartforms.

The ALV list has certain functions that cannot be directly interpreted in a smartform.

You will have to redisgn the layout again in a smartform, using the table structures and formats provided by the smartform