cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms!

Former Member
0 Kudos
82

Hi ABAP gurus,

I am new to smartforms.i need a demo smartform step-by-step codings with proper explanation (documentation with screen-shot if u have) not links. if anybody send it i will be grateful to you. rewards sure...

Thanks and regards,

Senthil kumar

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Senthil,

since you are new to smartforms i'll give u the steps in how to create smartforms:

STEP1: Goto transaction SMARTFORMS..enter the smartform name for ex: Zsmart_test and click on create.

STEP2: After clicking on create button, you will go inside...now in that there will be 2 nodes i.e. Global settings and Pages and WINDOWS

STEP3: in Global settings you will be getting 3 sub nodes:

a) form attributes : in this you will be defining the page format.

b) Form Interface : in this you will be importing data from print program to smartform. in this the IMPORT tab is used to pass single data from print program to smartform where as we can directly pass an internal table in TABLE tab.

NOTE : the structure of internal table should be same in both i.e in print program as well as in smartform.

c) Global definitions: Any operation which you want to do it within the smartform u can define it in global definitions.

STEP4: By default there will be always one page. now go on creating windows on that pages by right clicking on that page --> create window.

STEP5: once all the windows are being created you can allign them by clicking on FORM PAINTER push button...also you can arrange the size of that window...

STEP6: Now write code in SE38 for that smartform...

once all the data is populated...you need to call the smartform using following function module.

SSF_FUNCTION_MODULE_NAME

this function will generate the function for your smartform

STEP7: after this all the data will be passed to smartform, display the data by definining text in respective windows...

hope this will atlease help u to create a smartforms...

please reward points in case usefull

regards,

prashant

Former Member
0 Kudos

hi SDNers,

I tried one smartform.program is syntactically right.but it goes to dump during execution.

the following is my coding. please give suggestions.reward sure...

TABLES : VBRK, VBRP.

DATA : BEGIN OF ITAB OCCURS 0,

VBELN LIKE VBRK-VBELN,

FKDAT LIKE VBRK-FKDAT,

VKORG LIKE VBRK-VKORG,

VTWEG LIKE VBRK-VTWEG,

MATNR LIKE VBRP-MATNR,

ARKTX LIKE VBRP-ARKTX,

FKIMG LIKE VBRP-FKIMG,

VRKME LIKE VBRP-VRKME,

END OF ITAB.

DATA FNAME TYPE RS38L_FNAM.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE T1.

SELECT-OPTIONS : VBELN FOR VBRK-VBELN,

FKDAT FOR VBRK-FKDAT.

SELECTION-SCREEN END OF BLOCK B1.

INITIALIZATION.

T1 = 'Input below'.

START-OF-SELECTION.

SELECT AVBELN AFKDAT AVKORG AVTWEG BMATNR BARKTX BFKIMG BVRKME

INTO TABLE ITAB FROM VBRK AS A INNER JOIN VBRP AS B ON AVBELN EQ BVBELN

WHERE AVBELN IN VBELN AND AFKDAT IN FKDAT.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'ZSK_SMART_TEST'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = FNAME

  • EXCEPTIONS

  • NO_FORM = 1

  • NO_FUNCTION_MODULE = 2

  • OTHERS = 3

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

CALL FUNCTION FNAME

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

USER_SETTINGS = 'X'

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

TABLES

ITAB = ITAB

  • EXCEPTIONS

  • FORMATTING_ERROR = 1

  • INTERNAL_ERROR = 2

  • SEND_ERROR = 3

  • USER_CANCELED = 4

  • OTHERS = 5

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

In smartforms i just declared itab in form interface ---> tables then

in main window i declared loop and code.in loop i entered itab into itab and

in code just &itab-vbeln& &itab-fkdat& ... like that. thats it.

Expecting ur great reply...

Senthil kumar

former_member196280
Active Contributor
0 Kudos

use following example smartforms, it is very much self explinatory.

Goto tcode smartforms and keyin _EX it will give you all the smartform examples.

Regards,

SaiRam

Former Member
0 Kudos

hi,

Thanks for ur great response.

please send the documents to senthil_121@rediffmail.com

Senthil kumar

Former Member
0 Kudos

HI SAI RAM,

How can we find the driver program for these examples(_ex).

i searched in table TNAPR. but it shows no program.

Expecting ur reply.

Senthil kumar

former_member196280
Active Contributor
0 Kudos

SF_EXAMPLE_01

SF_EXAMPLE_02 this are two example program. It is self explinatory... try to go thorough them you can easily understand.

Regards,

Sairam

sharadendu_agrawal
Active Participant
0 Kudos

send me uer mailid and i will send u the docs related to smartforms.

my mail id is sharadendu@gmail.com

cheers,

sharadendu

Former Member
0 Kudos

Hi Senthil,

If u send your mail id I will send document.

Thanks,

Suma.