2009 Nov 19 12:56 PM
Hi experts,
I need to create a Barcode, for example from MATNR.
Is there a function, method...that creates me an barcode as an image? For example as TIFF or JPG. Or give me the HEX-values I can use (like pictures in standard-text)?
For understanding:
IMPORTING value = '123456'
EXPORTING path =
or
EXPORTING hex =
Does anybody know this?
2009 Nov 19 2:16 PM
2009 Nov 20 9:28 AM
Hi Abhii,
first - thank you rof ryour response!
But this won't help me - it's for Smartforms, I don't use Smartforms
I need the Barcode for a Web Dynpro.
Any other ideas?
2009 Nov 20 10:13 AM
Normally Barcodes are only to print on paper. There is no point in displaying it in a screen. First of all make it clear your requirement
venkat
2009 Nov 20 10:47 AM
Sure, normaly Barcodes are only printed...I don't know why the user wants/needs this...
So, my requirement:
I have a Web Dynrpo with different data for a choosen material.
On this Web Dynpro (so on the screen) the user wants a Barcode of the material number.
I searched a while - nothing founded that I can make this direct in the Web Dynpro.
So I thought of creating the Barcode dynamically as an image.
I found this Blog:
Cool, but then, after reading it in detail, it's not what I need - it just gives me the coordinates of the different lines...no image.
This is why I asked this question here - I need for example a function I gave a number and it creates an image of the barcode - so I can implement this to my Web Dynpro.
Hope this is clearer...
regards
2009 Nov 20 12:02 PM
Hi,
There are lot of online barcode generator scripts are available(even some are freeware). Why not you try to adopt such script into your web application.
Example : http://www.idautomation.com/java/linearservlet.html
regards
Karthik D
2009 Nov 20 12:08 PM
Hi Karthik D,
nice idea - but how to implement this? I sue Web Dynpro ABAP...
But I will have a look at this idea...thanks a lot
2009 Nov 20 12:22 PM
Hi,
I am not aware of how to do with webdynpro.
If you see the image generated in the above said webpage, you can see the image URL is what matters.
So my idea is to have a picture container and display the above URL with the material number replaced in BARCODE parameter in the URL.
Just make sure other settings are set properly. the only drawback is the name of the website appears in the barcode. May be you can try to hide it by adjusting the container height.
Hope my suggestion will be helpful for you.
Regards
Karthik D
2009 Dec 09 10:37 AM
Hi Karthik D,
this idea is very helpful. I implemented it with another site - and it works!
Maybe I will find a better solution - but at the moment this is the best working solution
2011 Nov 09 6:11 AM
Hi ,
I too have such kind of requirement.
Please suggest as to how you solved this problem.
It will be really helpful for me.