Saving image using mobile into sap R/3
We are using sap mobile platform version 2.3 and our client requirement is to save images using mobile apps.
We already saved images in mime repository but for this we have to required client modifiable , but due to security reason we can't do this.
Please Help.
Hi Nilesh ,
I had a scenario to attach image to pr05 transaction from mobile, so that when click view attachment button in pr05 i can see the image . My code is based on that .
it is the function module with import parameter base64 string and filename ,last three letters of the file name proceeding the . is the extension
in your case you need to create custom object type instead of BUS2089 .
Do research regarding that ..
-->Local Workare declaration.
DATA : ls_fol_id TYPE soodk,
ls_obj_id TYPE soodk,
ls_obj_data TYPE sood1,
ls_content TYPE soli,
ls_folmem_k TYPE sofmk,
ls_note TYPE borident,
ls_object TYPE borident.
**--> Local internal table declaration.
DATA : lt_content TYPE STANDARD TABLE OF soli,
lt_url_tab TYPE STANDARD TABLE OF so_url,
lt_objhead TYPE STANDARD TABLE OF soli.
**--> Local variable declaration.
DATA : lv_filename TYPE string,
lv_file_name_with_path TYPE chkfile,
lv_stripped_name TYPE string,
lv_name TYPE char30,
lv_url_tab_size TYPE sytabix,
lv_ep_note TYPE borident-objkey.
ls_object-objtype = 'BUS2089'.
ls_object-objkey = '001095510000020022'.
ls_obj_data-objdes = I_FILE_NAME.
ls_obj_data-file_ext = I_FILE_EXT.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = I_FILE
TABLES
binary_tab = lt_content.
CALL FUNCTION 'SO_CONVERT_CONTENTS_BIN'
EXPORTING
it_contents_bin = lt_content[]
IMPORTING
et_contents_bin = lt_content[].
**--> Getting folder ID to save data
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
region = 'B'
IMPORTING
folder_id = ls_fol_id
EXCEPTIONS
communication_failure = 1
owner_not_exist = 2
system_failure = 3
x_error = 4
OTHERS = 5.
IF sy-subrc = 0.
ls_obj_data-objsns = 'O'.
ls_obj_data-objla = sy-langu.
ls_obj_data-objlen = LINES( lt_content ) * 255.
CLEAR ls_content.
CONCATENATE '&SO_FILENAME=' I_FILE_NAME '.' I_FILE_EXT INTO ls_content.
APPEND ls_content TO lt_objhead.
**-->To Create an Object and Move to a Folder
CALL FUNCTION 'SO_OBJECT_INSERT'
EXPORTING
folder_id = ls_fol_id
object_hd_change = ls_obj_data
object_type = 'EXT'
IMPORTING
object_id = ls_obj_id
TABLES
objcont = lt_content
objhead = lt_objhead
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 ls_object-objkey IS NOT INITIAL.
* COMMIT WORK AND WAIT.
ls_folmem_k-foltp = ls_fol_id-objtp.
ls_folmem_k-folyr = ls_fol_id-objyr.
ls_folmem_k-folno = ls_fol_id-objno.
ls_folmem_k-doctp = ls_obj_id-objtp.
ls_folmem_k-docyr = ls_obj_id-objyr.
ls_folmem_k-docno = ls_obj_id-objno.
lv_ep_note = ls_folmem_k.
ls_note-objtype = 'MESSAGE'.
ls_note-objkey = lv_ep_note.
**-->Link the object ID to trip No.
CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
EXPORTING
obj_rolea = ls_object
obj_roleb = ls_note
relationtype = 'ATTA'
EXCEPTIONS
no_model = 1
internal_error = 2
unknown = 3
OTHERS = 4.
IF sy-subrc = 0.
* COMMIT WORK AND WAIT.
ENDIF.
ENDIF. " SO_OBJECT_INSERT
ENDIF. " SO_FOLDER_ROOT_ID_GET
ENDFUNCTION.
Similar Messages
-
Code for capturing values from BARCODE Label using Scanner into SAP FIelds
Hi Gurus
i am a functional consultant and have not worked on <b>BARCode label Scanning</b> using a barcode Scanner, For my project i need to Sccan a BArcode label which has 25 fields and need to populate it into 16 SAP fields.
and these values are then saved in a custom Z table from whwre it can be used for other t-codes and reports
So can anyone please help me as to how to do this and is there any steps for uplaoding this data directly while scanning the label??
Thanks in advance for your help and appreciate your responses
RegardsHi,
There were tools and method by which we can read barcode data.
Can you please let me know what is the instrument you are using and whether it was integrated with SAP or not?.. If not you can as barcode reader manufacturer for some executable files for to read the current value of barcode. By executing those files we can read the current value of Barcode into SAP through some function modules.
Thanks,
Saida Rao -
Saving Images Using Vision Acquisition Express
I'm trying to save an Image as a jpg using Vision Acquisition Express. My code looks like this. I am able to view the images and scroll through them afterwards, but when I add the file saving portion, I get an error that says "Error 1074395995 occured at IMAQ WriteBMPFile File not found."
How should I go about Fixing this?
Also, when i was running this before, I was getting a memory error and I couldn't figure out how to clear the memory. I was only able to fix this by scraping my previous script and starting over. I haven't gotten this error so far.
Attachments:
TakingImages.vi 156 KBHi,
The error you are getting indicates that the file path is invalid. I just set the file path to my desktop and I could save the files. I would double check to make sure the path you specified is valid for the computer you are running it on.
As far as the memory error, it is really hard to say what the cause is. If you aren't getting it anymore then I wouldn't be to concerned.
Regards,
Greg H.
Applications Engineer
National Instruments -
Automator to scan images using Twain into Photoshop CS
Hi, I Need to scan about 500 certificates to my hard drive.
I have Photoshop CS and Epson 1650 scanner. What I would like to do it to be able to run an automate task from Photoshop that scans, imports and opens the certificate.
To import at the moment I have to go to FIle>Import>EpsonTwain 5. Then I have to wait each time as Epson Twain boots up (Is there a way of keeping this open?). Then I have press either the Full Auto Mode or Scan (Scan for Preset manual parameters, which I would prefer) before the image finally appears.
I would then like to finish the automator run with Image>Adjustments>Auto levels and Save as.
Photoshop does not appear in the Applications Library in Automator and I am very new to Automator, so if SKS could point me in the reight direction I would be very grateful.
Thanks and take care. Matt
iMac 800MHz Power PC G4 Mac OS X (10.4.6) 1GB SDRAM>
Hi,
You can try a package named: JTwain, which is
available at http://asprise.com/product/jtwain.
JTwain supports all kinds of digital cameras and
scanners. You can use Java to access, contorl digital
cameras and scanners, and of course, to acquire
images with flexible settings.
The developers' guide is available @
http://asprise.com/product/jtwain/devGuide.php
In its simplest case, one line of Java code can solve
your problem.
Good luck!Hi
this is licensed... have to figure out an implementation of TWAIN itself.. -
Uploading Images using Mobile Application(Android)
I was going through the tutorials on the Flex Mobile Test Drive.Those are great tutorials for sure.
I found one thing missing from there is the way one can upload photos from the mobile device.In general Flex application a browse window comes on using file reference.But what to do on Mobile device. Do I need to use the same file refrence and if yes how to display the folder from the memory card etc.
Thanks
AnuragI'm in the process of implementing this, so I can't say if it works or not.
http://www.chaosm.net/blog/2011/06/04/flex-mobile-upload-photo-to-server-with-php/ -
Script to open images using bridge for photoshop
hi,
i am looking for photoshop script to open set of selected images using bridge into photoshop and handle those images into a layers for the active document.
Thanks,
Thulasiram.SI'm not 100% sure what you are looking for, but this is not the best forum to be looking. You either want the Bridge scripting forum, or the Photoshop one:
http://forums.adobe.com/community/bridge/bridge_scripting
http://forums.adobe.com/community/photoshop/photoshop_scripting
Also, please trim the links from your signature in the future. (I did it for you this time.)
Harbs -
Error in importing image into SAP using SE78
Hi to all,
I was trying to upload a '.bmp" image into SAP using SE78 but I failed.
Se78 -> BMAP Bitmap Image -> Graphic -> Import -> Specified the complete path ->given name desc and type .
Ended up with the following message.
Graphic TRF_LOGO_REV could not be saved
(2TRF_LOGO_REV)
Pls. help as I am not sure whether I missed any step.
Thankx in advance.Hi,
Go to SE78 Transaction ie Aministration of form graphics,
there select GRAPHICS General Graphics,under this BMAP Bitmap Images will come.
select that,then a sub window will appear.
There give the name of your logo and select the import button which is at the extreme left.
Then again a sub window appears,there give the path name and name of the logo,and some description then press enter.
Now the logo is uploaded,for preview you can select last button which is print preview.
Now goto the form,select the window where you want to print the logo.
Then in that window place the cursor at tag coloumn and select command line.
Now go to INSERT and select GRAPHICS.A subwindow appers click on 'stored on Document Server',
give the name of the logo and press enter.
Then the image information will be displayed on the form.Save the form and activate it.
Go to se38 transaction write the print program and execute.
Regards,
jaya -
I save a lot of images using firefox, often times from a large batch or series of images. It used to be that I would click on a previously saved image and the entire file name including the file extension (i.e. image_example.jpg) would appear in the "save as" line. Now when I click on a previously saved file, the file name appears without the file extension (i.e. image_example). Which means I have to manually type .jpg every time. For a large collection of images that I am hoping to use the same root file name and then add chronological numbers at the end, this has become incredibly frustrating, especially as it is a previously unnecessary task.
I am using a new Macbook Pro and maybe there's something Apple related to this...? It did not happen on my old PowerBook G4. I have file extensions turned on in System Preferences.
It should be noted that I have searched high and low and have even gone into the Apple Genius Bar where they were just confused as I was and of course ended by urging me to use Safari (shocker!) as it has all kinds of new extensions and bells and whistles. I seriously feel alone on an island with this dumb, hard to google problem. Thanks so much for any help anyone out there might have.
I mean: is this as simple as changing a setting in about:config?
Your assistance is greatly appreciated.Thanks for your response Mylenium, however like I mentioned multiple times, I did change all of my trackpad/scrolling settings in system preferences. And if I wanted to use a normal mouse (or a tablet), I would've gotten an iMac instead of a MacBook Pro. I travel often and work all over the place, not always with access to a decently sized workspace that would be required for using a mouse or tablet.
-
Upload data from Excel into SAP CRM using webservices
Hi,
I want to upload the data from EXCEL into SAP CRM using a web service, can anyone say me the process and also how to map the excel and the source code structures.
Thanks,
Sanju.Try the following :
Class: CL_GUI_FRONTEND_SERVICES
Method: GUI_UPLOAD
Thanks
<b>Allot points if this helps!</b> -
Reading of File from legacy system into SAP Application Server using SAP XI
Hi All,
I have a file in <b>Legacy System with Exchange rates information data</b> i have to read that file using SAP XI process and put that file in SAP Application Server in SAP Specific Format and latter i have to use program RFTBFF00 to upload the file in the Application Server into SAP Tables.
Can anybody tell me how can i do this with some example of same scenario.
It would be better if anybody provides code example as i am new to SAP XI.
Thanks in advance.
Warm Regards,
Rayeez.Hi Shaik,
You need the access to the file system of ur legacy application and then you can follow this link for the required ifnormation
File & Header
Regards
Vishnu -
Query on integrating windows file server into SAP KM using WEBDAV
hi
I have sucessfully integrated windows file server into SAP KM using WEBDAV. I have query in it regarding the possible validation against the portal Database user. Can we configure such that the user comparison happens for LDAP as well as database user. Have anyone configured such a scenario?
Regards,
Ganesh NHi Ganesh,
this should work in principle.
However you would need a user in Active Directory for each user in the portal database that should connect to the file server if you are using the SSO22KerbMap Module as I assume.
In my whitepaper I have mentioned this for the internal user index_service that does only exist in the portal database.
Best regards,
André -
Reading XML file using BAPI and then uploading that xml file data into SAP
I am getting a xml file from Java server. I need to take
data from this file using BAPI and need to upload into SAP using SAP.
Please tell me how to read XML files using BAPI's.<b>SDIXML_DATA_TO_DOM</b> Convert SAP data (elementary/structured/table types) into DOM (XML
<b>SDIXML_DOM_TO_XML</b> Convert DOM (XML) into string of bytes that can be downloaded to PC or application server
<b>SDIXML_DOM_TO_SCREEN</b> Display DOM (XML)
<b>SDIXML_DOM_TO_DATA</b>
data: it_table like t001 occurs 0.
data: l_dom TYPE REF TO IF_IXML_ELEMENT,
m_document TYPE REF TO IF_IXML_DOCUMENT,
g_ixml TYPE REF TO IF_IXML,
w_string TYPE XSTRING,
w_size TYPE I,
w_result TYPE I,
w_line TYPE STRING,
it_xml TYPE DCXMLLINES,
s_xml like line of it_xml,
w_rc like sy-subrc.
start-of-selection.
select * from t001 into table it_table.
end-of-selection.
initialize iXML-Framework ****
write: / 'initialiazing iXML:'.
class cl_ixml definition load.
g_ixml = cl_ixml=>create( ).
check not g_ixml is initial.
write: 'ok'.
create DOM from SAP data ****
write: / 'creating iXML doc:'.
m_document = g_ixml->create_document( ).
check not m_document is initial.
write: 'ok'.
write: / 'converting DATA TO DOM 1:'.
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
EXPORTING
NAME = 'IT_TABLE'
DATAOBJECT = it_table[]
IMPORTING
DATA_AS_DOM = l_dom
CHANGING
DOCUMENT = m_document
EXCEPTIONS
ILLEGAL_NAME = 1
OTHERS = 2.
if sy-subrc = 0. write 'ok'.
else. write: 'Err =', sy-subrc.
endif.
check not l_dom is initial.
write: / 'appending DOM to iXML doc:'.
w_rc = m_document->append_child( new_child = l_dom ).
if w_rc is initial. write 'ok'.
else. write: 'Err =', w_rc.
endif.
visualize iXML (DOM) ****
write: / 'displaying DOM:'.
CALL FUNCTION 'SDIXML_DOM_TO_SCREEN'
EXPORTING
DOCUMENT = m_document
EXCEPTIONS
NO_DOCUMENT = 1
OTHERS = 2.
if sy-subrc = 0. write 'ok'.
else. write: 'Err =', sy-subrc.
endif.
convert DOM to XML doc (table) ****
write: / 'converting DOM TO XML:'.
CALL FUNCTION 'SDIXML_DOM_TO_XML'
EXPORTING
DOCUMENT = m_document
PRETTY_PRINT = ' '
IMPORTING
XML_AS_STRING = w_string
SIZE = w_size
TABLES
XML_AS_TABLE = it_xml
EXCEPTIONS
NO_DOCUMENT = 1
OTHERS = 2.
if sy-subrc = 0. write 'ok'.
else. write: 'Err =', sy-subrc.
endif.
write: / 'XML as string of size:', w_size, / w_string.
describe table it_xml lines w_result.
write: / 'XML as table of', w_result, 'lines:'..
loop at it_xml into s_xml.
write s_xml.
endloop.
write: / 'end of processing'.
end of code
Hope this will be useful.
regards
vinod -
Regarding Upload of data into SAP from Application server using DATA SETS
Hi all,
I have a problem when uploading data that is application server [.txt file] into SAP using OPEN DATA SET,READ DATA SET & CLOSE DATA SET it is now going to dump. The file is actually splits the fields by using Tab Delimiter.
During uploading some junk values are coming with '#' so it going to dump and giving follow type of error.
Runtime Errors CONVT_NO_NUMBER
Exception CX_SY_CONVERSION_NO_NUMBER
Unable to interpret "#0#0#0#0#0#0#0#" as a number.
Can any one solve the above issue as i need it urgently.
Thanks in advance.
Thanks & Regards,
Rayeezuddin.Hi Hielman,
Thnaks for that reply and for effort you are putting to solve my issue.
I had done the same thing what u have posted prior to your reply but still i am getting dump.
FORM f_get_legacy_data .
DATA: l_tab type xstring,
l_tab1(1) type c,
s type x.
move '23' to l_tab.
move l_tab to l_tab1.
OPEN DATASET v_pfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
OPEN DATASET v_pfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc <> 0.
MESSAGE text-207 TYPE c_e.
ELSE.
DO.
CLEAR wa_input1.
READ DATASET v_pfile INTO wa_input1.
READ DATASET v_pfile INTO wa_read.
IF sy-subrc EQ 0.
move wa_read to i_txt-txt.
append i_txt.
ELSE.
EXIT.
ENDIF.
ENDDO.
s = '09'.
loop at i_txt.
move i_txt-txt+10(1) to l_tab1.
move '#' to l_tab1.
split i_txt-txt at s into wa_input1-vbeln wa_input1-posnr
split i_txt-txt at '#' into wa_input1-vbeln wa_input1-posnr
wa_input1-per0bal wa_input1-per1val
wa_input1-per2val wa_input1-per3val
wa_input1-per4val wa_input1-per5val
wa_input1-per6val wa_input1-per7val
wa_input1-per8val wa_input1-per9val
wa_input1-per10val wa_input1-per11val
wa_input1-per12val.
APPEND wa_input1 TO i_input1.
CLEAR wa_input1.
endloop.
ENDIF.
CLOSE DATASET v_pfile.
IF i_input1[] IS INITIAL.
If there is no data in the legacy file or if the structure of the
legacy data does not match with that of internal table error message
need to be displayed.
MESSAGE text-211 TYPE c_e.
*&--begin of change--
ELSE.
CLEAR: wa_input, wa_input1.
LOOP AT i_input1 INTO wa_input1.
MOVE wa_input1 TO wa_input.
MOVE: wa_input1-vbeln TO wa_input-vbeln,
wa_input1-posnr TO wa_input-posnr,
wa_input1-per0bal TO wa_input-per0bal,
wa_input1-per1val TO wa_input-per1val,
wa_input1-per2val TO wa_input-per2val,
wa_input1-per3val TO wa_input-per3val,
wa_input1-per4val TO wa_input-per4val,
wa_input1-per5val TO wa_input-per5val,
wa_input1-per6val TO wa_input-per6val,
wa_input1-per7val TO wa_input-per7val,
wa_input1-per8val TO wa_input-per8val,
wa_input1-per9val TO wa_input-per9val,
wa_input1-per10val TO wa_input-per10val,
wa_input1-per11val TO wa_input-per11val,
wa_input1-per12val TO wa_input-per12val.
APPEND wa_input TO i_input.
CLEAR: wa_input, wa_input1.
ENDLOOP.
ENDIF.
ENDFORM. " GET_LEGACY_DATA
When i am giving input as
Directory /pw/data/erp/D5S/fi/up
Name: Backlog1616_D1S.txt
BKCOPO1 BKSOI1 1000.00 100.00 -200.00 0 0 0 0 0 0 0
BKSOPO2 BKSOI2 2222.22 0 300 0 0 0 0 0 0 0
BKSOPO3 BKSOI3 -3000 400 0 0 0 0 0 0 0 0
BKSOPO4 4000.55 500 600 0 0 0 0 0 0 0
0040000000 000010 -100 -110 -110 0 0 -600 0 0 0 0
0040000001 000010 -110 -110 0 0 0 -610 0 0 0 0
I am getting i_input internal table populated as follows at the end of that subroutine.
After appending [APPEND wa_input TO i_input].
BKCOPO1#BK|000000| 0.00 | 0.00 | 0.00 |
BKSOPO2#BK|000000| 0.00 | 0.00 | 0.00 |
BKCOPO3#BK|000000| 0.00 | 0.00 | 0.00 |
BKCOPO4##4|000000| 0.00 | 0.00 | 0.00 |
0040000000|000000| 0.00 | 0.00 | 0.00 |
0040000001|000000| 0.00 | 0.00 | 0.00 |
And output is showing erronious records: 6
No entries inserted.
Can you solve this issue. -
How to upload data into SAP BW Info Objects using SAP XI
Hi,
I need to upload master and hierarchy data into SAP BW Info Objects using SAP XI as EAI.
Can anyone suggest me the best solution to do it.
Thanks in Advance,
Volker.Hi! Have you not checked the BW-XI Integration document? It is available on the main page of the SDN section for XI. Almost all the steps for the integration are there...
-
How To upload business partner into sap crm using xif Adapter by XML File
HI Guru's,
I got Requirement to upload the business partner information into sap crm system using xif adapters from xml file , please give imformation how can achive this .
Regards,
Naveen Kumar MSDear Naveen,
please see the information given in note 448742 General notes on CRM external interfaces!
Hope you can find the information!
Regards, Gerhard
Maybe you are looking for
-
Variable type Hierarchy, how to get the value from another similar variable
Hi. We have created a variable, type hierarchy (using ORGEH hierarchy in HR based on 0ORGUNIT). Let's call this VAR1. We want to fill this with an User Exit, beacuse we want VAR1 to have the value from another variable, VAR2, which is also type hiera
-
My computer won't detect my ipod 4g when it is plugged in and it won't sync with itunes, what should I do???
-
I'm using Lightroom 5 on a PC. Nothing else open. In the Library module I right click on the file folder and the menu drops down. I choose "rename", enter the new name, and hit return. I get a message that says the file cannot be renamed or moved
-
Notifications not working Mountain Lion :(
Hey I downloaded Mountain lion yesterday looking forward to this new Notifications feature and i installed and everything only to see...... NO NEW NOTIFICATIONS Went into System Preferences> notifications and everything is turnt on. PLEASE HELP!
-
Hello I am new to Java development and as I used to work with MS.NET usually rely on parameter names, so that I don't have to read documentations each time I use a method. However I noticed that WLW replaces the names of method parameters with arg0,