2007 Jun 25 9:53 AM
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
2007 Jun 25 10:06 AM
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
2007 Jun 25 10:06 AM
Did you try out the table node(data tab) where you can loop through the internal table.
2007 Jun 25 11:07 AM
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
2007 Jun 25 11:16 AM
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
2007 Jun 25 11:45 AM
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.
2007 Jun 25 11:10 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |