Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartforms

Former Member
0 Likes
519

Hi Friends,

can you explain what are the following things in Smartforms?

1)Parameters of smartforms?

2)What is Global definition and form interface inm Smart form?

3)How to define internal table in Smartform?

4)How to loop a internal table?

Regards,

Dinesh

1 ACCEPTED SOLUTION
Read only

Former Member
4 REPLIES 4
Read only

Former Member
Read only

Former Member
0 Likes
489

hi

Have a look at below link. It wil help you for sure.

http://sap.ionelburlacu.ro/sap0/sapsf001.htm

http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/16/a369b1800e4bdda978ee0fe3b7bd2c/content.htm

http://www.sap-img.com/smartforms/sap-smart-forms.htm

http://www.sap-basis-abap.com/sapsf001.htm

to pass the data from internal table in print program to Smartform.. there is only way.. that is using form interface..

1. goto se11, create a structure same as the itab in the print program.ex. z_itab

2. create line type... se11>select radio button-DATA type>z_it_itab >press create>then select>TABLE Type> then entrer some text--> in the line type Field in giveth Str name u have created in STEP 1. activate it.

3. got SMARTFORMS-> form inteface>tables tabe--> give some name ex IT_tab type z_it_itab.

then acivate it.. then in the driver progam pass this table data.

Exapmpel

CALL FUNCTION fp_v_fm_name

EXPORTING

archive_index = toa_dara

archive_parameters = arc_params

control_parameters = fp_st_control_parameters

user_settings = space

output_options = fp_st_output_options

wa_vbdkr = fp_st_vbdkr

IMPORTING

job_output_info = l_it_ssfcrescl

job_output_options = l_it_ssfcresop

TABLES

IT_tab = z_it_itab (or table in driver program)

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.

Another way is cteate a type in Globaldifination-->types tab..

ex:

types: begin of ty_itab,

matnr type matnr,

meins type meins

vrkme type vrkme,

end of ty_itab,

ty_it_itab type standard table of ty_itab.

then GLOBAL DIFINATION>GLOBAL DATA TAB>IT)ITAB TYPE TY_IT_ITAB.

BUT In this u can't pass the data from the print Program.. if u want to populate data in to this table... u have to write the Select query in the GLOBAL DIFINATIONS-->INITILIZATIONS TAB.

-charitha

Read only

former_member188827
Active Contributor
0 Likes
489

hi

in simple words:

import parameters are dose whose values must be passed to smartform via print program , export parameters are dose whose whose values are transported back by smartforms..dese import and export parameters together with exceptions etc make up da form interface...

u must include dose variables in global definition whose values u need in different parts of form so that dere scope is not limited to da point where dey r declared...

Read only

Former Member
0 Likes
489

Hi Priyanka,

Thanks for your for your links,your replies in SDN groups is informative.Can i contact you if i have any queries in future? can i have your mail id Priyanka?

Regards,

Dinesh