on 09-14-2007 11:27 AM
CAN I PRINT MY REPORT PROGRAM IN SMARTFORM AS IT IS .............IF IT IS POSSIBLE PLS LET ME KNOW ..........
<b>REGARDS
REDDY</b>
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.