cancel
Showing results for 
Search instead for 
Did you mean: 

Query in Smart Forms

Former Member
0 Kudos

Hello All,

I am working on Smart forms , I have one doubt . Is it possible to pass internal table of program to smart forms. Please note internal table contain filelds of different table like below.

data : begin of it_cper occurs 0,

parnr like vbpa-parnr, " Number of contact person

adrnr like vbpa-adrnr, " Address number

name1 like knvk-name1, " Name 1

prsnr like knvk-prsnr, " Person number

smtp_addr like adr6-smtp_addr, " E-Mail Address

mob_number like adr2-tel_number, " Telephone no.: dialling code+number

end of it_cper.

I know we can pass the internal table which is off type of table we can but this type of internal table we can pass it or not . if yes How..

Regards

Swati Namdeo..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

yes u can pass one internal table in smart forms...

u have to only pass internal table in interface table options and define workarea of internal table in global definition (and define all variables in this which u r using)..

rewards point if it works...

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

An interernal table from the print program can be passed to a smartform., only if a structure exists in data dictionary.. so u need to create a structure in ddic...and use the same in the program and smartform..

Smartform - print program link is analogous to Function module - report program....

So to pass a table , it should be available in DDIC...

Rajiv

Former Member
0 Kudos

hi swati,

u can pass the internal table consisting of fields from different tables.

Create a structure and for that create a table type in SE11.

In Form Interface --> Tables specify some parameter name TYPE table type u created.

In this way u can pass ur internal table of program to smartform.

close the thread if ur query got cleared.

former_member196280
Active Contributor
0 Kudos

It is not possible to pass internal table to smartform, but you can create a structure and pass it to smartform, to overcome this smartform has come up with program lines where you can declare your own internal table strucute.

Regards,

SaiRam

Former Member
0 Kudos

Hi,

Create a structure for the fields in DDIC and create a table type for that structure in SE11 then use that table type for the internal table

thanks

Naren

Former Member
0 Kudos

Hi,

U create line type and row type with required fiedls u want.

U declare u r internal tables in the progame as wellas in smartform

with respect to linetype.

As both are same definitely it workout.

I have done the same.

Assign points if useful.

Former Member
0 Kudos

Hello YUGANDHAR POKALA

How can I create Line type and row type. and how to describe internal table in smart forms with respect to line type .

Please explain.

Regards

Swati Namdeo.

Former Member
0 Kudos

Hi,

Creation of line type.

-> Go to SE11

-> Then select the Data type

-> provide the name starting with Z or Y

-> go with create option it asks whether structure data element

-> select structure go with enter

-> Then provide all the fields that are required for you and then save and activate.

Creation of Row type.

-> Go to SE11

-> Then select the Data type

-> provide the name starting with Z or Y

-> go with create option it asks whether structure data element or table type

-> select table type and go with enter

-> Then provide the structure which you had created in the line type column

Thanks,

Nethaji.