2009 Jan 22 1:14 AM
HI Friends,
I am modifying one of the module program, where I have internal table with 3 fields and now as per requirement I added fourth field. At output it is showing data for all four fields but in header it is showing 3 fields only.
I tried to find out where this header is coming, so that I can change there and add fourth column, but there is no syntax like top-of-page, or any write statement in program.
Any idea how to find where this header data is coming.
Thanks
Priyank
2009 Jan 22 2:50 AM
HI Friends,
I am modifying one of the module program, where I have internal table with 3 fields and now as per requirement I added fourth field. At output it is showing data for all four fields but in header it is showing 3 fields only.
I tried to find out where this header is coming, so that I can change there and add fourth column, but there is no syntax like top-of-page, or any write statement in program.
Any idea how to find where this header data is coming.
Thanks
Priyank
2009 Jan 22 2:49 AM
2009 Jan 22 2:50 AM
2009 Jan 22 3:12 AM
No,
In layout there is no any table control, only one field material is there ,and based on material previously we are showing material group,description. Now I added plant in output.
So here I added plant in internal table for displaying data. But To add in header I couldn't find anything.
I checked that in program we are using LIST-PROCESSING.
But not defined TOP-OF-PAGE any-where.
Is there anything like, if we have not defined in module program then somewhere else we defined TOP-OF-PAGE.
No Clue ???
Thanks for reply.
PP
2009 Jan 22 7:16 PM
Hi Guys,
Any Idea, May be if you have faced this type of problem,
I have module pool program, and there is no code for top-of-page in my module pool, and all PBO,PAI modules. But still it is getting header when first LIST statement is executed, like in my case is SKIP.
Here is my code if it helps to you finding a problem solution.
MODULE PROGRAM ZABC.
INCLUDE ZINC1. " global Data
INCLUDE ZINC2. " modules
INCLUDE ZINC3. " forms
*in one of the routine I am retrieving data and displaying as list output.
FORm DISPLAY_OUTPUT.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 10.
PERFORM DISPLAY-LIST_PROCESS.
ENDFORM.
FORM DISPLAY-LIST_PROCESS.
SET PF-STATUS 'LIST'.
SET TITLEBAR 'LIST' WITH HEADER_DATE HEADER_TIME.
NEW-PAGE LINE-SIZE 80.
LOOP AT IDATA.
SKIP. " When this syntax is executing it has header with material,batch . I added plant as new req. but * how to add in header that is my question,I coudlnt find any top-of-page in this program.
AT NEW IDATA-MATNR.
WRITE: 5(24) IDATA-MATNR.
ENDAT.
WRITE: 32(4) IDATA-WERKS.
WRITE: 39(5) ICROSS-BATCH.
ENDLOOP.
ENDFORM.
So in module program where we are defining header syntax.
It looks simple but I tried all ways like searching text TOP-of-PAGE in main program, also used RS_ABAP_SCAN_PROGRAM to scan TOP-OF-pAGE in relevant Z program but no-luck.
Any Idea where I can find TOP-OF-PAGE syntax.
Pls. Help me.
Thanks
PP
2009 Jan 23 9:28 PM
2009 Jan 23 10:05 PM
some times, header will get from by using a Z func module(in my past cleint), or like, PERFORM XXXX(any stabdard SAP prog or Z prog YYYY) USING ........CHAING.
or.....use SEARCH globally for WRITE or TOP-OF-PAGE key words. thanq
2009 Jan 23 10:17 PM
What happens (where does the program go) at the first SKIP. You can put a break-point there to find out.
Never mind - In SE80, in the include that has this code, follow this menu path:
Goto -> Text Elements -> List Headings
You can change it there
Rob
Edited by: Rob Burbank on Jan 23, 2009 5:18 PM
2009 Jan 23 11:06 PM
2009 Jan 23 5:08 AM
Anybody have any idea why it is behaving like this....
Thanks
PP
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |