cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass data into smartforms

Former Member
0 Kudos

hello abap gurus,

can u please tell me how to pass data into smartform.

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Zuhi,

Please refer the below links,

http://help.sap.com/saphelp_47x200/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm

<b>Reward points if this helps.

Manish</b>

Answers (5)

Answers (5)

Former Member
0 Kudos

Hello sir,

can u please tell me how to convert amount in words,like 100 rs in one hundred in smart form.

Thanks and regards

Zuhi singh

Former Member
0 Kudos

hi

Please search in SDN Before Posting.

Function module :SPELL_AMOUNT

[Smartform1|http://wiki.sdn.sap.com/wiki/display/ABAP/LearnmakingFirstSmartformStepbyStep]

[Smartform2|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985?quicklink=index&overridelayout=true]

prakashjasti
Contributor
0 Kudos

there will be an option for calling a pattern in the code lines from there call spell_amount

former_member184155
Participant
0 Kudos

Hi ,

Does the Function Module SPELL_AMOUNT also converts the decimal part of the amt to words ?

Former Member
0 Kudos

Hi

Steps to follow

1. declare structure name in the FORM INTERFACE in the import tab.

that structure should be of your database table type

Ex. itab_info TYPE databasetablename

2. goto ABAP program

call the function module " SSF_FUNCTION_MODULE_NAME "

then write form name as your smart form name

and

fmname as any name which should be type of "rs38l_fnam"

(This will hold function module name of ur smart form)

3. go and execute ur smart form then copy the function module name

4. come to ABAP program and using pattern call that function module

i mean paste that in the call function field of pattern

5. Then pass the internal table in that function

6. create text fields in the smart form and then goto change editor and write the field name

ex. &itab_info-empno&

DONOT FORGET to mention the location where u want to print that in the smart form

Reward if it make sense to u

Thanks

Krushna

Former Member
0 Kudos

Hi,

To pass data from the driver program to smartform

1.select the data into the internal table in the driver program.

2. declare a variable

data: fm_nam like rs38l_fnam.

"to hold the functionmodule name

3. call function 'SSF_FUNCTION_MODULE_NAME'

Export the form layout to that and import fm_nam.

4. use call function fm_nam.

Automatically the data will pass to the form.

thanks,

kamala.

mahaboob_pathan
Contributor
0 Kudos

hi

Calling SMARTFORMS from your ABAP program

REPORT ZSMARTFORM.

  • Calling SMARTFORMS from your ABAP program.

  • Collecting all the table data in your program, and pass once to SMARTFORMS

  • SMARTFORMS

  • Declare your table type in :-

  • Global Settings -> Form Interface

  • Global Definintions -> Global Data

  • Main Window -> Table -> DATA

*

*

TABLES: MKPF.

DATA: FM_NAME TYPE RS38L_FNAM.

DATA: BEGIN OF INT_MKPF OCCURS 0.

INCLUDE STRUCTURE MKPF.

DATA: END OF INT_MKPF.

SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.

SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.

MOVE-CORRESPONDING MKPF TO INT_MKPF.

APPEND INT_MKPF.

ENDSELECT.

  • At the end of your program.

  • Passing data to SMARTFORMS

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = 'ZSMARTFORM'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = FM_NAME

EXCEPTIONS

NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3.

if sy-subrc <> 0.

WRITE: / 'ERROR 1'.

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

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

endif.

call function FM_NAME

  • 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

GS_MKPF = INT_MKPF

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.

Former Member
0 Kudos

hi

in smartforms....

write click on the window and create text...

then u get text editor in that u can write the data.

example:

date:&sfsy-date&

or u can give the WA which u declared in the print program.

example:

VENDOR NO: &wa_lfa1-lifnr&

NAME : &wa_lfa1-name1&

in the form interface u need to declare this WA in imports tab.

if u write a print program.