cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Template - Header and Items itab

Former Member
0 Kudos

All,

I wanna use template node in smartform as the number of rows should be fixed.

I have two internal tables one each for header and items.

I'm not sure how to proceed.

Help is highly appreciated and rewarded

Regards,

Younus

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

All,

I wanna use template node in smartform as the number of rows should be fixed.

I have two internal tables one each for header and items.

I'm not sure how to proceed.

Help is highly appreciated and rewarded

Regards,

Younus.

Former Member
0 Kudos

Just bringing on top.

Former Member
0 Kudos

Hi ,

Only one template is enough.

then in Program line node..

get the the correspoding header from the header internal table

using key feilds of those 2 internal table.

Create ur Template under a loop node. give line item internal table.

apprch like this .. i can solve ur req,

regards.

bgan.

Former Member
0 Kudos

Younus,

As per your query you know that no. of header and line items are fixed(total records ).

Ex : you have 3 header and 6 item

Make template with 9 rows and 1 for heading(column names).

sales order no Sales document item material

-


1 A K

B L

2 C M

D N

3 E O

F P

while passing data to templat

when new sales order then only write the orderno else

item values.

Don't forget to reward if useful...