SDN Community Contribution

Similar documents
Combining Multiple Smartform Outputs Into One PDF File

Triggering the Process Chains at Particular Date using Events

SDN Community Contribution

A Simple search program for Dictionary objects

Linking Documents with Web Templates

Using Radio Buttons in Web Template

Web Dynpro: Coloring Table Conditionally

Easy Lookup in Process Integration 7.1

Using Customer Exit Variables in BW/BI Reports: Part - 14

MDM Syndicator: Custom Items Tab

Routines in SAP BI 7.0 Transformations

This article explains the steps to create a Move-in letter using Print Workbench and SAPScripts.

Open Text DocuLink Configuration - To Access Documents which are Archived using SAP

Applies To:...1. Summary...1. Table of Contents...1. Procedure..2. Code... Error! Bookmark not defined.0

How to Create Tables in MaxDB using SQL Studio

Creation of Sets in SAP-ABAP, How to Read them INI SAP-ABAP Reports

MDM Import Manager - Taxonomy Data (Attribute Text Values) Part 3

Web Dynpro ABAP: Dynamic Table

Integration of Web Dynpro for ABAP Application in Microsoft Share Point Portal

How to Create and Schedule Publications from Crystal Reports

How to Configure User Status in mysap SRM

Step by Step Guide to Creating a Process Type to Close an Open Request in a Cube in BI 7.0

Web Dynpro ABAP: Changing ALV Contents and Saving in Database

SAP BW Copy Existing DTP for Data Targets

Displaying SAP Transaction as Internet Application in Portal

Freely Programmed Help- Web Dynpro

SDN Community Contribution

POWL: Infoset Generation with Web Dynpro ABAP

Material Master Archiving in Simple Method

Developing Crystal Reports on SAP BW

Customized Transaction to Trigger Process Chain from Failed Step

Using Customer Exit Variables in BW/BI Reports: Part - 4

ecatt Part 6 System Data Container

Table Properties and Table Popin

Table Row Popup in Web Dynpro Component

Step By Step Procedure to Implement Soap to JDBC Scenario

How to Reference External JAR Files in Web Dynpro DC in SAP NW Portal 7.3

Information Broadcasting Part 3 Scheduling the First Report

Explore to the Update Tab of Data Transfer Process in SAP BI 7.0

Procedure to Trigger Events in Remote System Using an ABAP Program

Creating Rules in Process Composer and using them in Process

Material Listing and Exclusion

Financial Statement Version into PDF Reader

Function Module to Create Logo

Custom Process types Remote Trigger and End Time

Add /Remove Links on ESS Home Page in Business Package 1.5

Implementing a BAdI in an Enhancement Project (CMOD)

Step by Step Guide How to Use BI Queries in Visual Composer

DB Connect with Delta Mechanism

Step by Step Method for File Archival in BW

Validity Table in SAP BW/BI

Exception Handling in Web Services exposed from an R/3 System

Common Queries/Errors while working with Adobe Print PDF Forms

Step by Step Procedure for DSO Creation

Maintaining Roles and Authorizations in BI7.0 - RSECADMIN

Extracting Missing Fields of Data Source Which Are Present In Their Extract Structure

Restricting F4 (Input Help) Values While Running a SAP BW Query

Recreating BIA Indexes to Address the Growth of Fact Index Table

Offsetting Account Description in FBL3N & FAGLL03 GL Line Item Display Reports

Graphical Mapping Technique in SAP NetWeaver Process Integration

Xcelsius Tricks Part 5 Create a Loading Bar in SAP Crystal Dashboard and Presentation Design (Xcelsius 2008)

SAP QM-IDI Interface. SDN Contribution. Applies to: Summary. Author Bio. SAP QM Interfaces

Step by Step Guide on How to Use Cell Definition in BEx Query

Extraction of Hierarchy into Flat File from R/3 and Loading in BW System

Totals in Adobe forms

Implementing Customer Exit Reporting Variables as Methods

Solution to the Challenges in Pivoting

How to use Boolean Operations in the Formula as Subsidiary for IF Condition

Creating Custom SU01 Transaction Code with Display and Password Reset Buttons

SDN Community Contribution

Replacement Path: Explained with an Illustrated Example

Open Hub Destination - Make use of Navigational Attributes

MDM Syndication and Importing Configurations and Automation

Standalone BW System Refresh

Load Info Cube in SCM 5.0 (BI 7.0)

Step By Step: the Process of Selective Deletion from a DSO

Complete Guide for Events in Workflows in SAP ECC 6.0

To Check the Files/Reports in Application Server and Trigger Mail Alerts

Database Statistics During ODS Activation

Process Chain Log Deletion

ABAP Code - Recipients (Specific Format) SAP BW Process Chain

How to Create View on Different Tables and Load Data through Generic Datasource based on that View

Creation of Key Figures with Higher Decimal Place Precision

SYNDICATING HIERARCHIES EFFECTIVELY

