Image from Smart Forms BDS to BSP-Layout
Hi,
I need some help by developing a new part of our BSP-Application: I got a graphic (bmp)
on Business Document Server(se78). I also need the same graphic displayed in BSP-Website.
I found some help in http://help.sap.com/saphelp_470/helpdata/de/3e/c4308945ca4953bb100b9661eab3c2/content.htm
but I really don't know how to use.
I tried to get the graphic with <IMG SRC="http://xxxx/sap/bc/bsp/smart_forms/gr/graphics/bmap/BCOL/TEST1.BMP"> in Layout of the BSP-Site, but the picture wasn't shown. The image should be loaded in time. Mimes has to be transported. OnInputProcessing the image will be created and put on the Business Documents Server. Next step is to show it in BSP.
Maybe you can help me.
Regards,
Britta
Hi Britta,
please have a look at the following Weblog:
BSP Programming: Handling Of Non-HTML Documents
/people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
This explains the way how to display non-HTML documents like pictures in a BSP.
Please don't open two threads for the same topic.
Regards,
Rainer
Similar Messages
-
Want to scan an image from oracle forms -- Is it possible??
Hi all,
I want to scan an image from oracle forms through a scanner. I have not found any help on this topic. Pls help with example or code or with demmo form.
BR
Tarik.
Edited by: Tarik_kuet on Sep 9, 2008 1:39 PM
Edited by: Tarik_kuet on Sep 9, 2008 1:39 PMA colleague of me did it like this:
* the scanner is connected to a network document server.
* the document server sends(ftp) the image to the oracle XDB
* a form shows the scanned documents(using a view on the ftp directory in XDB using path_view)
* in this form the user can move the scanned document(s) to a (blob field) in a table.
Hope this helps a bit...
Edited by: poelger on Sep 9, 2008 10:08 AM -
Displaying Image in Smart form
Hello CRM Gurus,
I am getting the image Data, Is there any method or function module to dispaly image in smart form.......... with out Graphich Window.....
Thanks,
Feroz.Hi Feroz,
Use FM SSFCOMP_PRINT_GRAPHIC
Please refer to following Code template:
CALL FUNCTION 'SSFCOMP_PRINT_GRAPHIC'
EXPORTING BM_NAME = %GRAPHICKEY-TDNAME
BM_OBJECT = %GRAPHICKEY-TDOBJECT
BM_ID = %GRAPHICKEY-TDID
BM_TYPE = %GRAPHICKEY-TDBTYPE
BM_RESIDENT = ' '
BM_RELMODE = 'W'
BM_ALIGNMENT = 'L'
BM_MARGIN = '0.00'
BM_UMARGIN = 'CM'
BM_VALIGNMENT = 'C'
NAME = 'Z_LOGO'
EXCEPTIONS NON_MAIN_OVERFLOW = 1
OTHERS = 2.
Best Regards,
Pratik Patel
Reward with point it is of any use to you! -
Extracting image from retuned form
Hi have a form which asks the end user to place 3 images into it.
Is there a way in which i can then download those images from the form at my end?Thanks Patrick.
We are thinking about using a third party native Java library to do this (http://www.qoppa.com/pdffields/jpfindex.html). I was hoping we could use acrobat reader, since everyone has it!
Here are a few more things.
1. We are an Software Vendor that sells our solutions - our software solutions need to extract the xml from pdf. We have a java based program that parses this xml and does stuff with it.
2. Obviously, we would need to be able to redistribute whatever solution we use to extract the xml from pdf.
3. Can Acrobat Professional batch mode be executed from Java?
4.. If so, Instead of distributing a full blown Acrobat Professional or requiring customers to buy it, is there a library that Adobe provides that we could repackage and ewdistribute? If so, can you send me some pointers on where I could find what those libraries would be and how much would they cost for each distribution we do.
5. If no, are you familiar with qoppa or do you have recommendations on any other third party libary for Java?
Thanks a bunch! -
Smart Form problem with address layout
Hello everyone,
I need your help please for a smart form problem. We need the address layout for great britain with street1, street2 etc. but currently street2 is alligned before street1.
We are using the FM ADDRESS_INTO_PRINTFORM (SAP standard address node) and according to the documenation the layout for GB is different as we see it currently.
We have checked the sold-to and all contact persons, they have as country GB and language EN maintained.
In customizing for address screen layout there is nothing chosen (tested to set up Europe, but did not change anything).
For the customizing 'specify my countries...' we have maintained GB as country with the address layout key 006, vehicle country key GB and language key EN.
For the described setting shouldn't there be designed the address in our smart forms according to 006? Anyhting in customizing we missed?
Thanks a lot for your answers.
TorstenHi,
Try to use line priority of FM, below is a brief of documentation. You can read it more in FM documentation:
Control Parameters
See also the parameter documentation.
ADDRESS_TYPE - Address type (from 3.0C)
There are three types of address:
Address type '1': addresses of firms or organizations; the address
structure which is used in most SAP applications as 'Address'.
Address type '2': address of a person
Address type '3': work address, usually the address of a contact person
in a company
The default value SPACE for the address type is handled like type '1',
and is needed for the upwards-compatibility of the function module.
Which parameters are used for which address type is explained in the
ADDRESS_TYPE parameter documentation.
The three character "address layout key" of the recipient country (LAND1) controls which of the available country-specific routines is used to format addresses for the country in question. This key is stored in field T005-ADDRS and is entered in Customizing under Global settings -> Set countries -> Define countries, on the detail screen under "Address layout key".
Keys for customer routines in the SAP enhancement SZAD0001 can be
maintained via the transaction SM30 (extended table maintenance),table
name T005A, in the customer name range, and be assigned in country customizing.
The address attributes are passed in the structures ADDRESS1 (type 1), ADDRESS2 (type 2), ADDRESS3 (type 3) or ADRSWA_IN (type SPACE).
NUMBER_OF_LINES (ADRSWA_IN-ANZZL)
The number of lines available for the address layout. If the number of
lines is not sufficient for the complete layout of an address, then
lines are consecutively suppressed according to the rules of the country in question. Use the parameter LINE_PRIORITY (ADRSWA_IN-PRIOR) overrules the standard sequence in which the output lines are to be suppressed.
LINE_PRIORITY (ADRSWA_IN-PRIOR)
If not equal to SPACE, this field overwrites the standard sequence in
which the lines are suppressed if the available number of lines ANZZL is
insufficient.
The standard sequence is defined as follows:
Type 1: 'AP43HRT7I86LC2BS5O' (GB: 'APRT4327I86CBS5LO')
Type 2: 'APHRT7I86LCBS5O' (GB: 'PRT7I86CBS5LO')
Type 3: 'APF43HR7I86TLC2BSND5O' (GB: 'APRT4327I86CBS5LNDIO')
where (if they occupy a line of their own):
A = Title
P = Mandatory empty line 1
F = Function of the contact person in the company
4 = Name 4
3 = Name 3
H = Different city
R = Region
T = District
L = Name of country
C = Postal code
T = District
7 = Street 3 (field STR_SUPPL2)
I = Street 5 (field LOCATION)
8 = Street 4 (field STR_SUPPL3)
6 = Street 2 (field STR_SUPPL1)
L = Country
C = Postal code
2 = Name 2
B = PO Box
S = Street or PO Box
5 = c/o name
N = Name (and title) of a person
D = Department
O = City
Which of these attributes are available for maintenance can vary. All
fields exist in Business Address Services.
STREET_HAS_PRIORITY (ADRSWA_IN-WAREN)
'X': Street has priority over PO Box (delivery address for example)
' ': PO Box has priority over street. This is the default value.
regards, -
How to show image in Smart Form dynamically , Image is stored on local PC
Hi All,
I have a requirement where user can attach any image to PM Order in T-code IW33. Now this image gets stored on user`s local PC.
After this user will generate a report which is a Smart form, On this Smartform i have to show that attached image.
So that image will contain Order Id and attached image.
How this can be achieved.
Regards,
AbhishekActually this Image(Image of Signature ) will be coming from Mobile device and then it will be stored as an attachment for an PM Order.
So there will not be any manual interuption and therefore no one will be storing this in se78. But this image gets stored in local PC. And now i have to get this image on my Smartform.
Any idea how to do it?
Regards,
Abhishek -
Save an image from interactive form to R/3 system table
Hi to all,
my scenario is this: Web AS 7.0 (probably patched to the last available patch), NWDS 7.0 and, at the moment, a 4.6c R/3 backend system (within some months we will upgrade to ECC 6.0). I have an online interactive form with some input fields and a user, logged in, fills these fields and pressing the "Submit to SAP" button will save the datas to a custom table on 4.6c backend. All this is simple and is working, but my problem is that one of these fields is an image. The purpose is that the user click on the image field and load an image from local PC and then, pressing submit to SAP button, will save the image on the custom table.
How can I make this? Which kind of context I have to bind to the image field? I have to add a java script/form calc code to image field? And to backend side, how can I do?
Thank you very much in advance,
EnricoHi,
In your forms you got the image or a link to the image ? If it's the image the field is define as an XSTRING is supposed. If yes you can add it easily in a database table.
If it's a link, your SAP system ( 4.6 C ) need to the the repository where the image is and then you can add it in the database.If you SAP system doesn't see the repository it's impossible to do so.
Hope this help you.
Best regards -
Can't copy images from smart albums to mobile me gallery
Folks,
I'm rather new to Aperture ... so my question might be a trivial one. I'm having trouble to drag images from a smart album to a Mobile Me album. The images simply do not end up in the gallery. I can, however, create a new gallery from a selection in a smart album, and I can drag images from their regular albums to the Mobile me gallery. Is this a restriction in Aperture 2.1.4?Same problem here.
Is this just not possible?
Do I have to re-create a new MobileMe gallery every time I want to add photos?
Maybe someone wrote a script?
Thanks for any reply answering one of those frustrating questions -
Integrate pdf (converted from smart form ) into portal
Hi,
My Requirement is as follows,
We are using FPM framework and the application is developed on Webdynpro Java,
When a end user fills up the details on this application form and clicks on a Review button,
it will display the summary of the above details in a PDF format.
This PDF will be converted from a smart form in backend.
My question is how do we integrate this PDF at runtime into Portal via WebDynpro Java?
Thanks in advance,
~Veena.Hi.
First tell your abapper to make a RFC for you that returns the binary of the smartform.
Then import that RFC.
Create an Interactive Form UI Element.
-In its properties, select "usePdf" option and then in pdfSource select the attribute where the binary from the zfunction is returned.
If you dont have problems with encoding the pdf will be shown.
Wish you luck.
Bye -
How to save Image from Oracle form!!?
Hello Every Oracle forms developer
i have a from contains block with Blob column ...i store image in it
i have used read_image_file to view image in form and insert it into DB 11gR2
now ..* I want to create procedure in form_button to download image from db ..and save it in local drive ...*
thanks in advancesee this example in pl/sql
DECLARE
-- Data Variables
v_blob BLOB;
v_data_length NUMBER;
-- Loop Control Variables
v_offset NUMBER := 1;
v_chunk CONSTANT NUMBER := 32767; -- maximum chunk size
-- UTL_FILE variables
fh UTL_FILE.file_type;
BEGIN
v_blob := ... populate the blob variable here
v_data_length := DBMS_LOB.getlength (v_blob);
-- Open the file
fh := UTL_FILE.fopen ('RETR_DIR', 'myfile.dat', 'wb', v_chunk);
LOOP
-- Exit when our file offset is bigger than our file
EXIT WHEN v_offset > v_data_length;
-- Write the output chunk by chunk
UTL_FILE.put_raw (fh, DBMS_LOB.SUBSTR (v_blob, v_chunk, v_offset), TRUE);
-- Increment the offset by the amount written
v_offset := v_offset + v_chunk;
END LOOP;
-- Close the file
UTL_FILE.fclose (fh);
END;
Regards -
Hi,
Can you please tel me how to extract an image from the image field.
Plese let me know if there is any process for this.
I tried to extract image but the content is not coming in form data.
Thanks,
SrikanthIs that image embedded in the data?
Did you check the embeb checkbox in Designer?
Jasmin -
How to read a pdf image or Extract image from pdf form
Hi
I have to read an image from the pdf file. The requirement is to an image in the pdf file having some data i have to extract that data from pdf . Please help if you have some idea how to approach.
Thanks in AdvanceHi
Is there any sample program for using the APIS ?
ThanksYes, each of the websites for each of the APIs have tutorials and/or example applications. -
Urgent ! Code for Displaying Image from Oracle BLOB image on VB Form
Hi Plz any one have any work to showing a Picuture on Visual Basic Form, i Save the Picure in table and its column type is BLOB where i save picture, now i want to show it on VB form. if anybody knows plz tell me. and if image not found then how can i handle in nvl(field,' ') function.
Refer VB sample on Passing LOB parameters to a stored procedure. It shows how to display and insert the image from VB form to an Oracle Database in a BLOB column.
http://otn.oracle.com/sample_code/tech/windows/ole_db/oledb8/content.html
Chandar -
How to use At New Cntrol Break in smart form LAyout
Hi all respected seniors and experts.....
I am facing one problem in smart form I am creating layout for Tax Invoice in that I want to display in Header area "ARKTX" Short text for sales order item and sum of quantity "FKIMG" and Rate "GKBETR" and Gross amount after multiplying of FKIMG and GKBETR with respected to cheking Rate "GKBETR" and "ARKTX " .
Rate is changing for diffrent documnet no. e.x VBELN .....
means some time for changing of every VBELN rate is different "GKBETR"
so i want to print the same RATE's quantiy on one page and changing of Rate should print on next page onwards .....
and details of quantity with all diffrent vbeln should display on Body of layout....
I think it will solve by using At New control break .....but can any body tell me what is the exact solution of this problem
Thanx in advanceHi,
Please check this link ... and please ensure you sorted the internal table prior to use the control break events (at new and at first).
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/content.htm
Regards,
Ferry Lianto -
Display SMART form as PDF in WD ABAP
Hi ,
To display smart form as PDF , I am following the SDN article :
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785?quicklink=index&overridelayout=true
In my component , I have created the view VIEW_PDF, for this . I have created Adobe interactive UI element, and bind the property source to the attribute (XSTRING) where I will get PDF (after OTF conversion).
First of all I am using the FM SSF_FUNCTION_MODULE_NAME and usingf the import parameter fm_name .
Then using this FM
CALL FUNCTION lv_fm_name
EXPORTING
OUTPUT_OPTIONS = lwa_output_options
GW_VENREQDAT = lwa_venreqdat
GW_REQHEADER = lwa_venreqhdr
IMPORTING
JOB_OUTPUT_INFO = lv_ssf_output.
from smart form ZVM_SFM_SUMMARY,I want to get the data in OTF format using the importing parameter JOB_OUTPUT_INFO of the above FM.
But I am not able to retrieve the data .Please direct me , where am I missing?
For converting it to PDF , I am using the FM CONVERT_OTF .
regards,
amitYou may continue like this there after...
call function w_fmodule
exporting
control_parameters = w_cparam
output_options = w_outoptions ":lv_output_options
user_settings = ' '
importing
job_output_info = t_otf_from_fm
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
t_otf[] = t_otf_from_fm-otfdata[].
call function 'SSFCOMP_PDF_PREVIEW'
exporting
i_otf = t_otf
exceptions
convert_otf_to_pdf_error = 1
cntl_error = 2
others = 3.
if sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
data: l_dummy type standard table of tline,
pdf_data type xstring,
pdf_size type i.
clear: pdf_data, pdf_size.
call function 'CONVERT_OTF'
exporting
format = 'PDF'
* max_linewidth = 132
importing
bin_filesize = pdf_size
bin_file = pdf_data
tables
otf = t_otf[]
lines = l_dummy
exceptions
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
others = 5.
if sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
data lv_source like ls_pdf-source.
* navigate from <CONTEXT> to <PDF> via lead selection
lo_nd_pdf = wd_context->get_child_node( name = wd_this->wdctx_pdf ).
* get element via lead selection
lo_el_pdf = lo_nd_pdf->get_element( ).
* get single attribute
lo_el_pdf->set_attribute(
exporting
name = `SOURCE`
value = pdf_data ).
Regards
Gopi
Maybe you are looking for
-
I recently bought a D90 and when i try and open a NEF file i get this message http://i156.photobucket.com/albums/t8/opperjoe/error.jpg i have tried to install Camera Raw 5.3 (but i don't know if i install it right) but that didn't worked because it s
-
Aggregate Function in Union All Reports
Hi All, I am using a union report and in first report 1. Month/Year - Pending Count 2. Month/Year - Active Count Now I want an average line graph(Total Active Count/Num of Months) for the active count. Is it possible to generate it based on result co
-
Change from Pc to Mac now Lightroom gives error "files appear to be unsupported or damaged"
I recently upgraded from my PC to a Mac osx 7.1. I have Lightroom 2. On my pc I can pull up any pictures off any of my SD cards (format: RAW). However, although I have installed LR2 onto my mac it will not allow me to open any of them. It gives me th
-
Losing internet connection with youtube in safari
I keep losing Network connection after i use YouTube in safari. Need to restart iPad to get connection again. Anyone an solution? I Re installed already 2 times but without any luck.
-
How come my ipad2 4.3 has no software update? How can I update my iOS.
How can I update my iOS if I don't have software update?