cancel
Showing results for 
Search instead for 
Did you mean: 

XDC File Modification - Multiple Tray issue in HP P4014

Former Member
0 Kudos

Hi Experts,

We have a requirement of printing checks from multiple trays - first page of the adobe form containing the check should be picked up from a printer tray1  having special paper (with blue background) and 2nd page onwards it will pick up from tray 2 of the printer having normal Letter sized paper.

The printer in use is HP P4014 which supports HP PCL 5e, 6 & Postscript Language level 3.

I have obtained a hppcl5e.xdc file and modified it with tray numbers and media mapping.

The problem I am facing is there is no document for HP printers PPD file or PCL escape sequence for Tray for this particular printer model. Therefore I am not sure if I am using the correct tray nos. To direct papers to correct trays I am using Letter paper type for first page and LetterSmall for second page onwards.

I have referred to the following links and OSS notes as reference for resolving this issue -

XDC Scenarios for Print Control

http://help.sap.com/saphelp_nw70/helpdata/en/57/7076f4c8384ca084413bf1e480e3f0/content.htm

How to define output trays

https://service.sap.com/sap/support/notes/8928 - Note 8928 - List of supported printers device types

https://service.sap.com/sap/support/notes/1365714 - Note 1365714 - TROYMICR: Incorrect print output with 701/711/720 kernel

https://service.sap.com/sap/support/notes/94233 - Note 94233 - Support of MICR font

https://service.sap.com/sap/support/notes/766410 - Note 766410 - SAP Interactive Forms: XDC scenarios for the printer control

https://service.sap.com/sap/support/notes/1135055 - Note 1135055 - Printer Vendor Wizard Note: HP

https://service.sap.com/sap/support/notes/1097990 - Note 1097990 - List of Printer Vendor Wizard Notes

https://service.sap.com/sap/support/notes/1103826 - Note 1103826 - Printer is missing in the Device Type Selection Wizard

https://service.sap.com/sap/support/notes/1036961 - Note 1036961 - Device type selection wizard in transaction SPAD

Please let me know if anybody in the forum has faced such issues.

Thanks and Regards,

Rohit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rohit,

We are printing on different tray using HP Laserjets w/o any problems.

But it was a nightmare to get it work.

This is how we do it in short:

We set up a device type in SAP which points to the xdc file hppcl5c.xdc.

This xdc-file we have modified to handle our special paperformat "a4letterhead" adding the following section to the xdc:

<!-- ========================================== -->
<!-- Input Trays                                -->
<!-- ========================================== -->
<inputTrays>
<inputTrayDefinition name="Tray 3" medium="a4Letterhead" trayType="Plain" trayNumber="5"/>
</inputTrays>

Then we use this special paperformat for the masterpage that should be printed from that tray.

Important to know:

On most standard HP laserjets, tray number 1 is the manual feed, tray number 2 is the first paper tray, the second papertray has tray number 3.

!! Tray number 3 on the HP printers has the internal tray ID 5, therefore the trayNumber setting in the xdc is set to 5.

regards

Former Member
0 Kudos

Hi,

I will try your technique to get this resolved - will let u know of the update in 2 days.

Thanks, Rohit

Former Member
0 Kudos

Hi DasOmen,

Last night's trials with Tray numbers failed -

Our requirement is the following -

1. Input Tray Name: Blank Paper Feed

2. Input Tray Number: 1

3. Input Tray Type: Manual Feed

1. Input Tray Name: US Check Stock

2. Input Tray Number: 2

3. Input Tray Type: Automatic feed

1. Input Tray Name: Canada Check Stock

2. Input Tray Number: 3

3. Input Tray Type: Automatic Feed

Basically I have two adobe forms one for US Check Stock & the other for Canada Check Stock.

In Adobe LiveCycle Designer, two master pages have been created for each of the two forms.

US Form

-


FIRST_MASTER_PAGE - LetterSmall

SECOND_MASTER_PAGE - Letter

Canada Form

-


FIRST_MASTER_PAGE - LetterPlain

SECOND_MASTER_PAGE - Letter

The first page (FIRST_MASTER_PAGE) of both the forms are printed in a preprinted paper (in different alignment) - these papers will be kept in different printer trays. If the form happens to run into second page, it will not show the check second page onwards and the pages will be printed in Normal Letter Paper.

N.B. All pages for both the forms should be of paper type 8.5 in x 11in (Letter)

Please let me know how would you configure the XDC Editor with this above Tray requirement.

Right now, I have maintained it as

