cancel
Showing results for 
Search instead for 
Did you mean: 

regarding data declaration 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. For getting that data through Form Interface I have declared it using structure also but it is giving dump for KEYS.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

DECLARE THE TABLE TYPE IN DATA DICTIONARY WAHT U USED IN U R PRINT PROGRAM

AND DECLARE THE SAME VARIABLES IN THE FORM INTERFACE.

REGARDS,

JAGADEESH.

Former Member
0 Kudos

Dear Jagadeesh,

Thanks for reply I tried it earlier only but its not working

Former Member
0 Kudos

hi..

declare it in the dictionary as a structure and not as a table type.

Answers (1)

Answers (1)

Former Member
0 Kudos

you need to declare the structure of the table in the data dictionary

Then use it in the table section of the smartform interface to declare the table.