on 10-14-2008 1:47 PM
Hi all, I have a problem. ;-}
I want to download an barcode bitmap into a .BMP file.
I have created a barcode in transaction /nse73 (new technology, independed of printer) .
I use the external procedure(renderbarcode) from modul pool SAPMSSCO to render the barcode.
This procedure provides the barcode in a bitmap like this
'FFF03F000FFFFC003F03FFC003FFFF000FC0000FC0FFF00003FFFF00003F03FFC0FFF000000FC0F
C003FFC0FFFFFF03FFC0FC003FFFFFC003F03FFC0000FFFFC0FC0FFF0FFF03F000FFFFC003F03
FFC003FFFF000FC0000FC0FFF00003FFFF00003F03FFC0FFF000000FC0FC003FFC0FFFFFF03FF
C0FC003FFFFFC003F03FFC.....'.
I want to convert and download this as an bitmap (.BMP). Do anyone know what to do with this internal bitmap to bring it in the right form ? Or do you have another idea to bring the barcode into an image format?
There is also a possibility to test the standard system barcode in transaction se73. The barcode bitmap will be converted there into the OTF format and then it will be displayed (PREVIEW) in a SMARFORM. I don't want the barcode in SMARTFORM but as a binary file like '.BMP' or with other image extensions (JPEG, TIFF,...) !
Thanks so lot
Anne
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
,it's really really a long time ago. i have same requirement. did you resolve it?
Regards
Yapeng
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
That's not that easy. I spent a little time to get through the interesting posts and discussions about that issue.
The best I found was a blog of Thomas Jung.
The renderbarcode(SAPMSSCO) only creates the content you need. But you have to build a BMP header to get a working bitmap.
(e.g. 424DB8130300000000003600000028000000C001000096000000010018000000000082130300202E0000202E00000000000000000000)
The header inherits infomation about the size of the BMP file, width, height, number of bits per pixel and so on.
You can read more about BMP and how they have to be formated here:
https://en.wikipedia.org/wiki/BMP_file_format#Example_2
Kind regards
Silvio
Hello Yapeng,
You can do it. I did something like this. I did it on crm module.
1. Create webservice for create url for bmp.
2. Create a z componenet and write a javascript code in componenet htm.
3. In htm. call word or excel with ole programing.
var MyWordApplication = new ActiveXObject( "Word.Application");
4. mytable4.Cell(4,1).Range.InlineShapes.AddPicture( "<%= lv_url %>");
5. It will open a word and display bmp file on this word to user.
if u just want to download . Webservice will be enough for download ı guess.
I hope this will help.
Hi Silvio
Thank you for your reply, I have resolved the requirement.
A deeper study on this technology, I will refer to your blog.
My solution is:
1, create a QR CODE in TCODE SE73, examples of reference online
2, copy a PROGRAM RSPO0031 (SE73 EXECUTE PROGRAM) is derived from the TCODE SE73
3 using RSPO0031 form brltest_preview except print part (sapmssco's form)
4, rewrite the form brltest_preview , add export bitmap file part
function :
DATA: int_pdf TYPE TABLE OF tline.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
TABLES
otf = otf
lines = int_pdf.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'D:\Downloads\photo1.PDF'
filetype = 'BIN'
TABLES
data_tab = int_pdf.
BR
yapeng
Hi acar atmaca
Thank you for your reply, I have resolved the requirement.
A deeper study on this technology, I will refer to your blog.
My solution is:
1, create a QR CODE in TCODE SE73, examples of reference online
2, copy a PROGRAM RSPO0031 (SE73 EXECUTE PROGRAM) is derived from the TCODE SE73
3 using RSPO0031 form brltest_preview except print part (sapmssco's form)
4, rewrite the form brltest_preview , add export bitmap file part
Hi, Yapeng,
How can you create the biptmap header and save this?
I have the same problem, because of smartforms I can't create a bar code with more than 255 characters.
So i try to copy the program, but cant save the BMP image from brltest_preview. I think the problem is because of the BMP header.
Can you help?
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.