cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartforms

Former Member
0 Likes
743

Hi,

Iam new to smartforms. Where can i find step by step process to create smartforms?Or is any one having simple document on smartforms?

Points guraranteed

cheers

kaki

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Likes

Hi Kaki,

Steps to create sample Smart Form:

1. Define ur internal table in form interface-> tables.

2. Create page.

3. Create table. Design rows & columns according to ur requirement in table tab.

4. In data tab check loop & pass ur internal table for eg. it into it

5. In table u get header, main area & footer.

6. In header create table line and specify line type in output options. so u get no of columns according to ur table design. In each column create text.

7. In Main area same way create table line and specify line type. Now here u create text in which u have to write &it-belnr& and other fields u want in each column.

Sample Program of Smart Form:

TABLES : mara.

DATA : it LIKE mara OCCURS 0 WITH HEADER LINE.

DATA : fm TYPE rs38l_fnam.

SELECT-OPTIONS : p_matnr FOR mara-matnr.

START-OF-SELECTION.

SELECT * FROM mara INTO TABLE it

WHERE matnr IN p_matnr.

SORT it BY matnr.

IF sy-subrc = 0.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'YSDM_INV_COV_LETTER'

IMPORTING

fm_name = fm

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

CALL FUNCTION fm

TABLES

it = it.

ENDIF.

Regards,

Digesh Panchal

Former Member
0 Likes
Former Member
0 Likes

Hi vijay,

I have reffered these sites already.But still iam not clear.

I want to display in the output like this one box.

-


|

Reference no:123456789

-


in the form interface-> tables i have difined like this.

ITAB LIKE BKPF.

In the main window i have created one page and in that i have written like this

&itab-belnr&.

In the abap i have written a code like SF_EXAMPLE_01.

In the output iam getting same &itab-belnr&.

Not the value. What might be reason?

cheers

kaki

Former Member
0 Likes

Did you checked it properly..

you should get the value...

what did you mentioned text type?

it should be text element..

please let me know..

Former Member
0 Likes

Hi vijay,

Can u tell me how to debug smartform?Is there any way to set breakpoint?

kaki

Former Member
0 Likes

You have hard code the BREAK-POINT in the code,

if it is for specific user then BREAK uNAME.

vijay

Former Member
0 Likes

Or else when you activate the Smart form it will generate the Functionmodule, you can set the break point in that also....

vijay

Former Member
0 Likes

I hope you are able to Debug,

see when you activate the Samrtform it will generate one FM , try to keep break points where ever necessary...

and you can debug..

vijay

Former Member
0 Likes

Hi vijay,

I could not do.

In pages and windows i have created one window.In that i have created one loop.Again in that i have careated one text.There i have written &itab-belnr&.Do i need to write in TEXT directly or i need to write in LOOP? What is the difference?

cheers

kaki

Former Member
0 Likes

if you are writing single element then directly write,

if you are writing lot of records then use loop and endloop.

go to function module in se37 and look for elements and keep break points...

hope you got the idea...

vijay

suresh_datti
Active Contributor
0 Likes

Hi Kaki,

PL go through the following <a href="http://www.sap-basis-abap.com/sapsf001.htm">link</a>

Regards,

Suresh Datti

Former Member
0 Likes