ABAP Code Sample to Attach F1 and F4 Help Fields in ALV Grid

List of Values in BusinessObjects Web Intelligence Prompts

Adding Custom Fields to Contract Account Screen

About ITAB Duplicate_Key (SAP lrsaods) Runtime Error

How to Create your Own Rule in Workflow?

Using Nested Exception Aggregation in BEx Reports- Scenario

Purpose of Goods Receipt Message indicator in Purchase Orders

E-Sourcing System Copy [System refresh from Production to existing Development]

How to Create Top of List and End of List of the ALV Output in Web Dynpro for ABAP

Data Mining: Scoring (Linear Regression)

How to Create Business Graphics in Web Dynpro for ABAP

SAP BusinessObjects Translation Manager Functionality and Use

SMT (Service Mapping Tool)

BPM Multi Line Container in Integration Process

How to Default Variant Created for Report Developed In Report Painter/Writer

Adding Files as Attachments to SAP Interactive Forms in the Java Environment

Transcription:

SDN Community Contribution (This is not an official SAP document.) Disclaimer & 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. 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 1

Applies To: SAP 4.6C - s Summary This document explains how to use Table, Template, Loop, and Command to display the set of records in s. By: J.Jayanthi Company: Wipro Technologies Date: 22.08.2005 Table of Contents Applies To:...2 Summary...2 Table of Contents...2 Procedure...2 Template...4 Command...5 Loop...5 Table...6 Code Sample..7 Output Screen: Template...8 Output Screen: Loop...9 Output Screen:Table...9 Author Bio.10 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 2

Procedure 1. Go to transaction SMARTFORMS. 2. Create a Form (say zzz_test1). 3. In Global Definitions->Global Data, 4. Variable Name Type Assignment Reference Type ZZZ_MAKT TYPE ZZZ_MAKT ITAB TYPE STANDARD TABLE OF ZZZ_MAKT WA TYPE ZZZ_MAKT 5. In Main window->output Options, fill the necessary details as shown below. 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 3

6. Then right click Main window and create Program line. 7. In Code, give ZZZ_MAKT as input parameter and itab as output parameter. 8. Write the following in the coding part. select * from zzz_makt into table itab. Template 1. Right click Code and create a Loop. 2. In its Data tab, Internal Table ITAB into wa 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 4

3. Right Click the Loop and Create a Template. In that, design the Template as shown below by selecting Pattern to display Output. 4. Create three text elements (say Text2, Text4, Text3). 5. Drag ZMATNR, ZMAKTX and PICK from the Field list and put in the above mentioned Text Elements-> General Attributes respectively. 6. In Text2->Output Options, make the Line and Column as 1 and 1 respectively. 7. In Text4->Output Options, make the Line and Column as 1 and 2 respectively. 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 5

8. In Text3->Output Options, make the Line and Column as 1 and 3 respectively. Command 1. Right Click the Loop and create a Command (say %COMMAND2). Make the Command after Template (move accordingly). We are making use of Command to page break. 2. In Command->General Attributes, check mark Go to new page and give the page no. (say %PAGE). 3. Then right Click the %CODE1 and create another loop and move it after %COMMAND2. Loop 1. In Loop->Data, Internal table itab into wa. The settings of Loop->Output options is shown below [Since in the output, we are going to display a box with border]. 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 6

2. Create a text element (say %TEXT1) under that Loop and design the Text->General Attributes as below. 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 7

3. Create a Command (say %Command1) under %Loop1 and do as we did before for %Command2. Table 1. Right click %Code1 and Create a Table [say %Table1]. 2. Design Table->Table tab as below. 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 8

3. In Table->Data, Internal table itab into wa. 4. Create three Text Element by right clicking %Table1 [say %CELL1, %CELL2, %CELL3]. 5. Drag ZMATNR, ZMAKTX, PICK from fieldlist and put in the created text elements. 6. In CELL1->Output Options, 7. Check mark New Line and New Cell and choose the Line type as Line1 which we created in Table- >Table. 8. For CELL2 and CELL3, check mark New Cell in Output options. 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 9

Code Sample REPORT zzz_jaytest3. * Variable Declaration data : v_form_name TYPE rs38l_fnam. call function 'SSF_FUNCTION_MODULE_NAME' exporting formname = 'ZZZ_TEST1' importing fm_name = v_form_name exceptions no_form = 1 no_function_module = 2 others = 3. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. CALL FUNCTION v_form_name EXCEPTIONS FORMATTING_ERROR = 1 INTERNAL_ERROR = 2 SEND_ERROR = 3 USER_CANCELED = 4 OTHERS = 5. IF sy-subrc <> 0. MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. Output Screen: Template Then you can see the following output after executing the program in SE38.The following is the Output for TEMPLATE: 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 10

Output Screen: Loop This is the Output for LOOP: 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 11

Output Screen: Table This is the Output for TABLE: 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 12

Author Bio J.Jayanthi works as Senior Software Engineer at Wipro Technologies. 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 13