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: 

how to call driver program internal table in a form

Former Member
0 Kudos
89

how to call driver program internal table in a form? Given below is my code

TABLES: VBRK,VBAK,ADRC,KNA1,VBRP,VBAP,J_1IMOCOMP.

DATA: BEGIN OF IT_CUST_ADD OCCURS 0,

STREET LIKE ADRC-STREET,

NAME LIKE ADRC-NAME1,

POST_CODE LIKE ADRC-PSTCD1,

CITY LIKE ADRC-CITY1,

CUST_TIN LIKE KNA1-STCD1,

END OF IT_CUST_ADD.

DATA: BEGIN OF IT_IN_DA OCCURS 0,

VBELN LIKE VBRK-VBELN,

FKDAT LIKE VBRK-FKDAT,

END OF IT_IN_DA.

now suppose these are my internal table. what should i write in FORM INTERFACE (associated type)

4 REPLIES 4

kiran_k8
Active Contributor
0 Kudos
38

Sashi,

You have to create a zstructure and populate the same with the data in the internal table.The under the tables tab in the form declare the internal table in the paramete name and the structure in associated type.

K.Kiran.

Former Member
0 Kudos
38

Hi Sashi, this will solve ur problem.

Check the below link.

kindly reward if found helpful.

cheers,

Hema.

Former Member
0 Kudos
38

To get the internal table into smartform attributes there shoul be corresponding Z structure in the database.

Former Member
0 Kudos
38

u can directly use table object in smartform as by selecting the

page and right click then create and then select table and table type u need

to define at form interface attributes list .

after activation smartform a function module will get generate

and u can pass table data from ur application program by calling the

generated FM .

satish.