SOFFPHIO and GOS attachment
Hi all
Users are using the Generic Object Services to attach the PC document, the documents are normally stored in the database (SOFFCONT1).
So to store externally the documents using kpro, i assign the SOFFPHIO document class to SOFFHTTP using TCode SKPR08. So that all the document goes to the content server.
My doubt is how the GOS-create attachment is connected to SOFFPHIO class. I saw SOFFPHIO table also available.
Once i attached the pdf or xls document using GOS create attachment, SOFFPHIO automatically trigerrs to save
the file in content server? or any setting is required in middle.
Pls confirm.
Regards
ckumar
thanks
Similar Messages
-
Hi
I understood GOS attachment(Contents of PC attachment ) file is stored in SAP table SOFFCONT1 and SOC3.
But i could not understand how GOS attachment can be stored using Kpro to external server.
SAP note explains documents are stored using Kpro. how the Kpro setting is done to save the attachment in external server.
I referred sdn forums and SAP help. but no body explains about how kpro is linked with GOS attachment.
Pls shed light on this.
Regards
ckumarthanks..found its linked with Bussiness workplace..thanks
-
Services for Object (GOS) Attachement List not showing after attachment
Hi All,
I have created a new entry for the Generic Object Service List and this links to a copy of the CL_GOS_SRV_ATTACHMENT_CREATE class (Create attachment) with some additional logic. However, after attaching a file, the "Attachment List" does not become available until after I re-enter the transaction. The attachment list is showing the correct attachments.
After some (understatement...) investigation, I found that even if I try and link the new service to a unchanged copy of the CL_GOS_SRV_ATTACHMENT_CREATE service in SGOSATTR, it is not working. It is attaching fine, but the "Attachment List" entry in the Services for Object Menu is still greyed out. If I attach the original class CL_GOS_SRV_ATTACHMENT_CREATE to the newly created entry it works fine. e.g. straight after I attach a file to the transaction, the menu entry becomes available.
I can't find where the re-draw of the GOS menu happens and hence can not determine what is going wrong. Does anybody know if this is part of the Kernel or is this actually done in ABAP ?
Am I missing something ? Debugging including system debugging for two days now and can't find it... very frustrating.
Any help would be appreciated.
Thanks,
Wouter.Hi Wouter,
I had originally posted to ask if you had resolved this since I was facing the same issue, but then deleted my post when I was able to get it working. Sorry, I didn't mean to initiate a flurry of activity in such an old thread.
My scenario is I created a new GOS service entry in table SGOSATTR using transaction SGOSM. My new service uploads attachments to an external document management system via a call to a RESTful web service. The class I use in the SGOSM entry is a custom subclass of CL_GOS_SRV_URL_CREATE.
I resolved this issue by taking a look at what CL_GOS_SRV_URL_CREATE does in its EXECUTE method. The key bits to refresh the GOS Attachment List with the new attachment are...
raise event commit_required. " if SGOSM has the commit flag checked
raise event service_succeeded
exporting eo_service = me.
These events tell any subscribers to go do their thing-- which in this case includes a refresh of the GOS Attachment List. So in the EXECUTE method of my custom subclass, after I call function BINARY_RELATION_CREATE, I raise these events...
CALL FUNCTION 'BINARY_RELATION_CREATE'
EXPORTING
obj_rolea = gs_object
obj_roleb = rel_doc
relationtype = 'URL'
EXCEPTIONS
OTHERS = 1.
CASE sy-subrc.
WHEN 0.
MESSAGE s043(sgos_msg). " The attachment was successfully created
RAISE EVENT commit_required.
RAISE EVENT service_succeeded
EXPORTING eo_service = me.
WHEN OTHERS.
MESSAGE s042(sgos_msg). " The attachment has not been created
ENDCASE.
I hope this is helpful to you even though your initial implementation was a while back. Thanks for replying to my question though!!
Cheers,
Amy -
How to transfer GOS attachment to my work item
Hi Friends,
I have the following requirement. The user while creating a Appropriation request in tcode IMA1N will create an attachment using Generic Object Services(GOS). once he saves my workflow will trigger and it will go to approval. I need to show the attachment created using GOS in my Work item. How to achieve this. Please advice.I have some annotations:
The object type ARCHIVE is for archived Data Files from the DataArchiving. The object type for ArchiveLink documents is IMAGE
The default method is .Display to display the document.
The GOS-Attachment is not a SAP ArchiveLink document. This attachment is stored in SOOD and linked via the GOS-relationship table SRGBTBREL
The business object, that can be used here is: SOFM
The object instance needs to be found with a custom self-made background method, to find the correct link and create an object instance.
After that, this instance can be used as a secondary method in the work item's execution or attached to the ADHOCOBJECTS as already mentioned here.
Good luck,
Florin
P.S.: Similar reply cross-posted to SAP-WUG -
Hi All,
I am developing a program to retrieve the GOS attachment from PO attachment and send to the vendor through email. Kindly advise me to resolve this problem because I have no idea how to retrieve the attachment from the GOS table.
Many thanks and best regards,
Ting Wei HongHi,
There is a class CL_GOS_MANAGER. Use that.
See here for an example:
data: o_gos type ref to cl_gos_manager.
data: o_att type ref to cl_gos_attachments.
data: ls_borident type borident.
ls_borident-objkey = gs_data-vgbel.
ls_borident-objtype = zcl_word=>co_busobject_worddocument.
free o_gos.
create object o_gos
exporting
ip_no_commit = space.
call method o_gos->start_service_direct
exporting
ip_service = 'VIEW_ATTA'
is_object = ls_borident
exceptions
no_object = 1
object_invalid = 2
execution_failed = 3
others = 4.
if sy-subrc <> 0.
message 'Geen bijlagen aanwezig. Toolbox wordt getoond' type 'S'.
o_gos->display_toolbox( is_object = ls_borident ).
else.
message 'Bijlagen aangepast' type 'S'.
endif. -
Hallo Gurus,
I need Your help!
Is it possible to use a Gos attachment in a Module Pool?
I have an image on material master data, and I would like to show it on a dynpro (for example with cl_gui_picture).
I have read the attachment with function SO_DOCUMENT_READ_API1 but then I don't know how to use the result.
Can anybody help me?
Thank you very much indeed!try
CALL FUNCTION 'SO_DOCUMENT_READ_API1
EXPORTING
DOCUMENT_ID = <doc>
FILTER = FILTER
IMPORTING
DOCUMENT_DATA = <DOCUMENT_DATA>
TABLES
OBJECT_HEADER = OBJECT_HEADER
OBJECT_CONTENT = OBJECT_CONTENT
* OBJECT_PARA =
* OBJECT_PARB =
* ATTACHMENT_LIST =
* RECEIVER_LIST =
CONTENTS_HEX = CONTENTS_HEX
EXCEPTIONS
DOCUMENT_ID_NOT_EXIST = 1
OPERATION_NO_AUTHORIZATION = 2
X_ERROR = 3
OTHERS = 4 -
Hi Experts,
I'm not ABAPer at all. Here are only my suppositions and please do not judge me strictly.
I need to upload PDF file as a GOS attachment to the QM notification from external system (SAP MII) using RFC. As I found out there is no remote-enabled FM for this. There is only SGOS_NOTE_CREATE for notes. I investigated it and found out that all FM's that are used inside it are remote-enabled.
Question: is it possible to call from my external system same 3 FMs as in SGOS_NOTE_CREATE (SO_FOLDER_ROOT_ID_GET, SO_OBJECT_INSERT, BINARY_RELATION_CREATE_COMMIT) to create attachment instead of note? I guess that in general i need to provide SO_OBJECT_INSERT with some other parameters than it is done in SGOS_NOTE_CREATE, so it will create attachment-object instead of note-object in SAPoffice. Is this way possible, or there should be more steps to create attachment?
thanks in advace,
PetrHi,
In the above code what is is_object and attachment parameters corresponds to. What are the values needs to used in this parameters.
data: l_object_id_loio type SDOKOBJECT,
l_object_id_phio type SDOKOBJECT.
call function 'SO_LOIO_PHIO_CREATE'
importing
loio_object = l_object_id_loio
phio_object = l_object_id_phio
exceptions
kpro_model_error = 103
x_error = 1000
others = 1000
call function 'SO_KPRO_DATA_INTO_OBJCONT_PUT'
exporting
loio_object = l_object_id_loio
tables
* CONTEXT =
objcont = i_objcont.
x_obj_data-file_ext = 'HTM'.
x_obj_data-OBJPRI = '5'.
x_obj_data-extct = 'K'.
x_obj_data-objla = sy-langu.
x_obj_data-objdes = '000004280212022400687486'. "wa_attach-filename.
x_obj_data-objlen = LINES( i_bin_data ) * 255. "i_soli_size. 000000007319
CONDENSE x_obj_data-objlen.
CONCATENATE '&SO_FILENAME=' '000004280212022400687486.htm' INTO x_objhead. "wa_attach-filename INTO wa_content.
APPEND x_objhead TO i_objhead.
x_objhead = '&SO_FORMAT=BIN' .
APPEND x_objhead TO i_objhead.
CALL FUNCTION 'SO_OBJECT_INSERT'
EXPORTING
folder_id = l_fol_id
object_hd_change = x_obj_data
object_type = 'EXT'
owner = sy-uname
IMPORTING
object_id = x_object_id
TABLES
objcont = i_objcont "&SO_KProObjectID=SOFFLOIO E2870D61F569E7F186CB0013216A31DB
objhead = i_objhead "&SO_FILENAME=000227964812102400687486.htm &SO_FORMAT=BIN
EXCEPTIONS
active_user_not_exist = 1
communication_failure = 2
component_not_available = 3
dl_name_exist = 4
folder_not_exist = 5
folder_no_authorization = 6
object_type_not_exist = 7
operation_no_authorization = 8
owner_not_exist = 9
parameter_error = 10
substitute_not_active = 11
substitute_not_defined = 12
system_failure = 13
x_error = 14
OTHERS = 15.
IF sy-subrc = 0 AND x_object-objkey IS NOT INITIAL.
x_folmem_k-foltp = l_fol_id-objtp.
x_folmem_k-folyr = l_fol_id-objyr.
x_folmem_k-folno = l_fol_id-objno.
x_folmem_k-doctp = x_object_id-objtp.
x_folmem_k-docyr = x_object_id-objyr.
x_folmem_k-docno = x_object_id-objno.
l_ep_note = x_folmem_k.
x_note-objtype = 'BKPF'. "c_message.
x_note-objkey = l_ep_note.
CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
EXPORTING
obj_rolea = x_object
obj_roleb = x_note
relationtype = 'ATTA'
EXCEPTIONS
OTHERS = 1.
I am using this code for attaching a .HTM external file automatically to a invoice document. But unable to attach it.
Can you please help.
Regards,
Rafi -
How to enhance the GOS attachment list
Hi,
I'd like to enhance the standard GOS attachment list as follows:
- when archiving a new document (archive link) to write additional text into a z-table --> this I managed already
- in the display of the attachment list, besides the standard fields display also additional fields (from the z-table) --> this is a new requested feature
- add a new button with functionality (besides the already known change, delete, filter, etc. buttons) --> this is also a new requested feature
I tried already some BADIs, but it seems that they are not really working.
So, if someone could support in this case, it would be highly appreciated:
a) read additional info and display it in the GOS ALV
b) put additional functions / icons on the ALV
The SAP release I'm working on is ECC 6.0
kr,
AndreasHi Anderas,
There is a class for GOS attachment list. CL_GOS_ATTACHMENTS
go to se24 and checkout this class. There are various methods. As per my knowledge you can make enhancement implementations in method SET_TOOLBAR rto fullfill your requirement.
By debugging check out for other methods which can suite your requirement.
Regards
Sachin. -
Fetch data from table and generate attachment than mail it.
Hello Experts,
From couple of day I am searching on Google for a better database procedure that will help me to get data from tables and generate attachment and mail it but i fail.
My Scenario is:
I have a query that will fetch almost 5000 records from database tables. Each record has almost 75 characters
select a.location_code,
a.item_code,
b.description item_desc,
to_char(a.manufact_date,'ddMonyy')mfg,
to_char((a.manufact_date + nvl(b.expiry_period,0)),'ddMonyy')expr,
to_char((a.manufact_date + nvl(b.qurantine_period,0)),'ddMonyy')qrtn,
round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) days_elapsed,
a.closing_balance_posted quantity
from wms_stock_current_balance_v a, wms_item_setup_mast b
where a.closing_balance > 0
and a.item_code = b.item_code
and a.loc_type in ('RACKING','PICKING','QUICKA','BUNDLED')
and nvl(b.qurantine_period,0) > 0
and round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) <= 0
order by a.item_code, a.location_code;
Sample data of above query is
LOCATION_CODE
ITEM_CODE
ITEM_DESC
MFG
Expiry
Quarantine
Days Elapse
Quantity
13DL2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
14DL0
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
134
14DL2
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
160
14DR2
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
20
14LL2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
17ER2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
17GL2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
17SL0
000000000000000F0487
CLEAR COOL BLACK 05ML
17-Feb-10
28-Mar-14
1-Jun-13
-125
64
18QL0
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
160
19AR5
000000000000000F0487
CLEAR COOL BLACK 05ML
17-Feb-10
28-Mar-14
1-Jun-13
-125
160
19DL1
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
19JR0
000000000000000F0487
CLEAR COOL BLACK 05ML
17-Feb-10
28-Mar-14
1-Jun-13
-125
60
19TL1
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
20GR2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
40
36FL3
000000000000000F0487
CLEAR COOL BLACK 05ML
18-Feb-10
29-Mar-14
2-Jun-13
-124
65
19UR0
000000000000000F0591
COMFORT WHITE 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
1
12SL1
000000000000000F0593
COMFORT PINK 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
42
12SR1
000000000000000F0593
COMFORT PINK 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
42
14OR1
000000000000000F0593
COMFORT PINK 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
8
36EL4
000000000000000F0594
CLEAR HF DECRASE 5M*360
14-Feb-10
14-Feb-11
12-Oct-10
-1088
14
13VL1
000000000000000F0595
CLEAR COM SFT CRE 5*360
8-Feb-10
8-Feb-11
6-Oct-10
-1094
160
14ER0
000000000000000F0595
CLEAR COM SFT CRE 5*360
8-Feb-10
8-Feb-11
6-Oct-10
-1094
105
Database Info
Oracle 10g
Version 10.2.0.1.0Look at the sample code for generating a CSV file that I've just posted in response to a similar question:
Re: How to execute a proc and spool files in a database job
And the use the search button in this forum to find sample code for sending a CLOB as a plain/text e-mail attachment using UTL_SMTP. -
Hi Gurus,
My organization need to attach quotation scanned copy to PR and PO.I have following questions regarding PR and PO attachment.can any expert focus light on them? Right now we have not Configured the Document Management System.Latter we want to go for it but not now.
1.What is the Maximum size of the Document that can be attached to PR?
2.Any standard SAP practice to archive the PR attachments as a part of House Keeping?
3.Are there any limitations in type of file that can be attached? (.doc,.jpeg,.jpg,.bmp etc)
4.What is effect of attachments on Server performance if the attachments are piled up over a period of 1 year? How to cleanup?
Regards,
Khasim.Hi Khasim,
1. There´s no maximum size for attachment,
Refer OSS NOte - 837300
2. If you have archive server then you can store all that attachment in archive server rather than saving it on SAP database.
refer
3. To best of my knowledge there are no limitations on Type of attachment provided that vendor has a compatible software,
refer
4. Yes, it would have a performance issue if you store all of your attachments on SAP database, (depends on the sizes of attachments). Archiving these attachments would be a solution to this.
Regards,
Pravin -
Need Help ASAP my State tax form is in a PDF file and the attachment in my email says Please wait
Need Help ASAP my State tax form is in a PDF file and the attachment in my email says Please wait...
I tried downloading updates like it said to but it still will not display the document. How do I print the PDF file ASAPCan you give us a LOT more info?
What email client? What version of Reader (I can only assume you even have Reader at this point)?
Please wait? I'm sure it says more than that, right?
Have you tried simply saving the PDF (it IS a PDF correct?) to your desktop and opening it from there?
Did you get this form from the IRS or did it come from somewhere else? If the IRS again, what version of Reader?
Help us help you. -
Read email from microsoft exchangeserver 2010 and save attachement
Hello,
I want to read email from microsoft exchangeserver 2010 and save attachement into a folder.I created an Java program to import attachments from a exchange server mailbox using "POP3S".It works fine when run as a java application.But when i put this inside Oracle11g R2 using load java and while executing from a procedure it gives an error at parsing message into Multipart
Error at line : Multipart mp = (Multipart)m.getContent();
Error:
Content-Type: multipart/mixed;
boundary="_002_A0C2E09A..................................."
java.lang.ClassCastException
at mailPop3.checkmail(mailPop3:71)
My Java Class is as follows,
import java.io.*;
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
import java.util.Date;
The function i used to check for attachments is given below.
public static boolean hasAttachments(Message m) throws java.io.IOException, MessagingException
Boolean hasAttachments = false;
try
// if it is a plain/html text - no attachements
if (m.isMimeType("text/*"))
return hasAttachments;
else if (m.isMimeType("multipart/alternative"))
return hasAttachments;
else if (m.isMimeType("multipart/*"))
Multipart mp = (Multipart)m.getContent();
if (mp.getCount() > 1)
hasAttachments = true;
return hasAttachments;
catch (Exception e) {
e.printStackTrace();
} finally {
return hasAttachments;
My Java Details as follows
java Version :1.5.0_10
java.vm.specification.version:1.0
java.vm.version :1.5.0_01
java.specification.version:1.5
java.class.version:48.0
Java mail API:javamail-1.4.4
Used Jars:mail.jar
Could someone explain why I am getting this error? What can I do to resolve this error?
Is any other Jar need other than mail.jar?
Any help would be much appreciated.
Regards,
Nisanth889509 wrote:
This java class has no error.Then it should work - not only at compile time, but at run-time too.
Because it does not, it means there are errors. And as the error you've posted is not an Oracle SQL or PL/SQL error, your question is off-topic to this forum.
Why would the code not work at run-time? Numerous reasons, including environmental ones. Java inside Oracle are subjected to a number of restrictions and limitations that do not exist in a Java VM outside Oracle (for good reasons).
So you need to consider that too - and that is why I referred you to the documentation... which is IMO mandatory reading for all Oracle developers. -
I can no longer open excel documents in my doc to go app. Error message simple reads can not open attachment. And the attachment is now a winmail.dat
winmail.dat files usually mean the email has been sent in rich text format - you could either the person who sent it to send it in a different format e.g. plain text or HTML, or there are a few apps in the store that support it (search for winmail.date in the store).
winmail.dat files : http://support.apple.com/kb/TS1506 -
How to open a pdf file and then attach it with images
I am new to Indesign Server.
I'm currently working on a pdf.
I have a white blank pdf template.
that I want to attach/glue it with images.
How to open a pdf file and then attach it with images.
Please, help me.
Thanks.First step would be to make yourself familiar with InDesign desktop version.
Whatever you intend to achieve, do it there manually. (see regular app docs or forums)
Then try to automate your steps with scripting (see scripting docs or forum)
If you can do it with a script in the desktop version, that script will likely also run in ID Server. (see server forum).
If you can specify missing features not achievable thru scripting or manual use, reconsider to write a plugin (this forum).
A seasoned C++ programmer will need a few months to learn the basics, wade thru tons of documentation etc. Alternatively consider to hire a consultant to do the development work for you.
Dirk -
History of document attachment and de-attachment (through CV01N)
Hi experts,
We have a requirement as under:
User created a PR and attachment a document to it. Subsequently PO was created and material procured. Later the requisitioner refused to accept the material claiming that the material procured is not as per the requirement. Then purchaser claimed that we have procured the material as per the details available in attached PDF file in PR line item. When checked there was no document attached to said PR and line item.
Now, please help in finding the history in PR document for attachment and de-attachment of document in PR through DMS tcode CV01N.
Thanks in advance...When checked there was no document attached to said PR and line item...
The document must exist.CV01n transaction is used purely for creation of a Document Info Record.A simpler approach to retrieve the created document would be via CV04n transaction meant for search.Herein,navigate to 'Object Links' tab,and under 'Purchase Req. Item' sub tab,key in the PR details and click 'Execute'.The relevant details should be available.
Regards,
Pradeepkumar Haragoldavar
Maybe you are looking for
-
Help with Select Lists in Classic Report
Hello, I working with APEX 4.1. Oracle 11. I have a simple classic report with 4 columns (Username, Role, Read, Update). The Read and Update columns are Select Lists with values of "Yes", "No". Report looks like this: Username Role Read Update JSmith
-
Incompl log inconsistence for sale order
Hi! I had to change incompletness rule for doc_type. But I sill get error message about deleted condition, How could I recheck all existing sale order with new rulls. Thank you for answer Andrey Garshin.
-
Security 2009-01 and Java release 8 - which first?
Software update shows it's time for Security 2009-01 and Java Release 8. Java comes first on the list. I do updates via downloads from Apple and install later. Should I install the Java release first? Mrs H BTW - The updates for Security used to indi
-
Workflow - Create a new buisness object type for an new infotype.
Hi all, I have an issue with creating a new buisness object type, which is related to a supertype, for an new infotype. I am new to workflow and business object. I don't have much knowledge in these area. I need to resolve this problem ASAP. Could so
-
"The source and output audio channels are not compatible or a conversion does not exist" - ?
I'm trying to export from Premiere Pro for a f4v file that matches all source settings except resizing the video. I've done this a million times but today, when I hit EXPORT, I'm getting an error message from Adobe Media Encoder that says "the source