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

Regd Smartform-tables

Former Member
0 Likes
764

Hi all,

I have an internal table itab10 with values as :-

BEGDA PERNR PLANS PERSG PERSK BTRTL WERKS

20060101 00000049 99999999 1 W0 0006 ZA02

20050101 00000049 99999999 1 E1 0001 IN09

20060401 00000049 99999999 1 E1 0001 IN03

20060401 00000049 99999999 1 01 0024 1001

20060501 00000049 99999999 1 01 0024 1001

Now i want to print these values in my smartform-table dynamically. Please advice me how can i do that.

Note:- the rows of the table may vary depending upon the number of values.

Thanks & Rgds

Preeti

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
741

Did you try out the table node(data tab) where you can loop through the internal table.

Hi all,

I have an internal table itab10 with values as :-

BEGDA PERNR PLANS PERSG PERSK BTRTL WERKS

20060101 00000049 99999999 1 W0 0006 ZA02

20050101 00000049 99999999 1 E1 0001 IN09

20060401 00000049 99999999 1 E1 0001 IN03

20060401 00000049 99999999 1 01 0024 1001

20060501 00000049 99999999 1 01 0024 1001

Now i want to print these values in my smartform-table dynamically. Please advice me how can i do that.

Note:- the rows of the table may vary depending upon the number of values.

Thanks & Rgds

Preeti

5 REPLIES 5
Read only

Former Member
0 Likes
742

Did you try out the table node(data tab) where you can loop through the internal table.

Read only

0 Likes
741

Yes i have tried. While executing the driver program, i am getting a abap dump saying " n the function module interface, you can specify only

ields of a specific type and length under "ITAB10".

lthough the currently specified field

ITAB10" is the correct type, its length is incorrect."

Please advice.

rgds

Preeti

Read only

0 Likes
741

Hi,

What type of table you are passing in the "Form Interface" Attribute. This dmp is because the table you are having in the Smartfrom & the Print Program are of different fields structures. Provide the same table name to both print program & smartform while declarations of internal table.

Ashvender

Read only

0 Likes
741

HI PREETHI,

CHECK WHETHER THE TABLE STRUCTURE U HAVE GIVEN IN THE SMARTFORM FOMR INTERFACE IS LIKE UR INTERNAL TABLE .

WHILE COMBINING TWO OR MORE TABLES IN SMARTFORMS THESE KIND OF PROBLEMS WILL OCCUR .WHAT I USE TO DO IS .

I WILL CREATE A ZTABLE WITH MY FINAL INTERNAL TABLES STRUCTURE AND I USE TO GIVE THE ZTABLE NAME INSTEAD OF STANDARD TABLE .SO U WILL HAVE THE SAME STRUCTURE .BUT U HAVE TO UPDATE THE TABLE USING MODIFY COMMAND .SO ALL THE VALUES IN UR INTERNAL TABLE WILL GO TO UR ZTABLE AND FROM THERE USING SINGLE ITAB U CAN BRING ALL THE RECORDS.

STILL IF U HAVE DOUBT REGARDING THIS FEEL FREE TO ASK ME .AWARD POINTS IF IT IS REALLY USEFULL.

Read only

Former Member
0 Likes
741

create one table node in ur smartforms.

in that assign ur itab in conditions tab.

Under this table node create the textelements node to display the data.

in that give &itab-Name1&.

this will print the name 1 data. which is there in the loop of itab.