How to view the pdf files stored in client side using forms 10g
Hi All,
I am using webutil to upload and download the blobs from database. I susccessfully uploaded/downloaded the blobs from database to client(d:\temp.one.pdf)
Now I want to view the download pdf through form.
Can anyone help me regarding this?
I have tested the sql and found that there are no records in the table in which iam uploading the file
In the form, I am joing tow tables mapping with rpt_num
Even after adding information for the image table like image_no,image_name and
when i click on upload to db icon. it gives me the same error WUT-113
I think I need to save this basic information first and then upload the file
can you please advise where can i add this code to save the data first
below is the code iam using to upload the file from database
PROCEDURE UPLOAD_DB IS
l_success boolean;
BEGIN
l_success := webutil_file_transfer.Client_To_DB_with_progress
(clientFile => :images.file_name
,tableName => images'
,columnName => 'RPT_IMAGE'
,whereClause => 'RPT_NUM = ''' || :PVT.PVT_SA_RPT_NUM || ''''
,progressTitle => 'Upload to Database in progress'
,progressSubTitle=> 'Please wait'
,asynchronous => false
,callbackTrigger => null
if l_success
then
message('File uploaded successfully into the Database');
else
message('File upload to Database failed');
end if;
exception
when others
then
message('File upload failed: '||sqlerrm);
END;
Similar Messages
-
Hey, i was wondering if anyone knew how to view a PDF file in Java? I'm trying to make a button that will open a PDF file. Is there any other way without downloading an extension?
Kandyman wrote:
The thing with downloading extensions is that they are not free. Some are trial version. iText and Jasper are probably free and stable to a great extent. Plus they allow you to play with PDFs, Excel, Bar charts, Pie charts, CSV etc etc without the hassles of the heavyweight Swing.
- Vaibhav Beohar -
I can't view the pdf files from outside without open them
i had the adobe acrobat 7.0 version 7 installed on my pc
when i upgraded it to version 9.0 , I can no longer see the cover of pdf files
how i can view the pdf files from outside without open them
please notice the divergence between these picture
before
afterthe problem becouse my windows is 64 bit
i found a fix file , i try it and it works
download
http://www.pretentiousname.com/adobe_pdf_x64_fix/#downl -
How to fix the .pdf file with error "invalid annotation object"
how to fix the .pdf file with error "invalid annotation object"
As long as the PDF opens, then just try saving it to a new file name. There may be a preflight script that would help troubleshoot the issue.
-
How to process the PDF files at one time
Hello,
I'm using WebDynpro for ABAP and Adobe Interactive Forms as offline forms.
I collect PDF files from received e-mails.
I want them to be taken in at one time.
(for example,
system job read PDF files and create data in ERP,
or I upload the files one time.)
Please let me know
- How to process the PDF files at one time.
Best regards,
KojiWhen you click the edit button in recents, try clicking the clear button in the upper left.
-
How to break the PDF file into images?
How to break the PDF file into images? There should be settings in Photoshop CS 6 that imports PDF file and break it into images. I have a short instruction:
2. Open the file in Photoshop.
3. A new window should open to Import PDF. Click on images, not pages import pdf into Photoshop.doc
4. Select all the files shown (shift + click), Click O.K. Four files should open on your screen.
Was anybody successful with that?Whether this is available solely depends on the structure of the PDF and whether it actually contains whole images that can be extracted separately. Depending on whatgoing on in the PDF this may simply not be the case and the images have been tiled and split up in multiple "objects" whose appearance can only be retained by rasrerizing the whole page...
Mylenium -
How to send the PDF file to FAX will the nast table updates
Hi all,
How to send the PDF file to FAX. Will the nast table updates ( which fields updates ).
Need is once fax is send for that delivery, again it should not fax again. Will the nast table helps to check the sent fax.
Please give me sutable suggessions....Have you checked Forums » Community Discussions » Code Snippets
I believe there were some examples on converting/sending PDF.
Or check FM 'SO_DOCUMENT_SEND_API1' and documentation for it. -
How to send the pdf file....
How to send the pdf file which is an outpu of smart form to sap users.
How to delete the pdf file as soon as it was sent.Have you checked Forums » Community Discussions » Code Snippets
I believe there were some examples on converting/sending PDF.
Or check FM 'SO_DOCUMENT_SEND_API1' and documentation for it. -
How to view the DDL script prior to object deployment in OWB 10g R2?
How to view the DDL script prior to object deployment in OWB 10g R2?
Here is what I' looking for: in 10gR2, let's say I've built dimension X, but it's not deployed yet. I've selected one of the deployment options, let's say: "Deploy to Catalog only". Now, I'd like to see a DDL script that will be executed at the deployment time. Where can I find this script? What screen? What menu?
Thanks,
vrViewing the Scripts
After you have generated scripts for your target objects, you can open the scripts and
view the code. Warehouse Builder generates the following types of scripts:
■ DDL scripts: Creates or drops database objects.
■ SQL*Loader control files: Extracts and transports data from file sources.
■ ABAP scripts: Extracts and loads data from SAP systems.
To view the generated scripts:
1. From the Generation Results window, select an object in the navigation tree on the
left of the Generation Results dialog.
2. Select the Scripts tab on the right of this dialog.
The Scripts tab contains a list of the generated scripts for the object you selected.
3. Select a specific script and click the View Code button.
Regards,
Marcos -
Not able to create a text file in Client Machine using Forms 10g
Hi - I'm mot able to create a text file in Client Machine using Forms 10g. I'm getting error when system executes the bolded line.(i.e. CLIENT_TEXT_IO.FOPEN). During run-time system is throwing "ORA-06508: PL/SQL: could not find program unit being called".
I had attached webutil.pll in the form.
Please advise me.
DECLARE
l_Temp CLIENT_TEXT_IO.FILE_TYPE;
LC$Name Varchar2(100) ;
LC$Fic Varchar2(100) ;
LN$Lines Pls_integer := 0 ;
LC$Line Varchar2(4000) ;
Cursor C_CUR Is
Select * From TEST_TEXTIO where rownum <= 50;
BEGIN
LC$Name := 'tmp_file.txt' ;
LC$Fic := 'c:\temp\tmp_file.txt';
Begin
l_temp := CLIENT_TEXT_IO.FOPEN( 'C:\temp\tmp_file.txt', 'W');
Exception
when others then
message( 'OPEN FILE ERROR ' || LC$Fic ||sqlerrm );
display_error;
raise form_trigger_failure;
End ;
-- Write the lines --
For Cur In C_CUR Loop
LC$Line := Cur.CODE || ' -> ' || Cur.COL1 || ',' || Cur.COL2 || ',' || Cur.Col3 ;
CLIENT_TEXT_IO.PUT_LINE( LF$File, LC$Line ) ;
LN$Lines := C_CUR%ROWCOUNT ;
End loop ;
-- Close the file --
CLIENT_TEXT_IO.FCLOSE( LF$File ) ;
Exception
When others Then
message('err='||sqlerrm);message(' ');
display_error;
CLIENT_TEXT_IO.FCLOSE( LF$File ) ;
Raise ;
END;
Thanks.
ArunHi ,
i have one Question though its not related to thos question if some could help me it will be really helpful,
i have created one program to import and export excel to forms vice versa, if the form is attached with webutil its working fine am using ole2.but i have a new idea if i add this program in menu, it can be used for all the forms attched to that menu, i made program also, but problem am facing right now is if the form is not attched with webutil it will not work so is there possiblity to share my webutil from one form to another form ,so i will keep one form as a interface form in that webutil will be attched ,i can share that webutil to all other forms so that all the forms no need to attach webutil again
if its possible means please suggest some ideas -
How to upload the pdf file to the next view?....urgent
Hi Experts,
I need to upload the pdf file( a interactive form ) using the fileupload element in the A_view and the pdf file can be displayed in the b_view.
But I don't know how to complete the function?
Action:
0. Create a adobe form (c_form)in the R/3 using sfp with a inputfield.
1. Create a adobe interactive form (A_interactive_form)in the view(display_view) of the WDA for abap.
2. Create a context attribute(upload) in the display_view.
3. Bind the c_form to the A_interactive_form, so that the data can be transfered to the c_form.
4. Bind the "pdfSourth" property to context attribute "upload" in the A_interactive_form.
4. Type code in the WDA for abap for setting data("old") to the context.
5. Active the WDA and run the WDA.
6. In the IE, the interactive form is displayed with the value "old" in the field. Save the pdf form as "test.pdf" and close the IE.
7. Open the test.pdf, and type the inputfield "new" in the form, and save the test.pdf.
8. Create a context node(Pdfsourth) in the component controller, and create a attribute("upload") that type is xstring in the Pdfsourth.
9. Create a view(C_view), mapping the context node(Pdfsourth) in the component controller.
10. Create a fileupload element in the C_view, and the "data" property is binded the "upload" attribute in the context node(Pdfsourth).
11. Create a button(Display_form) and create the action with the outplug for upload the pdf file(test.pdf).
12. Change the window and set the C_view as default view, and set the Navigation link from the C_view to B_view.
13. Type code in the wddoinit method in the display_view for transfering the test.pdf file.
method WDDOINIT .
DATA lo_componentcontroller TYPE REF TO ig_componentcontroller .
DATA upload TYPE xstring.
lo_componentcontroller = wd_this->get_componentcontroller_ctr( ).
lo_componentcontroller->getupload(
IMPORTING
upload = upload " xstring
DATA lo_nd_pdfsourch TYPE REF TO if_wd_context_node.
DATA lo_el_pdfsourch TYPE REF TO if_wd_context_element.
DATA ls_pdfsourch TYPE wd_this->element_pdfsourch.
navigate from <CONTEXT> to <PDFSOURCH> via lead selection
lo_nd_pdfsourch = wd_context->get_child_node( name = wd_this->wdctx_pdfsourch ).
get element via lead selection
lo_el_pdfsourch = lo_nd_pdfsourch->get_element( ).
get single attribute
lo_el_pdfsourch->set_attribute(
EXPORTING
name = `UPLOAD`
value = upload ).
endmethod.
15. Active the WDA and run the WDA.
In the fileupload of the C_view, I select the test.pdf from my local machine. and click the button(Display_form), the display_view is displayed with the A_interactive_form.
But in the A_interactive_form, the value "old" is in the field in the form rather than "new".
I hope to display the test.pdf in the A_interactive_form. I don't know how to change my code or configuration?
Do you give some example or some hint for this problem ?
Thanks & Regards,
TaoNow, The problem has been solved.Thanks a lot.
-
Dear all,
I have one question about Servlet. I have been using the Sun Java Application Server 8.0.
0) Obtains the inputs (name, birthday) from the user
1) Creates a PDF file, in which the inputs obtained are to be written
2) Stores the PDF file in the external hard disk drive
3) Only permits the same user to review the file
My question is how to let the permitted user to view the file.
a) Creates an HTML file with an appropriate Content-Type value
b) Exports the PDF file to the HTML file
If you are familiar with this problem, could you please help me to solve it?
Thank you very much in advance.
Yours faithfully,
t91006saDear Saish,
Thank you very much for your instruction. I found it very interesting.
Following your instruction, I wrote the following code.
Thank you very much again. You are very kind.
BrendaAndEddie (t91006sa)
<%@ page pageEncoding="UTF8" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%
final String DIRECTORY = "C:/Documents and Settings/Administrator/Desktop/";
final String FILENAME = "abc.pdf";
final int OPTIMIZATION = 1024;
response.setContentType("Application/Octet-Stream");
// response.setContentLength(???);
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Content-disposition", "inline; filename=\"" + FILENAME + "\"");
byte buffer[] = new byte[OPTIMIZATION];
FileInputStream fin = new FileInputStream(DIRECTORY + FILENAME);
OutputStream os = response.getOutputStream();
int size = 0;
while (true) {
size = fin.read(buffer);
if (size == -1) {
break;
os.write(buffer, 0, size);
if (os != null) {
os.flush();
os.close();
if (fin != null) {
fin.close();
%> -
How to chante the PDF File Name in Broadcasting
Hi Team,
Could you help me?, I am in a project where the customer need the Following requirement with the PDF File Name in the Broadcasting:
I am configuring one distribution Job in Broadcasting configuration Tab this Job need send a report via E-Mail in PDF Format, but the customer requirement is that the file name is sent with the description name and not with the technical name from report.
Then, some of you know "How change the name to the PDF File that is sent in the Distribution Jobs, I need the Description name, because actually the E-mail send the PDF File with the Technical Name, and the user does not want in that way".
Thank you very much.
Leslie Denise.Hi,
Thank you for your answer, but that parameter i added in the content of the email. But I need change the name from the file not to add the description in the subject or in the content.
And if there are somebody to know if is possible to change the name from the PDF File I will apreciate your comments and answers.
But Thank you so much for your answer voodi.
Regards
Leslie Denise. -
How to save the pdf file or word doc into sap table
Hi Expertu2019s
I have a pfd file in my presentation server .Now I want to save the pdf file into sap table using module pool program. Whenever i need, I want to open that file from the table and show it in the Screen. Please any one tell me how I can save the file. What is the table name, guide me.
Regards,
S.Nehru.Hi,
Try the following code
FORM gui_upload.
DATA: lv_filetype(10) TYPE c,
lv_gui_sep TYPE c,
lv_file_name TYPE string.
lv_filetype = 'PDF'.
lv_file_name = <name of ur file>.
DATA: tb_file_data TYPE TABLE OF text4096.
* FM call to upload file
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = lv_file_name
filetype = lv_filetype
has_field_separator = lv_gui_sep
TABLES
data_tab = tb_file_data
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "gui_upload
I dont think you can save the data into sap tables in PDF format.
With the above code you can save data into an internal table.
Regards,
Manish -
How to attach the PDF file in spool to an email?
Dear friends,
I need to attach the PDF file generated in the spool (SP01) to email.
The PDF file is generated from VL02N at the time of Post Goods Issue .
Thanks,
Vidya.Hi,
Refer to the link it is explained how to configure the output type to send the email with PDF attachment on saving the Billing Document.. you need to do the same way..
Email Billing document as PDF Attachment while saving from VF01/02
Maybe you are looking for
-
My husband and I have two different tastes in music....do we have to have two different itunes accounts, or can we somehow share the account (itunes cards, credit card....payment options) but have two different setups??? How does this affect things
-
Portege 600-Windows Setup experienced an unexpected error - Error Code: 0x0
Hi, During a Windows 7 upgrade I am getting the following error message. Windows Setup experienced an unexpected error - Error Code: 0x0. Searching on web I've found recommendations for setting the DMA on the optical drive (can't), updating the bios
-
JDev 101304 - ADF JSF - Can I get the viewId of the page in a Filter?
Hello again: 1.- I want to configure a Filter in my web.xml. 2.- I want to do some validations in the code, but one of those validations is based in a pattern of the jsp's names. 3.- I notice that the viewId's page is the same that the full name of m
-
I have the 24" imac 2.4ghz can it support elements 11
i have the 24" imac 2.4ghz can it support elements 11??? i need to know soon
-
Specifying a blank criteria for a smart album
In iPhoto 9.2.1, how do I create a smart album of photos with blank descriptions?