on 07-28-2011 4:03 PM
hi
i want to call fields of kna1 to my smart form ,
how to call .
i had created one internal table in driver program but i had heard we should not write like that we have to create structure in se11 .and we have to include structure ,
what is the method here i had copied from standard program their already some fields r their that too i want ..
thanks in advance
thanks to scn members
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is there any need to create table type for that created structure .
if condition is yes
why we have to use .
i had created structure zst_adrc.
by using street,name1,house num1.
in driver program data : begin of st_cadrc occurs 0.
include structure zst_adrc.
data : end of st_cadrc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
depends upon your requirement
suppose if you want to pass the internal table in you smartforms means you should create the Table type for the structure and call the table type in smartforms table in form interface.
otherwise no need to create the Table Type just pass the structure to Import parameters in form interface .
if you create structure call it in driver program like this.
data : st_adrc type structure_name."give the stru name after the type word
if you create table type for the structure call it in driver program like this.
data : it_adrc type Table_type_name."give the table type name after the type word
Regards,
Dhina..
Edited by: Dhina DMD on Jul 29, 2011 9:17 AM
is there any need to create table type for that created structure .
if condition is yes
why we have to use .
i had created structure zst_adrc.
by using street,name1,house num1.
in driver program data : begin of st_cadrc occurs 0.
include structure zst_adrc.
data : end of st_cadrc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
there are 2 ways of fetching data from kna1.
1)fetch data in driver program, and pass it to the FM calling your smartform.
for this you need to define your table structure in SE11.And call the same in form interface of your smartform.
2)A better option is, in the initialization tab of your smartform, write your select query, and fetch data there itself.this would avoid creation of extra table structure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi raghu,
open tcode se11 and create a new structure with your required fields
next add the details in your driver program .
now in smartforms under form interface, declare the internal table of the structure your
and in your driver program , pass this structure valus into your sf.
now in your sf in fieldlist on you can access your new fields and insert it where ever you need.
hope your purpose is solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this,
If you want to display list of customers in your form,
1.Create a structure in SE11 with all your required fields.
2.Fill the Customer details internal table in your driver program.
3.In form FORM INTERFACE,in TABLES tab declare your internal table and design the form accodingly.
4.Map the internal table in driver program with this internal table
If you want to display single customer in one print,you can use the existing structure by appending this new fields to it.
Jshree
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. Create a structure with the fields that you want in se11.
2. In the 'form interface' of your smartform add one more line with parameter name say ST_KNA1-TYPE-and the reference field as the new structure you have created in step1.
3. Populate these fields in your driver program based on your functional specification.
4. In the portion of the code where you are calling the smartform add one more exporting parameter as ST_KNA1 = your structure variable in the program.
Hope this would help you.
Regards,
Rakesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.