cancel
Showing results for 
Search instead for 
Did you mean: 

How to display Header for table in Script

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

nabheetscn
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Answers (1)

Answers (1)

Former Member
0 Kudos

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