cancel
Showing results for 
Search instead for 
Did you mean: 

Printing Data Collection

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

former_member600928
Discoverer
0 Kudos

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

andrew_hopwood
Participant
0 Kudos

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.

Former Member
0 Kudos

Thanks Andrew,

This was fixed for us in patch 6.1.1.7

Kind Regards,

Alli

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

I was able to get the papi to return the parametric data for this SFC.

0 Kudos

Hi Alli,

I guess so. Please check Printing How-To Guide, section 6.18 "Parametric Data".

Regards,

Sergiy

Former Member
0 Kudos

I have selected the box for Parametric data on document options and have collected data against the SFC, but the file generated by ME does not contain any parametric data.  What could cause this?

0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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>

Former Member
0 Kudos

We are using extensions, is it possible to not use the extensions in ME 6.1?  The help seems to indicate that the extensions are our only option.

0 Kudos

Alli,

Please, check page 12 of this guide, section "if using standard ADS Printing as delivered".

Br, Alex.

Former Member
0 Kudos

When I use the standard values, I get no output at all (or at least no output in the developer traces that I can see.)

0 Kudos

Check out temporary directory you specify in System Rules and .dat files there.

Former Member
0 Kudos

This directory only contains .pdf files.  Should there be a corresponding .dat file for every PDF?

There are PDF files for labels using the standard parameters, though those labels did not physically print.