|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Sending an SAP Adobe form as an attachment in an email
By Phani Diwakar, YASH Technologies
the offline scenario where the candidate gets the appointment letter along with
personnel information form as an attachment to his/her email after he/she has
been completed final round of interview. He/She fills the form and sends it
back. The data from the PDF is then retrieved and updated in SAP by HR. For this
we don’t require Web Dynpro Development.
document we discuss how to send PDF file as an E-mail attachment to respective
Go to transaction SFP to create form
interface. Provide the interface name ‘ZPERSONNEL_INT’.
create button and provide the description.
Save. Provide the package name in the following screen and press enter.
Define the IMPORT parameter as shown.
and active the interface.
to initial screen of form.
Now create form. Provide the form name ‘ZPERSONNEL’.
create button and provide the description and interface name.
save and provide the package.
Drag the IMPORT parameter ‘EMP_INFO’ from interface to context tab.
Now go to layout tab.
drop the each field from data view to layout editor as shown.
provide the tool tip text using Accessibility
tab as shown.
Now create an ABAP program which will create a form and email to selected candidate
so that it can be filled offline. (Click
here for the program used for this demo purpose)
(Click here for the program used for this demo purpose)
program will have the following steps
Obtain the name
of the generated function module of the form using ‘FP_FUNCTION_MODULE_NAME’
by pass the form name to it.
Set the output
parameter and open the spool job. Fill the value ‘X’
to NODIALOG and GETPDF parameter of the structure SFPOUTPUTPARAMS. Pass this structure to function module ‘FP_JOB_OPEN’
generated function module. Pass the value ‘X’
to parameter FILLABLE of the
structure SFPDOCPARAMS (Form
parameters for Form Processing) which is standard parameter. By default this
FILLABLE parameter is assigned with space. When ‘X’ is passing to this
parameter then form acts as interactive form, otherwise it is print form.
Now the PDF file generated is available in the parameter PDF
of structure /1BCDWB/FORMOUTPUT. Convert the generated PDF file data to binary
format using the function module ‘SCMS_XSTRING_TO_BINARY’.
Send this form to
mail as a PDF attachment using Business Communication Service (BCS).
Now execute the ABAP program.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards