2009 Nov 13 6:02 AM
HI EXPERTS,
when i am running the alv in foreground , it is working properly.but ,when i tried to run it in background,it displayed the column headings in every page. but i need column headings only in first page.what should i do to resolve this problem?
please help.
thanks....
HI EXPERTS,
when i am running the alv in foreground , it is working properly.but ,when i tried to run it in background,it displayed the column headings in every page. but i need column headings only in first page.what should i do to resolve this problem?
please help.
thanks....
2009 Nov 13 9:06 AM
Hello,
Using ALV its not possible to print single heading in Back Ground.
All ways it displays in classical list format only, in order to avoid that you can use Data Set concept.
IF sy-batch NE 'X'.
RUN YOUR ALV IN FOREGROUND.
ELSE.
DATA: zfileext(50) TYPE c.
zfileext = 'give your Sequential file path'.
Extract data on Application server
CONCATENATE zfileext 'EXTRACTED_FILE.TXT'
INTO zfile.
OPEN DATASET zfile FOR OUTPUT IN TEXT MODE.
IF sy-batch NE 'X'.
File could not be opened for writing
WRITE: / 'File can not be open:', zfile.
ELSE.
LOOP AT it_ext INTO wa_ext.
TRANSFER wa_ext TO zfile.
ENDLOOP.
ENDIF.
CLOSE DATASET zfile.
I dont find any other solution apart from this.
If you have any doubt revert back me.
Regards,
Anil.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |