How to represent data as PDF?
Hi Experts,
I need to show the backend data brought by FM as a PDF in portal.
The FM return parameter of type XSTRING and in other case SAP Script text line.(TLINE structure)
How can I represent the data of them as a PDF?
Regards,
Hi,
You can use iText jar file to generate pdf file.
Read this weblog. Create a PDF file using JAVA
Thanks,
Padman
Similar Messages
-
How to get data from PDF form?
PDF forms can send data in url like GET or POST method. Is it possible to get data from url, like in PHP http://sever/file.php?item1=value1&item2=value2&item3=value3
In APEX url have specific construction and I don't know how to get value of items (1...3)
Please let me help to find simple method of geting data from URL.
Best Regards,
MarkThe APEX URL syntax is detailed here
http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#BCEDJBEH
How to get it from PDF is another matter...
I'm working on an app that downloads PDFs with a Large amount of data as a blob, takes that blob and changes it to XML, then goes through the xml to validate each section of data and then add it into the schema that my apex app is referencing....
I didn't write the original code but I do know that it isn't a quick thing to implement and includes using some uploading some java jar files to your schema and writing some custom java code.
Someone else may be able to help with grabbing PDF data into the URL for the amounts of data you want to pass to apex.
Gus..
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!
Edited by: Gussay on Sep 21, 2009 5:52 PM -
ALBPM - How to represent Dates (without Time)
I have been slated to clean up existing some production ALBPM code. Our business logic is all Date based, but the original implementation uses the Fuego Time object b/c there is no Date object available. This causes issues when we work across time zones or daylight savings time. For example, 2am 11/9/2009 in US/Eastern would be 11pm 11/8/2009 in US/Central so the dates would not match. Currently, the code has some ugly hacks, such as calling the "addHours" method to roll the time forward.
I would appreciate hearing any best practices on how to approach Date based logic in ALBPM. In representing Dates, should we:
1) Stick with current Fuego Time object (if so, how should we handle time zones & DST)
2) Use some standard Java object (Java Date object has time embedded as well, leaving the same challenges)
3) Create a new Date object ourselves that ignores time.
4) Other??
Any suggestions from those who have worked with mainly Date based logic would be appreciated.We have the same problem, we just set the time to 12 noon and most probably this fix the issue when system communicates across time zones.
If teh user selects the date as "11/10/2009", make use of the SimpleDateFormat to append the time as 12 Noon.
Thanks,
Bharat -
Hi,
My aim is to populate data in a standard pdf file and print the same.
How can I do this? I am using struts framework.
What are the APIs that can be used for this?
Would it be better to convert an rtf to pdf?
Please help.
Thanks!
ArchnaThanks for the link.
I tried etymon PJ but there are problems with word alignment and word wrap. The process that I followed is like this:
1. Converted a word document to pdf 1.4 using acrobat 7.0
2. I then use this pdf which contains tags like <Address> <City> etc and have this file as an input
3. Use Etymon PJ to replace text using these tag delimiters
The file is converted but there is no word wrap and alignment issues occur. What could be the cause?
Archna -
How to fill data in PDF form?
Hi All,
I have a pdf forms(about 100). Now I need to open that forms in the browser. User can fill that form and that data should be filled in the database/XML file. Then when user come again then that form details must be displayed in that form.
Please suggest me some path as I am totally blank about this concept.
Regards.Hi Leonard,
Thank you very much for the reply.Our users have only reader at their side. Can we set up any kind of software implementation at server side? Or with the use of the .NET(C#) ?
Can you please provide me some link to initiate this project? Actually I don't know how to start this.
Any help would be appreciated. -
How to input data into Pdf file
I am not too sure if I am posting my question in the right forum.
I would like to know what version of Adobe acrobat can allow me to create a document, where clients can input data into it?
Here is an online example
http://www.uscis.gov/files/form/N-400.pdf
Thanks.
OceansIf your users will be using Reader and you want your users to be able to save the form or email it, you will need to apply 'Extended Form Rights' (version 8 Provessional or Version 9 Standard or better) and for signatures you will need to apply 'Signature Rights' using an Adobe server product.
-
How to get data from pdf file and send contents of the pdf file to R/3
Hi, experts,
Action:
1. Make a pdf forms (interactive form) with inputfield named A_inputfield in the webdynpro application and run the webdynpro application.
2. In the IE, click the save button in the pdf interactive form and save the pdf to local disk,ex: C disk. Close the IE browser.
3. Open the pdf interactive form from the local C disk and type "aaa" to the A_inputfield.
4. I want to save the "aaa" to the R/3 system using webdynpro or using other tools . How can I do it?
First way:
If I use webdynpro application to save the content of the pdf, I don't find a way mapping or binding the content to a context of a view. So I don't think this way is unadvisable.
Second way:
Adding a button "submit" in the pdf forms when create the pdf form. Runing the webdynpro application, save the pdf to local disk,ex: C disk. Opening the pdf interactive form from the local c disk and typing "aaa" to the A_inputfield, click the "submit" button to save the content. Of course, I need to finish the code for clicking "submit" button. But I don't know how to write these codes and where to write these codes. Do you give me some advise ?
Best regards,
taoHi, Abhimanyu L,
Thanks a lot for your help. Your answer can give me large developmental.:)
I find http://help.sap.com/saphelp_erp2005/helpdata/en/67/fae9421dd80121e10000000a155106/content through searching google for CL_WD_ADOBE_SERVICES class. But I don't find any exmples for the class. Do you give me some hint for some exmples for the class?
Best regards,
tao
(You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected]) -
How to represent data in graphical form?
Hello,
I am having some data in my table i want to represent that data in graphical form. please help me to achieve this.
Helpful answers will be rewarded with points.
Thkshi,
check this sample program.copy paste in se38 and execute.
*& Report ZGM_ALV_GRAPH *
REPORT ZGM_ALV_GRAPH .
*structure declaration for performance measurement
TYPES: BEGIN OF ty_performance,
COMPANY(15) TYPE C,
Q1 TYPE I,
Q2 TYPE I,
Q3 TYPE I,
Q4 TYPE I,
END OF TY_PERFORMANCE.
*STRUCTURE DECLARATION FOR OPTIONS TABLE
TYPES : BEGIN OF TY_OPTTABLE,
OPTIONS(30) TYPE C,
END OF TY_OPTTABLE.
*INTERNAL TABLE AND WORK AREA DECLARATIONS
DATA : IT_PERFORMANCE TYPE STANDARD TABLE OF TY_PERFORMANCE,
WA_PERFORMANCE TYPE TY_PERFORMANCE.
DATA : IT_OPTTABLE TYPE STANDARD TABLE OF TY_OPTTABLE,
WA_OPTTABLE TYPE TY_OPTTABLE.
*INITIALIZATION EVENT
INITIALIZATION.
*START OF SELECTION EVENT
START-OF-SELECTION.
*CLEARING THE WORK AREAS
CLEAR WA_PERFORMANCE.
CLEAR WA_OPTTABLE.
*APPENDING VALUES INTO THE PERFORMANCE INTERNAL TABLE
WA_PERFORMANCE-COMPANY = 'Company A'.
WA_PERFORMANCE-Q1 = 78.
WA_PERFORMANCE-Q2 = 68.
WA_PERFORMANCE-Q3 = 79.
WA_PERFORMANCE-Q4 = 80.
APPEND WA_PERFORMANCE TO IT_PERFORMANCE.
WA_PERFORMANCE-COMPANY = 'Company B'.
WA_PERFORMANCE-Q1 = 48.
WA_PERFORMANCE-Q2 = 68.
WA_PERFORMANCE-Q3 = 69.
WA_PERFORMANCE-Q4 = 70.
APPEND WA_PERFORMANCE TO IT_PERFORMANCE.
WA_PERFORMANCE-COMPANY = 'Company C'.
WA_PERFORMANCE-Q1 = 78.
WA_PERFORMANCE-Q2 = 48.
WA_PERFORMANCE-Q3 = 79.
WA_PERFORMANCE-Q4 = 85.
APPEND WA_PERFORMANCE TO IT_PERFORMANCE.
*APPENDING VALUES INTO THE OPTIONS INTERNAL TABLE
WA_OPTTABLE-OPTIONS = 'P3TYPE = TO'.
APPEND WA_OPTTABLE TO IT_OPTTABLE.
WA_OPTTABLE-OPTIONS = 'P2TYPE = VB'.
APPEND WA_OPTTABLE TO IT_OPTTABLE.
WA_OPTTABLE-OPTIONS = 'TISIZE = 1'.
APPEND WA_OPTTABLE TO IT_OPTTABLE.
*CALLING THE GRAPH FUNCTION MODULE
CALL FUNCTION 'GRAPH_MATRIX_3D'
EXPORTING
COL1 = 'Quarter 1'
COL2 = 'Quarter 2'
COL3 = 'Quarter 3'
COL4 = 'Quarter 4'
DIM1 = 'In Percentage%'
SET_FOCUS = 'X'
TITL = 'Company Performances'
TABLES
DATA = IT_PERFORMANCE
OPTS = IT_OPTTABLE
EXCEPTIONS
OTHERS = 1. -
How to represent date infinity
Hi all,
I have a persistent class with fields representing a date interval (startDate and endDate). In cases where endDate is not defined (endless interval), the field could be set to null but this would be inconsistent with sorting since null is smaller than any other date. An alternative could be to define a constant DATE_INFINITY set to December 31 9999 but I'm not sure if this is a good idea.
Any comments or alternatives ?
JCGHow about this:
public class DateWithForever implements Comparable {
// "Date With Forever" -- sounds like a cheap romance novel
private Date date;
private boolean forever_future = false;
private boolean forever_past = false;
public createDateWithForever(Date date) {
return new DateWithForever(date);
public createDateWithForever(String forever) {
if ("FUTURE".equals(forever))
return new DateWithForever(true);
if ("PAST".equals(forever))
return new DateWithForever(false);
return null;
private DateWithForever(Date date) {
this.date = date;
private DateWithForever(boolean future) {
if (future)
this.forever_future = true;
else
this.forever_past = true;
public int compareTo(Object o) {
// compare the forever boolean flags, if both false
// fall back to comparing the dates
} -
How to read data from PDF and HTML file
I have got solution to read text form .txt file but did'nt get code for PDF and HTML.
I dont want to convert PDF to txt.
Please help me ...ah crap i could have guessed there would be a crosspost only the forum in where the crosspost is made is abit funny
To OP: DO NOT CROSSPOST
http://forum.java.sun.com/thread.jspa?threadID=5267875&tstart=0 -
how can i open a PDF bank statement in "numbers" so that the rows and columns contain properly aligned data from statement?
Numbers can store pdfs pages or clippings but does not directly open pdf files. To get the bank statement into Numbers as a table I would open the bank statment in Preview (or Skim) or some pdf viewer.
Then hold the option key while selecting a column of data.
Then copy
Then switch to numbers and paste the column into a table
Then repeat for the other columns in the pdf document
It would be easier (in my opinion) to download the QFX or CSV version from your bank -
How to extract data from offline PDF files as batch processing
Hello.
I want to use Adobe Interactive forms as batch processing.
For instances,
1. Users download offline PDF files.
2. Users inputs data on their local PCs.
3. Users upload these PDF files in one folder.
4. Program can read data form PDF files on that folder. and put data to ERP at night.
I' d like to know how to implement a program with Java or ABAP.
Regards.
Koji.Hi,
It's possible to do it but first be sure that the SAP system can read the directory while your program is executed in background .
Then you have to read the content of the directory and process each file you found.
Look at this standard ABAP object cl_gui_frontend_services , you will find method for browsing a directory and retrieve list of file .
Afterwards you have to process each file , for this have a look at this wiki code sample i wrote for processing inbound mail with adobe interactive form, it should help you [Sample Code for processing Inbound Mail with Adobe Interactive Forms|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/sampleCodeforprocessingInboundMailwithAdobeInteractive+Forms]
Hope this help you .
Best regards. -
How to read data from writable PDF Form?
Hi,
I need some help for the web site that I am working on.
This is asp.net website. Client is requesting to provide writeable PDF forms on this website for download.
These forms will be downloaded by customers, they will fill in the required data on these forms save it and upload the forms back on the website.
Once uploaded we need to read whtever client has written in these forms and update in the database (SQL server).
I have been going through adobe web site and lot of other web sites to understand this concept (as i have never done this).
What I understood is, with Adobe LiveCycle designer and forms we can create writeable forms.
However I have not got any idea or seen any documentation on how do I read the data that user has typed on these forms.
This reading the data from pdf and saving into sql server, I have to do it in asp.net app.
Could anyone please help me understand how to achieve this.
Thanks a lot for you time.How do we do that?
Just to clarify myself, I am not putting any button on PDF to invoking submit action from PDF. I am allowing user to upload the pdf and they click submit button on my aspx page.
Are you saying that when user submits the aspx page there is a wasy to retrieve the data in the form of XML or name/value pair on this aspx submit? if so please send me some pointers/examples or let me know how to do this? Is there any additonal tools/software that we will need to buy from adobe for this?
thanks for you time!
Praxo -
How to display the data in PDF format : problem is splitting into 2 lines
Hi ,
I developed one report which downloads the data into PDF format and saved in C drive but my problem is
in my program : Line size of the report is 255 in PDF it is splitting into 2 lines. it has to show in a single line. how to do it. how to reduce the width of the output? i am sending my code below. anybody can suggest me how to do it. if possible please send me the code.
my code:
report zmaheedhar.
maheedhar-start
TABLES : vbak.
parameters : p_vbeln type vbak-vbeln.
data : begin of itab occurs 0,
vbeln type vbak-vbeln,
ERDAT type vbak-erdat,
ERZET type vbak-erzet,
ERNAM type vbak-ernam,
ANGDT type vbak-angdt,
BNDDT type vbak-bnddt,
AUDAT type vbak-audat,
VBTYP type vbak-vbtyp,
TRVOG type vbak-trvog,
AUART type vbak-auart,
AUGRU type vbak-augru,
GWLDT type vbak-gwldt,
SUBMI type vbak-submi,
LIFSK type vbak-lifsk,
FAKSK type vbak-faksk,
NETWR type vbak-netwr,
WAERK type vbak-waerk,
VKORG type vbak-vkorg,
end of itab.
maheedhar-end
DATA: pripar TYPE pri_params,
arcpar TYPE arc_params,
lay TYPE pri_params-paart,
lines TYPE pri_params-linct,
rows TYPE pri_params-linsz.
DATA: val(1), val1(1).
*---> Local Printer Name defined in SAP, Change NHREMOTE to your local printer
DATA: dest TYPE pri_params-pdest VALUE 'ZNUL'.
DATA: name TYPE pri_params-plist VALUE 'Testing'.
DATA: i_pdf TYPE STANDARD TABLE OF tline.
DATA: spono TYPE tsp01-rqident.
maheedhar-start
top-of-page.
write: 'Sales Document' , 'C Date', 'Entry time', 'Created By','Quotation date',
'Date','Document Date','SD document category','Transaction group','Sales Document Type',
'Order reason'.
start-OF-SELECTION.
select vbeln ERDAT ERZET ERNAM ANGDT BNDDT AUDAT
VBTYP TRVOG AUART AUGRU GWLDT SUBMI LIFSK
FAKSK NETWR WAERK VKORG from vbak
into table itab
where vbeln = p_vbeln.
maheedhar-end
--- Retreive local printer details
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = dest
no_dialog = 'X'
immediately = ' '
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
valid_for_spool_creation = val1
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*-- Set Spool printer details w.r.t local printer
pripar-prdsn = 'DSN'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = arcpar
in_parameters = pripar
no_dialog = 'X'
list_name = name
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
valid_for_spool_creation = val1
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc EQ 0.
---> Triggers the spool creation in the sense all the write statements from hereon will be written to spool instead of screen
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar
NO DIALOG.
ELSE.
WRITE:/ 'Unable to create spool'.
ENDIF.
*--- Output statements
*WRITE:/ 'First Line', 'mahee','lklk','kikik','lokiuj','fffff','kijuyh','fgfgfgfg','gtgtgtgtgtgtgtgtggggggggggggggggggggggggggggggg'.
*WRITE:/ 'Second Line'.
LOOP at itab.
write: itab-vbeln,
itab-ERDAT,
itab-ERZET,
itab-ERNAM,
itab-ANGDT,
itab-BNDDT,
itab-AUDAT,
itab-VBTYP.
ENDLOOP.
"---> Close spool
NEW-PAGE PRINT OFF.
spono = sy-spono.
Convert ABAP Spool to PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spono
no_dialog = 'X'
TABLES
pdf = i_pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
Download PDF contents to presentation server
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'c:\test.pdf'
filetype = 'BIN'
TABLES
data_tab = i_pdf
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
thanks,
maheedharhi tripat,
actual problem is what u said it is decreased the wiidht of the output.
now the output is:
Sales Document C Date Entry time Created By Quotation date Date Document Date
SD document category Transaction group Sales Document Type Order reason
62741 07/29/1996 11:54:38 DARLENE 00/00/0000 00/00/0000 07/29/1996 C
actual output is:
output should come in a single line. it is splitting into 2 lines.
thanks,
maheedhar -
How to Extract Data from the PDF file to an internal table.
HI friends,
How can i Extract data from a PDF file to an internal table....
Thanks in Advance
ShankarShankar,
Have a look at these threads:-
extracting the data from pdf file to internal table in abap
Adobe Form (data extraction error)
Chintan
Maybe you are looking for
-
APEX 2.1 and server file system interaction methods
Hello experts I am building a web application using APEX 2.1 that would be used by a few hundred users as a secure and auditable portal to a word document file library. The main use case is that an authenticated user will find links to documents he/s
-
Best program to monitor time spent on FCP, Motion, Soundtrack Pro?
I run a small company as a free lance doc-film maker and was wondering if anyone could recommend the best program for keeping track of time spent working on Final Cut Pro, Motion, and Soundtrack Pro projects for my clients. I'd like a program that tr
-
Problem with Mail settings - PDF document is not sending
Hi Experts, During sales order confirmation, a PDF attachment used to be sent. But now the customer is receiving the file with extension as .OTF instead of .PDF. Where could be the problem with this? Is this something wrong in SOCT setttings? But for
-
to purchas apps, and music. if you have not done it in a long time you have to hav the anwsers to your security questions. i do not know the anwsers to mine, and there is no way to change them without knowing them. if there is a way to change the s
-
I am trying to install adobe reader and adobe flash. My computer says that it sucessfully dow nloads but then it fails to initialize. any ideas how to fix this issue?????