Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to print BARCODE in DATAMAX Printer using SAP Script?

Former Member
0 Likes
2,302

Hi,

Can anybody guide me how to print BARCODE using DATAMAX Printer?

I need to develop a SAP Script, through which i need to print the BARCODE.

Pls. let me know the parameters for Script and how to print using print program.....

Regards,

Hemant

Hi,

Can anybody guide me how to print BARCODE using DATAMAX Printer?

I need to develop a SAP Script, through which i need to print the BARCODE.

Pls. let me know the parameters for Script and how to print using print program.....

Regards,

Hemant

9 REPLIES 9
Read only

Former Member
0 Likes
1,847

Hi,

You Can print barcode in SAPcript by creating Character format in sapcript.

Se71 ---> type in script name -


>Click Change -


> Click on Character Format -


> Click Shift + F6 .

Now in Standard tab, there is Bar Code TextField where you select bar Code.

Now use this Charcter Format in Change Editor of the window.

Suppose variable po_num store po number and A1 is charcter format with Bar code.

then in Change editor of window use as below,

<A1> &po_num </A1>.

you have to use following FM,

start_from

Open_form,

write_from,

close_from,

end_form.

Se71 is to create Sapcript.

Thanks & Regards,

Shreemohan

Edited by: ShreeMohan Pugalia on Jul 17, 2009 11:57 AM

Read only

0 Likes
1,847

Hi Shreemohan

I am doing in the same way, but i am unable to print in the way i want....

for BARCODE it is showing BIG Fonts and for other character it is showing toooooo small (even unreadable)

and one more thing since i need to print label (1" * 3"), how to set the size, Page size needs to be created if yes than how....

Thanks & Regards,

Hemant

Read only

0 Likes
1,847

make one form in sapscript with one main window: like this

/E	 	ETIKETT
/*	 	Format = '57x19', Printer = 'Bradyprinter Model 1344'
/	 	~f350
/	 	~n
/	 	~M0500
/	 	~O0220
/	 	~SG
/	 	~s
/	 	~c0000
/	 	~e
/	 	^D
/	 	~L
/	 	D11
/	 	H20
/	 	PC
/	 	pC
/	 	SC
/	 	A2
/	 	1911A1200400005&knmt-kdmat&
/	 	1911A0800300005&knmt-postx&
/	 	1911A0800100005VS-Nr   :         &KNMT-MATNR&
/	 	1911A0800000005Datum   :         &date&
/	 	Q0001
/	 	E

in this script &mseg-matnr& and &mseg-charg& are 2D Barcodes

/E	 	ETIKETT
/*	 	Format = '57x19', Printer = 'Bradyprinter Model 1344'
/	 	~f350
/	 	~n
/	 	~M0500
/	 	~O0220
/	 	~SG
/	 	~s
/	 	~c0000
/	 	~e
/	 	^D
/	 	~L
/	 	D11
/	 	H20
/	 	PC
/	 	pC
/	 	SC
/	 	A2
/	 	1Wc99000001400082000012012&mseg-matnr&
/	 	ySPM
/	 	1911A1000380055&mseg-matnr&
/	 	1Wc99000001501702000012012&mseg-charg&
/	 	1911A0800260055&mkpf-budat&
/	 	1911A0800140055&mseg-mblnr&
/	 	1911A0600020008&makt-maktx&
/	 	Q0001
/	 	E

then you need your own printprogram and everything is fine. with open_form ; start_form ; write_form; end_form

you can communicate direct with the Datamax Programming Language from SAPScript to the Barcode printer.

i also have the datamax programmers manual as pdf if you want i could send it to you. let me know by PM.

also have look into HW 490295 the bartender Solution works fine for me to create the SO10 text's

greetz

tony

Edited by: Tony Wienhold on Jul 17, 2009 4:37 PM

Read only

0 Likes
1,847

Hi Tony

I am also facing the same problem of datamax printer with martform.

Let me be explain u the whole scenario

I need to print a label using datamax printer.Now since datamax doesn't understand SAP language and has its own programming language.So i have created a smartform.

In the main window i have created a text in which have written the whole code (in DPL - datamax programming language)for designing & printing of label.NO layout is created in the smartform its just used to write the DPL code.

The datamax printer is attached locally to the system and i am using locl as printer while printing the label.Now when i am printing it using datamax printer.The print is not getting triggered whereas spool is getting genereated.

DPL Code :

Please suggest.

Thanks

Rahul Jain

Read only

0 Likes
1,847

Try,

Change the Device Type to SAPWIN, Access Method as G. See the Spool Log.............

Thanks

Read only

0 Likes
1,847

Hi Ravi

I created a output type with device type LB_DMX(Provided for datamax) and access method G.Still the printer didn't get fired.

Please suggest

Thanks

Rahul Jain

Read only

0 Likes
1,847

try to setup the printer in SPAD as ASCIIPRI (generic Ascii Printer) and as Host Spool access Method use C Direct operating system call. if the datamax printer is running on a printserver and installed with the correct Drivers, you just need to send ascii text with DPL Commands from SAP.

Read only

Former Member
0 Likes
1,847

Hi Hemant,

For basics on SAP Scripts / Print Programs, use the forums since these have already been discussed:

For barcodes, use the character format screen. Here, create a new char format and assign it as barcode by selecting that checkbox. When you take the output, the conversion will happen automatically.

Hope this helps; if you are facing any specific issues, do revert back.

Cheers,

Shailesh.

Always provide feedback for helpful answers! It keeps us in high spirits!!!!

Read only

Former Member
0 Likes
1,847

Thanks a lot.