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

Sending Zebra printer script through Adobe forms

UdayS
Participant
0 Likes
8,432

Hi,

   I am on working on a requirement wherein we need to print the real time clock on Zebra printers.

We were able to achieve this using Smartform's 'Command' method.

I debugged the Smartform generated function module to see what it is doing and got to know that commands are being inserted into a table using FM 'SSFCOMP_SET_SPOOL_ATTRIBUTES'.

As we don't have command statement in Adobe forms I am following a different approach. I found a similar FM for adobe forms ' FPCOMP_ADD_SPOOL_ATTRIBUTES'. And manually calling this FM in in the initialization event of the form interface.This function module is inserting the commands same as smartforms but doesn't seems to reach the printer.

Is there is anything that i am doing wrong here ?

Can we send printer commands using Adobe forms?

Have any one tried sending printer commands (Zebra Printer) through adobe forms? If so how was it sent?

I tried different threads in here and on other blogs but didn't found solution specific to Adobe forms printer commands.

Any example will help here.

Thanks & Regards,

Uday S.

6 REPLIES 6
Read only

former_member201275
Active Contributor
0 Likes
5,123

I found this, hope it helps.

1. If ADS is not configured yet in your installation use the guide "Adobe Document Services Configuration for SAP NetWeaver 7.0"

2. read SAP Note 685571 - it describes how to install the xdc file for Zebra Printers into the sap system (you have to install it on the system your sap runs - not the ads system). The appropriate device type is the AZPL203 (we tried a little bit to find this out)

3. in SPAD define a Printer, use devicetype AZPL203, if your Zebra Printer is connected via LAN (i recommend this) use the host spool access method "C - direct operating system call"

4. be sure to have a zebra printer supporting ZPL2 - for example first we tried it with Zebra TPL 282x series - it doesn´t worked - then we found out that the printer model must support ZPL2.0 for Adobe Printing, now we use a newer model the Zebra TPL 2824 PLUS with integrated LAN interface.

5. and last but not least !!! if you are using a windows printserver, you have to use the driver "ZPL TLP 2824 Plus (ZPL)"

6. try to use the most recent patches for your ads system

Read only

0 Likes
5,123

Hi Glen,

   We seem to have the required device type setting.

Below is the screen shot of the current settings in the system.

We were able to print everything using adobe form as well (on the same zebra printer) but the only thing is printer commands, which doesn't seem to reach the printer.

I am not quite sure if some settings which you mentioned are missing in here, can you please let me know if you think something missing here! so that i can speak to my basis team.

Thanks,

Uday S.

Read only

0 Likes
5,123

Hi,

I am a sap consultant from France and i am a problem with zebra zm400, how can i configure this printer in sap for print with adobe livecycle ?

Which device type can I use AZPL203 or other ?

Thanks for your response.

Read only

0 Likes
5,123

Hi,

you have to configure the Printer correctly in SPAD, and then set the xdc for the device type you choose.

You can do this with Report RSPO0022. For Zebra normally zpl200.xdc or zpl300 is used depends on Printer dpi-.

regard

Björn

mind-forms.de

Read only

0 Likes
5,123

Uday,
I doubt that a similar mechanism as the command nodes in SF exists for Adobe forms. The printer commands are generated by the ADS server, with the help of the XDC files.

You could try to create a modified Zebra XDC file, starting with the Adobe-supplied standard ZPL XDC file, e.g. zpl203.xdc

The XDC file for Zebra contains a sequence named "startPage" which in effect should be the ZPL commands executed at the start of every page (= label). It contains the ZPL command

^XA^LL<pageheight>

You could add other ZPL commands here which should be sent to the label printer at the start of every label. Or you could extend the "endPage" sequence, which is defined as

^XZ

adding some commands before the ^XZ cmd (which concludes a label)

Regards,

  Alex

Read only

emmanuel_miret
Explorer
0 Likes
5,123

Hello uday.kumar18 ,

I have the same requirement today.

I would like to know if you finally manage to semd a command after the pdf printing?

Thanks and best regards,