Skip to Content
author's profile photo Former Member
Former Member

smartform print program for order confirmation

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 06:50 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 06:50 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 06:53 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.