Read attachments in CRM
Hi
How to read the documents which are attached in CRM(Complaints) and send it via Email ?. I used ' CRM_ICSS_GET_SR_ATTACHMENTS " function Module to read the attachment . I was able to get only the attached file name, size,type, etc....but not the location where it is stored.
Can anyone pls help on this issue...
Try using the class cl_crm_documents and methods get_info, GET_FILE_INFO, GET_DOCUMENT
Regards,
Shaik
Similar Messages
-
Reading Attachments from CRM OD
I have a web portal that displays all the cases associated to the contact. I would like to showcase a section where the users can see and view any attachments are there for the case.
Service Request WSDL does not provide the ability to view attachments. Is there any workarounds for the same. Has anyone implemented similiar functionality if so please provide pointersThere is a section 'Retrieving or Quering File Attachments' section in the documentation. It looks like you can return the content of the attachement in base64 and it would be up to you to convert it back based on its type - they you would be able to display the content in your application.
-
Attachments from CRM in DMS content server
Hello,
I have configured a DMS content server to save the attachments from CRM. but can not get the store in the content, as I can do? Attachments I keep it via web from the interlocutor.
I touched the table SDOKPHCL and the value BDS_POC1 and I have put the value of content, but still keep it to or at the base's own CRM.
I need to configure?
Thank you.Hello,
Table SOFFCONT1 attachments are stored that are recorded in the database logic of sap. That is if the id of the document not find it in this chart means that you are storing away in a content server.
I've gotten crm annexes the content stored on a server.
The first thing I have done is create a content server-class CRM. OAC0 in, then I created the category AOCRS taking the content. CSADMIN and I found that the content is running.
In transaction SKPR08 BDS_POC1 class I have assigned to the Z-server content that I created. and in all kinds of CRM type I have assigned the new Z category I created.
After the transaction SBDSV2 I created a new record with BUS1006 in this case because it was a contact in CRM and I have given the document class Z BDS_ATTACH the category of content.
The BUS is obtained by a trace of the transaction and SWELS swel (with some modification from the transaction in which I attach the document).
In SBDSV1 I've got to bus1006 BDS_LOC1 class.
And with that I have solved the problem. -
How to read data in CRM Activity relationship tab.
Hello friends,
I have a requirement to read data from CRM Activity relationship tab.
Mainly i have to read Transaction No/object refernced trans field of CRM Activity relationship tab.
Could anybody help me?
Thanks,
BunnyHi,
have you found in the meanwhile a good solution?
I have also a similar requirement.
At the moment I'm using the view CRMV_ACTFORGP to get the activities associated to a BP (by the way you have many filters that can be used) and then for each GUID (order guid - CRMD_ORDERADM_H-GUID) I call the fm BAPI_REL_GETRELATIONS to get the list of relationships.
Regards
Diego -
Read Attachments using Java Mapping API
Hello,
after investigating the Java Mapping API a little deeper I found some very interesting Interfaces "InputAttachments" and "Attachments" which could do exactly what is required:
Reading attachments and convert them into base64 code.
As I am not an experienced Java Programmer howeve, I am note sure how to use those interfaces.
For example there is a method defined in interface "InputAttachments":
Attachment getAttachment(String contentID)
How do I use it? If I use it in a way like "InputAttachments.getAttachment("abc");" then I get the error that it is not a static method. However how do I instantiate "InputAttachments".? As it is an interface I am not sure how to do this.
Any idea how to handle these methods?Hi,
I am working on the similar. I am able to attach txt files and csv files but have trouble attaching xcel and pdf's. Any input is appreciated. Thanks -
Reading attachments within attachments
Hi,
I tested this code that I found and I was wondering if it's possible to read attachments within attachments. We are receiving forwarded messages that have an attachment of type message. The attachment then has its own attachment of type doc. We can break it into 2 parts but we don't know how to break it into 3 parts. I'm sure this sounds confusing so here is the code example:
Object content = message.getContent();
if (content instanceof Multipart) {
handleMultipart((Multipart)content,msgName, mailFr, mailTo);
} else {
handlePart(message[i],msgName, mailFr, mailTo);
public static void handleMultipart(Multipart multipart, String msgName, String mailFr, String mailTo)
throws MessagingException, IOException {
for (int i=0, n=multipart.getCount(); i<n; i++) {
handlePart(multipart.getBodyPart(i),msgName, mailFr, mailTo);
public static void handlePart(Part part, String msgName, String mailFr, String mailTo)
throws MessagingException, IOException {
String disposition = part.getDisposition();
String contentType = part.getContentType();
if (disposition == null) { if ((contentType.length() >= 10) &&
(contentType.toLowerCase().substring(
0, 10).equals("text/plain"))) {
//part.writeTo(System.out);
} else {
//part.writeTo(System.out);
saveFile(part.getFileName(), part.getInputStream(),msgName, mailFr, mailTo);
} else if (disposition.equalsIgnoreCase(Part.ATTACHMENT)) {
saveFile(part.getFileName(), part.getInputStream(),msgName, mailFr, mailTo);
System.out.println("This is an attachment");
} else if (disposition.equalsIgnoreCase(Part.INLINE)) {
saveFile(part.getFileName(), part.getInputStream(),msgName, mailFr, mailTo);If you have an attachment that's a message, then try to cast it to something of class Message or MimeMessage, then you can get parts from that.
-
Read Attachments in Operations Mapping called by Transformation Step
Hello,
I would like to read the attachment of my input message. I created an UDF that assigns the attachment to to a target field, furthermore I have activated the option "Read Attachments" in operation mapping.
But when I call the operation mapping in a transformation step in BPM, the target field is not filled. Is it not possible to read attachments in BPM?
Thank you for your advice.Attachments are not available inside BPM.
Try to do the mapping outside BPM. -
Hi all!
My task is to read categories of crm order (i.e. fields category_1 ... category_4 at the order header level).
May be someone could tell me some functionality to get this data?
I'll be appreciated.
Best regards,
Alexander KirillovHi, Oliver!
Below you'll see how-to-guide which will provide a step-by-step solution.
It's 100% works like 'CRM_ORDER_READ' (both for buffered values & DB ones).
How-to guide - reading order categorization
1. Create package ZCATEGORY (Categorization)
2. Create new dictionary objects:
2.1. Structure ZMDS_CATEGORIZATION_CAT ( u201CCategory from categorizationu201D) with fields:
CAT_GUID type CRM_ERMS_CAT_GUID
CAT_HI type CRMT_ERMS_CAT_HI
IT_CAT_CA type CRMT_ERMS_CAT_CA_BUF_TAB
IT_CAT_CA_LANG type CRMT_ERMS_CAT_CA_LANG_TAB
2.2. Structure ZMDS ZMDS_CATEGORIZATION_CATS ( u201CCategories from categorizationu201D) with fields:
CATEGORY1 type ZMDS_CATEGORIZATION_CAT
CATEGORY2 type ZMDS_CATEGORIZATION_CAT
CATEGORY3 type ZMDS_CATEGORIZATION_CAT
CATEGORY4 type ZMDS_CATEGORIZATION_CAT
3. Copy CL_CRM_CATEGORY_RUN_BTIL class to new ZMD_CL_CRM_CATEGORY_RUN_BTIL class. In newly created class do following:
3.1. u201CPropertiesu201D tab: <Create instance> = 2 u201CGeneralu201D
3.2. Change method u201CMAP_SUBJECT_TO_CATEGORYu201D to u201CPublicu201D
4. Create new class ZMD_CL_CATEGORIZATION (Categorization processing).
4.1. u201CPropertiesu201D tab: <Create instance> = 2 u201CGeneralu201D
4.2. Define constants:
4.2.1. C_LNK_TYPE_IS_CODE Constant Public Type CRM_ERMS_CAT_LN_TYPE Default link type 'IS_CODE'
4.2.2. C_OBJ_DDIC_CRM Constant Public Type CRM_ERMS_CAT_OB_DDIC External object name 'SUBJECTCODECRM'
4.2.3. C_TREE_TYPE_CAT Constant Public Type CRM_ERMS_CAT_HI_TYPE Kind of link 'CAT'
4.3. Create static public method u201CGET_ORDER_H_CATu201D with importing parameter IV_GUID (type CRMT_OBJECT_GUID = order GUID) & exporting parameter ES_CATEGORIES (type ZMDS_CATEGORIZATION_CATS).
5. Create report ZMDR_ORDER_CAT for displaying order categorization. -
Cannot Read Attachments in Email
I have had my iPhone since December. I use my iphone for my work e-mail which is a Microsoft exchange server that I use Synchronica. At first I was able to read attachments, but no longer. Has anyone had any issues not being able to read attachments. Nor is there anything to indicate that there is an attachment in this email.
if your signature is correct : Windows Xp is not supported.
-
Hoe to read attachments of type MESSAGE/RFC822
hi,
How to read attachments in mails of type MESSAGE/RFC822
this occurs when somebody puts "Forwarded mails" directly as an attachment inside the mail body itself..
guyz ur help for this will be very much helpful..
thanks
sriram.BHi,
I am also struggling the same problem. When I am reading part of type message/rfc822 I am not able to get right content.
Waiting for some reply.
Subhash -
Hi,
I have a scenario where, i have attachment (PDF) are getting attached through Proxy. I need to save these attachments to Live Link Folder.
I have seen some posts here where they have explained the java code used in UDF to read the attachments. I have implemented that. The problem is Message mapping when i test is working fine, no errors. But the operation mapping throws the error. I have checked the "Read Attachments" Flag but still it doesn't work.
Can any body please help me with some blog or steps that explains the steps.
Also i read on SDN that only XML attachments can be read, but that also didn't worked for me.
Any help will be really appreciated
Thanks
-KulwantHi,
>>>I have a scenario where, i have attachment (PDF) are getting attached through Proxy. I need to save these attachments to Live Link Folder.
why don't you use swappayload bean to put the PDF into the folder ?
Regards,
Michal Krawczyk -
How to read Attachments files using POP
Hello Every One
I am wondering that, is there any tool available that reads Attachments files from the Email.
I have POP tool that allows me to read regular Text message, but what if I want to read some files from the attachments.
Any help is appreciated
Thank you
AmitHi Amit,
I have found a LV program that reads a .txt attachment from an email in this discussion forum posted. I hope this helps.
Regards,
Nadim
Applications Engineering
National Instruments -
My windows friends cannot read attachments from my e-mails
My Windows friends cannot read attachments from my e-mails
If the attachments are common files that your recipients should be able to read (PDF, DOC, TXT) then what is the setting when you select the menu command Edit > Attachments > Always Send Windows-Friendly Attachments (checked or unchecked).
If it's unchecked you should check that setting and retry. -
recently updated firefox, per suggestion. now, on computer with update, can no longer read word/pdf attachments. can still do so with adobe 5 on old computer. what happened? what do i have to do?
== This happened ==
Every time Firefox openedExtensions that may '''interfere with Back Button''', and these are already listed in [http://kb.mozillazine.org/Problematic_extensions Problematic extensions] for other reasons
*McAfee Site Advisor see [https://support.mozilla.com/questions/805964 805964] (update perhaps 3rd week July 2011)
*Yahoo Toolbar (https://support.mozilla.com/questions/845691)
Back/Forward Home don't work in 7.0.1 due to '''network.http.max-connection'''s being upped to 256, reduce back down to 32.
*https://support.mozilla.com/questions/889087
Back/Forward: navigation/buttons are disabled (repair with an extension)
*http://kb.mozillazine.org/Locked_or_damaged_places.sqlite -
Reading attachments of DMS server
Hi Experts,
I have a requirement where in which i have to read the content of DMS(CV03N) attachment and display it in the quality management view of material master based on material plant combination.
I could able to add a subscreen to the QM view of Material master via customization for specific material types and screen sequence. Note: The attachment could be any thing like a txt, doc pdf, xls etc...
I tried funtion modules like 'CVAPI_DOC_VIEW' , BAPI_DOUMENT_GETDETAIL2 etc but all these documents are reading the data and displaying in a screen but not statically saving the content in an Internal table.
I have seen the function module 'RFC_DISPLAY_DOCUMENT_MASTER' which reads the document info record and directly displays the CV03N transaction second screen where we can see the attachments.
I came to know that this requirement can be met by reading the DMS attachment via the business object assigned to it (BUS1082). But couldn't able to find the appropriate function modules to do that.
Could you please send me the relavent function modules to achieve this ASAP. I am working on 4.6C version of SAP.
Thank You,
Regards,
NareshHi Sandra,
Thank you for the response.
I could able to fetch the document related data by using the FM 'BAPI_DOUMENT_GETDETAIL2' and it is working fine but not returning the file content into an internal table. Today I even able to find a function module 'SDOK_PHIO_LOAD_CONTENT' to load the file content into binary.
Now, the problem is to create an attachment to the quality manangement tab of material master. I could able to add a subscreen to it and trying to display the file(s) as an attachment(s).
I have tried 'SDOK_PHIO_CREATE' , 'SO_ATTACHMENT_INSERT_API1' (not for mail attachment)etc. function modules but couldn't able to find the soultion. I also got a file namely 'CA-PLM u2013 Product Lifecycle Management Functional Overview' which talks ablout the DMS Management. But the function modules specified in this doc from SAP AG are used for Document info record manipulations but not the attachments assigned to them.
So, I request you to let me know some FMs which can be used to achieve this attachment creation requirement.
Thank You,
Regards,
Naresh.
Maybe you are looking for
-
E520 - HDMI Output not working on Samsung TV - although works on other devices
Laptop does not recognise TV I know there are a number of threads with similar questions, I have been through a number of them, however have not come across a solution that works. I have a ThinkPad E520 running Windows 8.1 Enterprise Edition x64 The
-
How do I use icloud to restore my documents that were in Pages? Pages got stuck in "waiting" to update and when nothing else worked I deleted it and reloaded Pages. Everything I can find is about wiping everything out and restoring everything. I don'
-
Has anyone used SelfSecured Pages?
We have a requirement to allow users to raise calls via the web, and without logging on. So, reading the 'Page Security' chapter in the OA Developers Guide, I have created a bookmarkable page, for which the Security property is set to 'Self Secured'
-
Logical Column Mapping to Multiple Physical?
I am "learning" OBIEE still and a consultant today showed me something that totally blew my mind In the OBIEE Admin tool (in verson 10) there are 3 layers displayed. The physical, business management and presentation layer. I was under the impression
-
Youtube not loading on new ipad2
I just received an ipad2 and it is preloaded with youtube app. When I try to view a video, the app seems to try to load the video and I then get a message that the video can not be loaded. This happens for all videos from the youtube app or from yout