cancel
Showing results for 
Search instead for 
Did you mean: 

need to know how we can pass header and item level infomration to a sforms

Former Member
0 Kudos

hi everybody,

am new to smart forms, can any one help me out in letting me know how to pass header level and item level information to a smartforms,

am printing invoice information whenever a new invoice is found in header it should tiger teh datas in a new form.

thanks in advance

thanks

sax

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi ,

Pass a workarea containing header level information and internal table containing item level information .

Regards

Former Member
0 Kudos

hi all,

Pls can any one tell me with teh screen shots if posible or can any tell me clarly.

my header containe VBELN and item should display all VBELN details.. when ever when a new VBELN is found it should trigger a new page in smartform..

Pls let meknow ur answers..

Thanks

saxon

Former Member
0 Kudos

Hi

Get the header level information in one internal table and the respective item level information in the other internal table.

Pass these two internal table to the smartform.

loop the header table and print the header detail. Inside the loop itself create another loop where you can loop the item table and print that information under the respective header.

If you need the steps, let know.

If your query is answered kindly close the thread and award points.

Cheers

shafiq

former_member196280
Active Contributor
0 Kudos

Welcome to sdn,

You can populate all the header and item information in one internal table and can do all your printing, so it will be easier to print.

Follow the below steps

sMART fORM

uSING TABLE IN Smart Form

1) Tcode --> SmartForms

2) Form name --> Z_SF_TEST Create

3) Under Global settings

a) Form Interface

Table Tab

ITAB LIKE EKPO

b) GLOBAL Definitions

WA_NETPR LIKE EKPO-NETPR

In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields

For that we have to create an extra variable in global definitions

Ex: netpr FIELD of EKPO

CREATE program lines and specify WA_NETWR = itab-netpr.

4) RT CLick on main Window

CREATE --> TABLE

Click Table painter

DEFAULT %LTYPE will be Created

a) If you want more like Header footer etc add by rt click on %LTYPE1

Table (Tab)

%LTYPE Radio(SELECT) 5 CM 5 CM 6 CM

CLICK on DATA (Tab)

INTERNAL TABLE ITAB LIKE ITAB

5)RT click on table control and create --> program lines

General attribute (Tab)

INPUT PARAMETER OUTPUT PARAMETER

itab WA_NETPR

Code Area

WA_NETWR = ITAB-NETPR.

6) RT CLcick on table ctl and create 3 text to display the fields

a) % text1 +button(insert field)

FIELD name &itab-ebeln&

Output options (tab)

Check New line LINETYPE %Ltype1

check new cell

b) % text2

& itab-ebelp&

output options

check new cell

c) % text2

& wa_netpr&

output options

check new cell

Report ac

Tables ekpo.

Data: itab1 like ekpo occurs 0 with header line.

select * into table itab1 from ekpo.

Call function module

For more help, refer to standard examples, <b>SF_EXAMPLE_01 and SF_EXAMPLE_02</b>

Regards,

Sairam