cancel
Showing results for 
Search instead for 
Did you mean: 

adding new field to SF

Former Member
0 Kudos

Hey All

I had to add certain fields to my smart from ,I have managed the space for the fields in the form layout with help from the FOROUM ,

I would like to know that how to pass the data to SF .

1> have created an internal table in driver programme but wer to pass it in SF in GLOBAL DEFINITION -


>GLOBAL DATA or @

or

2> form interface --->import parameters .

or

3>Have to define it in TAbles tab

Please gimme details of each of the above parameters and differences .

Regards

Swapnil K

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Done using Global definations

Former Member
0 Kudos

Hey all

one more thing

forwhat purpose -


GLOBAL DEFINITION -


>GLOBAL DATA are used .

Regards

Swapnil K

former_member217544
Active Contributor
0 Kudos

Hi,

It is used for global declaration of data that need to be used through out the smartform (not outside smartform).

check this link. It may give some idea about smartforms.

http://wiki.sdn.sap.com/wiki/display/ABAP/Smart+Forms

Regards,

Swarna Munukoti.

Edited by: Swarna Munukoti on Nov 27, 2009 6:55 AM

Former Member
0 Kudos

Hi one more thing

I have defined an internal table of structre type , can this internal table be passed to the SF for retriving the data .

former_member217544
Active Contributor
0 Kudos

Hi Swapnil,

Yes, if you want to pass that internal table from driver program to smartform, then you can pass this to smrtforms thorugh tables tab of form interface.

Regards,

Swarna Munukoti.

Former Member
0 Kudos

Hi.

1. To pass some fields into Smartform, you have to first declare them in Import Parameteres tab in form interface of smartform.The type of the fields must be same. From the driver program, just pass the fields in exporting parameters of function module of smartform.After this you can use the fields wherever you want in SF.

2. To pass a table form driver program, you have to first declare a table in tables tab in form interface of smartform. Here also the type of the table must be same or there will be a shortdump. If the type is user defined, then you have to create a structure in ABAP Dictionary having same fields and in same sequence as in user defined type.

Former Member
0 Kudos

Hi

Declare your table in the FORM INTERFACE IMport parameters

for further information check this link

http://www.sap-img.com/smartforms/smartform-tutorial.htm

http://saptechnical . com/Tutorials/Smartforms/Exercises/SolutionEx1/Page2.htm

surya

former_member217544
Active Contributor
0 Kudos

Hi Swapnil,

Data from driver program need to be passed through Form Interface Import Parameters. If it is tables kind of parameter then that should be passed in Tables Tab of Form interface.

Regards,

Swarna Munukoti

Former Member
0 Kudos

Hi,

Pass the Internal Table in SF and the also declare it in Smartform Form Interface.

Regards,

Vijaya Lakshmi.T