cancel
Showing results for 
Search instead for 
Did you mean: 

Blocks, number of column and rows in SmartForms grid

Former Member
0 Kudos

Hi,

where i find options as Grid to get blocks, and where i can give no of col, rows its dimentions .

Edited by: Alvaro Tejada Galindo on Feb 27, 2008 4:51 PM

Accepted Solutions (0)

Answers (4)

Answers (4)

Pramanan
Active Participant
0 Kudos

Hi,

Using Grid,

Like the form painter, the table painter offers a displayabel grid with which you can automatically align the line and column spacing . To configure this click on correponding button in tool bar

Pramanan
Active Participant
0 Kudos

Hi,

Form painter -[Grid layout]

You can use Form painter to change layout of a form or simply check it in a graphical view.You can call this form painter automatically , for that choose->utilities->Form painter on/off or press the corresponding button in tool bar.

Table painter-[Design cols and rows]

This enable the display and maintenance of template layouts and output tables.You can call it from tab page of a template or table node.Press table painter button.

Former Member
0 Kudos

Hi,

After the Table Object is created in one of the windows, you can see the grid buttons (just below the tabs) in the "Table" tab.

Also the button with pencil shaped icon (2nd from left) can be used to decide how many columns you want in a row. The dimensions can be specified on clicking the "Details" button.

The number of rows depends on the number of rows in your internal table which you want to display. It need not be specified anywhere in Smartforms.

<REMOVED BY MODERATOR>

Thanks,

Himanshu

Edited by: Himanshu Kanekar on Feb 27, 2008 3:35 PM

Edited by: Alvaro Tejada Galindo on Feb 27, 2008 4:50 PM

Former Member
0 Kudos

Hi,

ADVANTAGES OF SMARTFORMS:

-


1. Smartforms does not require paragraph formats as a mandatory one.

2. Smartforms does not duplicate the data.

3. Smartforms are Client-independent and language-independent.

4. We can apply styles for the texts using Smartforms.

5. Print programs does not contain any function modules to call the form.

SMARTFORMS is the Tcode to create smartforms in ABAP.

Smartforms has three components:

-


Global Settings:

-


1. Form Attributes - Holds the description about the smartform.

2. Form Interface - Holds the import and export parameters for the smartforms.

3. Global Definitions - Used to declare variables for the smartform that can be accessed by any component within the smartform.

Pages and Windows:

-


This area is used to create new pages, windows (header, footer, constant window, main window, variable window, graphic window).

Navigations to create Smartforms:

-


SMARTFORMS -> Specify form name starting with Z or Y -> Click on Create -> Opens an interface -> Enter short description -> Double click on Form Interface -> Specify following parameter in IMPORT tab button:

STR TYPE C

-> Expand Pages and Windows -> By default, a Main Window is present -> Right click on Main Window -> Create -> Text -> Opens Form Editor -> To go to line editor, Click on 'Txt Editor' pushbutton on the upper left corner of the form editor -> Specify the variable (&STR&) in the first line of line editor -> Come back -> Save -> Activate -> Execute -> Opens Form Builder with autogenerated function module for the smartform ('/1BCDWB/SF00000042') -> Copy the function module generated.

To invoke the smartform from SE38 editor, Call the Function module and paste the FM copied from smart form function builder screen as follows:

DATA NAME(10) VALUE 'INDIA'.

CALL FUNCTION '/1BCDWB/SF00000042'

EXPORTING

STR = NAME.

-> Save -> Activate -> Execute in the same way as Sapscript.

Navigations to pass internal table as an argument to Smartforms:

-


Create a smartform -> In the Form interface -> Click on Tables tab button -> Specify the following internal table:

ITAB LIKE MARA.

-> Double click on Global Definitions -> Specify the global variable as follows:

-

ITAB1 LIKE MARA.

-> Expand Pages and Windows -> Right click on Main Window -> Create -> Table -> Click on Data tab button -> In the LOOP section, for the operand fields, specify the following:

ITAB INTO ITAB1.

-> Right click on Main Area -> Create -> Table Line -> In the Line Type input field, a line type called %LTYPE1 is automatically generated -> Select it.

To create internal table fields, right click on Text cell -> Create -> Text -> Select General Attributes tab button -> Opens Form Editor -> Goto Line editor by clicking on 'Txt Editor' pushbutton -> Specify the following in the first line:

&ITAB1-MATNR&,,&ITAB1-MTART&,,&ITAB1-MBRSH&,,&ITAB1-MEINS&

-> Come back -> Save -> Activate -> Execute -> Copy the autogenerated FM.

In SE38 program, specify the following:

DATA ITAB1 LIKE MARA OCCURS 0 WITH HEADER LINE.

SELECT * FROM MARA INTO TABLE ITAB1.

CALL FUNCTION '/1BCDWB/SF00000043'

TABLES

ITAB = ITAB1.

Save -> Activate -> Execute in the same way as above.