cancel
Showing results for 
Search instead for 
Did you mean: 

Declaration in smartforms?

Former Member
0 Kudos

Hi all,

Where can we declare a table which we can use in entire smartform?

Sachin.

Accepted Solutions (0)

Answers (3)

Answers (3)

raymond_giuseppi
Active Contributor
0 Kudos

Option 1

- In Global definitions, tab Global data fill a line with table name, type, table of ref_type. You can use a dictionary or included type or declare it in tab Types.

Option 2

- You can also define the table as a parameter in Form interface, tab Tables. You must then fill it in your driver program and pass it to the called function module.

If the table is a parameter - use option 2 and call the SF FM with this table parameter. If the table is filled in the SF, use option 1 and fill the table in the INITIALIZATION form of the SF. ([SAP Smart Forms (BC-SRV-SCR)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf])

Regards

Edited by: Raymond Giuseppi on Jun 3, 2008 11:27 AM

Former Member
0 Kudos

hi there

to use the internal table in the entire smartform...u can declare it either in ur print program or if u want the code to be in the samrtform itself..then

Initialization tab is used for the same...

all the data declarations are done inside the initialization tab.

rewrd if helpful

regrds

niharika

Former Member
0 Kudos

Hi Sachin,

U need to Declare in Global Definitions

Create the structure in Types Tab and then data declaration can be given in Global data Tab

Best regards,

raam

Former Member
0 Kudos

Hi Reddy,

I f i am trying to define it in FORM INTERFACE TABLES...while running the application with specified output type its going for short dump.

why this is happening?

Sachin.

Former Member
0 Kudos

Hi Sachin,

FORM INTERFACE is to link between the driver program (SE38) and the smartform Form.

what is the message that u are getting in Dump

Best regards,

raam

Former Member
0 Kudos

Error analysis

An exception occurred. This exception is dealt with in more detail below

. The exception, which is assigned to the class 'CX_SY_DYN_CALL_PARAM_MISSING',

was neither

caught nor passed along using a RAISING clause, in the procedure "PROCESSING"

"(FORM)"

.

Since the caller of the procedure could not have expected this exception

to occur, the running program was terminated.

The reason for the exception is:

When calling the function module "/1BCDWB/SF00000007", one of the parameters

needed according to the interface description was not specified.

This parameter was "IT_LINES".

IT_LINES i have defined on FOR INTERFACE TABLES....part

This i am getting.....

SAchin.

Former Member
0 Kudos

Hi Sachin,

Are u passing table from Driver program to Form and u are printing?

The ERROR is saying that one of the parameter is not passed .

Please check all the parameters are passed to the form, from the driver program or not.

Best regards,

raam