Invoice Attachment
We are getting Invoices from our Vendors with the Attachment.
After it comes into XI, the Invoice Data and the Attachment(PDF) needs to be separated and then needs to be sent into R/3 system. The Invoice data goes into R/3 as an IDOC.
How should I achieve this in Message Mapping? How to separate the Invoice data and the PDF Attachment?
The adapters needs to be used?
Thanks.
That is not possible out of the box. Most adapters like RFC adapter, BPM and mapping cannot deal with attachments.
When your application system is based on 6.20, you could create an ABAP proxy which deals with the attachment and calls inside the IDOC and the RFC.
Another approach is using a Java Proxy which runs on the XI server. It receives the message and sends two seperate messages out, one for the invoice, one for the attachment.
You could use as well an adapter module, but you can only combine the invoice and the attachment to one payload and do a message split with different mappings later.
Here an idea for an adapter module:
/people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
Regards
Stefan
Similar Messages
-
Invoice attachment to R/3 system
Hi ,
I have created an invoice without reference to a PO in SRM 7.0.
I performed the following steps.
1. from role Invoicing --> Overview --> Invoice processing --> Created documents --> Invoice create an
invoice.
2. In the notes and attachment tab add an attachment ( a word doc
e.g. "test.doc" )
3. Make sure invoice is in approved state.
4. in BBP_PD transaction in SRM ABAP system check the attachment.
5. Go to Tracking tab and get the Back end document number.
6. Go to FB03 transaction in R/3 system and enter the document and
Company code to view the document
7.In document overview , go to attachment list and try to locate the
attachment.
8. Attachment was missing.
how can i transfer this attachment in back end R/3 system?
Regards,
Ashish ShahThis feature is not possible,
Got the following response from SAP:
Unfortunately, I can not provide a solution for you. Once the invoices
are transferred from SRM to Backend via IDOC funcionality it is not
possible to use this to transfer attached files.
This is the standard system design.
Regards,
Ashish Shah -
Invoice Attachment in MIRO/MIRA
Hi All,
Please let me know how invoice pdf can attach in MIRO/MIRA.
I am an abaper and I am facing an issue where the attached pdf values( Invoice no and PO no ) and the screen values are not matching.
Please let me know, is the pdf is attaching manually or whether the attachment will create automatically once the invoice is entered in the system.
Regards,
Nikhil V.KumarHi ,
We are using same process and attached the invoice to the PO Line Item,
So you always can see it from the MIRO, or finance documents ( Drill down to PO )
Regards,
Moshe -
Mail with invoice attachment. How to?
Hi... With the client, you can email an invoice (jpg attachment).. In the SDK you can also send emails using the Message-object, but is it possible to make the jpg-file as attachment... I can't see how...
Hi Rasmus,
Using the DI API SBO 2004 can only create a .xml version of the invoice (to create the .jpg is impossible) and attach that to the Mail. You would have to find a way to create a .jpg document and then attach that. It has been mentioned that you could send the document to a ".jpg printer" as you would send a word document to a ".pdf printer" and then attach that file to your mail -
Invoice attached to email as pdf
hello,
our customers have asked us if it is possible to attach a copy of their purchase invoice to their confirmation email as a pdf.
has anyone been able to do this?
or does anyone know how this could potentially be done?
thanks in advance for the help.BC can't do it out of the box, you could use the BC notification API to a 3rd party service that goes to a specially created page on your BC and converts the HTML into a PDF and then emails it. You would have to find a service that does this, build your own or get someone (me) to build it for you.
-
Hello Experts!
I am trying to see if there are any SQL queries that can be written so that whenever the Open Invoice Interface is run, if that can also pull in and attach the associated invoice that we have on a shared drive and attach it to the corresponding invoice? We want to be able to attach invoices automatically so that we do not have to go in and click on the paper clip every time and add the scanned or electronic invoices manually. Is there any cost effective way of doing this without having to implementing another Oracle solution? We are currently in Oracle 11.5.10.2.
Thanks!
Edited by: 990255 on Feb 25, 2013 2:48 PMOption #1: This is an UNSUPPORTED SOLUTION. Manually insert records into the FND attachment tables once the invoice gets created.
Option #2: Keep the file in shared folder and send the file URL/link in one of the attribute value to the interface; Enable Zoom function in the custom.pll to launch the URL/LINK when user clicks ZOOM button. Also you can try with forms personalization to launch URL / Link instead of customization. -
Interface for AR INVOICE attachment
Hi,
i insert to RA_INTERFACE_LINES_ALL interface for doing conversion for my AR invoice. But recently my customer wants to use the attachment on AR INVOICE and AR INVOICE LINE for storing some information.
What is the interface table name that i can use? i notice the base table is fnd_documents_short_text. What is the SQL statement to show the result given the AR INVOICE TRX NUMBER?using 12.1.3
the attachment type is short text.
any interface table available? -
HI,
I use E-Finance as a web based application for managing company purchase orders.
It allows to drill into our Finance system and view Invoice documents that have been previously scanned.
I can do this using Internet explorer, but I don't seem to be able to in Firefox. I believe it to be linked to the Internet Security settings on the PC, but I cannot find in FIrefox similar options to those in the Advanced tab in Internet explorer.It seems no one here is familiar with this application.
Which IE settings need to be changed? While Firefox doesn't have the same approach to security (e.g., by "zone") there may be some parallels.
In case the problem is the built-in PDF viewer introduced in Firefox 19, try the steps in this article: [[How to disable the built-in PDF viewer and use another viewer]].
Does that make any difference? -
Hi
I need to have attachment sent my the workflow mailer...
i followed the below steps.
In the standard oracle workflow - APINV
created a attribute 'XXX_TEST_ATTR'
created a message and attached the attribute "XXX_TEST_ATTR" to it...
i have created a custom pkg XXX_AP_WFAPPROVAL_PKG which is the copy of AP_WFAPPROVAL_PKG
and added the below code in the procedure notification_handler
select fl.file_id
into l_file_id
from
ap_invoices_all ai,
FND_ATTACHED_DOCS_FORM_VL fad,
fnd_lobs fl
where ai.invoice_id= fad.pk1_value
and fad.MEDIA_ID = fl.file_id
and ai.invoice_id =substr(itemkey, 1, instr(itemkey,'_')-1)
group by fl.file_id;
wf_engine.setitemattrdocument
(itemtype=>itemtype
, itemkey=>itemkey
, aname=>XXX_TEST_ATTR'
, documentid =>'PLSQLBLOB:xxx_workflow_pkg.xx_notif_attach_procedure/' || to_char(l_file_id));
In the workflow i have replaced the AP_WFAPPROVAL_PKG.notification_handler --> XXX_AP_WFAPPROVAL_PKG.notification_handler
i am getting the mailer notification... the standard functionality, but i am not getting the attachment document(word doc) for which the workflow is modified..
can you pls help me out... where i went wrong...
Regards
YramHi Varun
Thanks for your response...
due to the limitation in the uploading the pkg...(size of the pkg XXX_AP_WFAPPROVAL_PKG is exceeding the limit)... i have not uploaded the pkg....
do find the pkg xxx_workflow_pkg which is called in the XXX_AP_WFAPPROVAL_PKG.notification_handler
1. let me know where to use the below code
select fl.file_id
into l_file_id
from
ap_invoices_all ai,
FND_ATTACHED_DOCS_FORM_VL fad,
fnd_lobs fl
where ai.invoice_id= fad.pk1_value
and fad.MEDIA_ID = fl.file_id
and ai.invoice_id =substr(itemkey, 1, instr(itemkey,'_')-1)
group by fl.file_id;
wf_engine.setitemattrdocument
(itemtype=>itemtype
, itemkey=>itemkey
, aname=>XXX_TEST_ATTR'
, documentid =>'PLSQLBLOB:xxx_workflow_pkg.xx_notif_attach_procedure/' || to_char(l_file_id));
--pkg xx_workflow_pkg
CREATE OR REPLACE package body APPS.xxx_workflow_pkg is
PROCEDURE xx_notif_attach_procedure
document_id IN VARCHAR2
,display_type IN VARCHAR2
,document IN OUT BLOB
,document_type IN OUT VARCHAR2
) IS
lob_id NUMBER;
bdoc BLOB;
content_type VARCHAR2(100);
filename VARCHAR2(300);
BEGIN
--set_debug_context('xx_notif_attach_procedure');
lob_id := to_number(document_id);
-- Obtain the BLOB version of the document
SELECT file_name
,file_content_type
,file_data
INTO filename
,content_type
,bdoc
FROM fnd_lobs
WHERE file_id = lob_id;
document_type := content_type || ';name=' || filename;
dbms_lob.copy(document, bdoc, dbms_lob.getlength(bdoc));
EXCEPTION
WHEN OTHERS THEN
--debug('ERROR ^^^^0018 ' || SQLERRM);
wf_core.CONTEXT('xx_g4g_package'
,'xx_notif_attach_procedure'
,document_id
,display_type);
RAISE;
END xx_notif_attach_procedure;
end xxx_workflow_pkg;
Regards
Yram -
Hi
The below code is the part of the custom code in the PKG AP_WFAPPROVAL_PKG
i observed that "'PLSQLBLOB:xxx_workflow_pkg.xx_notif_attach_procedure/' || to_char(l_file_id));" is not working by adding debug msg, temp table.
Can you let me know how to use 'PLSQLBLOB:xxx_workflow_pkg.xx_notif_attach_procedure/' || to_char(l_file_id))
in the package (AP_WFAPPROVAL_PKG) ...
select fl.file_id
into l_file_id
from
ap_invoices_all ai,
FND_ATTACHED_DOCS_FORM_VL fad,
fnd_lobs fl
where ai.invoice_id= fad.pk1_value
and fad.MEDIA_ID = fl.file_id
and ai.invoice_id =substr(itemkey, 1, instr(itemkey,'_')-1)
group by fl.file_id;
wf_engine.setitemattrdocument
(itemtype=>itemtype
, itemkey=>itemkey
, aname=>XXX_TEST_ATTR'
, documentid =>'PLSQLBLOB:xxx_workflow_pkg.xx_notif_attach_procedure/' || to_char(l_file_id));
Regards
YramHi Varun
Thanks for your response...
due to the limitation in the uploading the pkg...(size of the pkg XXX_AP_WFAPPROVAL_PKG is exceeding the limit)... i have not uploaded the pkg....
do find the pkg xxx_workflow_pkg which is called in the XXX_AP_WFAPPROVAL_PKG.notification_handler
1. let me know where to use the below code
select fl.file_id
into l_file_id
from
ap_invoices_all ai,
FND_ATTACHED_DOCS_FORM_VL fad,
fnd_lobs fl
where ai.invoice_id= fad.pk1_value
and fad.MEDIA_ID = fl.file_id
and ai.invoice_id =substr(itemkey, 1, instr(itemkey,'_')-1)
group by fl.file_id;
wf_engine.setitemattrdocument
(itemtype=>itemtype
, itemkey=>itemkey
, aname=>XXX_TEST_ATTR'
, documentid =>'PLSQLBLOB:xxx_workflow_pkg.xx_notif_attach_procedure/' || to_char(l_file_id));
--pkg xx_workflow_pkg
CREATE OR REPLACE package body APPS.xxx_workflow_pkg is
PROCEDURE xx_notif_attach_procedure
document_id IN VARCHAR2
,display_type IN VARCHAR2
,document IN OUT BLOB
,document_type IN OUT VARCHAR2
) IS
lob_id NUMBER;
bdoc BLOB;
content_type VARCHAR2(100);
filename VARCHAR2(300);
BEGIN
--set_debug_context('xx_notif_attach_procedure');
lob_id := to_number(document_id);
-- Obtain the BLOB version of the document
SELECT file_name
,file_content_type
,file_data
INTO filename
,content_type
,bdoc
FROM fnd_lobs
WHERE file_id = lob_id;
document_type := content_type || ';name=' || filename;
dbms_lob.copy(document, bdoc, dbms_lob.getlength(bdoc));
EXCEPTION
WHEN OTHERS THEN
--debug('ERROR ^^^^0018 ' || SQLERRM);
wf_core.CONTEXT('xx_g4g_package'
,'xx_notif_attach_procedure'
,document_id
,display_type);
RAISE;
END xx_notif_attach_procedure;
end xxx_workflow_pkg;
Regards
Yram -
A/P invoice and stock posting
Hi
I have some issues with understanding the following:
I have received some item without having issued a PO for them. For these items, master data exists .
As common practice with a lot of suppliers, there is no Invoice attached to the shipping, only a delivery note.
If I post the items to stock using 'Goods receipt' and use A/P invoice some days after when the invoice arrives, I have doubled the received quantity by posting the items to the stock twice.
What is the solution to have the items posted to stock immediately for further usage and adding the A/P invoice later but without stock posting?
Thanks
FranzHi Franz,
When an AP Invoice is based on a Goods Receipt PO there will be no double posting, not for Warehouse quantites or in the accounting.
An AP Invoice that is based on a Goods Receipt PO where nothing was changed between the Goods Receipt and the Invoice the AP Invoice will NOT post to stock. The stock posting was already done on the Goods Receipt.
Most documents can be cancelled, either by basing a reverse documents or by cancelling. For every each one of them the quantities and accounts postings follow the logic of continuous stock.
Goods Receipt PO -> Reversed by a Goods Return
AP Invoice -> Reversed by an AP Credit Note.
Please note that there are NO double entries anywhere when a document is based on another.
I hope it helps.
Jesper -
How to get the image stored in archieve link as an attachment in work item.
Hi All,
through transaction OAWD we are storing scanned images.
Once this transaction is executed a workitem appears in the inbox of the initiator with the scanned invoice as attachment.
When the user executes the work item FV60 screen is displayed where the user enters the data based on the scanned invoice attachment.
After the user Parks the document the custom workflow triggers and a workitem appears in the inbox of an approver.
Our requirement is that the scanned image should also appear as the attachment.
Can you please suggest how to get the image stored in archieve link as an attachment in work item.
Regards
ShraddhaHi Martin,
with every parked document a scanned image is linked.
I need to create a link under objects and attachments in the work item, such that when the user clicks that link the image is displayed.
At present the following functionality is available.
The BO used is FIPP
Objects and attachments:
parkeddocument:AK0108500001252008.(via FIPP binding with WIOBJECT_ID)
On clicking the link below objects and attachments: the parked document AK0108500001252008 opens in display mode.
Now we want to have 2 links:
parkeddocument:AK0108500001252008.
image.
When we click on the link image then the scanned invoice linked to the document should get opened.
I am able to get the image id of the the image through SAP_WAPI_GET__OBJECTS,
export parameter leading_object provides the detail.
But I am not able to figure out how to use it in my workflow to display it as an attachment.
Hope this will give a better understanding of my question.
can you please suggest as to how I should proceed with it. -
Posting invoices in F-43 where items have different VAT codes
Hi,
I am not sure whether I am in the correct forum so just boot me into the correct one if I guessed incorrectly.
I have to start by saying I have almost no FI knowledge and it seems no-one in the business has enough FI applications knowledge. I am thus flying blind.
So while the company I am used to working in has MM integration which makes things a lot easier, they set up a sister company where they only want FI.
The sister company is located in UK and I set up tax codes for them
0%, 17.5% and the other 0%.
Our finance team advised them to use f-43 to enter the invoices, attach the vat code and away they go.
The problem comes when some items on the actual invoice has 17.5% and some have 0%. This means the vat % on the total varies.
They are requesting the ability to override the % or the vat value, but still have the invoice recorded with a VAT code so that they can run VAT reports.
I am sure that there must be SAP standard ways to solve this, but I don't know yet where to look and I don't have enough time to really start from scratch.
Any help will be useful.Hi Charl,
What ever you are asking is against the procedure.... System has to calculate the VAT amount based on the stated percentage....
So you can not chagne the VAT % or VAT value while posting the transaction.... But what you can do is to change the Tax base amount....
When you are posting the invoice, system automatically takes the invoice value as bais for tax calculation, but one can change the Tax base value. So if user changed that value, system calculates the VAT amout on the modified base....
In this way you can change the VAT amount....
Thanks & Regards
Ravi C -
How can I download printable invoices for our monthly Creative Cloud payments?
This is killing me. How can I have spent almost an hour and yet for the life of me, cannot find anywhere on the Adobe site that will let me view, print, download invoices for our monthly subscription payments? I go to My Orders, but all that is there is our initial Creative Cloud subscription payment. Can't find previous months payments anywhere.
Why is this so difficult?
Every month or so our accounts department is on my back asking for the invoices so they can match it up with the company credit card records. And every time, this is an issue.
Most companies we work with send an invoice paid email with the invoice attached as a PDF. Isn't that better than the standard Confirmation: We received your Adobe Creative Cloud payment email that gets sent out? What good is it if we can't find any reference for such payment?
Sorry guys, I'm just really furious that I am wasting so much time on such a menial task while I have deadlines looming.
Also, it's been over 30 minutes and I'm still waiting for the 9 minutes web chat said it would take for an operator to get back to me.Hi Mversion76,
This thread might be helpful
http://forums.adobe.com/message/4498407#4498407#4498407#4498407
-Dave -
Hi All,
I have a created a custom workflow which sends pdf files to the user.I created a document attribute and attached to the message.Im able to see the pdf file in the application notofiaction but not in the email as attachment.any clue why Im not seeing the attachment in my email?
Please help!
Thanks
ThomasREPORT ysam_im_test_wf.
INCLUDE <cntn01>.
TYPE-POOLS: swlc.
INCLUDE <symbol>.
DATA :
lv_header TYPE swr_att_header,
lv_objsofm TYPE swotobjid-objtype,
lv_objtkey TYPE swotobjid-objkey.
* ls_fitment TYPE r_fitment_mstr,
DATA : lv_xstring TYPE xstring,
att_id TYPE swr_att_id,
lv_return TYPE sy-subrc.
DATA : bo_sofm TYPE swc_object .
DATA: l_docwrapper1 TYPE xstring,
l_existence(1) TYPE c.
DATA: t_message_lines TYPE swr_messag OCCURS 0 WITH HEADER LINE.
PARAMETERS: p_wid TYPE swr_struct-workitemid.
START-OF-SELECTION .
CALL FUNCTION 'ZGEN_IMAGE_DATA_GET'
EXPORTING
i_zuonr = '100028'
IMPORTING
l_docwrapper1 = l_docwrapper1
existence = l_existence
EXCEPTIONS
service_call_error = 1
file_download_error = 2
browser_invoke_error = 3
OTHERS = 4.
lv_xstring = l_docwrapper1.
IF lv_xstring IS NOT INITIAL.
UPDATE tvarv SET low = 'XSTRING'
WHERE name = 'ZSAMTEST1'.
lv_header-file_type = 'B'.
lv_header-file_name = 'Invoice Attachment'.
lv_header-file_extension = 'PDF'.
lv_header-language = 'EN'.
CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
EXPORTING
workitem_id = p_wid
att_header = lv_header
att_bin = lv_xstring
IMPORTING
return_code = lv_return
att_id = att_id
TABLES
message_lines = t_message_lines.
IF lv_return = 0.
lv_objtkey = att_id-doc_id.
lv_objsofm = 'SOFM'.
swc_create_object bo_sofm lv_objsofm lv_objtkey.
ENDIF. " IF lv_return = 0
ELSE.
att_id = 0.
lv_objtkey = att_id-doc_id.
swc_create_object bo_sofm lv_objsofm lv_objtkey.
ENDIF.
Maybe you are looking for
-
I had FF 4.0 Beta 12. While deleting some Wild Tangent games, everything went black and I haven't been able to get to Firefox since, (about 7-8 weeks. I click on the desktop icon for FF and I do get the FF screen with the FF icon on top left and the
-
Inbound idoc not displayed in WE02
Hello All, I have two different sending and receiving SAP system for IDocs. I am trying to learn ALE scenario. For this purpose, I created everything on my own on the sending system viz. idoc segments, idoc type, message type, rfc destination, port,
-
Hi Experts, I'm working on a new WCEM 3.0 implementation and get a strange error. The installation is using SAP ECC as a backend, and we are using SAP ECC 5.0 SP9. WCEM is installed on a NW 7.3 SP8. Products can be added to the shopping basket, but
-
Hello, Is there ant t.code on PO list with below data? (I tried ME2L, ME2M ) Period: Date of the request, who made it, who approved. Purchase order: Date, Order Number, who made it. Status: closed or open.
-
Missing fonts when saving in another directory
I made a page (the index), put a web font, the css and font is saved in a directory and is ok, the page looks perfect in browser, now i save the same page with another name in another directory and dreamweaver ask me "Do you want to update the links?