sap bw – print barcode using smart forms -...

12
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 1 SAP BW Print Barcode Using Smart Forms Applies to: SAP BI / ABAP Consultants. For more information, visit the EDW HomePage . Summary Print Bar Code using Smart forms in SAP BI system for purchasing document order item report output. Author: Suraj Tigga Company: Capgemini Consulting Created on: 25 March 2011 Author Bio Suraj Tigga is a Senior SAP BI / ABAP consultant at Capgemini Consulting, India. Suraj joined Capgemini Consulting in 2008 and has worked on multiple SAP BI implementation and support projects.

Upload: hathuy

Post on 05-Jun-2018

233 views

Category:

Documents


0 download

TRANSCRIPT

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com

© 2010 SAP AG 1

SAP BW – Print Barcode Using

Smart Forms

Applies to:

SAP BI / ABAP Consultants. For more information, visit the EDW HomePage .

Summary

Print Bar Code using Smart forms in SAP BI system for purchasing document order item report output.

Author: Suraj Tigga

Company: Capgemini Consulting

Created on: 25 March 2011

Author Bio

Suraj Tigga is a Senior SAP BI / ABAP consultant at Capgemini Consulting, India. Suraj joined Capgemini Consulting in 2008 and has worked on multiple SAP BI implementation and support projects.

SAP BW – Print Barcode Using Smart Forms

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com

© 2010 SAP AG 2

Table of Contents

Scenario .............................................................................................................................................................. 3

Step-By-Step Solution ..................................................................................................................................... 3 Creating Smartform ...................................................................................................................................................... 4

DSO (Data Load) Execute - Smartform ....................................................................................................................... 6

Execute Smartforms .................................................................................................................................................... 9

Related Content ................................................................................................................................................ 11

Disclaimer and Liability Notice .......................................................................................................................... 12

SAP BW – Print Barcode Using Smart Forms

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com

© 2010 SAP AG 3

Scenario

SAP BI is enriched with many excellent reporting tools like BEx (Business Explorer) Analyzer, Report Designer, and Web Application Designer where we can design, create, analyze and distribute data that results in improved decision making capabilities.

Along with the above BI specific reporting tools, SAP BI system also has the flexibility of using Smartforms and SAP scripts which is generally used in SAP ECC to generate forms. Below mentioned the advantage of using SAP Smartform design tool to print Bar Codes in the report output.

Above tools are an added features SAP has provided along with the SAP BI specific reporting tools (BEx Query Designer, BEx Report Designer, BEx Web Application Designer (WAD), BEx Web Analyzer (Web Based Tool) and BEx Analyzer (Excel-Based Tool).

Step-By-Step Solution

With traditional bar code printing, the bar codes are generated at the printer and not in the SAP System. Special hardware, such as SIMM modules, is required to do this. If the bar code is to be formatted or controlled with traditional bar code printing, print controls must be changed in the printer commands. In contrast to traditional bar code printing, the new bar code printing does not require any special software, since the bar code is sent to the printer as a graphic. However, the new bar code printing only works with Smart Forms.

Smart forms are used to create and maintain forms for mass printing in SAP systems. Besides using the printer for standard output one can also select the internet (by using a generated HTML output),a fax , , or email as the output medium.

Below are the steps mentioned to create a Smartform which prints Bar Code:

Creating Smartform: Briefly explains the steps to create smart styles and smartforms.

Execute Smartform: Execute the smart form to display report output.

SAP BW – Print Barcode Using Smart Forms

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com

© 2010 SAP AG 4

Creating Smartform

Step1: Go to Transaction Code SE73 and display the ‘System Bar Codes:

Display the Bar Code.

Select the Bar Code ‘C128A’ and display the Bar Code.

(Here we also have the option to create Bar Code)

Step2: Go to transaction ‘SMARTSTYLES’ and create new style ‘YBARCODE_PURCHASE’:

SAP BW – Print Barcode Using Smart Forms

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com

© 2010 SAP AG 5

Create a default Paragraph Format by clicking on ‘Create Node’ from the Context Menu of ‘Paragraphs Formats’ in the left navigation view

Create a new Character Format (SH) by clicking on ‘Create Node’ from the Context Menu of ‘Character Formats’ in the left navigation view.

Save and activate the Style.

SAP BW – Print Barcode Using Smart Forms

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com

© 2010 SAP AG 6

DSO (Data Load) Execute - Smartform

Step1: Go to Transaction Code ‘SMARTFORMS’, and create Smartform as ‘YSMARTFORM_PURCHASE’:

Global Definitions:

Retrieve data from DSO 0PUR_O01.

Step2: Right-Click on ‘Main Window ‘and create Table:

SAP BW – Print Barcode Using Smart Forms

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com

© 2010 SAP AG 7

Divide the table in six columns as per the six fields to be displayed in the report output.

Go to ‘Header’ and ‘Main Area’ .Create respective Table Lines ‘Header’ and ‘Main Area’:

Create text for the fields to be displayed in the report output as below (For example shown for text ‘Document’)

Create text for the actual values to be displayed in the report output (Under Main Area Section):

SAP BW – Print Barcode Using Smart Forms

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com

© 2010 SAP AG 8

Step3: Upload the LOGO in Window2:

Step4: Display the text ‘LIST OF PURCHASING DOCUMENTS’ in the header of the report output:

SAP BW – Print Barcode Using Smart Forms

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com

© 2010 SAP AG 9

Next Steps:

- After the Smartform is created successfully ABAP code should be written which will call the Function Module ‘SSF_FUNCTION_MODULE_NAME’ importing the Smartform name ‘YSMARTFORM_PURCHASE’ and exporting the list of purchasing documents with the BARCODE.

Execute Smartforms

Step1: Execute the Smartform, which would give a dynamic Function Module name:

SAP BW – Print Barcode Using Smart Forms

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com

© 2010 SAP AG 10

Execute the Function Module .Enter the output device as ‘LOCL’:

SAP BW – Print Barcode Using Smart Forms

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com

© 2010 SAP AG 11

Related Content

For more information, visit EDW HomePage .

SAP BW – Print Barcode Using Smart Forms

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com

© 2010 SAP AG 12

Disclaimer and Liability Notice

This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.

SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk.

SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.