How to present pics from SAP folder?
Hi,
I would like to present a pic that is on the SAP folder (visible via AL11).
I want to use logical filename to get the path to that gif.
How can I present this pic on the screen?
Thanks,
Itay
hi itay,
you can use webdynpro IMAGE ui element. Bind the Source Property of the image UI element to the URL for this image. Check the below code on how to get IMAGE source URL in HR
DATA: it_toav0 TYPE TABLE OF toav0,
wa_toav0 TYPE toav0,
p_exists TYPE c.
DATA: ex_length TYPE int4,
ex_document TYPE TABLE OF tbl1024,
ex_message TYPE bapiret2,
img TYPE xstring,
url TYPE string,
pernr TYPE persno VALUE `1006786`.
DATA: cached_response TYPE REF TO if_http_response,
guid TYPE guid_32.
* check employee image
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
p_pernr = pernr
p_tclas = 'A'
IMPORTING
p_exists = p_exists
p_connect_info = wa_toav0.
IF p_exists = 1.
* get image data
CALL FUNCTION 'ALINK_RFC_TABLE_GET'
EXPORTING
im_docid = wa_toav0-arc_doc_id
im_crepid = wa_toav0-archiv_id
IMPORTING
ex_length = ex_length
ex_message = ex_message
TABLES
ex_document = ex_document.
* convert to xstring
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = ex_length
IMPORTING
buffer = img
TABLES
binary_tab = ex_document.
CREATE OBJECT cached_response
TYPE
cl_http_response
EXPORTING
add_c_msg = 1.
* set image to mime
cached_response->set_data( img ).
cached_response->set_header_field(
name = if_http_header_fields=>content_type
value = 'image/pjpeg' ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 180 ).
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
cl_wd_utilities=>construct_wd_url(
EXPORTING application_name = 'Z_JR05'
IMPORTING out_local_url = url ).
CONCATENATE url '/' guid sy-uzeit INTO url.
cl_http_server=>server_cache_upload(
url = url
response = cached_response ).
* set photo
DATA:
node_photo TYPE REF TO if_wd_context_node,
elem_photo TYPE REF To if_wd_context_element,
stru_photo TYPE wd_this->element_photo.
node_photo = wd_context->get_child_node(
name = wd_this->wdctx_photo ).
elem_photo = node_photo->get_element( ).
elem_photo->set_attribute(
EXPORTING
name = `PHOTO`
value = url ).
ENDIF.
Also check this excerpt from Thomas Jung for previous Thread on same issue
SE78 is the old graphics store for SAPScript. Not the best place to store images now because of the limited support for graphic types. Usually you store as Bitmaps there, making those images highly inefficient for usage on the web. Unless you have thousands of images you need to use, I would suggest downloading them, converting their format and storing them in the MIME repository. If you absolutely must access those images for some reason, look at the function modules in group STXBITMAPS - function module SAPSCRIPT_GET_GRAPHIC_BDS or SAPSCRIPT_BITMAP_GET depending upon which of the two formats/folders where used in SE78.
greetings
Prashant
Similar Messages
-
How to extract data from SAP in FDM 11121
I came across some documents from version 11113, says there is a SAP adapter, however ,when I check 11121 there's no such adapter, does anyone know how to extract data from SAP in FDM 11121?
I download a package from Bristlecone, but I dont see any xml files in it, just a bunch of dll and I didn't find any instructions on how to set up/configure in FDM, it just explained how to register in SAP app server and client.
Hyperion 11113 has readme on sap adapter(Hyperion Readme Template), but I cannot find the same readme file in 11121, all I can find is ERP Integration Adapter document. any idears where I can find at least a readme document? -
How to Pull data from sap r/3 tables to oracle tables
how to fetch data from sap r/3 tables & data pulled to oracle table .
GIVE THE APPROPRITE ANSWER FOR THIS.
THANKS IN ADVANCE.
If it is useful for me , i am giving point.
regards ,
Navita
Edited by: NAVITA YADAV on Mar 7, 2008 2:07 PM
Edited by: NAVITA YADAV on Mar 7, 2008 2:08 PMYou need to perform some native SQL to fetch data. Before doing this connection must be exists b/w your R/3 and Oracle server.
Basis team will help you to have connection.
Check the connection name in the table DBCON.
Check the below code to handle native SQL.
SELECT SINGLE DBMS
FROM DBCON
INTO DBTYPE
WHERE CON_NAME = DBS.
IF DBTYPE = 'ORA'.
TRY.
EXEC SQL.
CONNECT TO :dbs
ENDEXEC.
ERROR Handling for Native SQL *************
IF SY-SUBRC <> 0.
MESSAGE `Docusphere connection failed.` TYPE 'I'.
EXIT.
ENDIF.
EXEC SQL PERFORMING loop_output.
OPEN C1 FOR
SELECT UK1, UK7, uk6, uk9, uk22, uk23, uk25 "field names of Oracle table
FROM IIS_DOCS_AP10D
WHERE ( UK2 = 'ZFIINVOICE' OR UK2 = 'ZFIPAYREQ' ) AND
UK19 = 'E' AND
UK20 IS NULL
ENDEXEC.
DO.
CLEAR W_OUTPUT.
EXEC SQL.
FETCH NEXT C1 into :wa1-arc_doc_id, :wa1-bukrs, :wa1-belnr, :wa1-gjahr, :wa1-wi_id, :wa1-ARCH_METHOD, :wa1-barcd.
ENDEXEC.
enddo.
Reward points if helpful................. -
How to save pics from facebook in nokia lumia 625
I am using Nokia Lumia 625
please tell me how to save pics from Facebook
while using thanksSure it does;
Select (TAP) the post you like to save;
Then TAP AND HOLD to select the save option
Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..
Attachments:
tap1.png 502 KB
tap2.png 284 KB -
How to present results from a sql-query in java
Hi - I'm having problems finding out how to present data from a database-query in a nice looking way in a JFrame. Want to present them similar to the way they are presented in the database. Is there an easy way doing this?
Tried to use a JTable, but it's difficult when data in the table should be able to change all the time, i.e the number of rows. What is a Html-table? Can i use it in an application?
-
How to move pics from phone to sd card?
Could some one explain how to move pics from phone to sd card?
before you fiddle with it you may want to back up your photos on your PC. This is how to move them from phone to PC.
How to Transfer photos from HTC memory to PC
1) From the phone: select: Menu>settings>connect to pc>as disk
2) Attach phone to pc with usb cable
3) From pc open: Computer>removable disk F>dcim>100media
Note: you can also pull the mini sd card out of you phone and plug that directly into your computer. just make sure to unmount the disk through your settings options before you remove it from the phone. -
How to transfer pics from iPhoto to iPhone 5s?
how to transfer pics from iPhoto to iPhone 5s?
Read here:
https://discussions.apple.com/thread/5055818
Hope this helps -
How to remove pics from my 3GS...???
How to remove pics from my 3GS..???
Photos taken with the phone can be deleted by selecting them and hitting the little wastebasket icon in the right bottom corner.
Photos you did sync to your phone, can only be removed by deselecting them in the photo pane in iTunes, the following sync will remove them from the phone. -
How to move pics from camera role to photo stream?
How to move pics from camera role to photo stream?
before you fiddle with it you may want to back up your photos on your PC. This is how to move them from phone to PC.
How to Transfer photos from HTC memory to PC
1) From the phone: select: Menu>settings>connect to pc>as disk
2) Attach phone to pc with usb cable
3) From pc open: Computer>removable disk F>dcim>100media
Note: you can also pull the mini sd card out of you phone and plug that directly into your computer. just make sure to unmount the disk through your settings options before you remove it from the phone. -
How to download pics from Verizon cell phone to ipad2?
How to download pics from Verizon cell phone to ipad2?
Is it an iPhone ? If it is and you don't want to go via your computer and iTunes, then the camera connection kit can connect the iPhone to the iPad and can copy photos to the iPad. Also there are photo transfer apps such as Simple Transfer which can copy photos between iOS devices via your wifi network.
If it's not an iPhone then you probably need to go via your computer and sync them via iTunes, or if there aren't that many photos and your phone supports it you can email them to yourself -
How to import photos from a folder that contains hundreds of folders to Photos keeping the same folder structure?
You'll have to do that manually, i.e. export each album of photos to a folder with the same name located on your hard drive via the File ➙ Export ➙ File Export menu option.
OT -
HOW to retrive data from SAP Tabel
Hi Friends,
1)Can you please explain how to retrive data from SAP table(example AFRU).
2) we had requriment based on the qunatity , Product name and date we need to display KPI's .KPI is based no products manfactured per day with some conditions
Regards
SrikanthHi Udayan,
I want to retrive SAP Table data from xMII.can you please explain elabarately how to call "RFC_READ_TABLE" from xMII.
please do the needful
Thanks
Srikanth -
How to extract data from SAP 4.7 and upload data to SAP ECC 6.0
Hi,
How to extract data from SAP 4.7 and upload data to SAP ECC 6.0? Can i use BDC,BAPI,LSMW? Help me please.hi
good
both works not possible simultaneously.
If you want to do it in two separate task than you can use the GUI_UPLOAD function module to fulfill your requirement.
thanks
mrutyun^ -
How to erase pic from i cluod?
how to erase pic from i cluod?
Resetting Photostream
At the moment you cannot Delete individual Photos; It's all or nothing.
http://support.apple.com/kb/HT4890 -
How to send SMS from SAP to Any mobile
Hi Friends,
I have a requrement. How to send SMS from SAP to Any mobile?? For Example: If i created PO in SAP then i want to send a SMS to Concerned Vendor and HOD.
Please provide the pre-requisites?
NaveenHi Naveen,
there is a standard webservice globally available called Send SMS and you can consume that webservice with the help of CAF and you can send PO number as SMS, If the standard webservice do not work then you have to create your own webservice to fulfill the functionality.
Regards
Manohar
Maybe you are looking for
-
Install Anywhere error!!
Hi, I have just installed "InstallAnywhere" and am using NetBeans IDE to develop my code. I created a very simple gui (just the frame) and tried to create an executable with InstallAnywhere but I got this error: Unable to locate the applications main
-
I recently (Jan 2012) acquired a MacBook Pro (MBP) running 10.7.4 and an AirPort Express. I also have an old PPC G4 tower (Digital Audio model) running 10.4.11. The OS software on both machines is totally up to date. AirPort Utility on the G4 is 5
-
Any more updates to 10.4 after 10.5 is out?
Once Mac OS X 10.5 comes out, will we users that continue to use 10.4 get any more software updates? I'm a recent switcher and i'm used to being able to use, say later versions of internet explorer etc. on earlier versions of Windows; will Safari 3.0
-
Stopping BPM thru a msg received via mail adapter, based on mail content
Hi, I have a scenario where a BPM is used to send document to a 3rd Party system, which ends upon receipt of a Technical message ack (TMA) carrying the Correlation ID in it. However, there are instances wherein a duplicate document in sent to the 3rd
-
Access applications developed in Developer suite 10g by Internet.
I have a small intranet setup where we have developed applications using Oracle 10g, Developer suite10g using windows server OS 2003 and for application server in windows xp. This works fine locally. Now the client wants to access this application fr