Iam working on smartform and iam able to send the output to email.But i dont want to give email address in the program. I want give parameter to the user to pass email address.Can any suggest me how can i pass email id explicitly....!
Iam working on VF02
>Issue output to-->
Here i have changed the exisitng program to send output to email.
i_objpack-body_num = v_lines_bin. i_objpack-doc_type = 'PDF'. i_objpack-obj_name = 'smart'. i_objpack-obj_descr = 'Invoice'. append i_objpack. clear i_reclist. <b> i_reclist-receiver = 'firstname.lastname@example.org'.</b>-->here i want to pass email id using parameter. i_reclist-rec_type = 'U'. append i_reclist. call function 'SO_NEW_DOCUMENT_ATT_SEND_API1' EXPORTING document_data = wa_doc_chng put_in_outbox = 'X' TABLES packing_list = i_objpack object_header = wa_objhead CONTENTS_BIN = i_objbin 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.