Need to send Payslip in PDF form
Dear All,
I need to convert Payslip as PDF file
Basically Payslip is of HR-Form and how to pass it as a PDF file.
Can anyone tell me how to get the OTF format of the payslip.
Thanks inAdvance,
Regards,
Satya.
Hi,
Check this link...May be it is useful..
http://abapcode.blogspot.com/2007/09/hr-human-resource-tutorial.html
Regards,
Omkar.
Similar Messages
-
Dear all,
I developed the Report program which will send payslip as PDF attachement to all employees.i am able to receive the mail along with Payslip as PDF Format.
but i am unable to open the PDF format.its showing error message as
"Adobe reader could not open the PDF file because it is either not a supported file or because the file has been damaged (for example it was sent as an email attachment and was not correctly decoded"
Can any one help regarding this issue
Thanks in advance.
SudheerDear Companions,
I would like to contribute on this subject which will be helpful to our SDN Society.
I have developed the program to send the standard remuneration statement thru eMail to the employees in PDF. Its working very fine and employees are very delighted owing to this facility. The code snapshot of sending mail form is as per below.
FORM send_email .
DATA : g_totrec(4) TYPE n,
g_ctr(4) TYPE n,
v_prc TYPE string.
DESCRIBE TABLE itab[] LINES g_totrec.
LOOP AT itab.
g_ctr = g_ctr + 1.
CONCATENATE g_totrec ' - ' g_ctr ' : Emp. ' itab-pernr INTO v_prc.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
percentage = 100
text = v_prc.
itab-ctr = 1.
MODIFY itab TRANSPORTING ctr.
IF p_ind = 'X'.
IF itab-usrid_long IS INITIAL.
itab-mtext = 'eMail-ID Not Found'.
MODIFY itab TRANSPORTING mtext.
CLEAR:itab.
CONTINUE.
ENDIF.
ENDIF.
CLEAR:v_pdf_size,x_payslip,i_return.
CALL FUNCTION 'BAPI_GET_PAYSLIP_PDF'
EXPORTING
employeenumber = itab-pernr
sequencenumber = itab-seqnr
payslipvariant = pay_var
IMPORTING
return = i_return
payslip = x_payslip
pdf_fsize = v_pdf_size.
IF sy-subrc NE 0.
itab-mtext = 'Payslip not Generated.'.
MODIFY itab TRANSPORTING mtext.
CLEAR:itab.
CONTINUE.
ENDIF.
IF p_save = 'X'.
CLEAR:data_tab.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = x_payslip
TABLES
binary_tab = data_tab[].
CLEAR:fullpath,w_outlen.
CONCATENATE 'C:\SAP\' itab-pernr '.PDF' INTO fullpath.
DESCRIBE TABLE objhex LINES w_outlen.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = w_outlen
filename = fullpath
filetype = 'BIN'
APPEND = ' '
CODEPAGE = ' '
NO_BYTEORDER_MARK = ' '
IMPORTING
FILELENGTH = c
TABLES
data_tab = data_tab[]
FORMAT_TAB =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6.
IF sy-subrc = 0.
itab-mtext = 'ePayslip Saved.'.
ELSE.
itab-mtext = 'ePayslip Not Saved.'.
ENDIF.
MODIFY itab TRANSPORTING mtext.
CLEAR:itab,docdata,objpack,objtxt,objtxt[],objhex,objhex[],objhex1,objhex[],objpack,objpack[].
WAIT UP TO 5 SECONDS.
CONTINUE.
ENDIF.
Convert OTF to PDF
CLEAR:x,x1,y,z,w_outlen,tab_lines,objhex1.
x = v_pdf_size / 255.
z = v_pdf_size - 255.
DO x TIMES.
IF x1 > z .
EXIT.
ENDIF.
objhex1-line = x_payslip+x1(255).
APPEND objhex1 TO objhex.
x1 = x1 + 255.
ENDDO.
y = v_pdf_size - x1 .
objhex1-line = x_payslip+x1(y).
APPEND objhex1 TO objhex.
preparing subject
CONCATENATE w_endda(6) '-Payslip-(' itab-pernr+0(8) ')- ' itab-atext ' ' itab-ename+0(35) '.' INTO docdata-obj_descr RESPECTING BLANKS.
docdata-obj_name = 'Pay Slip'.
docdata-obj_langu = sy-langu.
CONDENSE itab-atext.
CONDENSE itab-ename.
CONCATENATE ' Dear ' itab-atext ' ' itab-ename '.' INTO objtxt RESPECTING BLANKS.
objtxt = 'Pay Slip.'.
APPEND objtxt.
CLEAR:objtxt.
APPEND objtxt.
objtxt = docdata-obj_descr.
objtxt = 'Please find enclosed herewith your Payslip in PDF format.'.
APPEND objtxt.
CLEAR:objtxt.
APPEND objtxt.
objtxt = 'Have a nice day.'.
APPEND objtxt.
CLEAR:tab_lines.
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines TRANSPORTING ALL FIELDS.
Write Packing List (Main)
docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'RAW'.
APPEND objpack.
pack to pdf.
CLEAR:w_outlen.
DESCRIBE TABLE objhex LINES w_outlen.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = w_outlen.
objpack-doc_type = 'PDF'.
objpack-obj_name = 'ATTACHMENT'.
objpack-doc_size = v_pdf_size.
CONCATENATE itab-pernr '.PDF' INTO objpack-obj_descr.
objpack-obj_descr = 'payslip.pdf'.
APPEND objpack.
Create receiver list
REFRESH reclist.
CLEAR reclist.
IF p_adm = 'X'.
reclist-receiver = admailid.
TRANSLATE reclist-receiver TO LOWER CASE.
itab-usrid_long = reclist-receiver.
reclist-rec_type = 'U'.
APPEND reclist.
ELSEIF p_ind = 'X'.
reclist-receiver = itab-usrid_long.
TRANSLATE reclist-receiver TO LOWER CASE.
itab-usrid_long = reclist-receiver.
reclist-rec_type = 'U'.
APPEND reclist.
ENDIF.
Send the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = docdata
put_in_outbox = ''
commit_work = 'X'
TABLES
packing_list = objpack
contents_txt = objtxt
contents_hex = objhex
receivers = 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.
itab-mtext = 'eMail Not Sent.'.
ELSE.
itab-mtext = 'eMail Sent.'.
ENDIF.
MODIFY itab TRANSPORTING mtext.
WAIT UP TO 5 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT' AND RETURN. "This causes all the objects in SOST to be released.
CLEAR:itab,docdata,objpack,objpack[],objtxt,objtxt[],objhex,objhex[].
ENDLOOP. "end loop at ITAB
ENDFORM. " SEND_EMAIL
Regards,
R R Suthar -
Problems with saving and sending info in PDF form
Hi,
I'm trying to make a PDF form in Indesign CS5, exporting it to PDF, opening in Acrobat 9 Pro, and get the form to be able to send the info I type in the fields.
So far I've had no problems making the form, exporting it, opening it in Acrobat 9 Pro, getting Acrobat 9 Pro to recognize the fields and save the form.
However, I'd opened the form and filled it out and attached it to an email, and when I got the email, the form was blank.
How do I get the form to save the data so it can be emailed?
thanks for any help.
Phil(Acrobat Pro and Pro Extended) Choose Advanced > Extend Features In Adobe Reader.
I have somehow solved the problem. I tried using the above direction and it seems to have fixed the problem. I don't seem to get the message about not being able to save anymore and can send a completed PDF form that retains the information typed into the form.
Thanks for all who made suggestions.
Phil -
Hi all,
We have a requirement where we need to fax a Adobe PDF form. Can you please help me what i need to do to fax a PDF form.
Can anyone explain me the step by step procedure or codes to achieve this.
Thanks in advance.Hi Otto,
The post was really very helpful... here is my code please say me whether is it correct or not.....
DATA: formoutput TYPE fpformoutput , " PDF FORM settings.
docparams TYPE sfpdocparams , " Print and Spool Dialog settings
ie_outputparams TYPE sfpoutputparams ." Print and Spool Dialog settings
DATA: it_recipe TYPE ztrecipe_form1. " Internal Table Declaration
DATA: i_name TYPE fpname,
fm_name TYPE funcname. " Captures the Generated Function Module name
i_name = 'ZRECIPE_PRINT_FORM1_1'. " Adobe Form name
PARAMETERS: p_matnr TYPE zrecipe_form1-matnr OBLIGATORY.
SELECT * FROM zrecipe_form1 INTO TABLE it_recipe.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' " Will contain the name of generated Function Module Name...
EXPORTING
i_name = i_name
IMPORTING
e_funcname = fm_name.
ie_outputparams-device = 'TELEFAX'.
ie_outputparams-getpdf = 'X'.
CALL FUNCTION 'FP_JOB_OPEN' " To Open the Form for Printing...
CHANGING
ie_outputparams = ie_outputparams.
*docparams-langu = 'E'.
*docparams-country = 'US'.
*docparams-fillable = 'X'.
CALL FUNCTION fm_name " Generated Function Module(/1BCDWB/SM00000167)...
EXPORTING
/1bcdwb/docparams = docparams
it_recipe = it_recipe
p_matnr = p_matnr
IMPORTING
/1bcdwb/formoutput = formoutput .
CALL FUNCTION 'FP_JOB_CLOSE'. " To Close The Form For Printing
here whats my doubt was i havent written any code for FAX except the line *ieoutputparams-device = 'TELEFAX'.*_ or should i write any code for the FAX option or this is enough....
how do i know whether the FAX option has worked or not
Please help me in this........ -
Someone sends me a PDF form when I fill it out and email it back to them they receive it blank-why?
All the fill-in PDF forms I've used are read/only. Meaning that whatever you fill in does not get stored and saved back with the file.
As Linc suggests, you will be creating a new PDF, that will not have fillable fields but that will contain whatever you filled in. -
Need to customize the text displayed while sending payslip as pdf in mails
Gurus ,
monthly we will run a report which will send the payslip as pdf to the employees . Now we need to edit the text that is getting displayed in the mail while we attaching the payslip as pdf and send .
how to achieve thisHi Sarvan
Go to messages >> communication method , change the field Cover Page Text with ur po number and send. This is a manual process which you will have to do it for each po.
Now if you want to automate this then you can ask ur abaper to write a small program which will copy the po number to this field.
Table Name NAST
Field Name TDCOVTITLE
Regards
Rajesh
Do reward if useful. -
Sending Data to PDF Forms from ABAP Program.
Hi Experts,
I left ABAP Programing for a while around 1+ years Due to some personal problems
Now I have struck up with new issue. Its ADOBE PDF forms.
I am Entirely new to this topic & knows about Nothing.
My requirement is to display a report in PDF form. Its totally Independent form from NACE.
I have written a Driver program & retrieved all the DATA into a Final internal table.
Now All that I need is to display the same Internal Table data into PDF form output.
Can anyone help me how to send this data(47 records in Internal table with 8 fields in Internal table) to PDF.
Please help me out Experts with any suggestions.
Thanks & Regards,
Dileep .CHi,
if u pass your internal table to smartform we can achieve . because we can convert smartform output into pdf easily.
Regards,
karthikeyan k s,
Edited by: karthikeyanks on Nov 19, 2010 12:58 PM -
Need to Change data in PDF form field with importData operation
This should be simple, right?
I have a PDF form that is submitted. At a certain step in the process, I need to modify the value of one field from within the process. I am using a PDF document in the default formData document variable. To do this, I am using the exportData operation from the FormDataIntegration service to get XML. I then use the setValue service to modify one node of the XML. Finally, I use the importData operation from the FormDataIntegration service to import the modified data back into the PDF.
Problem is that I am getting an error. It says: ALC-FDI-001-304: Only XDP data is supported with XFA forms.
Any advice? Jasmin, Jayan, Paul, anyone?My theory is that when you export the data you do get xdp data.
Now when you modify the node you don't have the right xPath to that node and if that's the case, it might be overwriting the entire xml.
This is causing the xml not to be in xdp data format and you get the error.
Could you post the data you get from the exportData operation and then the xml you try to use by the importData?
Jasmin -
I need buy what productions for PDF forms?
Hi:
My requirement:
1、Adobe Reader can edit and save Pdf forms,can add signature and barcode;
2、I upload pdf file by web upload or by email or copy files;
3、My back-end system(J2EE,Weblogic or Tomcat) receive pdf files ,then extract XML datas from PDF by SDK(Adoble supply ?).
question:
1、I need buy what productions or modules of LiveCycle ES?
2、Adobe supply SDK of extracting XML datas from PDF?
ThanksYou need to buy LC Forms for this use case. LC forms contains the API to extract data in XML format from the PDF.
-
Need to create a online pdf form filler
hi, not quite sure how to achieve this or which product to use.
im trying to create an online web form for users to fill out and print (but to prohibit them from saving to their pc).
i need to embed it somehow on a webpage and not as a link, something similar to this service:
https://www.pdffiller.com/edit.php?id=475533
thanks
BoazHi Bill, thanks for your reply,
actually the site uses flash to present the form for filling. i tried building such a form using flash but its too complicated, im sure there is a much easier way.
say i create a editable form using Acrobat Pro, how would i go about embedding it into the webpage ? and allowing for it to be printed but not saved (the flash solution wrapps the form in a flash file therefor not allowing for a user to save it as a PDF file.
is there a way to do this ?
(im not quite sure why the link i sent is password protected, can't you access it ? http://www.pdffiller.com/index.php - take alook at their service)
here is another example of how i would like it to look
https://www.fillanypdf.com/pdf-software/Fill.aspx?type=pdf-software&id=1179.1783
Thanks a bunch
Boaz -
Problem with PDF attachment - need to send as "application/pdf" - Urgent!
I have code to email a created PDF but when the email is received the attachment is being removed by some kind of SMTPO firewall (I assume at my ISP). It says that attachment type "application/octet" with that file extension (.pdf) is not allowed. How do I set the mime type of the attachment to be "application/pdf"?
My code I use is similar to this at the moment:-
// Part one is the text
BodyPart bodyPart = new MimeBodyPart();
bodyPart.setText("Some text");
multipart.addBodyPart(bodyPart);
// Part two is the attachment
bodyPart = new MimeBodyPart();
DataSource sourceFile = new FileDataSource(FileName);
bodyPart.setDataHandler(new DataHandler(sourceFile));
bodyPart.setFileName("FileName.pdf");
multipart.addBodyPart(bodyPart);
message.setContent(multipart);Any help would be greatly apprecieated as I need to fix asap!!!i tried like this,but it will giving error like this
javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/pdf
my code is :
MimeBodyPart pdfpart=new MimeBodyPart();
pdfpart.setContent(message,"application/pdf");
pdfpart.addHeaderLine("Content-Type: application/pdf; charset=\"iso-8859-1\"");
pdfpart.addHeaderLine("Content-Transfer-Encoding: quoted-printable");
Multipart mp2=new MimeMultipart();
for( int i = 0; i < m_attachments.length; i++ )
// attachments= str+"/"+attachments[i];
MimeBodyPart messageBodyPart = new MimeBodyPart();
DataSource fileDataSource =new FileDataSource(m_attachments[i]);
InputStream fi = fileDataSource.getInputStream();
DataSource fileDataSource1 = new ByteArrayDataSource(fi, "application/pdf");
messageBodyPart.setDataHandler(new DataHandler(fileDataSource1));
// messageBodyPart.setFileName(attachments[i]);
messageBodyPart.setFileName(m_attachments[i].getName());
mp2.addBodyPart(messageBodyPart); -
I am using Adobe Lifecycle Designer now to build my forms and am trying to send variables into the pdf document using URL query, variables. It worked with my old forms using fdf but now it seems that wont function. Is there a tutorial or document someone can point me to to do this. I am coming up with nothing.
This is a double post from a Coldfusion forum, sorry bout that, i thought it had more relevance here.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=7&threadid=1158231&ente rthread=y
- AaronAaron,
I have the same problem, and would like to know if you came up with a solution. It's hard to believe that it can't be done.
socratis -
Need help creating a fillable PDF form from a Word Doc coverted to PDF
Hello, I recently switched from the downloaded program to the monthly "subscription type" of adobe "cloud". Previously, I was able to select in "Tools" the option to insert blue text boxes in my PDF where customers could fill in info and return to me. Now, I can no longer find this option on the Adobe Reader XI. Am I missing something?
You're using Reader instead of Acrobat... Only Acrobat can edit PDF files.
-
Sending "filled in" PDF forms to iphone sometimes empties the form? Why?
Why do standard "fill in the blank" adobe forms after being "filled in" drop all the "fill ins" when they arrive at the iPhone, but hold the information when sent to standard Apple and PC computers ?
The form that I made in Designer is not certified, when I open it in Adobe Reader I cannot save any data entered into the form. So that cannot be the problem. Since I certified the file in Adobe Acrobat 8.0 Mac, I have no problem telling users to upgrade to Acrobat Reader 8.0 or 9.0, but this cross-platform issue remains. I think it may have something to do with layout of the text boxes, like fonts, colors, borders, etc.
-
URGENT: Need to send data from my Form to an excel speadsheeet and save it?
I am trying to capture some data in my form and then export it to Ms Excel and save it as an ecel file.
Somebody Pls help me .....I am trying to capture some data in my form and then export it to Ms Excel and save it as an ecel file.
Somebody Pls help me .....
More Info: Using Forms 6i, Data from Oracle 8i
Maybe you are looking for
-
System hanged, unable to access it thru network or directly.
Hi, We have IBM X-Series Servers. Oracle Enterprise Linux 5.3 is installed over it.. Sytem is running for last 1 yr, suddenly it ihanged as if it is disconnected , we tried to access it but failed , as display is not coming on monitor like blank scre
-
Internet sharing between cellphone and computer us...
I have watched some videos in youtube about internet sharing between cellphones and computer using "BLUETOOTH"... How do they do that? How can we do this? Anybody here can share to us how to do this??
-
Question about external drives
Hi I currently have all my mp3s in a USB Western Digital hard drive So when I open Itunes there is a little slowness in opening Itunes and getting the whole library in there? Would it all be faster if I put the mp3 on a Firewire drive?
-
Cannot get Oracle 10g to start on a G5. Floating point exception
After a very painful 10g (EE) installation process i.e fixing all the following: 1) Created the missing /opt directory 2) Installation of XCode 1.2 3) Fixing the root.sh file 4) Downloaded the crstl file provided by Ron 5) Copied /etc/oratab/oratab t
-
Backup/restore problem....
It is regarding a SAP DB 7.4. I have installed and new instance of SAP DB and SQL Studio. I am able to connect to my instance MQA via SQL Studio. I have taken a full back up of database. Total number of records in one the table is zero. I started to