cancel
Showing results for 
Search instead for 
Did you mean: 

regarding declaration part in smartforms

Former Member
0 Kudos

I have this declaration in my print program.

DATA : BEGIN OF withtab OCCURS 0.

INCLUDE STRUCTURE with_item.

DATA: budat LIKE bkpf-budat,

bupla LIKE bseg-bupla,

secco LIKE bseg-secco,

j_1iextchln LIKE j_1iewtchln-j_1iextchln,

j_1iextchdt LIKE j_1iewtchln-j_1iextchdt,

bankl LIKE j_1iewtchln-bankl,

flag TYPE c,

no_print TYPE c,

method TYPE c,

print_order LIKE sy-tabix,

lifnr LIKE bseg-lifnr,

END OF withtab.

DATA: BEGIN OF invtab OCCURS 0.

INCLUDE STRUCTURE withtab.

DATA: base_mod TYPE c.

DATA : seq LIKE t059p-wt_tpnr.

DATA: END OF invtab.

DATA : BEGIN OF printtab OCCURS 0 .

INCLUDE STRUCTURE invtab.

DATA : sno LIKE sy-tabix, "Note 891923

tds_amount LIKE bseg-wrbtr,

surc_amount LIKE bseg-wrbtr,

ecess_amount LIKE bseg-wrbtr,

cheque_no LIKE inrdp-fromnumber,

banka LIKE bnka-banka,

ort01 LIKE bnka-ort01,

brnch LIKE bnka-brnch,

j_1itdbank LIKE j_1icertif-j_1itdbank, " Note 912767

word LIKE spell-word,

paise LIKE spell-decword,

t_amtpaid LIKE bseg-wrbtr, " 13/11/07-madhu

END OF printtab.

I have to get data from the printtab table into smartform how to declare it please help me its urgent requirement.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

you need to declare the table structure in data dictionary and use it in the smartform declaration part.

Former Member
0 Kudos

Hi Naveenkumar,

You need to create a structure in dictionary, same as that printtab table structure.

And in smartforns, you need to declare that in 'Form Interface'.

Thanks,

Pranav

Former Member
0 Kudos

Hi Pranav,

I declared it as structure in data dictionary but it is giving dump

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

you can follow these methods:

1. call the ssf_functionmodule_ name

here u will get the name of fm which is generated from the smartform.

2. call the fm which is mentioned in importing parameter of ssf fm.

now you can give the exporting parameter

and tables

these parameter should be decalred in the form interface of smartform.

under importing and tables

these should have of the same type as of print program so better you can use the row type and line type should be created in SE11.

and refer this structure.

thanks

AM