cancel
Showing results for 
Search instead for 
Did you mean: 

Error in smartform : "type table of specification" not allowed

Former Member
0 Kudos

hello all

i am new to smartforms and while working in smartforms, in the form interface while assigning TABLES, i gave

I_DELIVERY TYPE TABLE OF Z_DEL_DETAIL

it gave me error that type specification "TYPE TABLE OF" not allowed, and when i gave LIKE it was syntatcicaly correct.

now my question is why was that error occuring and why it is giving this error, when we should prefer TYPE TABLE OF instead of LIKE??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rohan,

Try to pass this into the import parameters of the interface.

Just Pass

I_DELIVERY TYPE Z_DEL_DETAIL

It will definitely work.

Reward Points if useful.

Cheers,

Deepthee Kasal

Former Member
0 Kudos

yeah i do agree it will work, but read my question carefully...

i am getting the desired output if i use LIKE in "TABLES" of form interface,

my question is if i want to pass my Table Name in TABLE tab of form interface [ which i should preferably do], is there a restriction of giving LIKE ???

because it works and accepts only LIKE and not any other syntax.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi rohan,

try out this

plz reward if helpful,

ty_t_tvst TYPE STANDARD TABLE OF ty_tvst,

regards,

srikanth Tulasi.

raymond_giuseppi
Active Contributor
0 Kudos

Replace

I_DELIVERY // TYPE TABLE OF // Z_DEL_DETAIL

with

I_DELIVERY // TYPE // TABLE OF Z_DEL_DETAIL

It should work. ([SAP Smart Forms (BC-SRV-SCR)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf])

Regards

Former Member
0 Kudos

i did what you said,

but it again gave me error that

"TYPE TABLE OF Z_DEL_DETAILS does not exist"

and it's working fine when i give LIKE

raymond_giuseppi
Active Contributor
0 Kudos

Define a TYPE in the tab "Types" before referencing it in tab "Global Data"

Regards.

Former Member
0 Kudos

If this structure is going to be passed in the form interface you will need to also define it in your print program, so you may be better defining it in SE11 so it is available to both your form and program.

Regards,

Nick

Former Member
0 Kudos

hey guys, it tried all your solution but my problem remains the same

Z_DEL_DETAILS [it has Z name] is clearly defined and made in se11 and that's why it is working fine with

IT_DEL_DETAIL LIKE Z_DEL_DETAIL

and it cannot be passed as global definiton,

as i have to pass the tables in

FORM INTERFACE >> TABLES

and not in GLOBAL DEFINTION..

both have different working i guess