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

regarding sap smartforms line items

Former Member
0 Likes
816

hi,

this is regarding line items in sap smartforms

when i am executing single line item i am getting out put

when i am executing with 2 line items i am getting error like bellow

You tried to switch to the next table column, but no other column exists. The current column is 9. The line type IT_GEN contains only 9 columns.

plz explain clearly

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
792

Hi,

Can you tell me whether u r using Template or table control? Because in a template u can specify the fields that are required to print in columns. However you will have to know before hand how many columns and rows of data might be populating.

If you can know the table rows only at the runtime, its better to use the TABLE statement.

Thanks,

Susanth.

6 REPLIES 6
Read only

Former Member
0 Likes
793

Hi,

Can you tell me whether u r using Template or table control? Because in a template u can specify the fields that are required to print in columns. However you will have to know before hand how many columns and rows of data might be populating.

If you can know the table rows only at the runtime, its better to use the TABLE statement.

Thanks,

Susanth.

Read only

0 Likes
792

i am using tables

excise invoice form

Read only

Former Member
0 Likes
792

hi

use the table concept. In smartform layout pass the internal table. so it will display item stored in internal table.

With Regards

Nikunj Shah

Read only

Former Member
0 Likes
792

Hi,

if you are using template and the line type is for 1 to 2 lines in the template... make sure that column position you mention is equal to the number of cells in the line type... if the data is displayed in the second row the row position should start from 2 and and column position should lie between 1 and 9.

Just a suggestion ... its better to go with table node instead of going with template...

regards

padma

Read only

0 Likes
792

thanks

Read only

Former Member
0 Likes
792

Hi,

Make sure that your line type of table node consists of same number of cells as that of the fields in the internal table

regards

padma