on 2015 Mar 09 1:52 PM
Hi All,
I am using SAP MII 15.0 SP3 and trying to explore on the ADS print action block.
Can any one tell me the steps for configuring the printer and also creating the .XDP template. I need to print the PDF document and Barcode using this action block.
Please let me know.
Regards
G.Partheeban
Request clarification before answering.
Hi All,
Thanks for the help I am able to print now. The issue with the layout which does not alligned properly.
Regards
G.Partheeban
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Partheeban,
What is the "Printing format" did you choose for print? The right format is depending of what is supported by your printer hardware and device driver. Usually, pcl will work with most office laser printer. In Unix system, you can try ps format...If none of them work for your printer, you can specify your own XDC through link configuration under ADS_Printing_0.XDCFilePath. More detailed about XDC can be find from Managing XDC Files and Job Profiles - Configuring Adobe Document Services for Form Processing (Java)... And ADS(Adobe Document Service) team should able to give more professional support with this regards.
Thanks & Best Regards,
George Wen
Hi All,
I am able to preview my barcode in the PDF format. But When I tried to print it giving "
I have given the NW service start user to access the printer, also to everyone.
Please provide your inputs on this.
Regards
G.Partheeban
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Partheeban,
Log shows the exception was thrown from sun.print.Win32PrintJob which is part of JRE. I saw someone reported similar problem as a bug of Java in http://stackoverflow.com/questions/4547411/javax-print-printexception-printer-is-not-accepting-job. You can check if the workaround mentioned there works for you...
Thanks & Best Regards,
George Wen
Hi Kevin,
I followed the same step below except the last one
Create a user for basic authentication as follows:
1. Navigate to http://<server>:<port>/useradmin to start the User Management.
2. On the Identity Management tab page, select Search Criteria as Group.
3. Choose Create Group to create the ADSCallers group. Save the group.
4. Select User in the Search Criteria dropdown list.
5. Choose Create User and enter ADSUser for the user name, enter a password.
6. Under Security Policy, choose Technical User.
7. On the Assigned Roles tab page, in Available Roles, search for the SAP_ADSCALLER role and choose
Add to assign this role to the ADSUser user.
1. Navigate to the SAP NetWeaver Administrator (NWA) at http://<server>:<port>/nwa.
2. Log on to the SAP NWA with a user that has administrator privileges.
3. In the SAP NWA, navigate to SOA Management Technical Configuration Destination Template
Management .
4. Choose New to create a logical port.
5. Choose WSDL as a destination type.
6. Enter ConfigPort_Document in the Destination Name field.
7. Enter http://<host>:<port>/AdobeDocumentServices/Config?
wsdl&mode=ws_policy&style=document in the URL field and choose Next.
8. Choose HTTP Authentication in the Authentication group box and select the User ID/Password (Basic)
checkbox.
9. Choose the Details button. Enter ADSUser in the User ID field and the password in the Password and
Confirm Password fields.
10. Choose Finish to save your entries
Below step is not necessary.
1. Navigate to the SAP NetWeaver Administrator (NWA) at http://<server>:<port>/nwa.
2. Log on to the SAP NWA with a user that has administrator privileges.
3. Navigate to System Management System Properties
4. Choose Edit and select the Use Certified HTTPS Connection for ADS checkbox.
5. Save your entries.
Regards
G.Partheeban
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guys,
Thanks... the issue is resolved and getting the Output as Kevin.
I need the barcode to be printed. I have made the xdp file for that. Can I know how to get the xml file for that, so that I need to pass the Barcode text dynamically from transaction.
Please advise.
Regards
G.Partheeban
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad to know it works.
The XDP file not only decide page layout but also the data binding. So, as a quick test, you can get XML output of your Query Template and import it to you LiveCycle designer as a "Sample XML Data Connection". Then, you will able to bind data element of the XML with your barcode.
When the XDP is ready, you will able to map your Query Template result with input of ADS printing action node in MII Transaction.
In this way you can see the barcode is changing according to the output of your Query Template.
Let me know if there is still any confusion...
George
Hi George,
I have done the below steps but not able to crack the required Output.
1. Created the Query Template with the Output as shown
<?xml version="1.0" encoding="UTF-8"?><Rowsets CachedTime="" DateCreated="2015-03-12T13:17:44" EndDate="2015-03-12T13:17:44" StartDate="2015-03-12T12:17:44" Version="15.0 SP3 Patch 0 (Jan 19, 2015)">
<Rowset>
<Columns>
<Column Description="Barcode" MaxRange="1" MinRange="0" Name="Barcode" SQLDataType="12" SourceColumn="Barcode"/>
</Columns>
<Row>
<Barcode>123765</Barcode>
</Row>
</Rowset>
</Rowsets>
2. Created a new data connection in Live cycle designer.
3. Inserted a Barcode code128 (Type: User Entered - Required,Data Binding as $.Rowset.Row.Barcode) as attached
4. Click on View as XML and copy pasted as xdp file.
5. In the action block Pointed file as xdp template.
Please let me know steps are right and also where to map the Query output to the XML input.
Regards
G.Partheeban
If you only want to verify if the "Preview" button give the right PDF, just copy your <Rowsets> XML into "XML Data Source" and browse for the right XDP file ( do not forget to import the XDP file into your MII project before browse for it). with these 2 inputs, Preview should be working.
If you want to verify if the "dynamic data" from Query Template get properly feed to PDF, you have to know how to map parameter of action blocks in MII transaction. I think you can find better description on this from MII help document. But the basic idea will be using a proper action block under Data Query catalog to read the XML <rowsets> from your barcode Query Template. Then, in your ADS action block, in "Links" configuration, map the output of Data Query to your "input" of ADS action. with the statically configured XDP file, your transaction should be working. But make sure the save, or Print checked, otherwise, everything happen in back end but nothing visible to you.
the printing format is to choose the language MII talk with Printer, this depends on what is the language your printer support and what is the language printer Driver supporting.
In most cases PCL will work. for Macintosh environments, you can try PS format.
If PDF format is really need for some reason, you can do it in "Link" configuration.
so it is working but just change the format to PDF make the error?
As to printers, mine is a office printer support PCL so select the pcl format works fine.
From this link: Setting Up ADS Printing - SAP Manufacturing Execution (SAP ME) - SAP Library I see ZPL should be selected for Zebra label printers.
Hi Guys,
Can any one help on the above issue???
Regards
G.Partheeban
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So basically this looks like some issue in connecting with ADS service.
Did you checked your WSDL destination for ADS?
More detailed configuration options can be find in MII configuration guide in https://websmp103.sap-ag.de/~sapidb/011000358700000360702014E (at least ME guide did not mentioned the Certified HTTPS connection setup).
Let me know if it solved your issue.
Hi George,
Below is the list of steps followed. Please Let me know if I missed something.
Create a user for basic authentication as follows:
1. Navigate to http://<server>:<port>/useradmin to start the User Management.
2. On the Identity Management tab page, select Search Criteria as Group.
3. Choose Create Group to create the ADSCallers group. Save the group.
4. Select User in the Search Criteria dropdown list.
5. Choose Create User and enter ADSUser for the user name, enter a password.
6. Under Security Policy, choose Technical User.
7. On the Assigned Roles tab page, in Available Roles, search for the SAP_ADSCALLER role and choose
Add to assign this role to the ADSUser user.
1. Navigate to the SAP NetWeaver Administrator (NWA) at http://<server>:<port>/nwa.
2. Log on to the SAP NWA with a user that has administrator privileges.
3. In the SAP NWA, navigate to SOA Management Technical Configuration Destination Template
Management .
4. Choose New to create a logical port.
5. Choose WSDL as a destination type.
6. Enter ConfigPort_Document in the Destination Name field.
7. Enter http://<host>:<port>/AdobeDocumentServices/Config?
wsdl&mode=ws_policy&style=document in the URL field and choose Next.
8. Choose HTTP Authentication in the Authentication group box and select the User ID/Password (Basic)
checkbox.
9. Choose the Details button. Enter ADSUser in the User ID field and the password in the Password and
Confirm Password fields.
10. Choose Finish to save your entries
also done
1. Navigate to the SAP NetWeaver Administrator (NWA) at http://<server>:<port>/nwa.
2. Log on to the SAP NWA with a user that has administrator privileges.
3. Navigate to System Management System Properties
4. Choose Edit and select the Use Certified HTTPS Connection for ADS checkbox.
5. Save your entries.
Regards
G.Partheeban
I cant tell you how to set up the printer, but to create the .XDP template you need adobe Livecycle which is available to download in the Netweaver section of Service Marketplace (no additional license as long as you don't use interactive forms if I remember correctly, but please check). You will also find some example templates in the SAP ME Wiki page if you want to try one.
Kevin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kevin,
Thanks for the reply.
I am following Setting Up ADS Printing - SAP Manufacturing Execution (SAP ME) - SAP Library to setup ADS. But not able to find the printers.
Also I have installed the Livecycle designer but not able to find the software where it get stored. Need much clarity on the .XDP template. If you can provide me sample of XDP and xml file used for ADS action then it will be useful.
Regards
G.Partheeban
I don't know anything about setting up the printers (Im using SAP ME and not MII).
The example files can be found here:
SAP ME Example Files - SAP Manufacturing Execution (ME) - SCN Wiki
Kevin
Hi Kevin,
Thanks... just I need a sample of xdp and xml file combination to use in action block.
If any combination you have please let me know.
I tried using your example file, but getting error as below
"
Regards
G.Partheeban
Hi Kevin,
Yes when I press preview it throws error like that.
Using NW 7.4... but I am able to see the ADS
http://<nwhost>:<port>/nwa under Configuration Management Infrastructure Adobe Document Services .
Regards
G.Partheeban
Hi Kelvin,
ADSSAP is installed as per attached SS below.
I have followed Setting Up ADS Printing - SAP Manufacturing Execution (SAP ME) - SAP Library
any other configuration to be followed please let me know?
Regards
G.Partheeban
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.