Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding data declaration in smartforms

Former Member
0 Likes
378

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
356

Hi,

To pass the declared ITAB from the print program to the Smartform, you should declare a structure in the Data Dictionary(SE11) and use it.

And another way is to use the SUBMIT SUBROUTINE(PrintProgram_Name) TABLES ITAB. this internal table should be declared at global level in the smartform (by declaring the TYPES of having same structure).

Or even you can use the EXPORT and IMPORT to the memory to pass the internal table to the smartform from the print program.

Please let me know if you need any clarification.

Edited by: Ravi Kumar on Jul 10, 2008 2:09 PM

1 REPLY 1
Read only

Former Member
0 Likes
357

Hi,

To pass the declared ITAB from the print program to the Smartform, you should declare a structure in the Data Dictionary(SE11) and use it.

And another way is to use the SUBMIT SUBROUTINE(PrintProgram_Name) TABLES ITAB. this internal table should be declared at global level in the smartform (by declaring the TYPES of having same structure).

Or even you can use the EXPORT and IMPORT to the memory to pass the internal table to the smartform from the print program.

Please let me know if you need any clarification.

Edited by: Ravi Kumar on Jul 10, 2008 2:09 PM