09-20-2008 8:54 AM
whatst he driver prog for sales order in smartforms?
how to attach my smart form to driver prog
thanks & regards
lakshmi
09-20-2008 9:05 AM
Hi,
Driver Program is the program which is used to link the form and the ABAP program.
U have to use the FM 'SSF_FUNCTION_MODULE_NAME' to give the form name.
Here 'Z_TRNG_SMART_MUL_PURCH_T012' is the form name.
sf_formname = 'Z_TRNG_SMART_MUL_PURCH_T012'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = sf_formname
IMPORTING
fm_name = sf_fm_name
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 sf_fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
v_ekpo = v_ekpo
v_adrnr = v_adrnr
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
it_ekko = it_ekko
it_ekpo = it_ekpo
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.
Thanks & Regards,
Roja Velagapudi.
09-20-2008 9:08 AM
Hi,
Driver program is
RVADOR01
how to attach my smart form to driver prog
Go to NACE transaction.
Select the application V1.
click on output types.
select output type BA00.
click on processing routinues.
and give the medium as print, program name as driver program name form routinue is entry and FORM name as Smart form name.
Regards
09-20-2008 9:10 AM
how to attach smartforms in driver program ?
use t-code : nace for attaching ur smartforms to driver program
go : NACE
select : V1 ( Sales)
click on : output types .
select on : BA00
click on : change.
and : enter u r smartforms.