I can attach an image to SAP CRM WebUI but was not able to view it
Dear Experts,
I was trying to attach an image document to SAP CRM WebUI through cl_crm_documents (Method :- create_with_table) by passing the binary value.
I receive a string value for the image from IOS team and I convert the same to Xstring and binary in the code. And pass the binary value to the method "create_with_table".
And I could see the document gets attached. When I try to open the same. The image looks like a small cross bar(i.e :- As if we try to open an unsupported file format.) Though I tried passing both jpeg and png files.
On the other hand, when I try to attach the same image manually in WebUI. I could view the attached image perfectly. Please find the below code snippet I have used.
Help me out in getting it resolved.
CONCATENATE it_flup_gen2-or_img_faci_desc '.pdf' INTO ls_file_access_info-file_name.
* Convert string to Xstring value for FACI Image
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = it_flup_gen2-or_img_faci
mimetype = 'application/pdf'
IMPORTING
buffer = lv_faci_xstr
EXCEPTIONS
failed = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = lv_faci_xstr
IMPORTING
output_length = lv_len
TABLES
binary_tab = lv_file_content_binary.
* Assign file properties
ls_file_access_info-file_size = lv_len.
ls_file_access_info-binary_flg = 'X'.
ls_file_access_info-file_name = ls_file_access_info-file_name.
ls_file_access_info-mimetype = 'application/pdf'.
APPEND ls_file_access_info TO lt_file_access_info.
* Assign business object
ls_business_object-instid = lv_guid.
ls_business_object-typeid = 'BUS2000125'.
ls_business_object-catid = 'BO'.
** Fill property values
** Get the unique name for the Attachment
ls_properties-name = skwfc_prop_relative_url.
ls_properties-value = it_flup_gen2-or_img_faci_desc.
APPEND ls_properties TO lt_properties.
** Get the decription and title
ls_properties-name = skwfc_prop_description.
ls_properties-value = it_flup_gen2-or_img_faci_desc.
APPEND ls_properties TO lt_properties.
** Get the document mime type
ls_properties-name = skwfc_prop_mime_type.
ls_properties-value = 'application/pdf'.
APPEND ls_properties TO lt_properties.
ls_properties-name = 'LANGUAGE'.
ls_properties-value = sy-langu.
APPEND ls_properties TO lt_properties.
ENDIF.
* Creating a document with provided data
CALL METHOD cl_crm_documents=>create_with_table
EXPORTING
business_object = ls_business_object
properties = lt_properties
file_access_info = lt_file_access_info
file_content_binary = lv_file_content_binary
raw_mode = 'X'
IMPORTING
loio = ls_loio
phio = ls_phio
error = ls_error.
IF ls_error IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDIF.
regards,
Sabarinathan
Hi Deepika,
Thanks for the response. If you go through my code snippet I have given, I have already mentioned the mimetype as "application/pdf" for pdf document and used the same in my coding. It still doesnt help out.
regards,
Sabarinathan C
Similar Messages
-
Hi,
i have the same problem?
Trying to log in with my user id and password at iocbc but was not able to access.
Problem message shown : Applet not initialised or may not be supported. Please refresh the page or check the browser setting
Anyone can advise?You need to install Java for your Mac OS version, and/or make sure it's enabled in the Java Preferences application and your browser's preferences.
-
How can I resolve this problem? The audio engine was not able to process all required data in time. (-10011)
Could you do this?
Go to Finder
Go to Applications
Go to Utilities folder
Launch Activity Monitor app
go to its Memory tab on top
tell us what you see at the very bottom?
Here is a sample of mine.
I bet your page/swap amount will be huge.
If there is not enough RAM, OS X temporarily stores RAM data on the harddrive and tries to retrieve it back into RAM when needed, unfortunately that is so slow that GB throws an error as it cannot play it all in real time. -
I have misplaced the card or accidentally threw it away! I recall entering the code on back somewhere in my apple store app. Is there a way to find out if I did it right? If I did not do it correctly can u help me? Pleeeease!!
Launch the App store or iTunes store...scroll all the way to the bottom...your Apple ID & any credit balance will be displayed. If not there, & you no longer have the card, don't waste your time contacting iTunes support, as there is nothing they can do for you.
You can also login to iTunes on your computer, & any credit balance will be displayed next to your Apple ID. -
How can we delete prospects from SAP CRM
Hello All,
How can we delete prospects from SAP CRM in back ground for a list of selected BP's.
Thanks,
Raj.Hi Raj,
You can use tx BUPA_DEL to delete the BP's you don't need anymore.
Cheers,
Heber Olivar -
SAP CRM Integration with lotus notes & blackberry (Mobile application) ?
Dear Experts,
Can any one pls explain me rough step in SAP CRM Integration with lotus notes & blackberry (Mobile application) ! I dont want detailed steps but pls explain me some important steps for this integration. Also pls tell me which standard SAP document i hve to refer for it !
As i am totally new to such integraion. pls help me out of this !!!! Helpful answer will be rewarded with full points.
Regards,
Amol Tambe.Hi Amol Tambe,
Please refer the following SDN threads to find more information about SAP CRM and Lotus notes integration:
Re: Integration of SAP CRM 7.0 with Lotus
Re: Need the connectivity between CRM and Lotus Notes.
However, the above discussion is for CRM online and Lotus notes integration.
Hope this helps!
Regards,
Chethan
Edited by: Chethan Kumar C M on Sep 27, 2009 9:41 AM -
Hello,
our customer plans to use a Non-SAP solution for variant configuration (Camos) in SAP ERP (ECC 6.0) and in SAP CRM 7.0 EHP1 as well.
ERP sales orders (and ERP quotations) should be created in SAP CRM (CRM WebUI).
Is it possible to use variant configuration (with an external variant configuration tool) when creating ERP sales orders and quotations in the SAP CRM WebUI or do we have to implement SAP IPC for this?
Thanks in advance.
Regards,
AEVDear AEV,
I think LORD (lean orders) should work with variant configuration as well. In the note 1236015 there is not restriction listed. However you need lord2 activated in ECC, and ECC system should be on EHP4.
Best regards
Rene -
Dear All,
i am working on CRM 5.0 Netweaver-2004S-SR2, facing below errror.
Error when processing your request
What has happened?
The URL http://hllsap44.in.u1609.unilever.com:1080/sap/bc/bsp/sap/crm_bsp_frame/mainDH.do was not called due to an error.
Note
 The following error text was processed in the system CD2 : The current application triggered a termination with a short dump.
 The error occurred on the application server hllsap44_CD2_00 and in the work process 0 .
 The termination type was: RABAX_STATE
 The ABAP call stack was:
