Pages

Saturday, December 31, 2011

SMARTFORMS Creation

SMART FORMS:
CREATION:-
1. TRANSACTION CODE - SMARTFORMS
2. ENTER FORM NAME AND PRESS ENTER.
3. GIVE DESCRIPTION .

4. CLICK ON GLOBAL SETTINGS.
5. DOBLE CLICK ON FORM ATTRIBUTES. CHECK GENERAL ATTRIBUTES AND OUTPUT CONDITIONS.
6. DOUBLE CLICK ON FORM INTERFACE AND CHOOSE TABLES.
7. FILL THE INTERNAL TABLE NAME, TYPE AND ASSOCIATED TYPE.
8.DOUBLE CLICK ON GLOBAL DEFINITIONS.
FILL PARAMETER NAME , TYPE AND ASSOCIATED TYPE. AND SAVE IT.
9. DOUBLE CLICK ON PAGES AND WINDOWS. RIGHT CLICK, CREATE GRAPHICS. GIVE NAME AND SELECT IT.
 
10.RIGHT CLICK ON GRAPHIC 1 AND CREATE ON WINDOW AND CREATE TEXT FOR IT.
11.RIGHT CLICK ON MAIN WINDOW. AND CREATE TABLE.

12. CLICK ON TABLE AND SELECT DETAILS ? TABLE. AND .SELECT PENCIL AND DRAW 6 COLUMNS.

13.CLICK ON HEADER AND CLICK ON %ROWS.
KEEP CURSOR ON EACH CELL AND RIGHT CLICK ?CREATE?TEXT.
CLICK ON TEXT , SELECT GENERAL ATTRIBUTES.
FILL THE COLUMN NAMES.
14.RIGHT CLICK ON MAIN AREA. ? TABLE LINE?SELECT DEFAULT TABLE LINE.

15.RIGHT CLICK ON EACH CELL AND CREATE TEXT.
16.CLICK ON FIELD LIST BUTTON IN APPLN TOOLBAR. CLICK ON GLOBAL DATA. TABLE FIELDS WILL BE LISTED.
17.DOUBLE CLICK ON TABLE AND SELECT DATA
FILL THE OPERAND , WHERE CONDITION AND SORT ORDER.
18.SELECT THE FIELDS WHAT EVER U WANT ONE BY ONE AND DRAG IT AND PUT IT IN EACH FIELD OF ROW2 CELLS.

19.SAVE AND ACTIVATE .
20.NOTE DOWN THE FUNCTION MODULE NAME-ENVIRONMENT? FUNCTION MODULE NAME)
21.GOTO ABAP EDITOR. WRITE ONE PROGRAM.
REPORT ZVENN_SMARTFORM_LFA1_1 .
TABLES LFA1.
DATA : IT_TAB TYPE TABLE OF LFA1,
FM_NAME TYPE RS38L_FNAM.
SELECT-OPTIONS LIFNR FOR LFA1-LIFNR.
select * from LFA1 into table it_TAB where LIFNR in LIFNR.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZVENN_SMARTFORM_LFA1'
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
CALL FUNCTION FM_NAME
TABLES
IT_LFA1 = IT_TAB
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
OUTPUT:

 

No comments:

Post a Comment