Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem in executing alv in background

Former Member
0 Likes
370

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....

1 REPLY 1
Read only

Former Member
0 Likes
332

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.