on 2006 Jan 19 12:24 PM
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.
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 .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI rene
it is not working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
use this command.
set titlebar 'XXX' .
double click on XXX and give any header.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi,
use :
1) report z123... NO STANDARD PAGE HEADING.
2) top-of-page.
write your heading.
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
105 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.