SlideShare a Scribd company logo
1 of 33
1
Smartforms
2
Introduction
▪ Smartforms are layouts in SAP.
▪ We design the layouts using smartforms.
▪ The transaction code to create a smartform is Smartforms.
▪ Every smartform on execution generates a function module.
3
Various Parts of Smartforms
▪ Form attributes - It provides the generic information of smartform like date, time,
package etc.
▪ Form interface - The purpose of form interface is to pass input and output parameters.
▪ Global definition - It is a global part of smartform which is accessible by all the elements
of the smartform.
4
Various Parts of Global Definition
▪ The various parts of global definition are as follows:
 Global data - This tab is used for global declarations.
 Types - This tab is used for user defined types.
 Field-symbols - This tab is used to declare the field-symbols.
 Initialization - This tab is used to write the logic.
 Form routines - This tab is used to declare the subroutines.
5
Various Parts of Global Definition(Contd.)
 Currency/Quant. Fields - The purpose of this tab is to declare the currency/quantity
fields.
6
Concept of Windows
▪ For every individual section of the layout, we need to create a window in smartform.
▪ We can create windows by right clicking on the page or through form painter.
▪ Every window has 4 dimensions: left, upper, width and height.
7
Template in Smartforms
▪ Template is used for fixed number of rows and columns.
▪ When we need to display the static data, template is preferable.
8
Table in Smartforms
▪ When number of rows are not fixed, we need to create table in smartforms.
▪ When we need to display the dynamic data, table is preferable.
9
Parts of Table
▪ A table has 3 parts.
1. Header
2. Main area
3. Footer
10
Parts of Table
1. Header - It is used to display the column/field labels.
2. Main area - It is used to display the data.
3. Footer - It is used to display the information in the footer. Example - total of amount.
11
Integration of Smartform into Programs
▪ Every smartform on execution generates function module.
▪ We can call the smartform in the program through the function module of the
smartform.
▪ We need to use the SAP function module SSF_FUNCTION_MODULE_NAME to return the
function module of the smartform.
12
Types of Windows
▪ There are 4 types of windows in smartforms.
1. Main window
2. Secondary window
3. Copies window
4. Final window
13
Types of Windows
1. Main window - It is used for the continues output such as table output.
2. Secondary window - It is used for output with a fixed length.
3. Copies window - It is also a kind of special secondary window which is used for making
pages as copy or original.
4. Final window - It is a special kind of secondary window used for details which are
needed to be processed only at the end of processing form.
14
Types of Text
▪ There are 4 types of text in smartforms.
1. Text element
2. Text module
3. Include text
4. Dynamic text
15
Types of Text
1. Text element - It is not a reusable text. This text is dedicated to one smartform only.
2. Text module - It is a reusable text. It is a reusable text for smartforms.
3. Include text - It is also a reusable text. It is a reusable text for smartforms, programs etc.
4. Dynamic text - This text is used to display the text at run time in smartform.
16
Ways to Debug a Smartform
▪ Put the session or external break point in the generated function module of the
Smartform.
▪ Put the BREAK-POINT (user independent break point) or Break username (user
dependent break point) in the smartform.
17
Downloading & Uploading
▪ It is possible to download a smartform to presentation server(local computer).
▪ Similarly, it is also possible to upload a smartform from presentation server(local
computer).
▪ The format of smartforms download and upload is XML (extensible mark-up language).
18
Creation of Graphics
▪ Transaction code to upload graphics in SAP is SE78.
▪ SAP supports BMP(bitmap) images.
▪ We need to create a graphics in smartforms to display the bitmap Image.
19
Creation of Address
▪ In SAP, addresses are getting stored in to ADRC table.
▪ We can display the address in smartforms by creating an address in smartforms.
▪ Pass the address number (ADRNR), system fetches data from ADRC table based upon
that address number and display in the smartform.
20
Creation of Folder
▪ It is used to combine different node into logical groups.
▪ It is used to achieve page protection in smartforms, so that everything in folder will be
printed on same page.
21
System Variables in Smartforms
▪ The various system variables related to smartforms are as follows:
 SFSY-PAGE - System variable for current page number.
 SFSY-FORMPAGES - System variable for total page number.
 SFSY-COPYCOUNT- System variable for copy count.