Method: BUILD_MODEL of program CL_CRM_BSP_ACCS_MODEL=========CP
Method: CONSTRUCTOR of program CL_CRM_BSP_ACCS_MODEL=========CP
Method: GET_MODEL_INSTANCE of program CL_CRM_BSP_ACCS_MODEL=========CP
Method: SET_APPLICATION of program CL_CRM_BSP_IL=================CP
Method: DO_INIT of program CL_CRM_BSP_FRAME_MAIN=========CP
Method: DO_INIT of program CL_BSP_CTRL_ADAPTER===========CP
Method: GET_PAGE_CONTEXT_CURRENT of program CL_BSP_CONTEXT================CP
Method: ON_REQUEST_ENTER of program CL_BSP_RUNTIME================CP
Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
Soon reply will be appreciated.
thanks,'
Thakkar.thanks For prompt attention towards my problem..
DUMP: Runtime Errors MESSAGE_TYPE_X
Details:
What happened?
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X).
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
Short text of error message:
Model for application set CRMD_CASE has been maintained inconsistently
Long text of error message:
Diagnosis
After including the referenced application in the application set,
at least one structure name is no longer unique.
System Response
An inconsistent model leads to termination.
Procedure
Contact your system administrator.
Procedure for System Administration
IMG -> Customer Relationship Management -> Layout of User
Interface (People-Centric UI) -> Application Element-> Application
Set.
Technical information about the message:
Message class....... "CRM_BSP_BLUEPRINT_DB"
Number.............. 010
Variable 1.......... "CRMD_CASE"
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
thanks,
Rakesh. -
SAP Java Crypto Toolkit was not found
Hi,
I m trying to install Netweaver 7.0 BI and portal with SR3 package. Installation is Cluster installation on windows 2008 and sql 2008 platform. When I came to Centarl instance installtion. On Start Java Phase I had the error. I put the error below. I check the notes Note 1071472 - FileSystem SecureStore connection issues, Note 914818 - JSPM: Could not detect database, Note 1154133 - JSPM: SAP Java Crypto Toolkit was not found.
Thank you For your Help.
Bootstrap MODE:
<INSTANCE GLOBALS>
determined by parameter [ID0276347].
Exception occurred:
com.sap.engine.bootstrap.SynchronizationException: Database initialization failed! Check database properties!
at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.java:476)
at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:146)
at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:971)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
==[ Caused by: ]==----
com.sap.engine.frame.core.configuration.ConfigurationException: Error while connecting to DB.
at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.<init>(DBConnectionPool.java:115)
at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.<init>(PersistenceHandler.java:38)
at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.<init>(ConfigurationCache.java:149)
at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:236)
at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.<init>(ConfigurationManagerBootstrapImpl.java:49)
at com.sap.engine.bootstrap.Synchronizer.<init>(Synchronizer.java:74)
at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.java:473)
at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:146)
at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:971)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
Caused by: com.sap.sql.log.OpenSQLException: Error while accessing secure store: Encryption or decryption is not possible because the full version of the SAP Java Crypto Toolkit was not found (iaik_jce.jar is required, iaik_jce_export.jar is not sufficient) or the JCE Jurisdiction Policy Files don't allow the use of the "PbeWithSHAAnd3_KeyTripleDES_CBC" algorithm..
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:106)
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:145)
at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:226)
at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:197)
at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.<init>(DBConnectionPool.java:112)
... 13 more
Caused by: com.sap.security.core.server.secstorefs.NoEncryptionException: Encryption or decryption is not possible because the full version of the SAP Java Crypto Toolkit was not found (iaik_jce.jar is required, iaik_jce_export.jar is not sufficient) or the JCE Jurisdiction Policy Files don't allow the use of the "PbeWithSHAAnd3_KeyTripleDES_CBC" algorithm.
at com.sap.security.core.server.secstorefs.SecStoreFS.openExistingStore(SecStoreFS.java:1975)
at com.sap.sql.connect.OpenSQLConnectInfo.getStore(OpenSQLConnectInfo.java:802)
at com.sap.sql.connect.OpenSQLConnectInfo.lookup(OpenSQLConnectInfo.java:783)
at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:209)
... 15 more
Caused by: javax.crypto.NoSuchPaddingException: Padding 'PKCS5Padding' not implemented.
at iaik.security.cipher.w.engineSetPadding(Unknown Source)
at iaik.security.cipher.PbeWithSHAAnd3_KeyTripleDES_CBC.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at javax.crypto.SunJCE_b.a(DashoA12275)
at javax.crypto.SunJCE_b.a(DashoA12275)
at javax.crypto.Cipher.a(DashoA12275)
at javax.crypto.Cipher.getInstance(DashoA12275)
at com.sap.security.core.server.secstorefs.Crypt.<init>(Crypt.java:220)
at com.sap.security.core.server.secstorefs.SecStoreFS.<init>(SecStoreFS.java:1346)
at com.sap.sql.connect.OpenSQLConnectInfo.getStore(OpenSQLConnectInfo.java:798)
... 17 more
[Bootstrap module]> Problem occurred while performing synchronization.Hi
> > Caused by: com.sap.sql.log.OpenSQLException: Error while accessing secure store: Encryption or decryption is not possible because the full version of the SAP Java Crypto Toolkit was not found (iaik_jce.jar is required, iaik_jce_export.jar is not sufficient) or the JCE Jurisdiction Policy Files don't allow the use of the "PbeWithSHAAnd3_KeyTripleDES_CBC" algorithm..
> at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:106)
> at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:145)
> at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:226)
> at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:197)
> at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.<init>(DBConnectionPool.java:112)
It looks like the JCE file which you have downloaded is not the correct one. As you can see some jar files are missing. Check JCE files.
Check SAP Note 1240081 - "Java Cryptography Extension Jurisdiction Policy" files
Thanks
Sunny -
PDF Attachment not able to view
Dear Guys,
I am not able to view the PDF attachment in SAP Office. I am getting error as 'Database error for <GET DATA FROM KPRO> <>' which is information message. When I click OK it display another error message 'Windows cannot find 'c:\winnt\desktop\<filename>'. I guess the PDF file is uploaded in worng directory. Is it anyway to find out at which directory the attachement of the mail are actualy stored.
Could anybody help to sort this issue ?
Regards
Nilesh SheteHI,
May i know which Function Module you have used and how you have configured?
Thanks!
Brunda
'Reward if useful'. -
Wanting to use Photoshop CS6 to open images directly from iPhoto 11.
Using OSX10.8.2 and iPhoto 11. Just installed Photoshop CS6 and want to open
images directly from iPhoto. Before I installed PS I was not able to edit photos
in iPhoto 11. Nothing happens when I click on ‘edit‘ it is blank.
And now it will not work using Photoshop CS6 either.
From Help Center I have gone to iPhoto/Preferences/ Advanced and chosen Photoshop CS6 to Edit Photos but then cannot find an 'Open' to click? Perhaps this is the problem?
When I select a photo in iPhoto and click the Edit button - nothing happens.
Please advise. GlenysThis may be of help to you:
Using Photoshop or Photoshop Elements as Your Editor of Choice in iPhoto.
1 - select Photoshop or Photoshop Elememts as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
3 - however, if you get the navigation window
that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
NOTE: With Photoshop Elements the Saving File preferences should be configured as shown:
I also suggest the Maximize PSD File Compatabilty be set to Always. In PSE’s General preference pane set the Color Picker to Apple as shown:
Note: to switch between iPhoto and PS or PSE as the editor of choice Control (right)-click on the thumbnail and select either Edit in iPhoto or Edit in External Editor from the contextual menu. If you use iPhoto to edit more than PSE re-select iPhoto in the iPhoto General preference pane. Then iPhoto will be the default editor and you can use the contextual menu to select PSE for your editor when desired.
OT -
I have the iPhone 5s. I synced it with my Mac and got all the old apps from my old phone. I was not able to update any of the apps on the old phone and they will not update on the new iPhone 5s either! What can I do?
Hey there rmflint,
It sounds like you are wanting to update the Apps that were synced over from your computer to your new iPhone 5s. If you are clicking Updates in the App Store in the bottom right corner, would you mind clarifying what happens when you are trying to update them?
App Store at a glance
http://help.apple.com/iphone/7/#/iph3dfd8c19
Thank you for using Apple Support Communities.
Take care,
Sterling -
i got charged twice for a movie (Safe House). Can i get a refund for that? we were not able to finish the movie last night, and now we're trying to watch it again. We have an hour left, however the apple tv is still loading the movie again for 2 hrs & 46 mins.
Welcome to the Apple Community.
Apple's policy on sales of digital content is that all sales are final. If however you wish to appeal to Apple, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History. -
How can I retrieve my password when the retrials email was not recoverable either? I also can't use or pass the othere means of recovery? Not being able to pass or answer the security questions?
I created a new ID but never being able to update the iTunes that were purchased/saved using the old id?
I can't also delete.Hi Kazmania89,
Welcome to the Support Communities!
If you require additional assistance with this, click on the link below for guidance:
Apple ID: Contacting Apple for help with Apple ID account security
http://support.apple.com/kb/HT5699
Once you are able to gain access to the old Apple ID, this article may be helpful:
Using your Apple ID for Apple services
http://support.apple.com/kb/HT4895
I have purchased music, apps, or books with multiple Apple IDs. How can I get all of this content onto my iOS device?
First, you need to copy all of your purchased content so it is on the same Mac or PC with iTunes. This computer should be the one you sync your device with. For more information on how to move your content, see these articles:
Mac: iTunes for Mac: How to copy purchases between computers
PC: iTunes for Windows: How to copy purchases between computers
Next, authorize your computer to play content with each Apple ID in iTunes. Once your computer is authorized for all your content, it can be synced to your iPhone, iPad, or iPod touch.
Cheers,
- Judy -
i have the new ipad and inserted a new tata docomo sim in it, it shows network but is not able to connect to the internet,,, can any1 plzz help me out
Let's start with the most obvious? Have you paid for service? If yes, thry THIS.
Maybe you are looking for
-
Tasks not getting executed as per schedule
Hello Gurus, my query is with respect to tuxedo 7.1 / singleview 4.02.17.01. I am facing some new issues these days with singleview. Whenever we submit any task in singleview, it is not getting executed on its scheduled time. this has been happening
-
Text is overlapping and unreadable
Hi. Some webpages I attempt to view have text that overlaps and is unreadable. I have tried fooling around with the preferences (fonts and whatnot) but the problem still exists. This is not on all webpages, just some. Any solutions?
-
Using my macbook pro whole day with the power adapter , will it affect my battery? Please help
-
Query should fetch single value
Hi, I have created a Key figure with exception aggregate as Last value with reference char as order. I have data like Ord date KY KY2 01 ... 22 221 01 ... 22 223 02 ... 23 234 I want to get in the query KY= 22 for Ord=01 but i am
-
My Health Kit Is Not Working With Iphone 5.
My Health Kit Is Not Working With Iphone 5.