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

Error in passing Internal table to smartform

Former Member
0 Likes
1,345

I am passing an internal table to a smartform through a driver program. But the program gets terminated due to an exception that say- Invalid parameter in call function. The parameter listed is the internal table name.

How do i rectify it.?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,232

Hi

Check it in the smartform, in form interface whether the table is defined in the TABLES tab.

Also check whether you are calling the function module for the correct smartform.

Best Regards,

NIkhil Patil

9 REPLIES 9
Read only

Former Member
0 Likes
1,233

Hi

Check it in the smartform, in form interface whether the table is defined in the TABLES tab.

Also check whether you are calling the function module for the correct smartform.

Best Regards,

NIkhil Patil

Read only

0 Likes
1,232

I have checked it already. I have mentioned it in TABLES tab and also am calling the correct smartform.

Read only

0 Likes
1,232

Hi Prafull,

Please post the interface of the smartform FM, including the import/export/changing/tables parameters, along with their references.

Example: Import: Sales_ord type vbeln....

Regards,

Chen

Read only

Former Member
0 Likes
1,232

This message was moderated.

Read only

Former Member
0 Likes
1,232

Hi Praful,

Check if both the Dirver program table and Smartform table are of same structure..

Read only

Former Member
0 Likes
1,232

Hi Prafull,

I guess its a kind of formatting error. Simply Make sure the order of the fields and its datatype of both the internal table are same. When the table width exceeds, then also it will throw dump.

Regards,

Chellamma Chandrasekar.

Edited by: Chellamma Chandrasekar on Mar 22, 2011 10:09 AM

Read only

Former Member
0 Likes
1,232

Hi Friend,

Can you tell me what is the 'Dump message' clearly. So that i will get a clear idea.

Thanks and Regards,

Sri Hari Anand Kumar

Read only

0 Likes
1,232

Hi,

Check where there you created Table Type in Se11 (Data Element) for the Corresponding Structure.

And use that in Form Interface of smart form , in the Tables Tab for the parameter Declaration .

eg parameter_name type tabletype_Name.

And Pass the internal Table to the smart form function module in the Driver Program.

Regards,

Prakash K

Read only

Former Member
0 Likes
1,232

Halo Praful,

Normally this error occurs when the type of the Internal table that you passed to the Function Module is different from that which is defined in the Function Module Interface.

So please cross check the types

Regards

Arshad