on 10-12-2007 6:25 AM
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..
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.