Crm smartforms
Hello to all,
Plz any one can help regarding smart forms in crm.I had assigned action profile to smart form & defined actions to & assigned action profile to business transaction Type. But while i am running Transaction Related to that smart form, it is displaying error that the Samrt form dosenot exist(I have activated tha smart form to & i got function module,even though Smart form is in inactive mode).
Plz any one can help me regarding this problem.
Thankyou,
Sk.Feroz
Edited by: feroz sk on Mar 30, 2009 2:00 PM
Hello,
Normally CRM_ORDER_READ returns only timestamps in the ET_APPOINTMENT tables.
Timestamps are always stored as UTC (universal time) so you have to convert them to your timezone. (thats why the date 'appears' to be wrong but is actually correct )
You can use FM IB_CONVERT_FROM_TIMESTAMP, providing the timestamp acquired from ET_APPOINTMENT. The result of the FM is E_DATLO and the E_TIMLO field which contain the date and time.
This should solve your problem!
Kind regards,
Joost
Similar Messages
-
CRM Smartform taking user parms instead of output options
ISA users that are created in the ISA admin do not have an output device specified in their user default (SU01D). So when an ISA order hits the back end (CRM) it triggers an action, which in turn calls a method and processes smarform. This smartform gets attached to an email and sent out. The problem is, that when the user is missing the output device in their user default, to attachmennt comes as a 1 kb PDF that can't be opened.
I'm trying to pass the parameters to the Smartform FM, but not taking effect..
Am I missing setting something?
control_parameters-langu = lv_language.
control_parameters-no_open = ' '. "SAP SF: General flag
control_parameters-no_close = ' '. "SAP SF: General flag
control_parameters-device = 'LOCL'. "Output device
control_parameters-no_dialog = 'X'. "suppress printer dialog
control_parameters-preview = ' '. "Print preview
control_parameters-getotf = 'X'. "Return OTF tab, no print
control_parameters-replangu1 = ' '. "Language key
control_parameters-replangu2 = ' '. "Language key
control_parameters-replangu3 = ' '. "Language key
control_parameters-startpage = ' '. "SAP SF: Object name
ls_output_options-tddest = 'LOCL'.
ls_output_options-tdnoprev = 'X'.
call function to process smart form
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 = space
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.Hi Cathy,
DATA:
i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
i_tline TYPE TABLE OF tline WITH HEADER LINE,
i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
DATA:
w_objhead TYPE soli_tab,
w_ctrlop TYPE ssfctrlop,
w_compop TYPE ssfcompop,
w_return TYPE ssfcrescl,
w_doc_chng TYPE sodocchgi1,
w_data TYPE sodocchgi1,
w_buffer TYPE string.
DATA:
v_form_name TYPE rs38l_fnam,
v_len_in LIKE sood-objlen,
v_len_out LIKE sood-objlen,
v_len_outn TYPE i,
v_lines_txt TYPE i,
v_lines_bin TYPE i.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'Z_SMARTFORM'
IMPORTING
fm_name = v_form_name
EXCEPTIONS
no_form = 1
no_function_module = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.
CALL FUNCTION '/1BCDWB/SF00000200'
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
user_settings = 'X'
IMPORTING
job_output_info = w_return
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.
i_otf[] = w_return-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT i_tline.
TRANSLATE i_tline USING '~'.
CONCATENATE w_buffer i_tline INTO w_buffer.
ENDLOOP.
TRANSLATE w_buffer USING '~'.
DO.
i_record = w_buffer.
APPEND i_record.
SHIFT w_buffer LEFT BY 255 PLACES.
IF w_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
REFRESH :
i_reclist,
i_objtxt,
i_objbin,
i_objpack.
CLEAR w_objhead.
i_objbin[] = i_record[].
DESCRIBE TABLE i_objbin LINES v_lines_bin.
i_objtxt = 'Find attached the output of the smartform.'.
APPEND i_objtxt.
i_objtxt = 'Regards,'.
APPEND i_objtxt.
i_objtxt = 'Sravanthi'.
APPEND i_objtxt.
DESCRIBE TABLE i_objtxt LINES v_lines_txt.
w_doc_chng-obj_name = 'Smartform'.
w_doc_chng-expiry_dat = sy-datum + 10 .
w_doc_chng-obj_descr = 'Smart form output'.
w_doc_chng-sensitivty = 'F'.
w_doc_chng-doc_size = v_lines_txt * 255.
CLEAR i_objpack-transf_bin.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_txt.
i_objpack-doc_type = 'RAW'.
APPEND i_objpack.
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 1.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'Smartform'.
CONCATENATE 'smartform output' 'pdf'
INTO i_objpack-obj_descr.
i_objpack-doc_size = v_lines_bin * 255.
APPEND i_objpack.
CLEAR i_reclist.
i_reclist-receiver = ''." ---------------> email id
i_reclist-express = 'X'.
i_reclist-rec_type = 'U'.
APPEND i_reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = i_objpack
contents_bin = i_objbin
object_header = w_objhead
contents_txt = i_objtxt
receivers = i_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc NE 0.
WRITE:/ 'Error When Sending the File', sy-subrc.
ELSE.
WRITE:/ 'Mail sent'.
ENDIF.
Regards,
Sravanthi -
CRM Smartform - standard text in variable window
Hi ,
I have a requirement in CRM Technical. In a variable window, there is an include text used to print the long text . The issue is that it is printing only few lines and not all the lines it should have printed as maintained in the database text.
All the text maintained needs to be printed. If the text do not fit in the space allowed ,then the entire text needs to be printed on separate page.
Is it possible? and how?Hi,
If you use varibale vindow(secondary) then if the data exceed size of window data will get truncated.
USe main window ,now include text within main window,for main window if data size is more than main window automatic triggering will take place and data will print in next page
Thank and regards -
CRM Smartform activation takes lot of time
Dear All,
We are designing a smart forms in CRM 5.0 and its taking lot of time more than 6 hours in activation.
We would like to know whether there is any pre-requisite setting which needs to be done before we actually start the activation.
Regards
RahulHi Rahul,
Smart Form Activation doesnt take this much Time,
Run Check on your Smart Form to Test weather the Written Lines are Correct or not.
Use (CTRL+F2) for running the check.
Else Exit the Smart Form Check for Lock Entries in Transaction SM12 if Exist clear them up
and Try Activating Up again.
Hope it Solves your Problems...
Thanks and Regards,
RK. -
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 -
How to Modify Smartform Methods in CRM 5.0
Hi,
I have to modify the CRM Sales Order Smartform which requires adding new fields to the existing layout,for which I will have to modify the Method .Kindly help me and provide me with a solution to populate new data in the standard layout.
The Class and Method are mentioned below:
Processing Class CL_DOC_PROCESSING_CRM_ORDER
Processing Method CRM_ORDER_EXEC_SMART_FORM
Thanks and Regards,
Faisalyou need to copy this class and make the changes..in the method.
Assign the new Z class, to the action profile.
Rgds,
Arjun -
Smartform in CRM Server.
can anybody help me out.
plz send the sample smartform that is developed in CRM server. I need the difference that we come across in developing the smartform in CRM server.
waiting for reply,
ganesh goud guniganti.go to smartforms trx and press help button and have smartform in that.
-
How to attach ERP smartform to a ERP Quotation generated from CRM 7.0
Hi,
I have this requirement of calling the ERP smartforms in CRM 7.0 where ever applicable.
I don't want to use Transaction Launcher and also creating the same smartform in CRM would be double work.
1. Can we attach a smartform of ERP to LEAD/OPPORTUNITY when we click on the MORE button on toolbar and choose PREVIEW OUTPUT/ TRIGGER OUTPUT. I think in ACTION we can just assign a smartform which is created in CRM system.
Actually this is my client requirement and since my first CRM implementation do't know whether this is a valid point and how to go on.
2. Also on ERP Quotation view page (toolbar) there is no button called MORE to PREVIEW OUTPUT. Can we assign a smartform to ERP Quotation?
If any body can direct me on this issue would be of great help and full points will be given.
Thanks,
JayaHi,
as far as I know there is no standard way of doing this in CRM 7.0.
I imaging it would be possible to call an ERP smartform from CRM by :
- writing an RFC capable function module in ERP that wraps the call of the smartform and returns the generated PDF data.
- writing a function or method in CRM that calls the ERP function module and displays the returned data.
In the lead and opportunity the print preview is done by having a print relevant action in the action profile assigned to the transaction type and I guess for these it should be possible to call a function module by creating an own smart forms method.
But I think this is not possible for an ERP quotation, so you would have to create an own button. In the event handler for this button, one could call the ERP function module and display the result.
Paul -
Smartforms - CRM - Sending as an email - avoid e-mail read confirmation
Hi Experts,
I've got a question concerning the e-mail read confirmation of a Smartform which we send by channel e-mail in crm system...
I've created a smartfrom which we send with an action in crm as an e-mail, for this I use the standard class
CL_DOC_PROCESSING_CRM_ORDER with method CRM_ACTIVITY_EXEC_SMART_FORM and processing type "smartforms e-mail".....
The E-mail will be deliverd successfully, but the e-mail want's a read confirmation. Is it possible to set a variable in the class I mentioned above to avoid the reading confirmation?
regards
marcHi Experts,
I've got a question concerning the e-mail read confirmation of a Smartform which we send by channel e-mail in crm system...
I've created a smartfrom which we send with an action in crm as an e-mail, for this I use the standard class
CL_DOC_PROCESSING_CRM_ORDER with method CRM_ACTIVITY_EXEC_SMART_FORM and processing type "smartforms e-mail".....
The E-mail will be deliverd successfully, but the e-mail want's a read confirmation. Is it possible to set a variable in the class I mentioned above to avoid the reading confirmation?
regards
marc -
Image becoming distorted when printing - smartform in CRM system
We are using CRM 5.0 and have to create a smartform for the acknowledgement of the order. The output is triggered correctly but marketing want me to include an image at the top of the page. I understand that you are only able to load tif or bmp into smart forms and indeed they are printed, however when printed the image is not very clear - looks like it is resizing.
I have tried changing the image in many different ways - and using paint shop pro for uploading the image. I have found that if using TIF the only compression option that uploads is packbits. I have saved the image with as many colours as possible and then reduced it - each time the image looks rubbish! However when I view the file (from my computer) in PSP it looks ok.
I have searched the forums for help but not really found anything that useful. Does anyone have any suggestions how to get the image to come out as expected?
The image stretches across the whole width of the page and just over 3cm deep. There are quite a few colours in the image and it is fairly busy.
Driving me mad here! anyone got any ideas? Maybe I need to install additional filters or something???managed to get this corrected using faststone image viewer and converting images to 300 DPI.
-
SMARTFORM CRM - access to PCAT item - UPDATED
Hi,
I need to be able to access some details from the pcat area on a smartform. We are using CRM 5.0.
I am looking for an example of how you would config the smartform to connect to the pcat area and return a customised description. We need to do this as we are only displaying the TEXT_0002 on the webshop not sales text or material text.
Basically I need to do the following.
I run the smartform from the order creation process - the smartform is triggered by an output of the order.
What I need to do is the following
1. go to table COMM_PRODUCT and run an ABAP query something like
select PRODUCT_GUID from COMM_PRODUCT where PRODUCT_ID = ORDERLINE_PRODUCT
2. Then I need to use the value from above to run the following code from table COMM_PCAT_ITM
select GUID from COMM_PCAT_ITM where OBJECT = RESULT_FROM_1_ABOVE
3. Then I need to pass the result of 2 to an RFC called COM_PCAT_ITM_GETDESCRIPTION_0
return TEXT_0002 where IV_ITEMGUID = RESULT_FROM_2_ABOVE
would appreciate anybodies thoughts on this as it is puzzling me.
Cheers, Paulgoing to perform the update from the sales order exits - see other question
-
How to call and reuse smartforms from ECC to CRM?
Hi Experts,
I would like to seek help from all of you, I would like to know if it is possible to call and reuse smartforms created in ECC to CRM environment. The requirement is to create smartforms in ECC (R/3 system) and reuse and call it in CRM environment whenever the 'PREVIEW OUTPUT' button is ticked in CRM webclient. This is to reduce the creation of smartforms from both systems.
Hope to hear from all of you. Your help will be very much appreciated.
Thanks and Regards,
MonicaYou can not reuse it directly but I guess you can download form from ECC and then upload it to CRM. I guess based on your requirement you might end up with few changes to form in CRM to display correct data.
http://help.sap.com/saphelp_nw70/helpdata/en/c9/452f2d33ca11d5b697006094192fe3/content.htm
http://www.howforge.com/how-to-upload-smartforms-from-pc
Smartform Download/Upload problem
Regards,
BJ -
Hi,
We have Smartform and driver programs in R/3 server. We need to move it to CRM Server. What are the steps to be followed?
Regards,
Chetan.I hope you are planning to move z objects.
Then have these objects attached to a Transport Request and Release it and import the Transport Request in the CRM !
Thanks
<b>Allot points if this helps!</b> -
Hi,
I have to develop a sales order smartform in CRM .I dont know how to customise it and to populate additional data in it , as in CRM there are classes and methods instead of driver programs that could be modified .
Kindly help me out.
Thanks and Regards,
FaisalHi Giridhar,
The smartform name is : CRM_ORDER_CONFIRMATION_01.
In CRM there is no Driver program , there are classses and methods which according to the functional consultant cannot be modified .I have copied the layout as Z_smartform and have to populate data in it.Please suggest how to go about it.
Thanks and Regards,
Faisal -
How to Assigned smartform in CRM
Dear Friends,
Please guide me how to assigned smartforms (Order conformation) with driver program in CRM,
SanthiHi Shanti
You need to define action profile from CRM->Basic Functions->Actions->Actions in transactions->Change Actions and Conditions->Define Action Profiles and Actions (you can use profile ORDER_MESSAGES)
and then define condition for your action profile from the path CRM->Basic Functions->Actions->Actions in transactions->Change Actions and Conditions->Define Conditions
And then assign this action profile to your transaction type.
regards
M.
Maybe you are looking for
-
Form submission to client local drive?
Hi - I've created a dynamic form that I've been using to have a small number of recipients submit back to me via email as a XDP file, but because of end-user difficulties getting this to work consistently I need to add a method to submit that will sa
-
How do I stop InDesign from trying to create a network connection?
I have a huge problem, either with InDesign or Apple I am not sure. Basically when I bring my computer home from work every time I open InDesing it tries to connect to a server and I get this error message: the server XXX.local may not exist or is un
-
Hi, this morning I installed last upgrade of CC (05/28/2014) but it did a mess on the entire pc: when I launched Photoshop it appeared a driver error on my graphic hardware (I checked, everything was up to date nd correctly working) and Photoshop did
-
Missing windows service for Oracle Enterprise manager
I have installed Oracle database 10G R1 (without seed database), and applied patchset 10.1.0.4. I have used the DBCA to create a database instance, which was created successfully (see note1). However the windows service for the OEM DBconsole has not
-
Like to buy laptop computer and perate from dialup wirelessly. Do roputers work for this. I am computer illiterate and would appreciate any help. Thanks