22
Concept of Smartstyles
▪ The smartstyles is used to provide the proper font, indentation, color to the output of
smartform.
▪ The transaction code to create a smartstyle is Smartstyles.
▪ We need to create paragraph format and character format using Smartstyles
transaction code and assign in the smartforms.
23
Bar Code in Smartforms
▪ We can create the bar code using the transaction code SE73.
▪ We cannot directly use a bar code in smartforms.
▪ We need to create a character format for that bar code using Smartstyles transaction
code and assign that character format in smartforms.
24
Converting Smartform Output to PDF
▪ There are 2 steps to convert the smartform output to PDF.
1. Get the OTF(Output Text Format) of the smartform.
2. Convert OTF to PDF - Use the function module CONVERT_OTF to convert OTF to PDF.
25
Output Types in Smartforms
▪ Output type specifies the kind of output to be produced. Example: printed form, e-Mail,
fax etc.
▪ Transaction code for the mapping of output type, smartform and driver program is
NACE.
▪ SAP standard Table for the mapping of output type, smartform and driver program is
TNAPR.
26
Smartforms Translation into Other Languages
▪ Transaction code to translate a smartform into other languages is SE63.
▪ Path : Other Texts- SAPscript: Forms and Styles-SSF SAP Smart Form
27
Sending Smartform PDF as an E-Mail Attachment
▪ To send the smartform PDF as an e-mail attachment, we will make use of the various
standard classes of SAP related to BCS( Business Communication Services). The various
standard classes are as follows :
 CL_BCS
 CL_DOCUMENT_BCS
 CL_SAPUSER_BCS
 CL_CAM_ADDRESS_BCS
28
Sending Smartform PDF as an E-Mail Attachment(Contd.)
 CL_BCS - This class is used for creating the send request, adding the recipient, sending
the document etc.
 CL_DOCUMENT_BCS - This class is used for creating the document, adding the
attachment etc.
 CL_SAPUSER_BCS - This class is used to create SAP users.
 CL_CAM_ADDRESS_BCS - This class is used to create the external recipients
29
Steps to Send Smartform PDF as an E-Mail Attachment
1. Get the BIN_FILE of the smartform.
2. Convert the BIN_FILE from XSTRING format to binary format.
3. Create the send request.
4. Create the SAP user/external user( recipient)
5. Add the recipient
6. Create the document.
7. Add the attachment.
30
Steps to Send Smartform PDF as an E-Mail Attachment(Contd.)
8. Set the document
9. Activate/deactivate immediate sending
10. Send
11. Commit
31
Q & A
 We can run a smartform without main window.
Answer : Yes, we can run a smartform without main window.
 What is the transaction code to create a include text?
Answer : SO10
 What is the function module to display a include text?
Answer : READ_TEXT
32
Q & A
 What is the pre-defined table type for dynamic text?
Answer : TSFTEXT
 What is the full form of OTF?
Answer : Output Text Format.
33
Thank You

More Related Content

Similar to 12 Smartforms. .pptx

Introduction to sap jaipur-30 july 2015
Introduction to sap jaipur-30 july 2015Introduction to sap jaipur-30 july 2015
Introduction to sap jaipur-30 july 2015Baalu Kathirvelu
 
Introduction to SAP-Jaipur-30 July 2015.pptx
Introduction to SAP-Jaipur-30 July 2015.pptxIntroduction to SAP-Jaipur-30 July 2015.pptx
Introduction to SAP-Jaipur-30 July 2015.pptxNavneetChaubey4
 
MuleSoft SAP Integration using IDocs
MuleSoft SAP Integration using IDocsMuleSoft SAP Integration using IDocs
MuleSoft SAP Integration using IDocsshyamraj55
 
Sap Fico Configuration Material
Sap Fico Configuration MaterialSap Fico Configuration Material
Sap Fico Configuration MaterialNaina Mohamed
 
ERP Magazine April 2018 Issue 1
ERP Magazine April 2018 Issue 1 ERP Magazine April 2018 Issue 1
ERP Magazine April 2018 Issue 1 Rehan Zaidi
 
ERP Magazine April 2018 - The magazine for SAP ABAP Professionals
ERP Magazine April 2018 - The magazine for SAP ABAP ProfessionalsERP Magazine April 2018 - The magazine for SAP ABAP Professionals
ERP Magazine April 2018 - The magazine for SAP ABAP ProfessionalsRehan Zaidi
 
Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.
Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.
Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.Chris Laning
 
Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8ManjuKumara GH
 
