Program / FM to attach documents to a delivery
Dear All,
Do we have a program or a BAPI to upload a documents (PDFs) to a delivery (VL02N). Requirement is, we will have thousands of deliveries, into which we need to upload documents every month. So, the process has to run as a job.
Thanks in advance.
Ravi
hi,
check the WeblogGeneric object services (GOS) - in Background
[/people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background]
(especially try report ZGOS_BACKGROUD here P_BOTYPE for you should be 'LIKP' )
regards,darek
Similar Messages
-
Program FP_PDF_TEST_16 : PDF attached document
Hi all,
I need to add the document in the Adobe form. I tried to execute the report. But uanble to find the attachment.
I debuged the program but could't find it. I tried the attachment with Word docuement and also with PDF form.
Please let me know how to attach any file(attachment) link to the Adobe form..
Thanks,
PrasadI don´t understand. The report does not work?
Do you want to add the attachment by the machine or by the user?
Please explain further and we can work on this.
Regards Otto -
Attach Documents to Custom Program Using Generic Object Services
Hi There,
I created Object type ZGOS and used in the custom program, when i try to attach documents it allows and then shows in attachment list.
But When I use that program next time that document attached is not available.
Is there any separate save Class or FM available for saving the document to the specified custom program.
I am using following code in the program,
CLEAR obj.
SET OBJECT TYPE TO 'ZGOS'
obj-objtype = objtype.
SET OBJECT KEY = REPORT NAME
SELECT SINGLE name
FROM trdir
INTO obj-objkey
WHERE name = sy-repid.
CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
CREATE OBJECT manager
EXPORTING
is_object = obj
EXCEPTIONS
OTHERS = 1.
Thanks in advance.Check the Naimesh Patel Blog he explain very well
http://help-abap.blogspot.com/2009/02/generic-object-services-gos-toolbar.html -
How to attach documents in Delivery & in Invoice document of SD processing?
Dear Sirs,
Hi,
Can you please suggest me how to attach documents in Delivery & in Invoice document of SD processing?
I could do so in inquiry, quotation, sales order but not able to locate the path in Delivery and in Invoice.
Pl suggest.
regards,
rajni,hi ,
GO to SU3 own parameters then add SD_SWU_ACTIVE and X.
Then in VA02,VL02 (edit mode) You can attach the document to respective orders.
If the intermediate Coupling required then 2nd method for this is
CV01N Create the document and attach document to Document no and line NO.
Regards,
Sam -
Attach document from server to delivery in VL03N in automatic way.
Hello experts,
In Vl03n i have the option to attach document to delivery in this way : service button -
> create attachment
And choose the file that will be attach to this delivery.
After this operation i can display in this document like this way: service button -
> Attachment list.
I want to attach one document that exist in server "
Cilaff01\data$\Sap\Sela\Delivery_Note\file_name" to delivery.
Every time , that the user create or change the delivery in VL02N tcode , will be create attachment from this delivery
To suitable document that exist in server "
Cilaff01\data$\Sap\Sela\Delivery_Note\file_name".
After this operation i will be can display this document like this way: service button -
> Attachment list.
File_name = delivery number. ********
Thanks for the help,
Avi.This is the place where you need to read your file contents:
In case of File attachments
WHEN 'EXT'.
Upload the file contents using open dataset in lt_doc_content .
Some conversion ( Compress ) might be required.
Not sure at this point
Then for the object key - debug to find what is being passed when you attach something to a delivery - alternately look in table SRGBTBREL for details
Here is a typical example:
Rel. type ATTA
Instance ID (INSTID A) <delivery number>
Object Type (TYPEID A) LIKP
Object Category (CATID A) BO
Instance ID (INSTID B) FOL30000000000024EXT36000000000789
Object Type (TYPEID B) MESSAGE
Object Category (CATID B) BO -
How to attach documents at record level using GOS?
Hi Guys,
I have been using GOS for some time now and i am using GOS to attach documents at transaction level.
Now i need to design a utility where the user would first run a report and this report will bring a few records and the output should have an option to attach some PDF files for each record. Is this possible using GOS? Is there any other simple way to attach documents @ record level and not at transaction level? Any pointers??
Cheers
VJtwo options:
1. you want to upload document/view document from your report only.
In this case
a. go to transaction SBDSV1
c. class name = "any name you desire without spaces"
class type = "other objects"
all other parameters copy from any other objects.
once this is done, in your program call fm
call function 'SWU_OBJECT_PUBLISH'
exporting
objtype = 'class name created in stepc'
objkey = 'concatenated devlierynumber item number variable'
exceptions
objtype_not_found = 1
others = 2.
this will bring up the icon for uploading document in the top left corner of your report. (call it after start of selection)
to manually test this process , go to transaction OAOR and use class name, type =OT and the key to view or upload the file.
2. you want to upload/view document from shipment document transaction.
in this case, you need to find the appropriate BO from SWo1 transaction which has go delivery number /item number as the key (for example look at BO LIPS from SWO1)
once this is done you can call the FM mentioned in the previous option by passing the classname and the delivery doc key. the upload/view can alos be done from the standard transaction for that document.
Hope this is clear.
Regards
Raja -
Error while attaching document in cv01n
Hi,
We are attaching document in transaction cv01n,at the time of saving it gives error massege change is not allowed,but still system is saving saving that documet.can anybody suggest solution to avoid error massege.
Thanks,
Vikas warkeI have checked the img setting ,img setting is ok,still it gives program error as below,can you suggest me whether reccomndations can implemented or not.
Note 964021 -Update Task Fails When New Version Created
Note Language: English Version: 2 Validity: Valid from 07.11.2006
Summary
Symptom
Update task fails when a new version of an old document info record is
created using CV02n transaction.The system throws an update terminate
error.
More Terms
UPDATE TERMINATE, MESSAGE 26 178, CV200_DB_DOC_UPDATE, CV02N
Cause and Prerequisites
Program Error
Solution
Implement the note
Header Data
Release Status: Released for Customer
Released on: 07.11.2006 12:13:26
Priority: Correction with medium priority
Category: Program error
Main Component CA-DMS Document management
Valid Releases
Software Component Release From
Release
To Release and Following
SAP_APPL 500 500 500
SAP_APPL 600 600 600
Support Packages
Support Packages Release Package Name
SAP_APPL 500 SAPKH50016
SAP_APPL 600 SAPKH60008
Attributes
Attribute Value
SAP objects CV200_DB_DOC_UPDATE
Transaction codes CV02N,CV03N
Transaktionscodes - manuell CV02N,CV03N
SAP-Objekte - manuell CV200_DB_DOC_UPDATE
DownPort/UpPort-WF UpPort check done, symptom
repaired
Correction Instructions
19.06.2008 Page 1 of 2
Note 964021 -Update Task Fails When New Version Created
Correction
Instructio
ns
Valid
from
Valid
to
Software
Component
Typ
e
Reference
Correction
Last
Changed
518092 500 500 SAP_APPL C P6DK093226 07.11.2006 17:30:29
807328 600 600 SAP_APPL C P7DK042952 13.07.2006 14:50:41
*) C Correction, B Pre-Implementation, A Post-Implementation, M Undetermined
19.06.2008 Page 2 of 2 -
Send Document via message determination/icon which shows attached documents
Dear Friends
We are using DMS (Document Management System) and I would like to know some things:
u2022 I would like to see at item level an icon which shows if the material have attached documents when I am doing my purchase requisition. How can I do it?
u2022 I would like to send to the vendor via message determination the Drawings as an attachment with my request for quotation. How can I do it?
Regards,
Manuel NuñezHi Manuel,
This is not available in standard functions. For this you need help from expert Abap'r who cam write a program for sending mail intimation with purchase requisition as a dms attachment.
Hope this will help.
Regards,
Ravindra -
I am trying to use fnd_webattch.add_attachment API to attach document to an invoice.
But the program seems successfully loaded the attachment to Invoice. But when I try to open the attachment from UI, I got ORA-01403 no data found screen.
Don’t know what’s worng with code, Can someone help?
My pdf file is locate at app and DB servers.
Here is my sql program,
set feedback off
set verify off
set serveroutput on size 100000
set autocommit off
Declare
v_category_id NUMBER;
v_attached_doc_id NUMBER;
v_invoice_id NUMBER :=2814131;
v_invoice_image_url VARCHAR2(500) := NULL;
v_function_name VARCHAR2(50) := 'APXINWKB';
v_category_name VARCHAR2(100) := 'CUSTOM291';
v_description VARCHAR2(300) := 'Test script for attaching OB10 scanned image file to AP invoice';
v_entity_name VARCHAR2(100) := 'AP_INVOICES';
v_file_name VARCHAR2(100) := '/tmp/AMKOR_PRD_0000577922_20130712-151504.pdf';
v_user_id NUMBER := 1234;
TYPE result_set_type IS REF CURSOR;
v_result_set_curr result_set_type;
CURSOR cur_cat_id
IS
SELECT fdc.category_id
FROM fnd_document_categories fdc
WHERE fdc.name = v_category_name;
BEGIN
OPEN cur_cat_id;
FETCH cur_cat_id INTO v_category_id;
CLOSE cur_cat_id;
-- Invoke the fnd_webattach api for attaching the file to the invoice
fnd_webattch.add_attachment ( seq_num => 100
,category_id => v_category_id
,document_description => v_description
,datatype_id => 6
,text => NULL
,file_name => v_file_name
,url => v_invoice_image_url
,function_name => v_function_name
,entity_name => v_entity_name
,pk1_value => v_invoice_id
,pk2_value => NULL
,pk3_value => NULL
,pk4_value => NULL
,pk5_value => NULL
,media_id => NULL
,user_id => v_user_id
,usage_type => 'O'
SELECT count(fad.attached_document_id)
INTO v_attached_doc_id
FROM fnd_attached_documents fad
WHERE fad.pk1_value = v_invoice_id;
IF v_attached_doc_id > 0
THEN
DBMS_OUTPUT.PUT_LINE('Attached sucessfully');
ELSE
DBMS_OUTPUT.PUT_LINE('Failed to Link the Attacment.');
END IF; --IF v_attached_doc_id > 0Hi Hussein,
Yes. I got "Attached Successfully" message at the end.
Don't know why it didn't created FND_LOBS record for it.
My sql was copied from the reference on your reply.
Thanks,
Florence -
Attaching documents stored in iCloud to an e-mail.
I am storing documents in iCloud. I would like to attach a document (or several documents) to an e-mail to send them to clients, other attorneys, etc. I can attach documents stored on my Mac, but how do I attach documents stored in iCloud? I am using Apple's mail program.
When composing a message in Mac Mail, you can access your iCloud Documents by accessing "all my files" from the finder drop-down menu. You can easily access number, pages and keynote documents.
Also, at the top of the screen, next to where it also says "All My Files" you can sort the files by application, type, etc. This will include all documents stored in icloud, whether it's preview, pages, keynote or numbers.
Hope this helps. -
Confirmation by the external vendor: attaching document?
Dear experts,
We are on an SRM 5.0 classic scenario.
We want to use the vendor role SAP_EC_BBP_VENDOR to give the external vendors the opportunity to confirm goods. One of the requirements is that they need to be able to attach documents. However, when using the transaction for the confirmation BBPCF01, we do not see any 'documents' tab. Is it possible to make this available?
Regards,
TomHi Tom,
It's already there i can see in my system.
Hope you have done role assignment for your vendor user" SAP_EC_BBP_VENDOR" once you login with vendor id then left hand side you can see" enter delivery/service" click that now you can click details button thee you find document button. if you couldn't find then let me know.
if it is solved then points please
Thnaks
Ravi -
Print attached document alongwith PO
Hi All
We have a following requirement. Please suggest suitable soultion.
We would like to print the document attached to Purchase Order when we do the PO print.
When we print the PO then attached document should also need to be printed.
Any solution.
Thanks
Yogeshhi,
1. Acually when u print PO, by clicking print priview end prints PO?right.
2. Same time if u using archive linking for original, in that case u would swith on to 'servise fro objec' and print attached original. from me23n.
3.Suppose ur linking DMS document, open in in same TC and print original Document.
note: Print priwiev is controled by Custamized program. dont link with original application files. which are excutables from applcations. i think u have to print saparetly in same transactionn.
Benakaraj
??P -
Need to attach document for Purchase requisition usingBAPI_DOCUMENT_CREATE
Hi All,
Requirement:
Attach document(PDF,TXT etc) for purchase requisition using BSP service.
For this i am finding one function module "BAPI_DOCUMENT_CREATE" please suggest me how to use this function module or its working my requirement or not.
if it possible provide any sample code for BAPI_DOCUMENT_CREATE
So that i can move to another why.
Thanks in advance.
Regards,
Rajeshv.Hi,
Did you check the function module documentation. It contains one example also. Please check that.
BAPI fm BAPI_DOCUMENT_CREATE is internally calling this BAPI. Please check how it is calling.
Please alos check program LWPLGF06. I think it has similar code.
Thanks,
Ramakrishna
Message was edited by: Ramakrishna Prasad Ramisetti -
Automatic Archiving without losing the attached document ?
Hi Experts,
I wanted to go ahead with retention period so that documents will get auto archived after retention period.
But since my last post (and your expert opinion), I understood that there is nothing like Retention period in DMS.
If we want to achieve the mention functionality ...we need to do some developments.
Now lets say I deletes the required documents with the help of program or CV04N...my next job is to archive the deleted (marked for deletion) documents....AUTOMATICALLY.
2nd thing is after archival I should be able to see my attached document with DIR when I retrieve the archived DIR.
waiting for suggestions..
Kind Regards,
SunilArchiving is in itself a separate engagement which needs planning.You can move the data to an external offline system bearing in mind the statutory data retention rules. You can also store the archived data on tapes or optical devices depending on the frequency of access.
The below links illustrate techniques to archive and store data onto these external systems
http://www.thespot4sap.com/articles/SAP_Data_Archiving_ADK_ArchiveLink.asp
http://help.sap.com/saphelp_nw70/helpdata/en/ad/b594429d7c0631e10000000a1550b0/content.htm
Regards,
Pradeepkumar Haragoldavar -
Attach documents to a shopping cart at header level
Hello,
I am currently working on SRM 5.0 in Classic scenario. We are going to implement attachement of documents functionality with transfer of documents to ECC.
As far as I know, documents can only be attached to the posts of the shopping cart.
In our case, if for example a requester create a shopping with 3 lines and only attach 1 document to the first line. In case, the approver delete the 1st line (the one you have attach your document) it is quite problematic.
So would it be possible to attach documents to the header of the shopping cart or not? (by implementing a note or is it always by developping a specific program?)
Has someone already had to cope with this probleme and would he/she have advices to handle the issue?
Thanks a lot for your help!
Regards,
morganeHello morgane
As per i know i believe approver neither delete the attachment nor update the cart but he can either approve or reject the cart.However BBP_WFL_SECUR_BADI may help you to change the SC during approval upon the user settings
for eg. 3 line items may create one PO if all vendors are same or if vendors are unique, it will create a 3 different po. so no concepts of header here in shopiing card.
all sc informations will be transfered to follow on document as per standard.
for eg. if you attach one document into one line item ,this line item document will be transfered to responding purchase order.
regards
Muthu
Maybe you are looking for
-
Why won't my iPhone vibrate anymore?
Why won't my iPhone vibrate anymore?
-
Hi everyone, I had a cup of milk spill on my macbook pro (early 2008 model) yesterday. I took the battery out and disconnected the power as fast as I could. I took the laptop apart completely and started cleaned up the huge mess. To do this I had to
-
Activate 3Gb option in Windows Database Oracle 10g
Hi We are facing ORA 4030 - Oracle Out of memory issues after upgrade to Oracle 10.2.0.4 (32 Bit Machine). We want to activate the 3GB option in Windows by adding /3GB at the end of boot.ini file. We will make sure to take the backup of boot.ini fil
-
Autorun.dll missing Error code 0x7e
I am trying to install SharePoint 2013 on my Laptop running Windows server 2012. The SharePoint copy is a file downloaded from Microsoft site an evaluation one. The prerequisites were installed successfully and, when I click the install SharePoint s
-
How to transfer photos from curve 9300 to pc in a Vista OS
How do I transfer photos taken by my Blackberry Curve 9300 to my pc, which uses a Vista OS? With the Blackberry Desktop software I synchronized the data and I backed up the phone, but I cannot find the photos on the pc. The backup files cannot be o