12-22-2006 7:23 AM
12-22-2006 7:25 AM
<b>SmartForms Global Data Types Tab:</b>
TYPES:
BEGIN of mytab,
my_batch type c,
my_char(20) type c,
my_unit(10) type c,
my_value(10) type c,
charg(10) type c,
END OF mytab.
TYPES: wa_mytab TYPE STANDARD TABLE OF mytab .
<b>
Global Data Tab:</b>
wa_mytab TYPE mytab
12-22-2006 7:25 AM
<b>SmartForms Global Data Types Tab:</b>
TYPES:
BEGIN of mytab,
my_batch type c,
my_char(20) type c,
my_unit(10) type c,
my_value(10) type c,
charg(10) type c,
END OF mytab.
TYPES: wa_mytab TYPE STANDARD TABLE OF mytab .
<b>
Global Data Tab:</b>
wa_mytab TYPE mytab
12-22-2006 7:26 AM
HI,
you can declare your internal tables in 'GLOBAL DEFINATIONS' by using the 'TYPES' tab.
REagards,
12-22-2006 7:26 AM
Global Settings --->Form Interface ---> Tables ( Tab )
Regards,
Durga
12-22-2006 7:29 AM
Hi Manmeet,
1. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
02-16-2007 4:13 PM
Hi All,
Can you please tell me what Naming conventions should be used while creating Smartforms? I need to create a doc for naming standards that would be used in my company for Smartforms. Just like ABAP Coding standards
Your help will be appreciated!!
08-20-2007 9:15 AM
I have attempted to create an Internal Table within a SMARTFORM as discussed in the threads. I call the SMARTFORM from a Function Module (in-turn called from an ABAP Report).
When I test run the Function Module and manually populate the Internal Table the SMARTFORM populates all of the fields and looks how I want it to. However, when the Function Module is called from within the ABAP, even though the internal table is fully populated, the SMARTFORM only populates the first 2 columns.
Please can you advise what I am doing wrong?
11-11-2007 9:10 AM
You Can define Internal Tables in Global Defintitios.
or
you can define an internal table like a table in Form Interface
i.e. itab like mara