on 08-22-2007 5:35 AM
can anyone send me how to write print program for a smartform?
i am trying fm_name function module in print program but its shows this function module is not found what can i do?
pzzz
Check this standard print-program it will give you the exact idea, RLB_INVOICE
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,
After designing the smartform, when u activate it a function module will be generated. Everytime when u do the correction in smartform the same function module is activated and it remains same. When u write the print program for it, declare the internal table and
use CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME ' in this FM u have to specify the name of the function module which u get, when u activate the smartform. After saving and activating the program, when u execute it u will get the required output.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj
first u should execute smartform and it will release one fun module call this fm in u r driver prog , and change that name to fm_name ( whatever it is that u r importing from ssf_functionmodule_name for this fm u have to pass smartform name)
reward points to all helpful answers
kiran.M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In smartforms tcode goto environment and click function module name option.Then it will display smartforms no.Copy that no and call this no in call function. And second function module is 'ssf_function_module_name'.
Check this code.
DATA: LES_LBLNI TYPE ESSR-LBLNI.
DATA : FORMNAME1 TYPE TDSFNAME.
DATA : FNAME1 TYPE RS38L_FNAM.
FORMNAME1 = 'ZMMFORM070'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = FORMNAME1
IMPORTING
FM_NAME = FNAME1
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION FNAME1 " '/1BCDWB/SF00000079'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
V_LBLNI = NAST-OBJKY
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
This is code .
Rewards points if it is useful.
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.