Application Development 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: 

Looping issue in Smartform

Former Member
0 Kudos

Hi All..

I am working on a smartform.

While activating the form, i came across a error called "A line of I_ITEMS and WA_ITEMS is not mutually convertible. In Unicode program, I_ITEMS must have same structure layout".

But in program, i have defined both objects as follows..

Data: i_items TYPE STANDARD TABLE of ty_items.

Data: wa_items TYPE ty_items.

What to do now..???

How to resolve this issue..????

Please Help me out....

Regards

Pavan

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

In Form Interface->Tables

you need to give the declaration as

itab <b>like</b> structure_name

Kindly reward points if it is useful.If your problem is not solved,kindly revert back.

5 REPLIES 5

Former Member
0 Kudos

Hello,

Have you declared the table(passed from program) correctly in Smartforms ??

Regards,

Shehryar Dahar

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

If you are passing internal table from your program,it's struture should exist in ABAP dictionary.Even if you defined in your program,that is not sufficient.

Kindly reward points if it helps.

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

In Form Interface->Tables

you need to give the declaration as

itab <b>like</b> structure_name

Kindly reward points if it is useful.If your problem is not solved,kindly revert back.

Former Member
0 Kudos

Hi Pavan

If you are on NON-UNICODE system, uncheck the check box "Unicode Check active" from the attributes of the program. This will resolve your problem.

If not kindly post your code, so we could help...

Kind Regards

Eswar

0 Kudos

Thanks to everyone here...

Special Thanks to Jayanthi...

I have changed the I_ITEMS's structure in Form Interfaces of the form.

Now its working fine...

Regards

Pavan