Chapter 02 sap script forms
Chapter 02 sap script formsChapter 02 sap script forms
Chapter 02 sap script formsKranthi Kumar
 
SAP S_4HANA Migration Cockpit - Deep Dive LTMOM for Direct Transfer.pdf
SAP S_4HANA Migration Cockpit - Deep Dive LTMOM for Direct Transfer.pdfSAP S_4HANA Migration Cockpit - Deep Dive LTMOM for Direct Transfer.pdf
SAP S_4HANA Migration Cockpit - Deep Dive LTMOM for Direct Transfer.pdfssuserf6d533
 
Anypoint Tools and MuleSoft Automation (DRAFT).pptx
Anypoint Tools and MuleSoft Automation (DRAFT).pptxAnypoint Tools and MuleSoft Automation (DRAFT).pptx
Anypoint Tools and MuleSoft Automation (DRAFT).pptxAkshata Sawant
 
MuleSoft Meetup #9 - Anypoint Tools and MuleSoft Automation (FINAL).pptx
MuleSoft Meetup #9 - Anypoint Tools and MuleSoft Automation (FINAL).pptxMuleSoft Meetup #9 - Anypoint Tools and MuleSoft Automation (FINAL).pptx
MuleSoft Meetup #9 - Anypoint Tools and MuleSoft Automation (FINAL).pptxSteve Clarke
 
Structured system analysis and design
Structured system analysis and design Structured system analysis and design
Structured system analysis and design Jayant Dalvi
 
SAP AC020 - Investment Management
SAP AC020 - Investment ManagementSAP AC020 - Investment Management
SAP AC020 - Investment ManagementVannak9
 
Top Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and TricksTop Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and TricksDMC, Inc.
 
Successfully Implement Responsive Design Behavior with Adobe Experience Manager
Successfully Implement Responsive Design Behavior with Adobe Experience ManagerSuccessfully Implement Responsive Design Behavior with Adobe Experience Manager
Successfully Implement Responsive Design Behavior with Adobe Experience ManagerPerficient, Inc.
 

Similar to 12 Smartforms. .pptx (20)

Introduction to sap jaipur-30 july 2015
Introduction to sap jaipur-30 july 2015Introduction to sap jaipur-30 july 2015
Introduction to sap jaipur-30 july 2015
 
Introduction to SAP-Jaipur-30 July 2015.pptx
Introduction to SAP-Jaipur-30 July 2015.pptxIntroduction to SAP-Jaipur-30 July 2015.pptx
Introduction to SAP-Jaipur-30 July 2015.pptx
 
MuleSoft SAP Integration using IDocs
MuleSoft SAP Integration using IDocsMuleSoft SAP Integration using IDocs
MuleSoft SAP Integration using IDocs
 
Sap Fico Configuration Material
Sap Fico Configuration MaterialSap Fico Configuration Material
Sap Fico Configuration Material
 
ERP Magazine April 2018 Issue 1
ERP Magazine April 2018 Issue 1 ERP Magazine April 2018 Issue 1
ERP Magazine April 2018 Issue 1
 
ERP Magazine April 2018 - The magazine for SAP ABAP Professionals
ERP Magazine April 2018 - The magazine for SAP ABAP ProfessionalsERP Magazine April 2018 - The magazine for SAP ABAP Professionals
ERP Magazine April 2018 - The magazine for SAP ABAP Professionals
 
Sap scripts
Sap scriptsSap scripts
Sap scripts
 
Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.
Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.
Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.
 
Sap abap
Sap abapSap abap
Sap abap
 
Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8
 
Chap15
Chap15Chap15
Chap15
 
Chapter 02 sap script forms
Chapter 02 sap script formsChapter 02 sap script forms
Chapter 02 sap script forms
 
SAP S_4HANA Migration Cockpit - Deep Dive LTMOM for Direct Transfer.pdf
SAP S_4HANA Migration Cockpit - Deep Dive LTMOM for Direct Transfer.pdfSAP S_4HANA Migration Cockpit - Deep Dive LTMOM for Direct Transfer.pdf
SAP S_4HANA Migration Cockpit - Deep Dive LTMOM for Direct Transfer.pdf
 
Anypoint Tools and MuleSoft Automation (DRAFT).pptx
Anypoint Tools and MuleSoft Automation (DRAFT).pptxAnypoint Tools and MuleSoft Automation (DRAFT).pptx
Anypoint Tools and MuleSoft Automation (DRAFT).pptx
 
