Skip to Content
author's profile photo Former Member
Former Member

how to print the internal table data in a smartform

Hi,

All

Can any help me in this

i want to print the data of an internal table in a smartformform.

suppose i have an internal table which contains different data from different tables

so i want that internal table data to be printed on a form which has a template designed for that in the form

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 29, 2007 at 12:18 PM

    Hi,

    first of all if the data is coming from differnet tables

    then create a structure in the se11 transaction

    and in your driver prog fill that internal table accordingly...

    and then in the form interface -- tables tab

    you have to declare that internal table

    itab like zstructure

    and put in main window

    in that data

    give loop here one check box will be ther and tick it

    and then

    itab into itab

    and create the template and divde the template that many parts

    as you have the fields

    and create that many text elements and display the data..

    if it is with in the smartform and you dont have the driver prog

    then

    declare the structure in the types tab which is availabe in

    global declarations

    and you can write the program lines there and get the data..

    thanks & regards,

    Venkatesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 29, 2007 at 12:42 PM

    This link will answer your question. It contains screen shots how to handle templets, internal table, creating table etc...

    Smart" target="_blank">www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985">Smart form

    Regards,

    SaiRam

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 29, 2007 at 01:19 PM

    Hi,

    you can do the loop for an internal table where ever you want

    first create a template and put that template in teh loop

    you can create it by

    right clik -- create-- flow logic -- loop

    and in that again same

    give the internal table name and print the data

    <b>you can also put a template in the main window

    and after that right clik on it and then go for loop</b>

    thanks & regards,

    Venkatesh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.