07-02-2007 9:46 PM
Hi All,
I am working in SAP GTS (Global trade service) project.
My requirement is to attach a document (doc, pdf, xls, jpeg) to the customs declaration document.
I had to do this via a report program. This program will run every night. It will attach the document for the document number created for the day.
How do I proceed....
I read some threads relating to this requirement, but I do I implement it in a program...
1. First I had to do the attachment
2. I had to link the attachment to the document no
How to proceed... please help......
07-02-2007 10:16 PM
07-02-2007 10:16 PM
07-02-2007 10:34 PM
Hi ,
The files are PC files.. These files are stored in a server and the file name corresponds to the document no....
So... I have to read the document nos from the table and have to attach the document ( which is in the PC folder) which corresponds to the doc. number
Thanks....
07-02-2007 10:40 PM
Your first issue is that this program will not be able to run in background if the files are on the frontend PC or other server. If that is ok, then I have a funciton module which you pass the file path and name, the business object id, and key and it will automatically upload to the GOS of that document number. Can this program be ran in foreground?
Regards,
RIch Heilman
07-02-2007 10:52 PM
Hi...
Thanks....
Give me the function module.... I'll try it out...
Thanks really....
07-02-2007 10:54 PM
07-02-2007 10:57 PM
07-02-2007 11:03 PM
Actually it appears that I do not have access to the system at the moment, if you send me an email(on my business card) I can get it to you in the morning.
Also,if you are interested, the code within this function module uses alot of the code seen here, just modified to upload from a filepath/filename.
/people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background
REgards,
RIch Heilman
07-02-2007 11:04 PM
07-03-2007 12:23 AM
Hi Rich,
Thanks for your immediate replies.
I got a clue now... and now I am proceeding with the code...
If I have any doubts, I will post it to the same thread....
Please help...
Thanks,
Jaffer Ali.S
07-03-2007 6:55 AM
check out this function module (for foreground only)
BDS_BUSINESSDOCUMENT_CREATEF
on how to use this fm, search this forum, i have already given sample codes