on 07-11-2013 3:21 PM
Is it possible to print the value of a data collection parameter?
I am collecting a piece of data using data collection and I'd like to print it on an SFC label. Is this possible?
If not, is there another recommended way to print a value input by the user during the production process?
Hello Alli,
We found a defect in printing data acquisition class com.sap.me.document$PrintingDataAcquisitionService not allowing to collect parametric data and some more fields. The fix will be available in the next patch release - please refer to SAP Note 1887351 - "Printed document does not include selected data."
Regards,
Konstantin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alli,
I had the same issue in 6.1.2.1 and as Konstantin says, it is now working for me in 6.1.2.2 - with debugging trace on I can now see Parametric data for my SFC in \usr\sap\J2E\J02\j2ee\cluster\server0\mePrintContent.xml when using the Document DA class
com.sap.me.document$PrintingDataAcquisitionService
Regards,
Andrew.
Hi Alli,
PrintingDataAcquisitionService uses DataCollectionService.findParametricDataByReference PAPI to get the data. There might be an issue or limitation of that PAPI and it's possible that it returns null. One way to verify that is to call PAPI via web service specifying correct sfcRef.
Thanks,
Bakhtiyar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alli,
I guess so. Please check Printing How-To Guide, section 6.18 "Parametric Data".
Regards,
Sergiy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alli,
Which file: meData.xml or output printing file (PDF, ZPL etc.)?
For the former, please check here.
For the latter, please check if the data is pupolated to meData.xml and then check the field mapping as per the Priniting How-To Guide, then check your template if it contains the correct reference to those fields.
If everything's OK, maybe a bug.
Regards,
Sergiy
Hi Alli,
Recently, I have tested successfully the parametric data with the following configurations in Document Maintenance:
com.sap.me.document.impl.BaseDataAcquisition
com.sap.me.document.FormatAdobe
com.sap.me.document.BaseTransport
However, in case of extensions
com.sap.me.document$PrintingDataAcquisitionService
com.sap.me.document$PrintingFormatAdsService
com.sap.me.document$PrintingTransportAdsService
different classes are used as far as I know and parametric data can be missed. This case is currently being investigated by development department.
I am going to update this thread once have any news on it.
Br, Alex.
We're using ZPL. The fields are not in the output from ME...
You can see I have data collected for the SFC.
Data collection is a selected option for the document:
But the output from ME is this:
<PrintContent>
<documentNote></documentNote>
<documentPrintingData>
<ref>DocumentBO:USPB,MFG_INST_ID,K</ref>
<document>MFG_INST_ID</document>
<revision>K</revision>
<template>mfg_inst_id.xdp</template>
<documentTypeRef>DocumentTypeBO:USPB,LABEL</documentTypeRef>
<formatterClass>com.sap.me.document$PrintingFormatAdsService</formatterClass>
<printMethod>ALL</printMethod>
<description>inst. ID for manufacturing</description>
<printQty>1</printQty>
<formatUserArg>PRINT_FORMAT=PCL</formatUserArg>
<writeErrorLog>true</writeErrorLog>
<dataAcquisitionClass>com.sap.me.document$PrintingDataAcquisitionService</dataAcquisitionClass>
<transportClass>com.sap.me.document$PrintingTransportAdsService</transportClass>
<statusRef>Enabled</statusRef>
<printBy>S</printBy>
<documentOptionValueList>
<value>true</value>
<documentOptionRef>DocumentOptionBO:SFC_CUSTOM_DATA</documentOptionRef>
</documentOptionValueList>
<documentOptionValueList>
<value>true</value>
<documentOptionRef>DocumentOptionBO:SHOP_ORDER_CUSTOM_DATA</documentOptionRef>
</documentOptionValueList>
<documentOptionValueList>
<value>true</value>
<documentOptionRef>DocumentOptionBO:PARAMETRIC_DATA</documentOptionRef>
</documentOptionValueList>
<site>USPB</site>
<printDate>2013-07-11T15:22:52.764-04:00</printDate>
<printUser>ADAVIDSON</printUser>
</documentPrintingData>
<sfcPrintingData>
<sfcRef>SFCBO:USPB,CTDX522331</sfcRef>
<site>USPB</site>
<sfc>CTDX522331</sfc>
<itemRef>ItemBO:USPB,99-14255-00,A</itemRef>
<shopOrderRef>ShopOrderBO:USPB,716879</shopOrderRef>
<statusRef>StatusBO:USPB,402</statusRef>
<qty>1</qty>
<qtyDone>0</qtyDone>
<qtyScrapped>0</qtyScrapped>
<priority>500</priority>
<inQueue>true</inQueue>
<rma>false</rma>
<sfcIdHistoryList>
<sfcRef>SFCBO:USPB,CTDX522331</sfcRef>
<sequence>1</sequence>
<reason>RELEASE</reason>
</sfcIdHistoryList>
<itemPrintingData>
<ref>ItemBO:USPB,99-14255-00,A</ref>
<item>99-14255-00</item>
<revision>A</revision>
<timeSensitive>false</timeSensitive>
<allowResetFloorLife>true</allowResetFloorLife>
<allowResetShelfLife>true</allowResetShelfLife>
</itemPrintingData>
<routerPrintingData>
<ref>RouterBO:USPB,CTDX522331,S,~A</ref>
<routerType>SFC_SPECIFIC</routerType>
<router>CTDX522331</router>
<revision>~A</revision>
<currentRevision>false</currentRevision>
</routerPrintingData>
<shopOrderPrintingData>
<shopOrderRef>ShopOrderBO:USPB,716879</shopOrderRef>
<shopOrder>716879</shopOrder>
<collectParentSerial>false</collectParentSerial>
<serialChangeRequired>false</serialChangeRequired>
</shopOrderPrintingData>
</sfcPrintingData>
</PrintContent>
Alli,
Please, check page 12 of this guide, section "if using standard ADS Printing as delivered".
Br, Alex.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.