<inputTrays>
<inputTrayDefinition name="Tray 1" trayNumber="4" trayType="ManualFeed"/>
<inputTrayDefinition name="Tray 2" trayNumber="1"/>
<inputTrayDefinition name="Tray 3" trayNumber="5"/>
<inputTrayDefinition medium="letterSmall" name="Tray 2" trayNumber="1"/>
<inputTrayDefinition medium="letter" name="Tray 1" trayNumber="4" trayType="ManualFeed"/>
<inputTrayDefinition medium="letterPlain" name="Tray 3" trayNumber="5"/>
</inputTrays>

Let me know if I am missing out anything?

Thanks and Regards,

Rohit

Former Member
0 Kudos

One more point which I forgot to mention is that the Letter size papers (for second page onwards printing in the form) will be fed manually in the printer tray, therefore mentioned as ManualFeed in the Input Tray Type column in XDC editor.

Former Member
0 Kudos

Hi Rohit,

This part of the xdc-file does the link between the tray and the paperformat you use in your masterpage:

<inputTrayDefinition medium="letterSmall" name="Tray 2" trayNumber="1"/>

I could imagine that of didn't already tell your device type which xdc file to use:

There's an OSS-note how to implement xdc-files: 685571

In short:

You place the xdc-file in the correct folder on your J2EE engine where your ADS is running. Restart the J2EE (else the change doesn't necessariliy take effect).

In your ABAP-System, from where you'd like to print, you must set up your device type for your printer correctly. Use report RSPO0022 to assign the xdc-file and print type pcl to your device type.

This was at least all we did to get it work.

regards

Former Member
0 Kudos

Hi DasOmen,

Thanks for the response.

I reviewed the device type my client has been using for the device.

The printer model which we are using is HP Laserjet P4014 Monochrome. As HP's site (URL given below) -

121.html|http://h71028.www7.hp.com/enterprise/cache/37011-0-0-225-121.html]

As per OSS Note 685571, I presume you have used HPLJ4 for HP PCL5 devices whereas we have used ZHPLCM1 device type downloaded from HP's site.

Looks to me as worth a try.

I shall let you know of the progress in next few days.

By the way, your inputs have been really helpful in restoring my client's confidence.

Looking forward to cracking this wall.

Thanks and Regards,

Rohit

aditya_aghor
Explorer
0 Kudos

Hi Rohit,

In order to check if the correct XDC file is picked during processing activate the trace on the Adobe form by doing the following

1.Tcode SFP

2.Utilities-->Settings --> Trace level to 4 and tick the PDF check box

I think when the PDF is generated check the pdf file it would hvae attachements (the paperclip icon on bottom left)

In the attachments SAP attaches the XDC, XCI and other trace files which were used, validate if its picking up your changed XDC files.

More info Link: [here|http://help.sap.com/saphelp_erp60/helpdata/EN/f7/a04aee0cb94978a011401311efe603/frameset.htm]

Also according to Link:[Customizing Printing Workflows for SAP Interactive Forms by Adobe|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802ca378-5689-2a10-5298-e537562ba939&overridelayout=true], XDC file should have following

<inputTrays>

<inputTrayDefinition name="manual_feed" stock="letter_blue" trayType="letter_blue"></inputTrayDefinition>

<inputTrayDefinition name=tray_2" stock="legal_blue" trayNumber="2"></inputTrayDefinition>

</inputTrays>

<medium stock="letter" short="8.5in" long="11in"/>

<medium stock="letter_blue" short="8.5in" long="14in"/>

<medium stock="legal" short="8.5in" long="14in"/>

<medium stock="legal_blue" short="8.5in" long="14in"/>

Also in your SFP adobe form builder check the XML of form in XML tab , there your page type should be in 'stock ' parameter.

Regards,

Aditya

sebastian_hockmann2
Participant
0 Kudos

Hi Sven,

We are using also mostly HP printers. According to your post i created a New SAP device type zhplj01 which is a copy from hplj4 and pointing to xdc zhpplc5e which is a copy from hppcl5e.

The Windows printer driver is set to pcl 5 and uses HP universal printer driver.

I read that i only habe to modify the number after tag <medium stock type...>. Let say changing the number 26 to 5 which means the internal tray ID 5 for paper tray 3.

I copied th er xdc files to the ADS and restarted.

But it dont work.

Am i missing something else to get it working?

Thanks,

Sebastian

Answers (1)

Answers (1)

Former Member
0 Kudos

There was a version mis match between the XDC files and the ADS - this got resolved after SAP stepped in with a older XDC file to maintain compatibility with ADS