Application Development 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: 

Declaration for smart form importing structure

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Declare like this :


DATA : ZISEG TYPE TABLE OF ISEG.

Hope this helps,

Regards,

Rock.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Declare like this :


DATA : ZISEG TYPE TABLE OF ISEG.

Hope this helps,

Regards,

Rock.

0 Kudos

Hi Rock,

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

0 Kudos

thanks

Former Member
0 Kudos

Hi,

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

Thanks,

Nithya.

Former Member
0 Kudos

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.