MuleSoft Meetup #9 - Anypoint Tools and MuleSoft Automation (FINAL).pptx
MuleSoft Meetup #9 - Anypoint Tools and MuleSoft Automation (FINAL).pptxMuleSoft Meetup #9 - Anypoint Tools and MuleSoft Automation (FINAL).pptx
MuleSoft Meetup #9 - Anypoint Tools and MuleSoft Automation (FINAL).pptx
 
Compose in Theory
Compose in TheoryCompose in Theory
Compose in Theory
 
Structured system analysis and design
Structured system analysis and design Structured system analysis and design
Structured system analysis and design
 
SAP AC020 - Investment Management
SAP AC020 - Investment ManagementSAP AC020 - Investment Management
SAP AC020 - Investment Management
 
Top Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and TricksTop Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and Tricks
 
Successfully Implement Responsive Design Behavior with Adobe Experience Manager
Successfully Implement Responsive Design Behavior with Adobe Experience ManagerSuccessfully Implement Responsive Design Behavior with Adobe Experience Manager
Successfully Implement Responsive Design Behavior with Adobe Experience Manager
 

Recently uploaded

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

Recently uploaded (20)

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

12 Smartforms. .pptx

  • 2. 2 Introduction ▪ Smartforms are layouts in SAP. ▪ We design the layouts using smartforms. ▪ The transaction code to create a smartform is Smartforms. ▪ Every smartform on execution generates a function module.
  • 3. 3 Various Parts of Smartforms ▪ Form attributes - It provides the generic information of smartform like date, time, package etc. ▪ Form interface - The purpose of form interface is to pass input and output parameters. ▪ Global definition - It is a global part of smartform which is accessible by all the elements of the smartform.
  • 4. 4 Various Parts of Global Definition ▪ The various parts of global definition are as follows:  Global data - This tab is used for global declarations.  Types - This tab is used for user defined types.  Field-symbols - This tab is used to declare the field-symbols.  Initialization - This tab is used to write the logic.  Form routines - This tab is used to declare the subroutines.
  • 5. 5 Various Parts of Global Definition(Contd.)  Currency/Quant. Fields - The purpose of this tab is to declare the currency/quantity fields.
  • 6. 6 Concept of Windows ▪ For every individual section of the layout, we need to create a window in smartform. ▪ We can create windows by right clicking on the page or through form painter. ▪ Every window has 4 dimensions: left, upper, width and height.
  • 7. 7 Template in Smartforms ▪ Template is used for fixed number of rows and columns. ▪ When we need to display the static data, template is preferable.
  • 8. 8 Table in Smartforms ▪ When number of rows are not fixed, we need to create table in smartforms. ▪ When we need to display the dynamic data, table is preferable.
  • 9. 9 Parts of Table ▪ A table has 3 parts. 1. Header 2. Main area 3. Footer
  • 10. 10 Parts of Table 1. Header - It is used to display the column/field labels. 2. Main area - It is used to display the data. 3. Footer - It is used to display the information in the footer. Example - total of amount.
  • 11. 11 Integration of Smartform into Programs ▪ Every smartform on execution generates function module. ▪ We can call the smartform in the program through the function module of the smartform. ▪ We need to use the SAP function module SSF_FUNCTION_MODULE_NAME to return the function module of the smartform.
  • 12. 12 Types of Windows ▪ There are 4 types of windows in smartforms. 1. Main window 2. Secondary window 3. Copies window 4. Final window
  • 13. 13 Types of Windows 1. Main window - It is used for the continues output such as table output. 2. Secondary window - It is used for output with a fixed length. 3. Copies window - It is also a kind of special secondary window which is used for making pages as copy or original. 4. Final window - It is a special kind of secondary window used for details which are needed to be processed only at the end of processing form.
  • 14. 14 Types of Text ▪ There are 4 types of text in smartforms. 1. Text element 2. Text module 3. Include text 4. Dynamic text
  • 15. 15 Types of Text 1. Text element - It is not a reusable text. This text is dedicated to one smartform only. 2. Text module - It is a reusable text. It is a reusable text for smartforms. 3. Include text - It is also a reusable text. It is a reusable text for smartforms, programs etc. 4. Dynamic text - This text is used to display the text at run time in smartform.
  • 16. 16 Ways to Debug a Smartform ▪ Put the session or external break point in the generated function module of the Smartform. ▪ Put the BREAK-POINT (user independent break point) or Break username (user dependent break point) in the smartform.
  • 17. 17 Downloading & Uploading ▪ It is possible to download a smartform to presentation server(local computer). ▪ Similarly, it is also possible to upload a smartform from presentation server(local computer). ▪ The format of smartforms download and upload is XML (extensible mark-up language).
  • 18. 18 Creation of Graphics ▪ Transaction code to upload graphics in SAP is SE78. ▪ SAP supports BMP(bitmap) images. ▪ We need to create a graphics in smartforms to display the bitmap Image.
  • 19. 19 Creation of Address ▪ In SAP, addresses are getting stored in to ADRC table. ▪ We can display the address in smartforms by creating an address in smartforms. ▪ Pass the address number (ADRNR), system fetches data from ADRC table based upon that address number and display in the smartform.
  • 20. 20 Creation of Folder ▪ It is used to combine different node into logical groups. ▪ It is used to achieve page protection in smartforms, so that everything in folder will be printed on same page.
  • 21. 21 System Variables in Smartforms ▪ The various system variables related to smartforms are as follows:  SFSY-PAGE - System variable for current page number.  SFSY-FORMPAGES - System variable for total page number.  SFSY-COPYCOUNT- System variable for copy count.
  • 22. 22 Concept of Smartstyles ▪ The smartstyles is used to provide the proper font, indentation, color to the output of smartform. ▪ The transaction code to create a smartstyle is Smartstyles. ▪ We need to create paragraph format and character format using Smartstyles transaction code and assign in the smartforms.
  • 23. 23 Bar Code in Smartforms ▪ We can create the bar code using the transaction code SE73. ▪ We cannot directly use a bar code in smartforms. ▪ We need to create a character format for that bar code using Smartstyles transaction code and assign that character format in smartforms.
  • 24. 24 Converting Smartform Output to PDF ▪ There are 2 steps to convert the smartform output to PDF. 1. Get the OTF(Output Text Format) of the smartform. 2. Convert OTF to PDF - Use the function module CONVERT_OTF to convert OTF to PDF.
  • 25. 25 Output Types in Smartforms ▪ Output type specifies the kind of output to be produced. Example: printed form, e-Mail, fax etc. ▪ Transaction code for the mapping of output type, smartform and driver program is NACE. ▪ SAP standard Table for the mapping of output type, smartform and driver program is TNAPR.
  • 26. 26 Smartforms Translation into Other Languages ▪ Transaction code to translate a smartform into other languages is SE63. ▪ Path : Other Texts- SAPscript: Forms and Styles-SSF SAP Smart Form
  • 27. 27 Sending Smartform PDF as an E-Mail Attachment ▪ To send the smartform PDF as an e-mail attachment, we will make use of the various standard classes of SAP related to BCS( Business Communication Services). The various standard classes are as follows :  CL_BCS  CL_DOCUMENT_BCS  CL_SAPUSER_BCS  CL_CAM_ADDRESS_BCS
  • 28. 28 Sending Smartform PDF as an E-Mail Attachment(Contd.)  CL_BCS - This class is used for creating the send request, adding the recipient, sending the document etc.  CL_DOCUMENT_BCS - This class is used for creating the document, adding the attachment etc.  CL_SAPUSER_BCS - This class is used to create SAP users.  CL_CAM_ADDRESS_BCS - This class is used to create the external recipients
  • 29. 29 Steps to Send Smartform PDF as an E-Mail Attachment 1. Get the BIN_FILE of the smartform. 2. Convert the BIN_FILE from XSTRING format to binary format. 3. Create the send request. 4. Create the SAP user/external user( recipient) 5. Add the recipient 6. Create the document. 7. Add the attachment.
  • 30. 30 Steps to Send Smartform PDF as an E-Mail Attachment(Contd.) 8. Set the document 9. Activate/deactivate immediate sending 10. Send 11. Commit
  • 31. 31 Q & A  We can run a smartform without main window. Answer : Yes, we can run a smartform without main window.  What is the transaction code to create a include text? Answer : SO10  What is the function module to display a include text? Answer : READ_TEXT
  • 32. 32 Q & A  What is the pre-defined table type for dynamic text? Answer : TSFTEXT  What is the full form of OTF? Answer : Output Text Format.