cancel
Showing results for 
Search instead for 
Did you mean: 

smartform print program for order confirmation

Former Member
0 Kudos

Hi experts.

I am looking for a smartform print program for order confirmation.

The order confirmation in standard is a script with the name RVADOR01 and I tried to copy and change but I don't know which to eliminate and whcih to keep it.

If any body written the program already please provide me or provide the link to check.

Thanks in advance

Sai

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Check the driver program /SMB40/RVADOR01 in your system

if it is not available then you need to copy RVADOR01 and comment all Script related FMs

call Smartform FM in FORM processing_po

regards

Shiva

Answers (2)

Answers (2)

Former Member
0 Kudos

this is the processing form.

form processing.

data: lf_fm_name type rs38l_fnam.

data: ls_control_param type ssfctrlop.

data: ls_composer_param type ssfcompop.

data: ls_recipient type swotobjid.

data: ls_sender type swotobjid.

data: lf_formname type tdsfname.

data: ls_addr_key like addr_key.

data: document_output_info type ssfcrespd,

job_output_info type ssfcrescl,

job_output_options type ssfcresop.

perform get_data.

check retcode = 0.

perform set_print_param using addr_key

changing ls_control_param

ls_composer_param

ls_recipient

ls_sender

retcode.

*Get the Smart Form name.

if not tnapr-sform is initial.

lf_formname = tnapr-sform.

else.

message e001(/smb40/ssfcomposer).

endif.

  • determine smartform function module for invoice

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = lf_formname

importing

fm_name = lf_fm_name

exceptions

no_form = 1

no_function_module = 2

others = 3.

if sy-subrc <> 0.

  • error handling

retcode = sy-subrc.

if sy-subrc = 1.

message e001(/smb40/ssfcomposer).

endif.

if sy-subrc = 2.

message e002(/smb40/ssfcomposer) with lf_formname.

endif.

perform protocol_update.

endif.

call function lf_fm_name

exporting

archive_index = toa_dara

archive_parameters = arc_params

control_parameters = ls_control_param

mail_recipient = ls_recipient

mail_sender = ls_sender

output_options = ls_composer_param

user_settings = ' '

is_nast = nast

is_vbdka = vbdka

is_addres = addr_key

importing

document_output_info = document_output_info

job_output_info = job_output_info

job_output_options = job_output_options

tables

it_vbdpa = tvbdpa "Item information

it_vbdpau = tvbdpau "Subitem numbers

it_vedpa = tkomservp "Contract Item Validity

it_vedka = tkomservh "Contract Header Validity

it_vedpn = tkomservpn "Contract Item Cancellation Data

it_vedkn = tkomservhn "Contract Header Cancellation DA

exceptions

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

others = 5.

if sy-subrc <> 0.

retcode = sy-subrc.

perform protocol_update.

  • get SmartForm protocoll and store it in the NAST protocoll

perform add_smfrm_prot.

endif.

endform. "processing

Former Member
0 Kudos

Hi

Just comment all the open_forms, write_forms.....used in the script. You are not going to need them. Call SSF_FUNCTION_MODULE_NAME....and to it pass the Smartform Generated FM.

You can search in SCN for sample code..

Vishwa.