Attaching driver program to the smartform
Hi
i have created a new smartform and now i want to attach it to the driver program that i wrote.
can anyone tell me how to do that pls...
its very very urgent.. thanks in advance..
Hi Ravi,
Please check this link for function module
http://www.erpgenie.com/abap/smartforms_described.htm
http://www.erpgenie.com/abap/smartforms_detail.htm
As Adil said u need to write a driver program in which u need to call the function module which is generated by the smart form.
Use SSF_FUNCTION_MODULE_NAME function module.
Here are some tutorials regarding smartforms.
Please check this link
http://www.****************/Tutorials/Smartforms/SFMain.htm
If u want to assign to the transaction then u need to assig it in NACE transaction.
Go to NACE.
select EF Purchase Order application and click on Output types push button.
now u get a screen . here select NEUS output types and double click on processing routines folder on the right side of the screen.
Now here give your form name in PDF/Smartform Form Field in Print Output
Medium
Best regards,
raam
Similar Messages
-
Driver program for the smartform HR_CMP_TCS
Hi Friends,
Can any one of you help me, in tracing out the Driver Program for the smartform HR_CMP_TCS. This is the Total Compensation form.
SureshHi..
Did you find any Smartform or Program with /SMB40/?
I did this smartform using the above mentioned Prog only.
Also try using SAPFM07P_SMART.
Regards,
Karthik -
Print program for the smartform for selecting the output type (email/fax)
Hi All,
Requirement :I have to create a print program for the smartform where the output type may be print out,email or fax ,so i need to put the condition for selecting the output type (like printout,email,fax).
can any body please let me know how to put the condition for selecting the desired output type ?
Thanks in advance
RahulHi
It is not the output type that has to be changed
it is the MEDIUM which you have to change and configure
for printout medium is 1
for FAX medium is 2
for MAIL it is 7.
so instead of printout change the medium to 2 or 7 for the same output type and attach to the same driver program and smartform/form.
Reward points for useful Answers
Regards
Anji -
E-Recruitment - Driver Program of Standard SmartForm
Hi All,
Can anyone tell, how to find the driver programs of standard smartforms which are attached in view V77RCF_ACT2FORM.
Pls help!Hi,
I am not quite sure what you mean by 'driver program', but maybe the following explanation will help solving your problem:
The system generates a function module for each smartform. You can find the function module names easily using backend transaction 'smartforms'. Type in the form name (e.g. HRRCF_DATA_SUMMARY_REQUISITION) in the corresponding input field and press F8.
The function modules are called (e.g. via the recruiters' frontend scenario) from BSP applications. The BSP applications are responsible to gather all relevant data and to supply the function module interfaces. The BSP applications are listed in the IMG documentation (IMG path 'E-Recruiting -> Technical Settings -> User Interfaces -> Assign Parameters to Parameter Types', Section 'Parameter Types SF* (Smart Forms)'). There you can find e.g. the BSP application 'HRRCF_REQ_DOVR', which is used for displaying of smartform 'HRRCF_DATA_SUMMARY_REQUISITION'.
Best Regards, Michael -
Driver program for a smartform in CRM
Hi,
How do I find a driver program for a smartform in CRM. The tables like TNAPR and NAST are not available in CRM. Does this mean there is no driver program? All the code has to be written in the smartform itself? Also if there is no driver program, how are the parameters in the form interface getting filled?Hello Andrey,
What do You mean by "send a variable"?
Using method CRM_ORDER_EXEC_SMART_FORM it is necessary to define interface parameters (in Smartform) exactly as in FM call inside this method, i.e.:
CALL FUNCTION function_name
EXPORTING
archive_index = is_archive_index
archive_index_tab = ct_archive_index_tab
archive_parameters = is_archive_parameters
control_parameters = control_parameters
mail_appl_obj = is_mail_appl_obj
mail_recipient = is_mail_recipient
mail_sender = is_mail_sender
output_options = ls_output_options
user_settings = ip_user_settings
orderadm_h = ls_orderadm_h
activity_h = ls_activity_h
lead_h = ls_lead_h
opport_h = ls_opport_h
orgman_h = ls_orgman_h
partner_h = lt_partner_h
pricingdata_h = ls_pricingdata_h
sales_h = ls_sales_h
shipping_h = ls_shipping_h
payplan_d_h = lt_payplan_d_h
cumulat_h = ls_cumulat_h
customer_h = ls_customer_h
acs_h = ls_acs_h
billing_h = lt_billing_h
cancel_h = lt_cancel_h
appointment_h = lt_appointment_h
billplan_d_h = lt_billplan_d_h
billplan_h = lt_billplan_h
status_d_h = lt_status_d_h
status_h = lt_status_h
srv_subject_h = lt_srv_subject_h
srv_reason_h = lt_srv_reason_h
srv_result_h = lt_srv_result_h
orderadm_i = lt_orderadm_i
orderadm_i_qt = lt_orderadm_i_qt
orderadm_i_in = lt_orderadm_i_in
orgman_i = lt_orgman_i
pricingdata_i = lt_pricingdata_i
pricing_i = lt_pricing_i
product_i = lt_product_i
sales_i = lt_sales_i
schedlin_i = lt_schedlin_i
schedlin_i_cf = lt_schedlin_i_cf
shipping_i = lt_shipping_i
partner_i = lt_partner_i
item_cstics_i = lt_item_cstics_i
customer_i = lt_customer_i
billing_i = lt_billing_i
cancel_i = lt_cancel_i
finprod_i = lt_finprod_i
ordprp_i = lt_ordprp_i
appointment_i = lt_appointment_i
billplan_d_i = lt_billplan_d_i
billplan_i = lt_billplan_i
status_i = lt_status_i
working_set_e_s_bbp = lt_working_set_e_s_bbp
language = lv_language
IMPORTING
document_output_info = es_document_output_info
job_output_info = es_job_output_info
job_output_options = es_job_output_options
EXCEPTIONS
output_canceled = 1
parameter_error = 2
OTHERS = 3.
Please correct me if I am wrong.
Moreover - can we add any other custom importing parameters to Smartform (in CRM of course)?
Best Regards,
Maro -
Driver program for the Dunning letter SAP Script
Hello All,
Can someone please tell me how to find the "Driver program for the Dunning letter SAP Script". I checked the Transaction OB96 but I dont find any Dunning scripts here i.e., the standard Dunning letter SAP Script F150_DUNN_01.
Is there any Transaction like NACE of logistics for FI module to find the Driver programs. My requirement is to find the Driver program for the Dunning letter SAP Script and have a new Driver program instead of the standard SAP given driver program. Example is in transaction NACE we can change the driver program for Invoice like from RVADIN01 to ZRVADIN01.
Thanks and Regards,
SNK.Yes you can, using FIBF, change the FM associated with event 1720 like when SapScript is replaced with SmartForms. Look at [Define Dunning Forms (with SAP Smart Forms)|http://help.sap.com/saphelp_46c/helpdata/es/7d/c7a0a535e1d311ba4d0800060d888b/content.htm] for reference.
But notice
- PRINT_DUNNING_NOTICE call many FM of the same FG which share the same global data area.
- During following upgrades of your system you will have to manage a copy of standard.
Regards,
Raymond -
Driver Program for GRN Smartform
Hi,
Please tell me the Driver Program for GRN SmartformHi..
Did you find any Smartform or Program with /SMB40/?
I did this smartform using the above mentioned Prog only.
Also try using SAPFM07P_SMART.
Regards,
Karthik -
Driver program for the Smart form
Hi all.
I have an issue in smart forms.
we are implementing RE(Real Estate) module with the version ECC 6.0.
In the RE ,for printing the forms.I know the name of the SMART form only.
how can i know the corresponding Driver program.
Plaese help me to solve this issue.
Thanks on advance,
Regards,
EswarHi,
You can get your driver program name from tnapr table but some are also configured from others way also.
Try this will work in any case.
Open your Smartform then execute.
Then function module name is displayed
Open function module and put a break point on first executable statement.
May be break point on statement like
CLEAR DOCUMENT_OUTPUT_INFO.
After giving breakpoint trigger your Smartform for printing in fresh session then it will stop in debug mode then in call tab you can see your driver program name. -
Purchase Order Driver Program Not loading SMARTFORM
Hi,
I have developed Z smartform by copying from standard form and tried to call from standard program only but here I am not able to call my Z smartform and I am able to call only Z SAPSCRIPT from this standard program.
I have done all the necessary changes in NACE transaction but then also only when I keep the script name its working fine but when I replace this by smartform name the driver program is not calling smartform .!! why?
Please do let me know why is it like this?
Thanks
SudharshanHi,
PO driver program is written to support only SAPSCRIPT. So if you want to assign smartform in NACE, you should take a Zcopy of the driver program SAPFM06P with its include FM06PE02 as ZFM06PE02. And give the zprogram against the driver program field in NACE.
Then you need to replace the entry_nue subroutine in ZFM06PE02 with the below code.
form entry_neu using ent_retco ent_screen.
data: l_druvo like t166k-druvo,
l_nast like nast,
l_from_memory,
l_doc type meein_purchase_doc_print.
* Data Declaration for PO smartform Modification
DATA: fname TYPE rs38l_fnam,
xkomk TYPE TABLE OF komk,
gs_output TYPE ssfcompop,
gs_dialog TYPE ssfctrlop.
clear ent_retco.
if nast-aende eq space.
l_druvo = '1'.
else.
l_druvo = '2'.
endif.
call function 'ME_READ_PO_FOR_PRINTING'
exporting
ix_nast = nast
ix_screen = ent_screen
importing
ex_retco = ent_retco
ex_nast = l_nast
doc = l_doc
changing
cx_druvo = l_druvo
cx_from_memory = l_from_memory.
check ent_retco eq 0.
IF tnapr-sform NE ' '.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = tnapr-sform
IMPORTING
fm_name = fname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc EQ 0.
gs_dialog-no_dialog = 'X'.
gs_dialog-preview = 'X'.
gs_output-tddest = 'LP01'.
gs_output-tdnoprev = ' '.
gs_output-tdnoprint = ' '.
gs_output-tdimmed = 'X'.
gs_output-tdnewid = 'X'.
CALL FUNCTION fname " modify the interface as per your needs
EXPORTING
control_parameters = gs_dialog
output_options = gs_output
user_settings = ' '
zxekko = l_doc-xekko
zxpekko = l_doc-xpekko
TABLES
l_xekpo = l_doc-xekpo
l_xekpa = l_doc-xekpa
l_xpekpo = l_doc-xpekpo
l_xeket = l_doc-xeket
l_xtkomv = l_doc-xtkomv
l_xekkn = l_doc-xekkn
l_xekek = l_doc-xekek
l_xkomk = xkomk
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
ELSE.
CALL FUNCTION 'ME_PRINT_PO'
EXPORTING
ix_nast = l_nast
ix_druvo = l_druvo
doc = l_doc
ix_screen = ent_screen
ix_from_memory = l_from_memory
ix_toa_dara = toa_dara
ix_arc_params = arc_params
ix_fonam = tnapr-fonam "HW 214570
IMPORTING
ex_retco = ent_retco.
ENDIF.
ELSE.
CALL FUNCTION 'ME_PRINT_PO'
EXPORTING
ix_nast = l_nast
ix_druvo = l_druvo
doc = l_doc
ix_screen = ent_screen
ix_from_memory = l_from_memory
ix_toa_dara = toa_dara
ix_arc_params = arc_params
ix_fonam = tnapr-fonam "HW 214570
IMPORTING
ex_retco = ent_retco.
ENDIF.
endform.
While calling the smartform modify the fm interface to your needs.
This will solve your problem.
Regards
Karthik D -
How to find Driver program for a smartform
Dear Friends,
I'm new to smartforms. Can any of you tell me how to find the Driver prog for a smartform.
Many thanks in advance.
Thanks & regards,
Raghuveer K.If the application uses message control to print the smartform, then chekc in TNAPR, TNAPR-PGNAM is program name and TNAPR-SFORM is smartform.
If you are trying to look for SAP standard program for SAP smartform, get the development class/Package name of the smartform from general attributes, and look for the best matching program name in the dev class in SE80.
That's one way to find.
Do a where used list on fm SSF_FUNCTION_MODULE_NAME, and search for the smartform name in the resulting programs. if you are lucky, you can find it quickly.
There's no defined process to fine print program for a smartform.
Regards
Sridhar -
Please tell me the driver program of the sapscript J_1i_are1 ?
Please tell me the driver program of j_1i_are1 and which table is populating before printing ?
I have to add chapter id for the particular material is it feasible ?
Please help .Hi Aanchal,
TADIR Entries
Object Description TADIR Entry
Program ID Object Type Object Name Program ID Object Type Object Name
LIMU REPS J_1IPRNTARE R3TR PROG J_1IPRNTARE
Therefore the program name is J_1IPRNTARE
Regards,
Md Ziauddin -
Driver program for sales order in smartforms?
whatst he driver prog for sales order in smartforms?
how to attach my smart form to driver prog
thanks & regards
lakshmiHi,
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. -
How to write driver programming in smartforms
hi Floks
<i>how to write driver programmig and how many types of driver programs available to trigger smartforms what are they . how to call the url in smartforms ?
help me out .thanking you ,</i>
with regards,
sureshHi
Try to get the Function module name from the smart form
how to find Driver program for a smartform
and now goto SE38 and create a progarm for calling the smartform
smartform driver program
Regards
Kathirve -
Can we change the value of a variable in the driver program from sapscript?
Hello Experts,
I am currently developing a form wherein I need to change the value of a variable defined in the standard
driver program through the sapscript form. Unfortunately, I cannot customize this standard program since this is used by many other
subsidiaries. So, is there anyway that I can change a variable defined in the driver program via sapscript?
I tried to use a PERFORM to change its value but it is not working.
I hope you can help me guys. Thank you and take care!SAP SCRIPT:
/: PERFORM GET_ATTNDEE_INFO IN PROGRAM ZHR_TRNG
/: USING &PPVAR-EOBJD&
/: CHANGING &ATTND&
/: ENDPERFORM
Executable Prog.:
REPORT ZHR_TRNG.
FORM GET_ATTNDEE_INFO TABLES IN_PAR STRUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA : LOC_CODE(8),
WF_NAME LIKE PA0001-ENAME, "----Location Code
WF_SOBID LIKE HRP1001-SOBID. "----Business Event Code
DATA: BEGIN OF ITAB_ECODE OCCURS 0,
ECODE(8),
END OF ITAB_ECODE.
DATA: NAME1 TYPE STRING.
READ TABLE IN_PAR INDEX 1.
LOC_CODE = IN_PAR-VALUE.
SELECT SOBID FROM HRP1001 INTO WF_SOBID
WHERE OBJID = LOC_CODE AND OTYPE ='E' AND PLVAR = '01' AND SCLAS = 'P'.
APPEND WF_SOBID TO ITAB_ECODE .
ENDSELECT.
IF SY-SUBRC = 0.
LOOP AT ITAB_ECODE.
SELECT SINGLE ENAME FROM PA0001 INTO WF_NAME
WHERE PERNR = ITAB_ECODE-ECODE ." AND ENDDA >= '31.12.9999' .
CONCATENATE 'Mr ' WF_NAME ',' NAME1 INTO NAME1.
IF SY-SUBRC = 0 .
OUT_PAR-NAME = 'ATTND'.
OUT_PAR-VALUE = NAME1.
APPEND OUT_PAR.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. "GET_USR_INFO -
SEND_ERROR in the SMARTFORM function module
Hi All,
I want to send the PO via e-mai as attached PDF file. It is working fine in DEV. But in PRD i am getting SEND_ERROR in the SMARTFORM function module.
can any one hep me to fix this????
CALL FUNCTION fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ssfctrlop
output_options = ls_composer_param
user_settings = 'X'
nast = nast
zxekko = zxekko
zxpekko = zxpekko
IMPORTING
job_output_info = job_output_info
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
Rgds,
Rajesh.Hi,
Go to se37,enter ur generated function module name .
Put a brkpoint at first executable statement of that FM.
If u run ur program,then it will stop.
Then put brk point on SSRFT_READ_ERROR(From menu).
after press f8,u will know what is the reason of ur error.
and check thjis also
http://wiki.sdn.sap.com/wiki/display/Snippets/Unique+Driver+Program+for+any+smartform+of+a+transaction
Try like this.
Thanks
Gourav.
Maybe you are looking for
-
Problem with graphs on repeating frames
Is it possible to use graphs showing correct data within repeating frames? We experienced problems with graphs within repeating frames, each occurrence of a graph shows the same picture (using data that corresponds to the first frame). Tnx in advance
-
This applet won't work in IE, but it will in Opera, WHY??!! import java.awt.*; import java.applet.*; import javax.swing.*; public class MyApplet2 extends Applet { int hoeveelheid = 21; int computer; String vraag; int vraaggetal;
-
Won't boot with imac rest disc
I am trying to do a fresh install as i have just donated by imac to my mums school, i load the disc, follow the instructions when asked to restart. after clicking the button imac switches off then won't restart. I go past the initial light grey scree
-
Photoshop CC single licence offer eligibility
So, I have CS5, registered, and showing up in 'my adobe' as all good. When I try to access the 'special offer intro price' of $9.99/month for anyone with CS3+ , it says I'm not eligible? Anyone either know what's going on, or how to actually email a
-
Connector ConnectorKey not found Error OIM 11g R2 Urgent..!
Hi, We have implemented custom ICF connector for our trusted resource and we have deployed ICF bundle using UploadJar Utility successfully. When we try to execute the trusted recon we are getting following error: Unable to execute job : yte mysql Use