cancel
Showing results for 
Search instead for 
Did you mean: 

smartform print program

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member196280
Active Contributor
0 Kudos

Check this standard print-program it will give you the exact idea, RLB_INVOICE

Regards,

Sairam

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.