cancel
Showing results for 
Search instead for 
Did you mean: 

List

Former Member
0 Kudos

Hi All,

I would like to provide dynamic coloum Heading in list header.

i am in GOTO->Text Element -> List heading

and how can i assign the variable under Coloum Heading.

Regards.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

use of top-of-page method is better . You can also format your column headings by this option.

changing the column heading during execution is a better solution for more drill downs .

Former Member
0 Kudos

HI rene

it is not working.

Former Member
0 Kudos

Its described in http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf page 793.

"Usually, you create and modify list and column headers as text elements (see Creating and

Changing List and Column Headers [Ext.]). However, you can also modify these headers while

displaying the list on the screen. To do so, choose System -> List -> List header. The lines of the

page header now accept input:"

Regards

Rene

PS: file size is 8 MB

Message was edited by: Rene Guenther

Former Member
0 Kudos

Hi Rene ,

Is it not possible to provide Dynamic Coloum Heading ?

Regards.

Former Member
0 Kudos

Hi Aima

Something I dont understand:

You are presenting your data in a screen (dynpro) not in a list (where you could make use of the command write), is that correct? If that is correct, you should present your data with the ABAP List Viewer (ALV).

Well, how are you presenting your table data?

Regards

Rene

Former Member
0 Kudos

Hi Rene,

I am using Leave-To-listprocessing in Screens and on Coloum Heading i have to display my internal table data nd screen field data.

Thanks.

Former Member
0 Kudos

Hi Aima,

maybe the following coding might help. Additionally you need of course the dynpro 100 and a transaction code. As you can see, I also made use of TOP-OF-PAGE:

*&---------------------------------------------------------------------*
*& Modulpool         ZGUETEST5                                         *
*&                                                                     *
*&---------------------------------------------------------------------*
*&                                                                     *
*&                                                                     *
*&---------------------------------------------------------------------*

PROGRAM  zguetest5                                                   .

DATA: col1 TYPE char20 VALUE 'col1',
col2 TYPE char20 VALUE 'col2',
col3 TYPE char20 VALUE 'col3'.

DATA: gt_mara TYPE TABLE OF mara WITH HEADER LINE.

*&---------------------------------------------------------------------*
*&      Module  STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE status_0100 OUTPUT.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.
  LEAVE TO LIST-PROCESSING.
  PERFORM test.
  LEAVE SCREEN.
ENDMODULE.                 " STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
*&      Form  test
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  -->  p1        text
*  <--  p2        text
*----------------------------------------------------------------------*
FORM test .
  SELECT * FROM mara INTO TABLE gt_mara up to 10 rows.
  LOOP AT gt_mara FROM 1 TO 10.

    WRITE: / gt_mara-matnr UNDER col1,
    gt_mara-mandt UNDER col2,
    gt_mara-ersda UNDER col3.
  ENDLOOP.

ENDFORM.                    " test

TOP-OF-PAGE.

  WRITE: col1, 20 col2, 30 col3.

Message was edited by: Rene Guenther

Former Member
0 Kudos

use this command.

set titlebar 'XXX' .

double click on XXX and give any header.

Former Member
0 Kudos

HI

text elements ->list headings.

enter the columns headings by calculating the length you want.

instead use Top-of-Page for writing the column heading uisng write statements which is more easy.

Former Member
0 Kudos

Hi Harikishore,

just for your information:

You dont have to calculate the lengths.

Try SE38 with your report. Execute report. Choose System->List->List Header and edit the list header. Save and re-excute report. Text elements->list heading is now filled.

But I dont think you can use dynamic headings at this place.

Regards

Rene

andreas_mann3
Active Contributor
0 Kudos

Hi,

use :

1) report z123... NO STANDARD PAGE HEADING.

2) top-of-page.

write your heading.

Andreas

Former Member
0 Kudos

Hi Andreas,

I am working on Screens and for me in PBO TOP-OF-PAGE is not supported ,I have added the List header but when i am adding Coloum Heading i want to add it dynamically.

Regards.

Former Member
0 Kudos

Use the hint of Satesh R. You can also use the WITH syntax:

case condition.

when a.

set 'titlebar_a' with 'sometext' 'someothertext'.

when b.

set 'titlebar_b' with 'sometext' 'someothertext'.

endcase.