on 07-13-2008 8:31 AM
hi,
I've developed a report and I need to send the contents of the internal table into smartform. For example there are 4 fields in the internal table and it is populated with some values can you give an example how to pass this values to smart form and display the contents from there.
this is an urgent requirement
thanks and regards
rewards will be good
declare the structure of the internal table in data dictionary. Use this structure to declare the internal table in the driver program and in the tables section of the smartform iterface. Declare the stucture as a flat type and not as a table type.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi San,
Here are the steps for getting data from the internal table in the report to the smartform.
1) First thing you have to do is create a Structure in SE11 with the fields similar to the internal table fields.
2) Second declare a Table type in SE11 with the line type giving the previously created structure.
3) After this in the Smartform -> In the Form Interface -> Go to Table node and declare table with type of the table type as created earlier.
4) In the import tab mention the work area of the same table as the Structure type which we created,
4) Goto main window in the smartform and Create table in themain window and there in the data tab in the smartform mention the table name and work area name which you created in the form interface
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi San,
Refer to the link below:
http://www.sap-img.com/smartforms/display-a-contents-of-a-table-on-smartform-with-loop.htm
Regards,
Pritam.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Go through the link given below :
http://help.sap.com/saphelp_nw04/helpdata/en/0b/5da4e72cf511d5b692006094192fe3/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/b8/b60cd42cb611d5b692006094192fe3/frameset.htm
With Regards
Nikunj shah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
whenever if you activate the smart form it will give the function module name. it encapsulate all the attributes of that particula form by calling this function module you can send the data from internal table to your smartform.
you should declare the table in form interface like your internal table from se38.
once you assign the internal table from se38 to internal table from form. automatically data will be sent to internal table from smartfrom(form interface).
there you can display the internal table fields in smartform.
in TABLE node click on DATA tab there you have to loop the internal table body to work area(which has to decalre in global definitions). like lt_itab into lw_itab.
display the text for every field by right click and click on TEXT
like &lw_itab-<fieldname>&.
Regards.
sriram.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi san,
heres the steps you should do to output the content of the internal table.
A. If you are using a TABLE Node:
1. Click the "Data" Tab.
2. Check the Internal table checkbox and enter the name of the internal table you declared together with the work area.
ex. it_customer_info into wa_customer_info.
3. Once you declared it, navigate the Table Node and open the Text Node you have added...
4. then click the insert field button. After which, enter this field you want to output..
ex. &wa_customer_info-name_of_the_field&
Then run your form.
Just reply me if you have more queries..
Rewards 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 San,
You need to use FORM INTERFACE, this is the makes the interface between the program and the form. You need to import the table contents from the program to smartforms using FORM INTERFACE.
Please check this link
[Passing data to the Smart Forms|http://www.saptechnical.com/Tutorials/Smartforms/PassingData/SF.htm]
[Designing Tables in Smart Forms|http://www.saptechnical.com/Tutorials/Smartforms/Table/Create.htm]
Best regards,
raam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.