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

How to display Header for table in Script

Dear All,

In script i am displaying the data in tabular format, by using the

function module write_form_lines. For this i have called multiple

windows for each column. I am able to display the data,however

don't know how to name this column, i.e the header for each column.

(Sr_No,,Vendor Name,,Account Number,,Reference Code,,Amount ).

Any help is appreciated.

Thanks & Regards,

Manju

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 13, 2011 at 08:53 AM

    In script we can assign text element number in single window by '/E' command. Create a new one lets say 510 for the header. Call WRITE_FORM only once before look mentioning the text element which you have created above.

    Nabheet

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Nabheet

      I pass the header details in my MAIN window and in CALL FUNCTION Write_FORM

      set the TYPE as 'TOP'. However the header were not displayed.

      When i change the TYPE to 'BODY', my header were displayed.

      Though the problem is resolved, would like to know the difference between

      TOP and BODY.

      Regards,

      Manju.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2011 at 07:12 AM

    Hi Manju,

    Create a widow to display the header details(hard code the name of the columns). You have to use main window for displaying the table data.Loop the internal table in driver program, inside the loop call the function write_form for printing the table contents.

    Thanks,

    Prabhakaran

    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.