cancel
Showing results for 
Search instead for 
Did you mean: 

diaplay internal table contents in a smart from

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos
Former Member
0 Kudos
Former Member
0 Kudos

hi,

refer to the link.

http://www.erpgenie.com/abap/smartforms.htm

regards,

sreelakshmi

0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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