PO output : PDF file in ftp
Dear all ,
I require the PO smartform o/p to be saved in an FTP location mouted on the system .
Pls guide me how do i go about that .
Presently i have a PO o/p type that sends an email with pdf attachment to the specified partner ( vendor). On the same lines i require to create a PO o/p type that would send the pdf attachment to be saved in the specified ftp location .
Regards
Anis
Hi,
Yes it is possible with combination of special functions and with smart forms which triggers a FTP file and cab be stored in a repository.
Please contact your ABAP consultant for the same.
Regards,
Vijaykumar Panchagattimath
Similar Messages
-
No Data in PDF file in FTP server
Hi All,
I am trying to place a PDF file in FTP server.
Used
CONVERT_OTFSPOOLJOB_2_PDF to convert spool to PDF
SCMS_TEXT_TO_XSTRING
FTP_R3_TO_SERVER to transfer data to FTP.
I am able to see PDF file in FTP and no of pages matches with that of R/3 but there is no data in PDF file.To get pdf file , you need to set the itcpo-tdgetotf = 'X' and need to pass in the exporting parameter (options in open_form function module ).Then in close_form function module take all the data of otfdata table into an internal table . Then use SX_OBJECT_CONVERT_OTF_PDF function module to convert it to pdf.
I will show with an example.
tables itcpo.
DATA: ch_otf TYPE STANDARD TABLE OF itcoo.
DATA: w_otf TYPE itcoo.
DATA: w_pdf TYPE solisti1. "For PDF
DATA: i_content_txt TYPE soli_tab.
DATA: temp1 TYPE sx_format VALUE 'OTF',
temp2 TYPE sx_format VALUE 'PDF'.
DATA: c_printer TYPE sx_devtype VALUE 'PRINTER'.
DATA: w_transfer_bin TYPE sx_boolean. "Content
DATA: i_content_bin TYPE solix_tab, "Content
wa_content_bin TYPE solix,
i_objhead TYPE soli_tab.
itcpo-tdnoprint = 'X'.
itcpo-tdpreview = 'X'.
itcpo-tdgetotf = 'X'.
These three parameters need to be passed along with other required parameters
CALL FUNCTION 'OPEN_FORM'
EXPORTING form = xformular
language = ekko-spras
OPTIONS = itcpo
archive_index = toa_dara
archive_params = arc_params
device = xdevice
dialog = xdialog
mail_sender = sender
mail_recipient = recipient
EXCEPTIONS canceled = 01.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = RESULT
tables
otfdata = ch_otf.
LOOP AT ch_otf INTO w_otf.
CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
INTO w_pdf.
APPEND w_pdf TO i_content_txt.
ENDLOOP.
converting otf file to pdf file
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
EXPORTING
format_src = temp1 "'OTF'
format_dst = temp2 "'PDF'
devtype = c_printer
CHANGING
transfer_bin = w_transfer_bin
content_txt = i_content_txt
content_bin = i_content_bin
objhead = i_objhead
len = v_len_in
EXCEPTIONS
err_conv_failed = 1
OTHERS = 2.
Then open dataset and transfer to ftp of the content of table content_bin(i_content_bin) as shown in above example.
I think this will be helpful for you -
How to remove the extra space in the output pdf file?
Hi All
In our RTF layout template we have both static content and dynamic content.
In RTF template we have used many if-else,choose,For each loops.
On the account of that,In the output pdf file, we are getting lot of empty space in the place of that coding(if-else,choose,For each loops).
Is there anyway to reduce the space in the output pdf file?
Please suggest some ideas.
Thanks in Advance.White space is NOT your friend!
Make sure you don't have any unwanted whitespace between commands and especially tagged on the end of lines. Chain your commands together with no whitespace and let them wrap, do not enter carriage returns.
Cheers,
Dave -
Error while downloading PDF file from FTP Server
Hi Friends,
I have sent a PDF file with data to FTP , Then i want to check that uploaded pdf file , whether that is correct or not?
for that , i have downloaded that file from FTP and i am trying to open the file . but it is giving this problem .
"There was an error opening the document . The file is damaged and could not be repaired."
will you suggest me regarding this.
thanks in advance.
balaji.T.CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = spoolno
src_spoolid = wa_file-rqident
no_dialog = ' '
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
pdf_bytecount = numbytes
pdf_spoolid = pdfspoolid
OTF_PAGECOUNT =
btc_jobname = jobname
btc_jobcount = jobcount
TABLES
pdf = pdf
EXCEPTIONS
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 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.
because of this one PDF internal table is obtained.
OPEN DATASET L_FILENAME FOR OUTPUT in text mode MESSAGE MSG.
LOOP AT pdf.
CONCATENATE pdf-tdformat "Material group
pdf-TDLINE "Basic Material
INTO ITEXT-TLINE ..
APPEND ITEXT.
TRANSFER ITEXT TO L_FILENAME.
ENDLOOP. -
PDF files on FTP will not open correctly
Our PDF files open fine from local hard disks, and http locations. However, We are having trouble opening PDF files from a FTP server. After double-clicking on the file, the Adobe 'grey' background loads, and nothing else. At first time it opened fine in all computers, but afterwards it will not open. If we download the files from the server, the same file opens fine. We have tried in different OS like XP, Windows 7, windows 8 with different browsers. same problems occurred.
In all cases, the installed adobe reader was Adobe Reader 9 and above(9, 10&11). After we got one solution that to disable "Protected mode" in reader settings. If we disable protected mode, it is fine.
But the issue is, we have to provide those PDf files to our customers through our website. So we cannot disable it in customer's pc. Any alternate solution for this problem?
Why this problem occurs? How we can overcome from this error?I cannot reproduce this problem with Reader 11.0.2 in Firefox 20.0.1 or IE8 on Windows XP (Protected Mode enabled).
The document I am accessing is ftp://ftp.adobe.com/pub/adobe/acrobatreader/win/5.x/enu/reader.pdf
I have no problems access it mutliple times. -
I created a quiz.
Created an internal server on my compute rising a MAMP.
When I publish my quiz using the multi-file publishing options...
I am able to use both the "HTML" and the "swf" output files to complete a quiz and reporting the results to the quiz results analyzer.
However, I am unable to get the output .pdf field to reporting to the quiz results analyzer.
Any help? Would this issue have to do with the Acrobat Professional setting? Captivate setting? My internal server setting? or output fuel placement?
I tired to put the .pdf file in the same MAMP root folder location as my "internalserverreporting.php and internalserverread.php files.
Thanks for the help.Hello Varun,
You cqan submit the report as a JOB and export the out put to memory, once the job is complete you can read the list to display the output.
Cheers,
Mano
Cut & Paste form SAP help.
Submit report ....
EXPORTING LIST TO MEMORY
Does not display the output list of the called report, but saves it in ABAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. In addition, you must not assign a function code to the ENTER key in the current GUI status. The saved list is read from the SAP memory using the function module 'LIST_FROM_MEMORY' and can then be saved to the database using EXPORT, for example. You can process this list further with the function modules 'WRITE_LIST', 'DISPLAY_LIST' ... of the function group "SLST". -
Arabic output pdf file problem
Hi
I have tried to print a report through oracle application server 10g, but the ARABIC pdf output printed form left to right which is wrong (The correct is from right to left for Arabic).
And the same report we printed in HTML file is appeared OK, that means the report is OK and the problem is in pdf file only.
could anyone help me please?
byeHi
Please could anyone send me a respond?
I haven't received a respond for three days.
by. -
How to output PDF file through XI from PDF form generated in SAP
Hi, All,
I need to generate and send out PDF file to other system through XI. The PDF file source come from SAP PDF form which type is XSTRING. I see there is a similar thread posted here /message/527877#527877 [original link is broken]
but it seems does not have good solution there. Can anybody give a hand?
Useful information will be surely awarded.
YangHi,
Please check the links below to know about conversion agent tool,it is a third party tool which helps to convert the PDF,word doc,HL7 doc......etc into xml format.
This s/w u have to buy from SAP and do the convertion in the convertion agent tool and deploy it in the xi server.
Check the links
http://help.sap.com/saphelp_nw04/helpdata/en/43/6d95e0ac846fcbe10000000a1553f6/CMGetStart.pdf
http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/content.htm
More on the SAP Conversion Agent by Itemfield
Integrate SAP Conversion Agent by Itemfield with SAP XI
Conversion Agent a Free Lunch?
How to get started using Conversion Agent from Itemfield
Conversion Agent - Handling EDI termination characters
https://websmp102.sap-ag.de/~sapdownload/011000358700001090982006E/ConvAgentDocSP16.zip
https://websmp102.sap-ag.de/~sapdownload/011000358700004921152005E/ConversionAgent.pdf
Regards,
Phani -
How to output PDF files in a crystal Report
Hello,
I've some data stored in a database, they are PDFs files data.
How can I include them in a report
For example
I've a Table
MyTABLE with 2 Cols (Name STRING, data byte[]) (in fact it's a .NET/DataSet)
I would like to display the content of my table in a CR
I can include a static PDF in my report, but not a variable one.
Can anyone Help Me ?
Thanks
MarcSomething I don't understand here. PDF vs. .NET Dataset.
If the data is in a .NET Dataset; (in fact it's a .NET/DataSet)
Then all you should need to do is;
crReportDocument.Database.Tables(0).SetDataSource(dataSet.Tables("NAME_OF_TABLE"))
or
crReportDocument.SetDataSource(dataSet)
or
crReportDocument.SetDataSource(dataSet.Tables(0))
How the dataset is created or what is behind the dataset should not be of any consequence. To ensure you get the fresh data, either don't enable the "Saved Data" option, or use .Refresh in your code.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
Getting Error While Attaching Concurrent Program Output PDF file for POAPPRV Workflow
Hi All,
I am getting the below error when I am trying to attach concurrent program output to the PO Approval Notification.
An Error occurred in the following Workflow.
Item Type = POAPPRV
Item Key = 1040589-528378
User Key =945871
Error Name = WF_ERROR
Error Message = [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: [WFMLR_DOCUMENT_ERROR]' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK=
Wf_Notification.GetAttrblob(3604701, ZZ_PREVIOUS_PO_COMPARE, text/html)
WF_XML.GetAttachment(3604701, text/html)
WF_XML.GetAttachments(3604701, http://oraerp.am.corp.xxxx.com:8099/pls/DEV, 11283)
WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 3604701)
WF_XML.Generate(oracle.apps.wf.notification.send, 3604701)
WF_XML.Generate(oracle.apps.wf.notification.send, 3604701)
Wf_Event.setMessage(oracle.apps.wf.notification.send, 3604701, WF_XML.Generate)
Wf_Event.dispatch_internal()
Error Stack =
Activity ID = 190844
Activity Label = AL_NOTIFY_APPROVER_PROCESS:ZZ_PO_PO_APPROVE_ATTCH
Result Code = #MAIL
Notification ID = 3604701
There are several threads for this error however I cannot find any specific solution to the problem.
Please find the code below -
wf_engine.setitemattrdocument(itemtype=>itemtype,
itemkey=> itemkey,
aname=>'ZZ_PREVIOUS_PO_COMPARE',
documentid =>'PLSQLBLOB:zz_po_reqapproval_init1.xx_notif_attachments/' || to_char(l_request_id_prev_po)||':'||to_char(l_document_num));
-- here l_request_id_q_and_s is the request id of the program and l_document_num is the PO document number
PROCEDURE xx_notif_attachments(p_request_id IN VARCHAR2,
p_document_num IN VARCHAR2,
p_document IN OUT BLOB,
p_document_type IN OUT VARCHAR2) IS
v_lob_id NUMBER;
v_document_num VARCHAR2(15);
v_document_prefix VARCHAR2(100);
v_file_name VARCHAR2(500);
v_file_on_os BFILE;
v_temp_lob BLOB;
v_dest_offset NUMBER := 1;
v_src_offset NUMBER := 1;
v_out_file_name VARCHAR2(2000);
v_conc_prog_name VARCHAR2(500);
v_conc_req_id NUMBER;
CURSOR get_output_file(p_concurrent_request_id NUMBER) IS
SELECT cr.outfile_name, cp.concurrent_program_name
FROM fnd_concurrent_requests cr, fnd_concurrent_programs_vl cp
WHERE request_id = p_concurrent_request_id
AND cp.concurrent_program_id = cr.concurrent_program_id;
BEGIN
-- set_debug_context('xx_notif_attach_procedure');
v_conc_req_id := to_number(substr(p_request_id,
1,
instr(p_request_id, ':') - 1));
v_document_num := substr(p_request_id,
instr(p_request_id, ':') + 1,
length(p_request_id) - 2);
OPEN get_output_file(v_conc_req_id);
FETCH get_output_file
INTO v_out_file_name, v_conc_prog_name;
CLOSE get_output_file;
v_out_file_name := substr(v_out_file_name,
instr(v_out_file_name, '/', -1) + 1);
v_file_name := to_char(v_document_num) || '-Previous_PO_Rev.pdf';
utl_file.fcopy(src_location => 'APPS_OUT_DIR',
src_filename => v_out_file_name,
dest_location => 'PO_DATA_DIR',
dest_filename => v_file_name);
-- v_lob_id := to_number(v_document_id);
v_file_on_os := bfilename('PO_DATA_DIR', v_file_name);
dbms_lob.createtemporary(v_temp_lob, cache => FALSE);
dbms_lob.fileopen(v_file_on_os, dbms_lob.file_readonly);
dbms_lob.loadblobfromfile(dest_lob => v_temp_lob,
src_bfile => v_file_on_os,
amount => dbms_lob.getlength(v_file_on_os),
dest_offset => v_dest_offset,
src_offset => v_src_offset);
dbms_lob.fileclose(v_file_on_os);
p_document_type := 'application/pdf;name=' || v_file_name;
dbms_lob.copy(p_document, v_temp_lob, dbms_lob.getlength(v_temp_lob));
EXCEPTION
WHEN OTHERS THEN
wf_core.CONTEXT('ZZ_PO_REQAPPROVAL_INIT1',
'xx_notif_attachments',
v_document_num,
p_request_id);
RAISE;
END xx_notif_attachments;
Please help me find a to the above mentioned error.
Thanks,
SuvigyaThere are two ways to look at what error the PLSQLBLOB API is throwing.
1) Call your PLSQLBLOB API GNE_PO_CREATE_FILE_ATTACHMENT.Gne_Create_File_Attachment directly from a PLSQL block and verify that it returns the BLOB data successfully.
You could also call another WF API that in turn executes the PLSQLBLOB API internally. For example,
<pre>
declare
l_document blob;
l_doctype varchar2(240);
l_aname varchar2(90);
begin
dbms_lob.CreateTemporary(l_document, true, dbms_lob.Session);
-- 207046 - This is the notification id of your failed workflow
-- PO_REPORT - Document type attribute
-- 'text/html' - Content Type being generated for
Wf_Notification.GetAttrBLOB(207046, 'PO_REPORT', 'text/html', l_document, l_doctype, l_aname);
-- Print the size of the document here to verify it was fetched correctly
end;
</pre>
2) Turn on log for SYSADMIN user with following attributes.
Log Enabled = TRUE
Log Level = ERROR
Log Module = wf.plsql%
Restart the Workflow Deferred Agent Listener and Workflow Notification Deferred Agent Listener and run your workflow process. Search for log messages written for above context and you can identify the error at wf.plsql.WF_XML.GetAttachment module with message starting as "Error when getting BLOB attachment ->"
Hope this helps.
Vijay -
Need to view concurrent request output(pdf file of XML report)from OAFpage
Hi,
I am submitting a concurrent request from OA page (on click of submit button).
As of now, to view output of the request user has to open SRS form.
Now the rquirement is to submit the request as well as to open the output file of the request in one action(i.e. on click of submitbutton) instead of going to SRS form to view output.
From the forum, I found out the way to go to request monitoring page and view all the current requests. But this is something different from what I am looking for.
Can somebody help m in this case?
Thanks & Regards
Nitinrefer this link
http://apps2fusion.com/at/ps/286-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page
--prasanna -
Any control over page size when outputting PDF files?
Is there any way to control page size in the Book creation section (currently 8.5 x 11) or to control the final output page size when printing to PDF? I'd like to create some 10x10 pages (so I can print 10x10 photos) using the excellent Aperture book/album layout features.
It looks like this has been discussed in previous posts... I did find a nice workaround though which allows us to make pages with usable dimensions for going to photo printing...other than the 8.5x11 offered by aperture .
-
Printing a PDF document to virtual PDF printer converts text to image in output PDF-file
When I "print" any regular PDF document to a PDF virtual printer, it always converts a source regular (textual) PDF document into an image only document. It applies even to pure plain text documents (say, HTML source code etc.)
(I often need to create a PDF document from the existing PDF. Yes, I know, it might seems quite pointless, but actually it makes sense.)
Thus I have 2 questions:
1) Is such sonvertion normal or I do anything wrong myself?
2) It is by design, is there any woraround to prevent conveting text to image?
Many thanks in advance!Have you checked to see if the "Print As Image" option is inadvertently checked? In the Print dialog, click the Advanced button then look for the checkbox.
-
Pdf file transfer using ftp in java
Hi,
I am tried to get a pdf file from ftp. I am using the following code. This code works fine with .txt files but not with .pdf files. The pdf file generated is empty.
import java.awt.Desktop;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import org.apache.commons.net.ftp.FTPClient;
public class FTPConn {
public static void main(String[] args) throws FileNotFoundException {
FTPClient f = new FTPClient();
try {
f.connect(ip);
f.login("username", "password");
File dir = new File("dir");
dir.mkdir();
File myFile = new File(dir, "myfile19.pdf");
myFile.createNewFile();
FileOutputStream fout = new FileOutputStream(myFile);
String content= fout.toString();
boolean success = f.retrieveFile("/location on ftp/ftp.pdf", fout);
System.out.println("Content :"+content);
if (success) {
fout.flush();
fout.close();
} else {
System.out.println("Reterive failure");
Desktop d = Desktop.getDesktop();
d.open(myFile);
}catch(Exception e){
e.printStackTrace();Hi,
I am tried to get a pdf file from ftp. I am using the following code. This code works fine with .txt files but not with .pdf files. The pdf file generated is empty.
import java.awt.Desktop;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import org.apache.commons.net.ftp.FTPClient;
public class FTPConn {
public static void main(String[] args) throws FileNotFoundException {
FTPClient f = new FTPClient();
try {
f.connect(ip);
f.login("username", "password");
File dir = new File("dir");
dir.mkdir();
File myFile = new File(dir, "myfile19.pdf");
myFile.createNewFile();
FileOutputStream fout = new FileOutputStream(myFile);
String content= fout.toString();
boolean success = f.retrieveFile("/location on ftp/ftp.pdf", fout);
System.out.println("Content :"+content);
if (success) {
fout.flush();
fout.close();
} else {
System.out.println("Reterive failure");
Desktop d = Desktop.getDesktop();
d.open(myFile);
}catch(Exception e){
e.printStackTrace(); -
Unable to read PDF files created by FTP Adapter
Hi,
I am unable to read pdf files generated by FTP Adapter with its default settings.
Can anybody guide me how to proceed with it. I guess I need to change something in encoding mechanism in FTP Adapter Outbound Connection Pool, but not sure what has to be.
Thanks,
RichaHi all,
I have got its solution. I was unable to read .pdf files because FTP adapter was sending the files just by changing the extension from .txt /.xml to .pdf that is the reason that it was not readable.
We had to write an java code to convert .xml file to .pdf file and then paas it to FTP ADapter.
Thanks
Maybe you are looking for
-
i just got my macbook air, less then a week ago, and at least once a day it has frozen and ive had to restart it is there a way to fix that?
-
[Solved] Unable to use ffmpegthumbnailer with videos
Hi, I'd really like to use the ffmpegthumbnailer with my videos to replace the normal video icons. However neither installing totem or ffmpegthumbnailer works as when I open Gconf and go to 'apps > gnome > thumbnailers' and look for those video@foo k
-
Imessage is not connected to my number?
On my send and recieve on imessage my phone number is not connected... All I can connect are emails but I want people to recieve my number on imessage not my email. Called my service provider and Apple but neither could help? Please help! I have an I
-
PC FREE - what about large downloads?
I want to give an ipad to someone, to use " PC FREE ". Will they be able to download large content directly over the iPad's 3G connection? I currently can't download a TV show from iTunes to my iPhone over 3G, for example. They don't have broadban
-
Document Splitting Function in 6.0 deactivation & reactivation
Dear All, At our client site, some user with access to customisation, deactivated the Document Splitting by checking the Inactive Tick for the Company Code. This came to light after some days. This directly affected out Business area balance sheet. N