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

Declaration for smart form importing structure

Former Member
0 Likes
715

Hi to all experts,

I have to create a structure for smart form to declare it in the smart form interface (importing ) .The structure should be of the type below. I tried but getting type mismatch dump ....please help

DATA: BEGIN OF ZISEG OCCURS 20.
        INCLUDE STRUCTURE ISEG.
DATA: BTEXT LIKE T064B-BTEXT.           
DATA: GIDAT LIKE IKPF-GIDAT.           
DATA: MAKTX LIKE MAKT-MAKTX.         
DATA: STEXT LIKE T064T-STEXT.         
DATA: NAME1 LIKE T001W-NAME1. 
DATA: END OF ZISEG.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
689

Hi,

Declare like this :


DATA : ZISEG TYPE TABLE OF ISEG.

Hope this helps,

Regards,

Rock.

5 REPLIES 5
Read only

Former Member
0 Likes
690

Hi,

Declare like this :


DATA : ZISEG TYPE TABLE OF ISEG.

Hope this helps,

Regards,

Rock.

Read only

0 Likes
689

Hi Rock,

what about the other 4 fields we are declaring only the iseg structure

Read only

0 Likes
689

thanks

Read only

Former Member
0 Likes
689

Hi,

Have u declared that structure as a global type or in the GLOBAL DEFINITIONS -> TYPES.

Thanks,

Nithya.

Read only

Former Member
0 Likes
689

Hi Abdul,

sorry my answer was incomplete.You need to declare two structures,one for u r data retrival(including other 4 fields) and other for the smartform(same as DDIC structure).After retrieving you need to transfer the data from one table to other.

Hope u got what Iam trying to say,if not PLZ rewert back.

Thanks & Regards,

Rock.