on 01-17-2008 1:21 PM
Hi Experts,
I have one report in which from selection screen i am getting the values from the users, and upon that values i am filling data in to the internal table.
Now i want to pass that internal table data to the smart form
and print that data in the smart form.
So could you pls give me some pseudo code or any steps to achieve it.
Thanks & Regards,
DS
Hi ,
Define your internal table FORM INTERFACE->TABLES
If you want to use seprate work area write it into IMPORT.
Reward if helpful,
Thanks
MADHURA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
in smartforms-->global settings->form interface...
in this there is a tab TABLES there u can pass u r internal table and in IMPORTS tab u can declare the WA .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi DS,
First of all you need to create a SF and then need to call the FM generated by the FM in your report.
In the SF in the form interface>tables tab>mention the name of the table and its type structure.
Pls note that a new structure has to be created as the same type of your internal table which holds the data.
And the import and export parameters as just the same as in a FM.
Now after you create and activate your SF a FM will be generated (wen u execute your SF you will be taken to this SE37 screen with the name of FM so no probs..)
You can call this FM in your report. Hope this helps.
Ex:
say itab has your final data, and you also want to export a variable var1 to the SF.
after your normal report operations end, call the FM and pass on these data.
say your FM name is FM1.
call function FM1
exporting
var1 = var1
tables
itab1 = itab1.
pls note that in the SF also i gave the same names, it is not mandatory to give the same names.
and as you want to print a table in the smartforms, you need to create a table in the smart forms and then display the data which is quite simple.
Hope this helps...
if you need any further explanations, pls revert...
Regards,
Narendra.
Reward points if helpful!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Define the same structure in your smartform as the structure what you have in your report.
You will have to create a structure through se11 .
You can define this under tables
Eg :
tables
it_temp like zstructure
With this way you will have same structure in ur report and in your SF.
Hope this resolves ur query .
Regards
Zarina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.