How to print a Barcode VERTICALLY in a SAP Script ?
Dear Experts..
I have to print a Barcode <b>vertically</b> in a SAP Script.
Could you please help me regarding this.
Thanks in advance.
Hey SR,
follow these steps :
Bar code in Smartform :
General definition of Bar code:
Bar codes are standardized characters of a symbol made up of a group of lines and spaces that can be recognized by an optical scanner. Bar codes uniquely identify article data, production numbers or transport units, for example. They can also contain additional information such as batch number, expiration date or weight.
Example
In the Logistics Execution System (LES), certain field entries can be represented by bar codes and printed on the transfer documents. This simplifies certain data entry processes such as order confirmation.
Type of bar code:
Bar codes are based on a binary principle and consist of a series of stripes/gaps of different widths. The sequence of the stripes or gaps results in an (alpha) numeric statement. Bar codes are read optically. Due to varying requirements, bar codes may differ with regard to the following aspects:
printer tolerance
decoding tolerance
character width
automatic check
number of characters
Steps to implement bar code in the smartform:
Use the transaction code smartstyle. Give a suitable name .Choose create.
In change mode of the Smart Style select the Character formats node and choose Create.
In the Character format field enter a two-character character key.
Select the desired attributes of the Bar Code on the tab Standard Settings.
Choose Activate.
Assign the character format to the field or character string in the smartform.
Activate the smartform.
Test the same.
Regards,
Kunal.
Similar Messages
-
How to print the rows vertically
Hi
how to print the results vertically, like this
SELECT eno, ename, deptid FROM emp_asign
WHERE ROWNUM<3
ENO 104
ENAME Bruce Ernst
DEPTID 60
ENO 106
ENAME Maximus
DEPTID 60well, let's start from the inside and work our way out, shall we?
the "WITH" clause is just to alias a subquery that he used as an example. I'll assume you know that, and just put it inside the main query (and I'll use all the columns)
select rpad(t.column_value.getrootelement(),20) || ': ' || t.column_value.extract('//text()') out
from table(xmlsequence(xmltype(cursor(select * from emp where rownum<4)).extract('ROWSET/ROW/*'))) t
SQL> select cursor(select * from emp where rownum<4) from dual;
CURSOR(SELECT*FROMEM
CURSOR STATEMENT : 1
CURSOR STATEMENT : 1
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
3 rows selected.
1 row selected.
SQL> select xmltype(cursor(select * from emp where rownum<4)) from dual;
XMLTYPE(CURSOR(SELECT*FROMEMPWHEREROWNUM<4))
<?xml version="1.0"?>
<ROWSET>
<ROW>
<EMPNO>7369</EMPNO>
<ENAME>SMITH</ENAME>
<JOB>CLERK</JOB>
<MGR>7902</MGR>
<HIREDATE>17-DEC-80</HIREDATE>
<SAL>800</SAL>
<DEPTNO>20</DEPTNO>
</ROW>
<ROW>
<EMPNO>7499</EMPNO>
<ENAME>ALLEN</ENAME>
<JOB>SALESMAN</JOB>
<MGR>7698</MGR>
<HIREDATE>20-FEB-81</HIREDATE>
<SAL>1600</SAL>
<COMM>300</COMM>
<DEPTNO>30</DEPTNO>
</ROW>
<ROW>
<EMPNO>7521</EMPNO>
<ENAME>WARD</ENAME>
<JOB>SALESMAN</JOB>
<MGR>7698</MGR>
<HIREDATE>22-FEB-81</HIREDATE>
<SAL>1250</SAL>
<COMM>500</COMM>
<DEPTNO>30</DEPTNO>
</ROW>
</ROWSET>
1 row selected.
SQL> select xmltype(cursor(select * from emp where rownum<4)).extract('ROWSET/ROW/*') from dual;
XMLTYPE(CURSOR(SELECT*FROMEMPWHEREROWNUM<4)).EXTRACT('ROWSET/ROW/*')
<EMPNO>7369</EMPNO>
<ENAME>SMITH</ENAME>
<JOB>CLERK</JOB>
<MGR>7902</MGR>
<HIREDATE>17-DEC-80</HIREDATE>
<SAL>800</SAL>
<DEPTNO>20</DEPTNO>
<EMPNO>7499</EMPNO>
<ENAME>ALLEN</ENAME>
<JOB>SALESMAN</JOB>
<MGR>7698</MGR>
<HIREDATE>20-FEB-81</HIREDATE>
<SAL>1600</SAL>
<COMM>300</COMM>
<DEPTNO>30</DEPTNO>
<EMPNO>7521</EMPNO>
<ENAME>WARD</ENAME>
<JOB>SALESMAN</JOB>
<MGR>7698</MGR>
<HIREDATE>22-FEB-81</HIREDATE>
<SAL>1250</SAL>
<COMM>500</COMM>
<DEPTNO>30</DEPTNO>
1 row selected.
SQL> select xmlsequence(xmltype(cursor(select * from emp where rownum<4)).extract('ROWSET/ROW/*')) from dual;
XMLSEQUENCE(XMLTYPE(CURSOR(SELECT*FROMEMPWHEREROWNUM<4)).EXTRACT('ROWSET/ROW/*'))
XMLSEQUENCETYPE(XMLTYPE(<EMPNO>7369</EMPNO>
), XMLTYPE(<ENAME>SMITH</ENAME>
), XMLTYPE(<JOB>CLERK</JOB>
), XMLTYPE(<MGR>7902</MGR>
), XMLTYPE(<HIREDATE>17-DEC-80</HIREDATE>
), XMLTYPE(<SAL>800</SAL>
), XMLTYPE(<DEPTNO>20</DEPTNO>
), XMLTYPE(<EMPNO>7499</EMPNO>
), XMLTYPE(<ENAME>ALLEN</ENAME>
), XMLTYPE(<JOB>SALESMAN</JOB>
), XMLTYPE(<MGR>7698</MGR>
), XMLTYPE(<HIREDATE>20-FEB-81</HIREDATE>
), XMLTYPE(<SAL>1600</SAL>
), XMLTYPE(<COMM>300</COMM>
), XMLTYPE(<DEPTNO>30</DEPTNO>
), XMLTYPE(<EMPNO>7521</EMPNO>
), XMLTYPE(<ENAME>WARD</ENAME>
), XMLTYPE(<JOB>SALESMAN</JOB>
), XMLTYPE(<MGR>7698</MGR>
), XMLTYPE(<HIREDATE>22-FEB-81</HIREDATE>
), XMLTYPE(<SAL>1250</SAL>
), XMLTYPE(<COMM>500</COMM>
), XMLTYPE(<DEPTNO>30</DEPTNO>
1 row selected.
now that we know what that looks like, we can put it in the TABLE() and make it the FROM clause
SQL> select * from table(xmlsequence(xmltype(cursor(select * from emp where rownum<4)).extract('ROWSET/ROW/*')));
COLUMN_VALUE
<EMPNO>7369</EMPNO>
<ENAME>SMITH</ENAME>
<JOB>CLERK</JOB>
<MGR>7902</MGR>
<HIREDATE>17-DEC-80</HIREDATE>
<SAL>800</SAL>
<DEPTNO>20</DEPTNO>
<EMPNO>7499</EMPNO>
<ENAME>ALLEN</ENAME>
<JOB>SALESMAN</JOB>
<MGR>7698</MGR>
<HIREDATE>20-FEB-81</HIREDATE>
<SAL>1600</SAL>
<COMM>300</COMM>
<DEPTNO>30</DEPTNO>
<EMPNO>7521</EMPNO>
<ENAME>WARD</ENAME>
<JOB>SALESMAN</JOB>
<MGR>7698</MGR>
<HIREDATE>22-FEB-81</HIREDATE>
<SAL>1250</SAL>
<COMM>500</COMM>
<DEPTNO>30</DEPTNO>
23 rows selected.I'm getting bored. I'm sure you can break down the remaining parts of the statement to see what they return, and how it all comes together. -
Dunning Notice print/email using both Smartform and SAP-Script
Hello Gurus,
I have developed the Customized SAP Sript (Copy of 150_DUNN_01) for Dunning NOtice to be send to Domestic Customer and
Cutomized Smartform (copy of F150_DUNN_SF) for Foreign Customer.
Now Issue is that when I assign the Customized script to SPRO setting and standrd setting for BTE '00001720' with function
module 'FI_PRINT_DUNNING_NOTICE', if I want to assign smartform to SPRO setting then I need to replace same FM with
'FI_PRINT_DUNNING_NOTICE_SMARTF'.
how it is possible to work with both SAP-Script and Smartforms for dunning Procedure.
Please gurus let me help for this solution...
Thanks in Advance,
Mahesh SachaniHello Gurus,
Please reply with any solution available with any...
Thanks,
Mahesh -
Print data at new line in SAP Scripts
Hi,
Is there any way that i can print data at new line in sap scripts. I am looping my data and its printing in the same line but i need to print it at new line. Is there any formating options or any command to do that.
ThanksThan you must take all the values from the internal table into the different variables and than print them.
In program:
READ TABLE ITAB INTO WA_TAB INDEX 1.
IF SY-SUBRC = 0.
VAR1 = WA_TAB-FIELD1.
ENDIF.
* read all the lines and fill the VAR variables
In SAPScript:
/E LINE_VAR
/P &VAR1&
/P &VAR2&
/P &VAR3&
/P &VAR4&
Regards,
Naimesh Patel -
How to do changes in Layouts setting and SAP scripts to meet requirment?
hi SD gurus,
Please explain me how create and work with Z output .
where and how we do changes in Layouts setting and SAP scripts to meet the user requirments.
pls forward func spec of Z output
points will be rewarded
thanx & regardsyou need ABAP skills to do this.
basically you need:
1) draw the layout on a piece of paper
2) define the fields you need and find out the corresponding SAP fields
3) check the document with the customer
4) give this specification to the developer
5) the developer will give you a program name and form name: place them in the message for the document.
Roberto -
Dotted vertical line in sap script
Hi all,
Can anyone help me drawing dotted vertical line in sap script?
Thanks in advance.
bipenhi,
u can use
for a horizontal line---
&ULINE(71)&
for a vertical line---
&vline&
regards,
krishna -
How to Print Multiple Barcode in one line
Hi All,
I am printing barcode using <c1>&lwa_itab-matnr</>. now i have a query i want to print in the same line one more bar code with the values. but i m not able to print it. will any one pls help me out in this how i will print more than one barcode in one line.
i have tried this syntax also
<c1>&lwa_itab-matnr& &lwa_itab-matnr&</>.
But it is not giving gap between two barcode. it is considering space and converting space also in barcode which i don't want. I want to print two barcodes separately with some space. How will i do this.
Pls answer it. it is very urgent.
I am doing this in smartforms.
Thanks
Garima
Edited by: Garima Mittal on Jun 18, 2008 12:34 PMhi,
try like this.
<c1>field1_</c1>_ <c1>field2_</c1>_
give the two fields in the same line.
so this will help u in printing the barcodes in the same line
please reward me if helpful.
regards,
Reddy. -
How to print the barcode in a smartform satisfying specific condition
Hi
I have a requirement where I need to print the barcode System Bar code = BC_93
satisfying the following requirement:
The Bar code is made up of the concatenation of code1 , dash character
and code2. The two codes ( that is some field in a custom table) should be
eight char long each (put leading zero if the length of the code is shorter).
This barcode shall be printed always apart from:
a) code1 material type is ZCPF
b )Is a combi order, with no code2 stored in storage location abc
please help with example . its very urgent , points will be rewarded.
ThanksTo Create a Bar code prefix:
1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
The place where you are using the field value use like this
<C1> &itab-field& </C1>.
You will get the field value in the form of barcode.
Which barcode printer are you using ? Can you download this file and see.
http://www.servopack.de/Files/HB/ZPLcommands.pdf.
It will give an idea about barcode commands.
Check this link:
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
Check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
Hope this link ll be useful..
http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
go through these links and cose u r previous threads,
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
smartform - barcode
http://www.erpgenie.com/abap/smartforms.htm
http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550
Detailed information about SAP Barcodes
A barcode solution consists of the following:
- a barcode printer
- a barcode reader
- a mobile data collection application/program
A barcode label is a special symbology to represent human readable information such as a material number or batch number
in machine readable format.
There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
You can print barcodes from SAP by modifying an existing output form.
Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
Re: how to print barcode using smartform and sapscript...? -
How to print fields in vertical direction ??
How to print data fields (not textitems or boilerplates) in vertical direction ??
hello,
we only support rotating objects of type boilerplate (text/graphic).
regards,
the oracle reports team --pw -
How to print 2D barcode with SAPGOF device type
I only see some pre-defined standard barcode like BC_93, BC_C128B in the SAPGOF device type.
How can I define and print a 2D barcode like QR Code or Data Matrix with SAPGOF device type?
Please advice me. I promise to grade you.
ThanksHi,
Zebra printers are very good usable for printing your kind of barcode.
You can use the barcode designer of Zebra.
Below a example of ZPL code tp print your QR barcode (with explanation behind).
^XA "start statement
^FO100,100 "x,y position
^BQN,2,10 " set barcode
FDMM,AAC-42FS "data to be printed as barcode
^XZ "sluit statement
syntax ^BQa,b,c,
a: fiedl position
b: model
c: magnification
Look in the ZPLII manual for more details
suc6
Gr., Frank -
How to print the BARCODEs in Oracle 6i Reports
Hi,
I want to print the barcodes in the report outputs. I am using Oracle Reports 6i and Oracle Applications 11.5.10.2 with 11g database.
Please help me with the requirements.
Thanks,
PavanGo to Search and type in "barcode".
-
How to print page in front and back in scripts
hi,
I want to know to know the how to print a page in front and back.HI Ragavendra
set this
<b>Print mode is D</b>
With Print mode, you can specify single- or double-sided printing for a page. You can choose from the following values:
<b>D </b>The page is printed on the first side of a sheet in duplex mode. If another mode was previously active, then the printer is switched to duplex mode with the start of the pageand continues in this mode.
and other Print mode options are
<b>Print mode</b>
With Print mode, you can specify single- or double-sided printing for a page. You can choose from the following values:
<b>' '</b> Currently active printing mode continues unchanged.
<b>S </b>The page is printed in simplex mode. That is, the printer should print on only one side of the paper. If another mode was previously active, then the printer is switched to simplex mode with the start of the page.
<b>D</b> The page is printed on the first side of a sheet in duplex mode. If another mode was previously active, then the printer is switched to duplex mode with the start of the pageand continues in this mode.
<b>T </b>The page is printed on the first side of a sheet in tumble duplex mode. That is, the printer prints on both sides. The page on the second side is always inverted, so that the footer of the second page is printed opposite the header of the first page.
If another mode was previously active, then the printer is switched to tumble duplex mode with the start of the page and continues printing in this mode.
Print modes are currently supported for printers that use the PCL-5 language. These are printers that are defined with the following SAP device types: HPLJ_II, HPLJIIID, HPLJ4, LX4039, SNI20XX8.
See the spool system (transaction SPAD) to check on how your printers are defined.
The print controls for these functions are SPMSI (begin simplex printing); SPMDU (begin duplex printing); SPMTU (begin tumble duplex printing); SPMFS (print on first side of sheet in duplex or tumble duplex mode); and SPMBS (print on second side of sheet in duplex or tumble duplex mode).
Regards Rk -
How to print in the last page of the script..?
Hi,
I am working on a script. I have a header window and one main window. In the main window, I am printing the line items of the Invoice. Once the line items finish, I have to print the sub totals there. and also to print the company agreement details(around 10 lines of text) in the last page of the script.
So, <b>how to print the agreement details in the last page of the script..?</b>
Can anyone provide me a sample code to find the last page of the Script layout..?
And regarding writing the agreement details, is it better to hard code the text or use the standard texts..? which one is better..?
Regards,
Paddu.HI,
Just create a Standard text, if you are going to use this standard text in other layouts also... and use it otherwise you can hard code it as this its of only 10 lines.
declare one more element in the main window itselft and call it atlast it would print in the last page..
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'FOOTER'<b><- This element should contain the agreement details</b>
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
ELEMENT = 1.
Thanks
Mahesh -
How mobile device ( rfid/barcode reader) communicates with SAP transaction.
Dear Friends !
Good morning, How are you ?
I want to understand that in ITSmobile How Mobile device ( RFID Reader ot Barcode scanner/reader) to fetch the data and supply the ITS screen.
I believe every mobile device has some .dll file or something in that we have some methods if we call it say in .net or java application we can read the rfid or barcode and from the returning paramter of the .dll method we can get information what we want ( if i m not wrong).
now the question is if I have some barcode /rfid number which is assigned to sap material number. if on mobile device I run mm02 transaction code n trigger the gun can I get the material number in material number field . ( assume I have program which can fetch the material number from barcode/rfid number.) ? but to pass rfid number / barcode what should I do. I can write javascript and call that method but dont know weather I can use javascript or not in that.
to be simple:
How can I get barcode / rfid number to my sap transaction. if possible
please give me any suggestion. document link... help.... whatever may help me to understand this. I will greatly appreciate your reply
Thanking you
Regards
NaeemHi Ajay,
Please refer to note 1057759 for the delivered Drivers for Peripherals in SAP DOE. This lists all the supported barcode scanners for SAP Netweaver Mobile. Those derivers are certified after testing to work only with that device and OS configuration.
The Javadoc to get an idea about how to use those PIOS API for barcode scanner
http://help.sap.com/javadocs/nwmobile/SP3/laptops/com/sap/ip/me/api/pios/scanner/ScannerConnection.html
As input from Barcode scan have to be taken in Wedge Mode, there is no need to do any developments in MI JSP Application. To enable barcode scan one can download barcode scan tools available from Handheld Vendor sites
Regards,
Amith -
How do we enable cutter option in the SAP Script for Zebra Label Printer
Hi Gurus,
We use Zebra Label(ZM400) printers to print the material documents(SAP Script). Could someone please tell me how do we enable the cutter option in the Zebra printer for the SAP Script?
Your vaulable answers will be highly appreciated.
Thanks in advance.
Regards,
Manoj.Hi Manoj,
In Script you dont want to add any logic for Label Cutter, It should be in the Zebra printer settings if the printing is over it should cut the paper. If the print area is predefined for your material label then you can make use of standard label papers (Like 2"x4", 3"x4"....)
Regards
GK.
Maybe you are looking for
-
This is the 3rd issue I have had with Apple products in the last 6 months. I begininng to wonder if this is the beginning of the end:(
-
I have a sanyo xactia hd digital camera, so i want to change from 29 fps to 25 fps and i can't or i don't know how to do it. Can somebody help me?. Thanks a lot.
-
Cp4 and Accessibility - Using the Tab key
What is the best way to create a Cp4 files where the viewer uses the Tab key to navigate through the course? Thanks for your assistance. Sheri
-
How are duplicate parameters handled when starting WLS?
I was given some memory tuning suggestions for WLS and told to set them in $USER_MEM_ARGS. However, when I try to start the AdminServer I am getting an error "Invalid initial heap size: -Xms512m". This puzzles me because it looks like that was the or
-
Dear SAP Gurus, When we are Capturing Excise Invoice in J1IEX with ref to GR , then the system is throwing an ABAP run time error... Divide by 0 (type F) In program "SAPLJ1IEX" Please suggest.